[Gllug] Moving partitons

Adam Bower adam.bower at framestore-cfc.com
Tue Nov 19 13:48:48 UTC 2002


Jim Bailey wrote:
> Hi all,
> 
> Could some one advise me as to the best way to move /home to a new
> partiton.

(as root)

mkdir /mnt/newhome
mkdir /mnt/oldhome
mount /dev/sdc1 /mnt/newhome
cd /home
find . -print0 -xdev | cpio -pdmv /mnt/newhome
umount /home
umount /mnt/newhome
mount /dev/sdc1 /home
mount /dev/sda2 /mnt/oldhome

ta-daa!

Adam



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list