Date: Fri, 13 Feb 2009 23:49:38 +0100 From: Olivier SMEDTS <olivier@gid0.org> To: freebsd-current <freebsd-current@freebsd.org> Subject: Can't boot on ZFS without GPT Message-ID: <367b2c980902131449p19879021kdc574859ca67fc9a@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello,
I wasn't able to boot on a ZFS pool without using GPT slices. My MBR
partitioned disk has a type 0xa5 (165) active slice "ad0s2". I tried
the following :
copy zfsboot
# dd if=/boot/zfsboot of=/dev/ad0s2 count=1
# dd if=/boot/zfsboot of=/dev/ad0s2 skip=1 seek=1024
create pool and root filesystem
# zpool create -o altroot=/mnt pool ad0s2
# zfs create pool/freebsd
# zpool set bootfs=pool/freebsd pool
install base system
# cd /usr/src/
# make installworld DESTDIR=/mnt/freebsd/
# make installkernel DESTDIR=/mnt/freebsd/
# make distribution DESTDIR=/mnt/freebsd/
# cp /boot/zfs/zpool.cache /mnt/freebsd/boot/zfs/
# cp /boot/loader.conf /mnt/freebsd/boot/
# echo 'vfs.root.mountfrom="zfs:pool/freebsd"' >> /mnt/freebsd/boot/loader.conf
# touch /mnt/freebsd/etc/fstab
# cp /etc/rc.conf /mnt/freebsd/etc/
reboot...
I also tried with a bsdlabel, created the pool on ad0s2a (fstype ZFS),
still no luck...
No problem with another disk and a GPT partition scheme. But I can't
convert this one to GPT cause it's big and I don't have enough backup
space.
Anyone here having a working ZFS-only root with MBR slices, or more
informations ?
Thanks
--
Olivier Smedts _
ASCII ribbon campaign ( )
e-mail: olivier@gid0.org - against HTML email & vCards X
www: http://www.gid0.org - against proprietary attachments / \
"Il y a seulement 10 sortes de gens dans le monde :
ceux qui comprennent le binaire,
et ceux qui ne le comprennent pas."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367b2c980902131449p19879021kdc574859ca67fc9a>
