Repartition Ubuntu by command line?

Posted by DisgruntledGoat on Super User See other posts from Super User or by DisgruntledGoat
Published on 2010-05-15T20:49:02Z Indexed on 2010/05/15 20:54 UTC
Read the original article Hit count: 346

Filed under:
|
|

On my server the filesystem includes these partitions:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             4.6G  929M  3.5G  21% /
/dev/sda5              76M   20M   53M  27% /boot
/dev/sda8             449G  199M  426G   1% /home
/dev/sda7             4.6G  4.4G     0 100% /var

(Output from df -ah)

I'm storing the web sites and databases under /var and as you can see it's got full. The /home folder just has basic user directories and nothing else so I'd like to repartition the server so that /dev/sda8 is about 5GB, with the rest going to dev/sda7.

What's the easiest way to do this via command line (i.e. SSH)?

© Super User or respective owner

Related posts about ubuntu

Related posts about partition