Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: paul1149 on July 14, 2016, 08:08:55 AM

Title: Best way to move a LL partition?
Post by: paul1149 on July 14, 2016, 08:08:55 AM
I just upgraded a friend's machine from LL 2.4 to 3.0. It's a dual boot with Win7, which occupies the front of the HDD.


Now that the upgrade is done, I realize I should have wiped the HDD, forgotten about Win7, and installed LL at the front of the drive, for maximum performance.


I suppose I could use clonezilla to capture the LL install, then move it to the front of the drive, and maybe move the Swap partition as well. But what then would be the best way to reinstall Grub2?


So far I've come across a boot-repair disk, which looks promising, and also some command line stuff via the linux live disk. Any help would be appreciated.
Title: Re: Best way to move a LL partition?
Post by: rijnsma on July 14, 2016, 02:06:22 PM
Maybe make an ISO with Systemback, test it!, wipe what you like to wipe, if needed make new partition(s) and swap and install the ISO?
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 14, 2016, 04:37:24 PM
Thanks much. I hadn't thought of that. I have gone ahead via the clonezilla route, but I'm using the clone as a backup, then trying GParttEd to Move the partition. I'll report back how it worked.
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 14, 2016, 09:15:20 PM
On the surface, all went well, though GPartEd took a long time to copy the LL partition over.

But the new swap partition doesn't appear to be working. I updated the swap partition's UUID in fstab. I ran sudo swapon and get no output.


I've also run sudo /sbin/mkswap -a, but every time I try that it changes the UUID of the swap partition.


The machine takes 2 minutes to boot up, and even complicated macros in LibreOffice don't register any swap action. System Monitor shows the 4.2GB of swap available, but 0 usage at all times.
Title: Re: Best way to move a LL partition?
Post by: LL-user on July 14, 2016, 10:09:58 PM
Hi paul1149,

What does the following give you:
Code: [Select]
sudo swapon -s
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 14, 2016, 10:57:16 PM
Hi LL-User,


Very strange. I ran that command, and immediately noticed that the swap was in use, whereas minutes before it was still empty. Here's a pic:


http://imgur.com/GoqHnZs

Browser loading now was fast, as it should be. But then I rebooted, and the same delays began again. Another pic shows fstab lining up with bklid, and swapon showing no usage, even with some pretty heavy loading:


http://imgur.com/3LXeYzE
So I have proof of concept, but I think it's still not working.
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 14, 2016, 11:01:42 PM
Sorry, pics not showing up for some reason.
Title: Re: Best way to move a LL partition?
Post by: LL-user on July 15, 2016, 12:06:16 AM
Sorry, pics not showing up for some reason.

Have you followed the Forum Posting Guidelines? (https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/msg78/#msg78)

Inserting images:

Upload your images to imgur (https://imgur.com/) for free:
Copy the code from the BBCode box in imgur and paste it on a line where you want the picture to appear.
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 15, 2016, 12:13:16 AM
No, I used the Insert Image function here. Now when I go to Imgur there's no link available. Not sure how it works, but maybe accessing from the original machine would show available links. I posted from the problem machine without an imgur account. Can't access original machine right now, but I did insert the hard links to the pics.
Title: Re: Best way to move a LL partition?
Post by: LL-user on July 15, 2016, 02:19:11 AM
OK, had a look at your screenshots. What sticks out to me is this part of your blkid command:
Code: [Select]
TYPE="swsuspend"

I'm not sure about the sequence you have used the commands to recreate the swap partition etc.

I'd do the following:
See what happens. If it reverts back to TYPE="swsuspend" then we need to look further.
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 15, 2016, 02:42:07 PM
Ok, I'm back on the problem machine. Even logged into Imgur I have no ability to correct the earlier links, but thanks for going there and reviewing them.

Sharp eye regarding that TYPE="swsuspend". That wasn't like that earlier. I think attempting to Suspend and Hibernate may have rewritten the fstab line temporarily. Both attempts failed, btw, and the machine shut down cold.

So I just got here, and my friend had booted up, and it looks like everything's actually working! I opened Slimjet, Gimp with a pic, and ran a large macro in LO, and the swap went to 28MB. Seems low (Pentium 4 Processor, 2GB RAM), but I've never had much swap action in linux. I was thinking about this last eve, and had come up with the basic strategy you have outlined, but if this holds I guess there's no need.

Pic should follow. Thanks much for your input. I will look into adjusting the "swapability" parameter, to make more use of the swap function.

BW,
Paul

(http://i.imgur.com/XutnRPD.png)
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 15, 2016, 02:51:53 PM
Actually, now it's up to 331MB, which is nice to see.
Title: Re: Best way to move a LL partition?
Post by: LL-user on July 15, 2016, 05:05:56 PM
Hi Paul,

That's good news you got it working!

All the best :)

PS: I was actually scratching my had to see that type considering that I only could read you had rebooted the machine. Next time I'll better ask :)
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 16, 2016, 05:44:21 PM
Yeah, seems to be fine. I wonder if it's better to just reinstall though, though dealing with the problem was a learning experience.

I'm just guessing at that fstab "TYPE" rewrite. Maybe it's what flags Swap to act like Hiberfil in Windows. I'm pretty new to Linux.

IAC it's working quite well. Thanks again for your help.

Be Well,
Paul
Title: Re: Best way to move a LL partition?
Post by: LL-user on July 16, 2016, 06:37:44 PM
Hi Paul,

I see no reason why you should reinstall your system in terms of stability etc. Except you want to run it as an exercise :)

To my understanding that "TYPE" rewrite is connected with the suspend/hibernate process.
Am sure you're aware of the difference between suspend and hibernate. If you've the hibernate option (am currently not running LL3.0 and it might be also hardware dependent) then of course you need a big enough swap partition to make it work.

All the best :)
Title: Re: Best way to move a LL partition?
Post by: paul1149 on July 16, 2016, 06:43:46 PM
The only reason I wondered about that is that the install is not as fast booting up as I thought it would be. Moving it to the front of the drive should have brought big advantages, but subjectively, I'm not seeing them. But short of doing a comparison, it's just a feeling.

That would be a confirmation regarding the TYPE rewrite. The machine I think can handle hibernation, so I'm not sure why it failed. But I didn't want to explore the problem at this point! :)

BW.