I recently had a dying HD and had to move the root partition to a different
disk.  I used the dump and restore commands like so:

dump -0af - /var |( cd /mnt/var && restore -rf -)

This example dumps the data from /var and restores it to /mnt/var where I had
the new disk.  You have to do this for each mounted partition on the HD (I did
it under OpenBSD, I don't think Linux file systems support partitions within
disk slices this way).

Then since it was the boot drive I bootstrapped it like so:

/usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot wd0

For completeness, I also edited /etc/fstab to be sure I had the right drives
mounting the right stuff..  It all worked rather beautifically.

--TimH
_______________________________________________
EUGLUG mailing list
[EMAIL PROTECTED]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to