[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Adding extra disks



On Saturday 17 Aug 2002 9:53 am, Dawson, Alan wrote:
> I guess I
> 1. Add new drive (say primary ide slave)
> 2. boot
> 3. fdisk /dev/hdb
> 4. mount /dev/hdb /mnt
> 5. copy contents of /usr to /mnt
> 6. edit fstab
> 7. rm -fr /usr
> 8. umount /mnt
> 9. mount -a

I wouldn't do step 7 (not there, anyways). Always check to make sure your copy 
works before deleting the original! You can just as well leave it where it 
is, and when /usr is mounted it will be invisible. This is handy in case your 
new disk decides to explode or similar. Just a bit of a safeguard.

> at step 5 I guess if i use cp -R /usr /mnt it will copy symbolic links as
> hard links (or something) so what I want to do is cp -dR /usr /mnt or even
> cp -dpR /usr/mnt  (I'm not really sure about the p and d flags).

You can just as well use -a , which, according to `man cp`, is the same as cp 
-dpR

HTH

Craig
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.