From owner-freebsd-questions@FreeBSD.ORG Wed Sep 19 21:37:17 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 646A3106566B for ; Wed, 19 Sep 2012 21:37:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 220CE8FC0C for ; Wed, 19 Sep 2012 21:37:16 +0000 (UTC) Received: from r56.edvax.de (port-92-195-214-70.dynamic.qsc.de [92.195.214.70]) by mx01.qsc.de (Postfix) with ESMTP id 618F83CFE5; Wed, 19 Sep 2012 23:37:10 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q8JLb9K5002202; Wed, 19 Sep 2012 23:37:09 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 19 Sep 2012 23:37:09 +0200 From: Polytropon To: Fritiof Hedman Message-Id: <20120919233709.f5b56213.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Can't find kernel, finds slices but no files on them X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 21:37:17 -0000 On Wed, 19 Sep 2012 23:28:30 +0200, Fritiof Hedman wrote: > Hi list! > > I must warn you, I'm quite new to FreeBSD (I'm mostly using Linux > otherwise). I have inherited an old (yes, very old) BSD 4.7 machine on > my work that I need to clone. I've setuped an identical copy of the > slices on the target machine, ran dump the source machine and restore > on the target machine, edited /etc/fstab to match the filesystems. I'm > also running the GENERIC-kernel, I've done this using the FreeSBIE > live CD. What procedure did you use to clone? There basically is the "one" way, using dump + restore on partitions (not slices!), or dd on either partitions, slices, or the whole disk. > However, when I boot I get to BTX loader (so I guess boot0 and boot2 > is correct), that can't load kernel nor kernel.old. see attached > img1.png . Images cannot be attached to list messages. :-( > I can't ls, as the loader says there is no such file or > directory (also seen in img1.png). You can use "echo *" in the loader stage, if I remember correctly. Enter "?" for a list of the available loader commands (or was it "help"?). > lsdev gives a correct answer, all slices are there with their correct > size. echo $currdev returns disk1s1a as it should (see attached > img2.png). Good, so the copy you've created seems to be okay. > Mounting the disks works, and their content is correct, with all file > params set. > > Any ideas how to get this target machine to boot? Maybe you just missed to prepare the "boot attributes" of the new disk properly? I suggest having a look at those documents: Disk Setup On FreeBSD http://www.wonkity.com/~wblock/docs/html/disksetup.html Backup Options For FreeBSD dump(8)/restore(8) http://www.wonkity.com/~wblock/docs/html/backup.html#_em_dump_8_em_em_restore_8_em I'm almost sure that you will need to re-initialize something within the boot chain (guess without further diagnostics)... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...