ZFS root, no msdosfs partition
Bernd Walter
ticso at cicely7.cicely.de
Fri Jan 25 00:12:46 UTC 2019
I've used the PINE64-LTS FreeBSD-12-RELEASE image, changed the u-boot
for the OrangePi PC2, copied the contents from the mmcsd0s2 partition.
Then I erased the mmcsd0s2 partition content, setup a new BSD label
with a freebsd-zfs partition in it.
The I setup ZFS, added the loader.conf variables, ...
The mmcsd0s1 partition with the loader was untouched.
My PC still lists the label:
[225]cicely7# ls /dev/msdosfs/
MSDOSBOOT
And the system is using it without problems to boot from it.
But in the OS itself it failed to mount, because the whole partition
is missing.
root at generic:/dev # zpool status -v
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
diskid/DISK-6D181A92s2a ONLINE 0 0 0
errors: No known data errors
root at generic:/dev # ls -al /dev/diskid/
total 1
dr-xr-xr-x 2 root wheel 512 Jan 1 00:00 .
dr-xr-xr-x 9 root wheel 512 Jan 1 00:00 ..
crw-r----- 1 root operator 0x58 Jan 1 00:00 DISK-6D181A92
crw-r----- 1 root operator 0x5b Jan 1 00:00 DISK-6D181A92s1
crw-r----- 1 root operator 0x5c Jan 1 00:00 DISK-6D181A92s2
crw-r----- 1 root operator 0x5d Jan 1 00:00 DISK-6D181A92s2a
root at generic:/dev # ls -al /dev/mmcsd*
crw-r----- 1 root operator 0x55 Jan 1 00:00 /dev/mmcsd0
I guess it has something to do with ZFS using the diskid, because under
diskid it is still listed.
And I can even mount it:
root at generic:/dev # mount -t msdosfs /dev/diskid/DISK-6D181A92s1 /boot/msdos
It also worked fine with the original UFS rootfs.
--
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
More information about the freebsd-arm
mailing list