2

I have a dual-boot laptop with both Windows 10 and Ubuntu 16.04.

Currently, the Windows side has too much disk space, and I want to resize things so that the Ubuntu side has more.

Firstly, I went into the Windows disk management and shrunk the Windows partition by 20GB. I then wanted to expand the Ubuntu partition, but it seemed like this option was greyed out.

Can I expand the Linux partition from Windows or do I need to be in Ubuntu or do I need to create a boot disk and do it that way?

Or do I need third party software?

Any help gratefully received.


enter image description here

  • 1
    Do use Windows to resize NTFS partitions and reboot immediately so it can run chkdsk. If Windows 8 or 10 make sure fast start up is off, so Linux NTFS driver can mount partition and Linux tools correctly see the NTFS partition(s). Then use gparted for changing Linux partitions. Gparted may work to edit NTFS, but safer to use Windows tools. askubuntu.com/questions/343268/… – oldfred Sep 19 '17 at 19:16
  • 3
    Possible duplicate of How to resize partitions? – Pilot6 Sep 19 '17 at 19:46
1

Boot from the usb drive you made bootable to install ubuntu There is a software called gparted in it. If you can't find it, install it from the software centre. Open it and there you can resize partitions. Alternatively, You can download iso file of partition resizing tools like EaseUs , make a USB bootable with the ISO, and boot from it. You can also use Hiren's Boot CD iso. There is a partition manager in Hiren's Boot CD (without booting into mini windows xp mode). If you plan to use mini xp mode, scan and remove viruses from the iso using an antivirus before putting into USB.

If your partitions aren't near to each other, (say, you have a partition used to store movies in between your windows and linux partitions, use the unallocated free space to increase the space of the middle partition. Then shrink the middle partition to get free space on the other end of the middle partition. Then extend the space of ubuntu partition

  • Thank you. I have added an image in my question above. As you can see, there is 19.53GB of unallocated space. I want to add it to the sda5 partition (which I believe to be my Ubuntu partition). Could you tell me how to proceed? I have read other cases, but it's not entirely clear to me and I don't want to mess it up (I am backed up though). – user1551817 Sep 19 '17 at 20:14
1

For your edited question:

I'd do like this:

Be prepared to reinstall ubuntu if anything wrong happens.

You don't need 15 GB of swap space. Take 300 MB from sda6 and combine it with unallocated 694 MB and make that partition swap.(1 GB) Combine balance sda6 (15.88GB (less) 300MB that you have taken in the above step) with sda5 (ubuntu partition) 15GB swap is a waste of space. When you boot to ubuntu, if you don't see the swap partition, reinstall ubuntu or check for any other solutions to force ubuntu to detect the modified swap.

If you combine the space you freed from windows c drive, you will mess up with the position of recovery partition, which might make it not possible to load recovery or diagnostic tools.

I have not tried modifying diagnostic or recovery partition. So I don't know about it. This article https://www.partitionwizard.com/partitionmagic/delete-recovery-partition.html says it is ok to delete recovery partition.

But if you take the swap space, you will get a lot of space for ubuntu. Decrease swappiness setting for better performance. It will force ubuntu to use more RAM and less swap.

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.