Quote:
Originally Posted by yancek
Your setup seems unusual as I can't think of a good reason to have an Extended partition on a drive when you are only using 2 partitions. I don't know if this is how your installer created things or if you did but it is much simpler if you only have 2 partitions that they be primary as you have found.
Another possibility in addition to the post above would have been to use gparted and turn off swap using the terminal tab, delete swap then delete sda2 (Extended partition), increase the size of sda1 leaving 1-2GB for a primary swap partition. You would need to modify the entry in the /etc/fstab file for swap and insert a correct device name or UUID as creating a new swap changes the UUID.
|
LOL, I just checked back after using my new approach this morning and you're statement is pretty much what I did! Yeah, I told the installer to do basic setup and recommended this swap setup. I used to always allocate my own file system for / , /home , /swap. The extended partition was preventing me from merging the unallocated space. Here's my steps I did and some screen shots. I'm still testing but it appears good now aside from what appears to be a slight slowdown on boot up I didn't notice before. I don't think I'll revert back to my snapshot unless I notice any issues after a few days of testing.
OFFICIAL PARTITION FIX
Links referenced:
https://askubuntu.com/questions/1751...-using-gparted
https://jochenhebbrecht.be/site/2016...t#comment-7080
Action Plan:
1) Deactivate Swap with KDE Manager
2) Disable swap by commenting out the UUID in /etc/fstab
3) Boot off gparted Live and delete the swap and apply changes
4) Delete the extended /dev/sda2 partition and apply
5) This left me with only two file systems > the /dev/sda1 that I wanted to expand and 8.87 GB of unallocated space
6) Resize the unallocated space leaving the amount you want to use for a /swap file
7) Right click on remainder (975 MB in my case) and assign it linux-swap files system within gparted
8) You can probably re-activate the swap with the live gparted but I ended up booting without swap active without issues but the first boot was noticebly slower.
9) Open KDE-Partition manager (If installed) > I added plasma desktop manager with XFCE so I think KDE desktop installed this utility. Right click on swap and choose swap on.
10) Identify the new UUID for the swap via the commands listed below.
11) Remote the comment out # from the beginning of the /etc/fstab for the /swap file and input the new UUID
12) Reboot and confirm swap is active using the new UUID for the swap.
Things noticed. The UUID for my swap file did change as part of this process.
It might be a better idea to activate the swap within the gparted live ISO session but I did not do this. However, I now have the extra space I wanted allocated so I'm not going to bother messing with this. However, I have noticed a slight hang when my VM boots up but it seems to be up and running fine.
I'll monitor this to check. I attached a few screen shots that might help someone with this issue in the future. It was a PITA but after spending an entire day I was able to get this sorted.
Swap file UUID before doing this was:
└─sda5 975M part 81fd0e88-7b42-461f-99da-7484c7d58db5
Swap file UUID after doing this:
└─sda2 974M part 48d0c546-938b-4489-87de-371af43496f4
Note: Theses commands will get you the UUID of the swap.
lsblk --output NAME,SIZE,TYPE,UUID
lsblk --output NAME,SIZE,FSTYPE,UUID | grep '[[:space:]]swap[[:space:]]'
Happy Days!
Pictures:
https://imgur.com/kiofHW9
https://imgur.com/OeHb4tb
https://imgur.com/aiMoI8a
https://imgur.com/J3U1G5x