Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jan 2019 01:13:05 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        freebsd-arm@freebsd.org
Cc:        Bernd Walter <ticso@cicely7.cicely.de>
Subject:   ZFS root, no msdosfs partition
Message-ID:  <20190125001305.GP7489@cicely7.cicely.de>

next in thread | raw e-mail | index | archive | help
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@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@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@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@generic:/dev # mount -t msdosfs /dev/diskid/DISK-6D181A92s1 /boot/msdos
It also worked fine with the original UFS rootfs.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190125001305.GP7489>