resizing partitions with gparted

8

When I installed linux, there was a program that ran during installation which allowed me to allocate space from my hard disk to create a new partition. I think this was the GNOME Partition Editor; gparted.

Essentially it resized the (one and only) partition on the disk (which happened to be NTFS), it moved files around to create a continuous free space for the creation of a new partition.

I want now to resize my partitions again using the same program, that is, gparted.

If I run this program normally from linux, I can't resize any partition; the resize buttons are disabled. What can I do about this? I've thought of the following:

  • Unmount all paritions first. This might enable resizing them, but could be dangerous, I don't want to try it without knowing the consequences first.
  • Run gparted from a live CD. This is the obvious solution, but a bit of a hassle, and you'd think there could be a better way.

What should I do?

hasen

Posted 2009-08-11T14:03:16.740

Reputation: 4 556

Answers

13

run gparted from a live CD. it's not that much of a hassle, and it works with NTFS.

you shouldn't resize partitions on-the-fly from the running OS, even when unmounted, it's just asking for trouble

zappan

Posted 2009-08-11T14:03:16.740

Reputation: 368

6

Running from the LiveCD is the best bet.

One of the problems I used to run into was the swap partition. Since you have Linux installed, it should have a swap partition that the LiveCD will start using as well. Make sure to right click and select 'Swapoff' on the swap partition, this will allow you to manipulate all of the drives partitions

jweede

Posted 2009-08-11T14:03:16.740

Reputation: 6 325

3nice tip for the swap partition! – zappan – 2009-08-11T15:00:28.827

0

I believe the NTFS support is not install by default, while it is on the LiveCD. To install NTFS support, use the ntfsprogs package.

sudo apt-get install ntfsprogs

Then restart gparted and you should be able to resize the partition.

Note that if the NTFS partition was not powered down correctly, gparted will still give you issues. The solution in that case is to put the drive in a Windows computer, boot it, run:

chkdsk /f

Shutdown and boot it cleanly a few times in Windows. Then put it into you Ubuntu machine, and try gparted again.

Tim Lytle

Posted 2009-08-11T14:03:16.740

Reputation: 959

Why the down vote? Considering this is the one answer that actually answered the question (how to run GParted from an installation). No offense to the 'Run it from the LiveCD' answers (good answers), I just don't understand the downvote to a correct and helpful answer. – Tim Lytle – 2009-09-23T16:34:51.257