Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2009 23:11:42 +0100
From:      Michel Le Cocq <miconof80.list@gmail.com>
To:        Ruben de Groot <mail25@bzerk.org>
Cc:        Michel Le Cocq <miconof80.list@gmail.com>, questions@freebsd.org
Subject:   Re: FreeBSD boot invalid partition
Message-ID:  <20091223221141.GB2082@e4300>
In-Reply-To: <20091223214416.GB82061@ei.bzerk.org>
References:  <20091223205137.GA2082@e4300> <20091223214416.GB82061@ei.bzerk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ruben de Groot a écrit:
> 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.

I boot under liveFS then :
bsdlabel -e ad0s1
	 change 'd' label to 'a'.
mount /dev/ad0s1a /mnt
edit /mnt/etc/fstab and change mount point of / to a.

It's now ok.
Thanks a lot.

--
Michel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091223221141.GB2082>