-   Debian (
-   -   Added new HDD now want to change /home (

k0r54 04-10-2008 04:22 AM

Added new HDD now want to change /home

I am running debain and have 3 partitions on an 80 gb hdd root, swap and /home.

I have added a new hdd to the system and now i want to change /home to this new drive. Its a 500gb hdd so im not too worried about loosing the 60gb it is on at the moment but i do want to keep my data.

Any ideas?


redgoblin 04-10-2008 06:01 AM

How confident do you feel with creating partitions and update the fstab file?

If you feel that wont be too much of a problem, there are a number of howtos on this;

If the whole idea seems a little scary to you, then post the output of;


cat /etc/fstab
and let us know if the drive is already attached.

Junior Hacker 04-11-2008 02:07 AM

Download and use Gparted to make a partition and format it with ext3 file system. Then follow these steps, do not include anything in between and including the brackets in these commands, those are just quick explanations.

As root or sudo in single user mode:
1: #mkdir /mnt/newhome
2: #fdisk -l  (to find device name of new partition)
3: #mount -t ext3 /dev/???? /mnt/newhome (replace check marks with what is appropriate based on the output of fdisk -l command for the new partition)
4: #cd /home
5: #cp -ax * /mnt/newhome
6: #cd /
7: #rm -fr /home
8: #umount /mnt/newhome
9: #mv /mnt/newhome /home
10: #vim /etc/fstab (edit /etc/fstab with favorite editor if not vim, and add line below with proper /dev/xxxx)
11: /dev/???? /home ext3 defaults 1 2
12: re-boot

k0r54 04-11-2008 06:28 AM

I used the fstab method, i was pretty sure that was how to do but but needed to confirm.

Thanks for the input though!


All times are GMT -5. The time now is 11:51 AM.