Sonntag, 25. Dezember 2011

Copy home directory to a new machine

1. create a new partition /dev/sda3 for the new home directory
2. mount /dev/sda3 to /local/home/user_name
3. copy files to the new home directory
cd
/local/home/user_name
find . -depth -print0 | cpio --null --sparse -pvd /mnt/newhome/
4. add a new user by using adduser
5. chown -R user_name:users
/local/home/user_name
6. add the mount to fstab see http://www.tuxfiles.org/linuxhelp/fstab.html

Keine Kommentare: