From owner-freebsd-questions@FreeBSD.ORG Tue Jan 23 12:59:24 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E45916A401 for ; Tue, 23 Jan 2007 12:59:24 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [203.16.214.141]) by mx1.freebsd.org (Postfix) with ESMTP id 0ED6E13C468 for ; Tue, 23 Jan 2007 12:59:23 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ppp109-217.lns5.adl4.internode.on.net (HELO alpha.home) ([121.44.109.217]) by ipmail02.adl2.internode.on.net with ESMTP; 23 Jan 2007 23:29:21 +1030 X-IronPort-AV: i="4.13,225,1167571800"; d="scan'208"; a="75199547:sNHT101265990" From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Tue, 23 Jan 2007 23:29:20 +1030 User-Agent: KMail/1.8 References: <561554.90532.qm@web53303.mail.yahoo.com> In-Reply-To: <561554.90532.qm@web53303.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701232329.20372.malcolm.kay@internode.on.net> Cc: ann kok Subject: Re: error boot up from clone drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 12:59:24 -0000 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