I'm trying to boot from a ZFS pool on GPT partition.
Filesystem was taken from /dist/ on the livefs. All of it is read-only except /boot/zfs.
Thoughts?
Code:
BTX loader 1.00 BTX version is 1.02
BIOS drive C: is disk0
FreeBSD/x86 ZFS enabled bootstrap loader, Revision 1.1
can't load 'kernel'
Type '?' for a list of commands, 'help' for more detailed help.
OK lsdev
disk devices:
disk0 BIOS drive C:
disk0s1: FFS bad disklabel
zfs devices:
OK lsmod
OK
Code:
FreeBSD-8.2-RELEASE-amd64-livefs.iso
SHA256=f72ff7e9043f200651ca6dff3a4b71ec9447319c6efc419a2f6922a921bdfc68
Code:
Fixit# gpart show -l
=> ad4 GPT
1 /dev/ad4p1 (freebsd-boot)
3 /dev/ad4p3 (freebsd-zfs)
Fixit# gpart bootcode -b /dist/boot/pmbr -p /dist/boot/gptzfsloader -i 1 /dev/ad4p1
Code:
Fixit# zpool status
pool: zpool
state: ONLINE
config:
zpool ONLINE
ad4p3 ONLINE
Fixit# zpool get bootfs zpool
zpool bootfs zpool local
Fixit# zfs get mountpoint zpool
zpool mountpoint legacy local
Code:
Fixit# cd /zpool/boot
Fixit# ls -l
drw------- 2 root 0 2 Feb 17 2011 zfs/
Fixit# cp -f defaults/loader.conf .
Fixit# cat loader.conf
vfs.root.mountfrom="zfs:zpool"
zfs_load="YES"
Filesystem was taken from /dist/ on the livefs. All of it is read-only except /boot/zfs.
Thoughts?