FreeBSD boot invalid partition
Michel Le Cocq
miconof80.list at gmail.com
Wed Dec 23 22:11:50 UTC 2009
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 at 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 at 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
More information about the freebsd-questions
mailing list