Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              10G  1.1G  8.4G  11% /
tmpfs                 983M     0  983M   0% /lib/init/rw
udev                   10M  140K  9.9M   2% /dev
tmpfs                 983M     0  983M   0% /dev/shm
/dev/sda2             914G  200M  868G   1% /home

I'm running Debian 6 and like to increase the size of sda1 with 600G from sda2. How do I accomplish this without messing up the partitions?

share|improve this question

You can use a partition editor like GParted . It is capable of moving relevant filesystem data and resize the partitions accordingly.

Although it would be possible to run it from within the current installation, an easier way would be booting up a live CD.

share|improve this answer
I wouldn't recommend he uses the program while his linux is still running. The program will move content from one part of the hard drive's disk to another. This means some parts of the hard drive (that contain OS files) may get fragmented because they're currently in use. – tftd Feb 17 '12 at 22:26
gparted in general would not allow to move a partition with a mounted filesystem. You would need to pull some rabbits out of the hat in order to make it work from within a running system - it's doable, but using a Live CD is so much easier – the-wabbit Feb 17 '12 at 22:43
I didn't know it was possible. Thanks for the information. :) – tftd Feb 17 '12 at 22:46

You can't do it directly; either you put more of your stuff inside /home, or you'll have to move all content from /home to /home.tmp on sda1 to clear sda2 and reinstall there.

I'm recommending a clean reinstall because LVM might help you in the future. Is this an option for you?

share|improve this answer

If you have a physical access to the server you may try doing this with GParted. It's a free and OpenSource project that can re-partition Ext2/3/4, NTFS and many other file system formats.

What you should be aware is that you should be really careful when you're using the program. If your computer get's turned off (loss of electricity?) - you will probably get all of the information on the drive messed up. So you'll need to reinstall a fresh copy and start from zero.

share|improve this answer

Your Answer


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.