How to change the home directory where the partition?

XaYo

New member
Joined
Nov 7, 2009
Messages
1
hello,
Now home directory in / dev/sda3, how to make home directories in / dev/sda2?
Thank you!

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 190M 12M 169M 7% /boot
/dev/sda2 15G 165M 14G 2% /www
/dev/sda3 12G 2.9G 7.9G 27% /
tmpfs 252M 0 252M 0% /dev/shm


XaYo
2009-11-07
 

Attachments

  • VPS.jpg
    VPS.jpg
    19.8 KB · Views: 183
there is a lot of guides in the internet about this. If you are unexprienced user i advice to hire someone to do it for you
 
umount /dev/sda3
mount /dev/sda2 /home

/home now locates in /dev/sda2 device. But...

1)copy files to new device before mountin

2) make changes in /etc/fstab to mount device correctly after rebooting and set valid sysparams to /etc/fstab if your OS needs this. U need simple replace "/www" with "/home"
-----
/dev/sda2 /home ext3 defaults,usrquota,grpquota,nosuid 1 2
-----
Be careful, wrong symbol in /etc/fstab - and u'll have problems with rebooting system
 
Back
Top