3

Screenshot of gparted Three months ago I dual booted my PC with Windows 8 and Ubuntu 18.04.03. Now I'd like to reduce the size of the Windows partition and increase that of the Ubuntu partition. I can reduce the size of the Windows partition from the disks application, but between the unallocated space and the Ubuntu partition there is the swap partition, so I can't allocate the space to Ubuntu. Is there a way to get around the problem? EDIT:

I don't know why, but after shrinking the Windows partition both Windows and Ubuntu failed to boot, so since I had backed up my important files and didn't use Windows anymore I used the live USB to do a clean install. Thanks anyway for your advices

3 Answers3

1

You can only extend your root Ubuntu partition to the left from a USB/CD boot, as the file system being moved can't be mounted at the time. You can use the USB/CD you used to install Linux. Back up critical data (documents,...) just in case. (You indicated in your post you could use Windows to shrink its own partition. Just as a note - it's best to shrink this partition from Windows, rather than GParted)

Once in the Ubuntu live setup, start GParted. Delete the swap partition (note its size). Then extend your root Ubunto partion to the left (click on the border line, and drag it over). Apply the change. This could take a long time, as it has to copy the data. Then recreate your swap partition. Apply the change. Done.

JasonF4
  • 548
0

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.

  • First, you must reduce the Windows C: NTFS partition, using the Windows Disk Management tool, to make room to resize your Ubuntu partition.
  • boot to a Ubuntu Live DVD/USB
  • start gparted
  • move /dev/sda7 partition left
  • move /dev/sda8 partition left
  • resize the right side of /dev/sda8 all the way right
  • click the Apply icon
heynnema
  • 73,649
0

I don't know why, but after shrinking the Windows partition both Windows and Ubuntu failed to boot, so since I had backed up my important files and didn't use Windows anymore I used the live USB to do a clean install. Thanks anyway for your advices