On Tue, 23 Jan 2007 02:18 am, ann kok wrote: > Hi > > I am trying to test the clone harddrive to boot up the > system. I got an error > > init: can't exec getty '/usr/libexec/getty' for port > /dev/tty.. > > but I check the clone harddive. the file is there > /usr/libexec/getty and /dev/tty. > > i am using the following to copy the production drive > to clone drive > > 1/ add the secondary ad2 (clone) in the computer > 2/ fdisk and parition as same as the primary drive > (ad0) > 3/ newfs and mount ad2 eg: /usr1 /var1 .... > 4/ using tar command to copy file from /var/ to /var1 > eg: tar cf - var | ( cd var1; tar xvfBp - ) If you do it exactly like this then you have created an extra directory level. If you now remount the partition written to /var1 at /var; then /var/tmp for example will now be at /var/var/tmp.
I think you really needed: # cd /var # tar cf - . | ( cd var1; tar xvfBp - ) or something similar > 5/ shutdown the computer > 6/ unplug ad0 and plug the IDE1 to IDE0 > 7/ boot up > > Thank you for your help Malcolm _______________________________________________ email@example.com mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"