I booted into a live USB and ran GParted but it wouldn't let me resize the main Ubuntu partition to use 10GB of unallocated space, I also have Windows 10 installed on the hard drive which I shrank to get the unallocated space?
-
When you say main ubuntu partition - what do you mean? Is it root(/). Whenever you are using gparted one need to unmount the partition on which they are trying to do the resize operation...root(/) cannot be unmounted within ubuntu session for gparted to do so.– AshuFeb 28, 2016 at 0:22
-
Hard to say. Make sure swap is not mounted and the free space is adjacent to the partition you want to enlarge. Post a screen shot of gparted.– PantherFeb 28, 2016 at 0:23
-
It is the root(/) partition I am trying to extend.– HDN ProductionsFeb 28, 2016 at 1:01
-
The swap was not mounted as well i unmounted it in the live USB.– HDN ProductionsFeb 28, 2016 at 1:02
-
@Ashu, gparted has been able to grow the root partition without unmounting it for a few years now.– psusiFeb 28, 2016 at 4:43
2 Answers
You only can repartition unallocated space to the Ubuntu partition if it's immediately adjacent to that partition. Is that the case?
All answers about partitioning you also can find in a clear guide from GParted. http://gparted.org/display-doc.php%3Fname%3Dmoving-space-between-partitions
You have to unmount the partition you want to extend. If it is the root partition, then you have to boot from another drive—a bootable USB stick, for example. To get one:
- find out which
/dev/sd(letter)
is your stick bysudo blkid
—you will be able to recognise the stick by label, UUID, type, or simply by observing which device appeared after you had inserted the stick, - get an Ubuntu image and put it to the USB stick (destroying all its
previous content): i.e.
wget http://releases.ubuntu.com/15.10/ubuntu-15.10-desktop-amd64.iso -q -O -| dd of=/dev/sd(the letter) bs=4M
, - reboot,
- enter BIOS and make sure you that your USB stick is boot priority,
- boot from that stick,
- choose 'Try Ubuntu' without installing,
- run gparted.
-
I did boot from a USB stick and open GParted but it still won't let me extend the partition Feb 28, 2016 at 23:05