ZFS How to mount a Solaris /usr & Apple ZFS parttition in FreeBSD

Hello to everyone.

I've installed OmniOS on my disk sdb. The OmniOS partitions are like this :


Device Start End Sectors Size Type

/dev/sdb1 256 524543 524288 256M EFI System
/dev/sdb2 524544 976756750 976232207 465.5G Solaris /usr & Apple ZFS
/dev/sdb9 976756751 976773134 16384 8M Solaris reserved 1

Now,I would like to mount the partition /dev/sdb2 from FreeBSD. This is what I did that didn't work :

marietto@Z390-AORUS-PRO:# zpool import

pool: rpoolid: 11467538636753600376 state: ONLINEstatus: The pool was last accessed by another system.

action: The pool can be imported using its name or numeric identifier andthe '-f' flag. see:

https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EYconfig:

rpool ONLINEsdb ONLINE

marietto@Z390-AORUS-PRO:# zpool import -f 11467538636753600376

marietto@Z390-AORUS-PRO:# zpool list

NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 464G 10.9G 453G - - 0% 2% 1.00x ONLINE -

marietto@Z390-AORUS-PRO:# mkdir /mnt/zfs

marietto@Z390-AORUS-PRO:# zfs set mountpoint=/mnt/zfs rpool

marietto@Z390-AORUS-PRO:# cd /mnt/zfs

marietto@Z390-AORUS-PRO:# ls
boot

marietto@Z390-AORUS-PRO:# cd boot

marietto@Z390-AORUS-PRO:# ls
menu.lst

As u can see,for some reason I didn't find all the installation files of OmniOS and I would like to know why. I need to change some parameters stored inside some particular configuration files that are saved on the sdb2 partition and I can't do it directly from OmniOS because it reboots everytime I boot it and it will do until I change that parameters from "outside",from another external OS. How can I do this ?
 
Last edited:

Code:
marietto@Z390-AORUS-PRO:# zpool import -f 11467538636753600376
marietto@Z390-AORUS-PRO:# zpool list
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool   464G  10.9G   453G        -         -     0%     2%  1.00x    ONLINE  -
marietto@Z390-AORUS-PRO:# mkdir /mnt/zfs

Without looking in detail, my first guess would be that it's generally safer to:
  1. refrain from import until after a suitable mount point has been created
  2. set altroot to the mount point at the time of import.
zpool-import(8) option -R
 
Back
Top