[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-arm
Subject:    ZFS root, no msdosfs partition
From:       Bernd Walter <ticso () cicely7 ! cicely ! de>
Date:       2019-01-25 0:13:05
Message-ID: 20190125001305.GP7489 () cicely7 ! cicely ! de
[Download RAW message or body]

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.
_______________________________________________
freebsd-arm@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic