[Wolves] Moving / hard disks

Adam Sweet drinky76 at yahoo.com
Wed Jun 1 02:10:44 BST 2005


Hi all

My replacement 160GB disk came today so I've moved
/home over to the new disk by doing 

cp -rpv /home/* /mnt/new/

editing fstab and rebooting. This disk will remain
purely /home storage space.

<excuse lack of punctuation for technical reasons>

Of my other 2 disks, one is 30GB and contains / /usr
/var and /tmp

The other is a 60GB disk which used to contain /home
and I would like to move everything from the 30GB disk
to here after creating some new partitions.

Can I essentially move the contents of each partition
over using the same command as for /home, with the
exception of adding the x option for staying within
the particular filesystem? 

I assume I have to use a LiveCD.

For example:

cp -rxpv /mnt/oldroot/* /mnt/newroot/     #ie /
cp -rxpv /mnt/oldusr/* /mnt/newusr/
cp -rxpv /mnt/oldvar/* /mnt/newvar/
cp -rxpv /mnt/oldtmp/* /mnt/newtmp/

Edit /etc/fstab and /boot/grub/menu.list and do
grub-install /dev/hdb or whatever the new / disk is
called.

Is this ok? I've never done this before. I welcome any
criticisms, small picky points or general 'you could
do it this way' type comments.

Thanks all,

Ad

-- 

http://www.drinky.org.uk

http://blog.drinky.org.uk


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com



More information about the Wolves mailing list