From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 21:44:21 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB12B106568F for ; Wed, 23 Dec 2009 21:44:21 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE8D8FC17 for ; Wed, 23 Dec 2009 21:44:21 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id nBNLiGqi082470; Wed, 23 Dec 2009 22:44:17 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id nBNLiGRO082469; Wed, 23 Dec 2009 22:44:16 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Wed, 23 Dec 2009 22:44:16 +0100 From: Ruben de Groot To: Michel Le Cocq Message-ID: <20091223214416.GB82061@ei.bzerk.org> References: <20091223205137.GA2082@e4300> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091223205137.GA2082@e4300> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, J_CHICKENPOX_26,SUBJECT_FUZZY_TION autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Wed, 23 Dec 2009 22:44:20 +0100 (CET) Cc: questions@freebsd.org Subject: Re: FreeBSD boot invalid partition 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, 23 Dec 2009 21:44:21 -0000 On Wed, Dec 23, 2009 at 09:51:39PM +0100, Michel Le Cocq typed: > I just dump a real host and try to restore it on a virtual host under > kvm. > > When booting under KVM i see this : > Booting From hard Disk... > Invalid partition > Invalid partition > No /boot/loader > > FreeBSD/i386/Boot > Default: 0:ad(0,a)/boot/kernel/kernel > boot : > > If i enter : > boot : 0:ad(0,d) > > it's ok and then : > Manual Root Filesystem Specification : > Mountroot> ufs:/dev/ad0s1d > > and it's finaly boot. > > [root@vbsdio ~]# cat /etc/fstab > # Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1d / ufs rw 1 1 > /dev/ad0s1g /local ufs rw 2 2 > /dev/ad0s1e /usr ufs rw 2 2 > /dev/ad0s1f /var ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > linproc /compat/linux/proc linprocfs rw 0 0 > [root@vbsdio ~]# > > I need to change my master boot device or anything else. > But don't know what to do exactly. Not sure, but I think boot0 only boots "a" partitions. So after you manually boot like above, go into bsdlabel and change ad0s1d into ad0s1a. Do the same in fstab.