0

My dilemma is a little different than some of the other scenarios involving partitioning setups.

I have 442GB unallocated space between sda3(NTFS) and the Ubuntu partitions and want to assign this unallocated space to sda6, which is the root ext4 partition. Problem is that the three Ubuntu partitions are all primary.

How to do this in GParted? (or are there multiple ways to deal with this)

enter image description here

  • I created separate EFI partitions and boot through BIOS as I don't have Grub installed. I use Systemd's bootloader and copied the Windows EFI folder over to the other EFI. – Kenny Heimbuch Feb 24 at 6:03
  • Just curious... why don't you use GRUB? You can directly boot either OS from the GRUB menu. – heynnema Feb 24 at 15:00
  • Do a free -h command and confirm that it shows your 8G swap. – heynnema Feb 24 at 15:02
  • @ heynnema Oh, the reason for this is that I am using a downstream distro (Pop!_OS) and they don't actually use GRUB. I spoke to the dev who told me their reasons for it, basically amounting to that Systemd has its own bootloader and am guessing to they don't want the added support requests when GRUB breaks (they actually recommend booting from firmware). Systemd was pretty good at automatically detecting my copied MS EFI folder in /boot/efi. – Kenny Heimbuch Feb 24 at 16:07
  • So, inquiring minds want to know... please explain exactly what you had to do to prepare to boot this way, and what steps you actually have to do to boot one OS or the other. Thanks. – heynnema Feb 24 at 16:30
1

Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.

Keep these things in mind:

  • always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

  • you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...

Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

  • boot to a Ubuntu Live DVD/USB
  • start gparted
  • move sda4 partition all the way left
  • move sda5 partition all the way left
  • move sda6 partition all the way left
  • resize the right side of sda6 all the way right
  • click the Apply icon
  • Thanks! One more question that this raised was in the first instruction: "always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition". How would I do that - by when in term with sudo swapoff -a and then right-click, 'swapon' in GParted? – Kenny Heimbuch Feb 24 at 3:57
  • @KennyHeimbuch Both the swapoff and swapon commands can be done directly from within gparted. Does that answer your question? – heynnema Feb 24 at 14:57
  • @ heynnema I did the checkmark, but since I am a new user it doesn't register my upvote on the up-arrow icons. Many thanks again for your answer. – Kenny Heimbuch Feb 24 at 16:03
  • You don't need to move sda6 to the left before resize. You can resize to the left by dragging the left edge of sda6. At least that's how I remember it. – user68186 Feb 25 at 0:15
  • 1
    @user68186 Hitting the Apply button after each step may be safer, but unnecessary IMHO :-) Unless you have a power failure in the middle of things, and then you're screwed. Waiting until the end to do the Apply also gives you a chance to review the final configuration, and make sure it's really what you wanted, before the Apply. Also note that this particular user's partitions that get moved are small, so the total time to do it amounts to nothing. The OP did it my way and survived :-) – heynnema Feb 25 at 0:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.