I've gotten a new scsi drive and want
to move my /usr directory to it, but
don't know how to preserve the hardlinks?
Really, I'm not even sure of the issues
involved, anyhow, this is how I'm
So far I have the scsi drive mounting
in /mnt and have created a directory
in it called usr. I'm sure it's mounting,
mount shows it. Then I'm trying to
cp -r -p -d /usr/* /mnt/usr/ . It goes
and seems to work, but complains along
the way about not being able to copy
Try this from your root (/) directory.
tar cf - usr | (cd /mnt ; tar xvf -)
That will preserve your links... cp -r will follow your links and copy what
it's pointing to, not the link. and if you happened to have some sort of loop,