0

So as you can see the unallocated space is right next to my /home partition, my question is, can I just merge them by resizing sd3 (/home partition) with GParted right away? Or do I have to use a Live CD? I got a warning message saying that something might go wrong.

enter image description here

3 Answers 3

1

can I just merge them by resizing sd3 (/home partition) with GParted right away? Or do I have to use a Live CD?

Yes, you can merge the unallocated space with /dev/sda3 partition through Ubuntu live disk or Gparted live disk.Boot from Ubuntu live disk, open gparted from dash.Right-click on the /dev/sda3 partition and select Resize/Move option. It allows you to increase it's size(ie, occupying the unallocated space).

Note: Backup your important datas before proceeding the above and also make sure that all the partitions are unmounted.

0

Using a LiveCD is safer. I agree with C.S.Cameron that you should have a backup, because working with filesystems and partitions can destroy data.

Changing the size of a partition is only part of what you need to do in order to make this space usable.

Once you expand the partition to use the unallocated space, you need to resize the filesystem (the ext4 aspect of this) to also include the new space. Fortunately, ext4 can be resized online.

After you've expanded the partition, close gparted and open a terminal.

sudo resize2fs /dev/sda3

This should tell your ext4 partition that it's bigger now, and allow it to use the new space.

For good measure, I'd reboot.

1
  • I'd like to add, it's the goal of the parted developers to move away from managing filesystems. GParted may handle this aspect of exanding a drive, but it's probably a good idea not to count on it in the future. Apr 21, 2014 at 1:38
0

I have done this with no problem, however the usual precaution is to backup everything first.

1
  • Don't get the downvote. Why?
    – Rmano
    Apr 21, 2014 at 2:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .