# bsdlabel -B da1
# newfs /dev/da1a
# mkdir /mnt/usb
# mount /dev/da1a /mnt/usb
# mkdir -p /mnt/usb/boot/kernel
# cp /dist/boot/kernel/kernel /mnt/usb/boot/kernel
# cp /dist/boot/kernel/opensolaris.ko /mnt/usb/boot/kernel
# cp /dist/boot/kernel/zfs.ko /mnt/usb/boot/kernel
# cp /dist/boot/loader /mnt/usb/boot
# cp /dist/boot/loader.* /mnt/usb/boot
# cp /dist/boot/*.4th /mnt/usb/boot
# cat >/mnt/usb/loader.conf
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"
^D
#
# mkdir /mnt/usb/boot/zfs
# cp /boot/zfs/zpool.cache /mnt/usb/boot/zfs
Loader variables:
vfs.root.mountfrom=
vfs.root.mountfrom.options=
Manual root filesystem specification:
<fstype>:<device> Mount <device> using filesystem <fstype>
eg. ufs:/dev/da0s1a
eg. cd9660:/dev/acd0
This is equivalent to: mount -t cd9660 /dev/acd0 /
? List valid disk boot devices
<empty line> Abort manual input
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SanDisk Cruzer Mini 0.2> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 244MB (501759 512 byte sectors: 64H 32S/T 244C)
mountroot>
OK read-conf /boot/loader.conf
Warning: syntax error on file /boot/loader.conf
x
^
OK read-conf /boot/loader.conf
OK load zfs
/boot/kernel/zfs.ko size 0x18fb40 at 0xe18000
loading required module 'opensolaris'
/boot/kernel/opensolaris.ko size 0x3868 at 0xfa8000
OK boot
...
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version 13
ZFS storage pool version 13
...
Loader variables:
vfs.root.mountfrom=zfs:zroot
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SanDisk Cruzer Mini 0.2> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 244MB (501759 512 byte sectors: 64H 32S/T 244C)
vfs.root.mountfrom.options=
Manual root filesystem specification:
<fstype>:<device> Mount <device> using filesystem <fstype>
eg. ufs:/dev/da0s1a
eg. cd9660:/dev/acd0
This is equivalent to: mount -t cd9660 /dev/acd0 /
? List valid disk boot devices
<empty line> Abort manual input
mountroot> zfs:zroot
Trying to mount root from zfs:zroot
ROOT MOUNT ERROR:
If you have invalid mount options, reboot, and first try the following from
the loader prompt:
set vfs.root.mountfrom.options=rw
and the remove invalid mount options from /etc/fstab.
Loader variables:
...
mountroot>
Trying to mount root from zfs:zroot
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SanDisk Cruzer Mini 0.2> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 244MB (501759 512 byte sectors: 64H 32S/T 244C
ugen2.2: <SanDisk Corporation> at usbus2 (disconnected)
umass0: at uhub2, port 7, addr 2 (disconnected)
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): Invalidating pack
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi status == 0x0
(da0:umass-sim0:0:0:0): removing device entry
Setting hostuuid: ...