From owner-freebsd-questions@FreeBSD.ORG Wed Sep 19 22:22:21 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 81830106564A for ; Wed, 19 Sep 2012 22:22:21 +0000 (UTC) (envelope-from fritiof.hedman@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 530378FC08 for ; Wed, 19 Sep 2012 22:22:21 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so3955090pbb.13 for ; Wed, 19 Sep 2012 15:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XR303eiiKdzYlkiVNSTsKuO+9g0RlZBI5mOcSS91JX8=; b=XxL/Eg+4Mhct546jVkbl0qDSFEWTC/1Aj3E0EyFkXFW9Hv+70Q2UfphtNVcn/0Dhc/ Ew6Ksx7YO1HWkVeUhoLWr5Q4jiq2uaHrIXlwYAXVlfocCo3ugJmqxsvO4xwqehYKE6iw 5TzU32QiuLFWhCnyENFwb9UhG2h/rRdAMFkqwhaJtQ5vI5NbHUuIbIKyH7iCiUN383WG QbEALlWF2F+98tKxpXCUGa6Yald6F3dLQgrUnfshD7X1Bh0yzGqoZnaHjkbTAt9KEmuA WSGYPtS4zBblZ0TKGmw2WW/ao2kBRvpAm7qTKcwWrEXJgGFSZesMNmf9bQC4w6cQs8qg UHUA== MIME-Version: 1.0 Received: by 10.68.226.38 with SMTP id rp6mr1514596pbc.116.1348093340890; Wed, 19 Sep 2012 15:22:20 -0700 (PDT) Sender: fritiof.hedman@gmail.com Received: by 10.66.160.168 with HTTP; Wed, 19 Sep 2012 15:22:20 -0700 (PDT) In-Reply-To: <20120919233709.f5b56213.freebsd@edvax.de> References: <20120919233709.f5b56213.freebsd@edvax.de> Date: Thu, 20 Sep 2012 00:22:20 +0200 X-Google-Sender-Auth: CWoXq8AS3E7vW5ypuGFb2pJQ1Sg Message-ID: From: Fritiof Hedman To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 22:22:21 -0000 On 19 September 2012 23:37, Polytropon wrote: > 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. > I maybe not so sure about the nomenclature that is used in FreeBSD. However, I dumped / on the source machine, and restored on /mnt/tmp on the source machine. > > >> 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. :-( > Oh, I see. It essentilally says something like: BTX loader 1.00 BTX version is 1.01 Console: internal video/keyboard BIOS drive A: is disk0 BIOS drive C: is disk1 BIOS 638kB/1046464kB available memory FreeBSD/i386 bootstrap loader, Revision 0.8 (root@builder.freebsdmall.com, Wed Oct 9 12:33:26 GMT 2002) \ Hit [Enter] to boot immediately, or any other key for command prompt. Booting [kernel] can't load 'kernel' can't load 'kernel.old' Type '?' for a list of commands, 'help' for more detailed help. ok ls open '/' failed: no such file or directory ok > >> 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"?). > echo * just prints a pretty asterisk :) > > >> 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)... It was more or less that way I did id, the difference were that I mounted /usr under /, and not unmount each partition every time. I'm rerunning as the first document says that I should do (ie unmount the partition that I've just dumped and restored). I've justed tested to do as described in the document, with the very same result. Yeah, that's my guess as well. Maybe I should do the minimal install of the FreeBSD image first, boot into a live mode and then restore everything upon the disks? That would keep any boot flags on the disks right. But the thing that is annoying is that the loader can't browse the content of the disk. I guess that's the main issue here. Cheers, Fritiof > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ...