Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an Ubuntu Server hosted at Aruba Cloud and I want to resize the root partition...
The current partition scheme is (roughly):

sda1  /boot  300MB
sda2  swap    ? MB
sda3  /       10GB
<FREE SPACE>  10GB

Is there any way I can extend sda3 at the max?
I've tried with parted or cfdisk but they won't allow me to do it because it's in use...

My idea was to enlarge sda3 in the Partition Table (not the FS) and then use resize2fs to online resize it.

share|improve this question

1 Answer 1

repartitioning alone (without the kernel reflecting the changes) of /dev/sda3 shouldn't be an issue with cfdisk. A reboot is not required for this. But after this before you online resize sda3 (e.g. by 'resize2fs -p /dev/sda3') you indeed must reboot. Otherwise your running kernel does not adopt the new partitioning.

share|improve this answer
    
+1, also I'd add this is a situation where LVM would be handy if you were to use it. –  FatalError Sep 3 '13 at 12:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.