Date: Tue, 23 Jan 2007 23:29:20 +1030 From: Malcolm Kay <malcolm.kay@internode.on.net> To: freebsd-questions@freebsd.org Cc: ann kok <annkok2001@yahoo.com> Subject: Re: error boot up from clone drive Message-ID: <200701232329.20372.malcolm.kay@internode.on.net> In-Reply-To: <561554.90532.qm@web53303.mail.yahoo.com> References: <561554.90532.qm@web53303.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701232329.20372.malcolm.kay>