• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

How Increase Linux partition size

suityou01

Potty-trained
Joined
Jan 20, 2009
Messages
21,122
Likes received
773
Thanks received
222
Location
Clown World
I am booted on my Ubuntu live CD running GParted, staring at my screen in disbelief. I have 167 GB of unused HDD space I would like to increase my root partition to use. Eeeeeeeeeeeveryone on the web says to use GParted, the thing is the resize / move option does not allow you to INCREASE only decrease which is no chuffing good tbh.

So how would you Linux boffins achieve this? Any help very gratefully received.

TIA

SY01
 
How about newfsing it and mounting it as /data or something?

I might be wrong but I think with gparted you maybe have to create a partition first (as against just empty space as it is now) and then shrink that/grow root.
 
I don't know anything about Gparted but I would have originally created the partition using an LVM based setup which allows you to do that. If its an ext3 partition then you can resize it using resize2fs and these instructions are pretty good:

http://www.howtoforge.com/linux_resizing_ext3_partitions

If its a reiserfs have a look at resize_reiserfs (man resize_reiserfs)

Some partitions are reasonably easy to resize but others can be a real pain as they have to be unmounted which is where a live CD comes in useful.
 
I don't know anything about Gparted but I would have originally created the partition using an LVM based setup which allows you to do that. If its an ext3 partition then you can resize it using resize2fs and these instructions are pretty good:

http://www.howtoforge.com/linux_resizing_ext3_partitions

If its a reiserfs have a look at resize_reiserfs (man resize_reiserfs)

Some partitions are reasonably easy to resize but others can be a real pain as they have to be unmounted which is where a live CD comes in useful.

Thanks for this. Being a Linux novice of sorts I do like my GUI tools, especially when it comes to doing things like moving and resizing partitions. This walkthrough made my head hurt, talking about drive geometry and stuff. Is there an easier/less technical/less error prone way?
 
Thanks for this. Being a Linux novice of sorts I do like my GUI tools, especially when it comes to doing things like moving and resizing partitions. This walkthrough made my head hurt, talking about drive geometry and stuff. Is there an easier/less technical/less error prone way?

Thats one of the myriad problems facing Linux, yes there are many GUI tools, possibly too many, but for the real nitty gritty work you have to get down to the command line and for something like this you might even have to boot into recovery or single user mode. Here are some reasonably good tutorials on Linux:
 

Advertisers

Back
Top