Solved How to mount the Linuxulator/Ubuntu partitions stored on a ZFS pool/disk during the booting.

Hello.

On my disks I have a little of space to store the /compat/ubuntu2310 directory. I must put them to a ZFS disk,specifically here :

Code:
/mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310/

I want to understand how to mount the ZFS pool "zroot-133/ROOT/default" as soon as possible. I've added it to my fstab file,that now it looks like this :

Code:
# Device                  Mountpoint               FStype                          FStype   Options                       Dump Pass#

/dev/ada2p2               /                        ufs                                      rw                            1    1
/dev/ada2p1               /boot/efi                msdosfs                                  rw                            2    2
/dev/ada2p3               none                     swap                                     sw                            0    0

/dev/da2p4                /mnt/zroot-133           zfs                                      rw                            0    0

#/dev/ada0p2              /                        ufs                                      rw                            1    1
#/dev/ada0p1              /boot/efi                msdosfs                                  rw                            2    2
#/dev/ada0p3              none                     swap                                     sw                            0    0

#/dev/da5p2               /                        ufs                                      rw                            1    1
#/dev/da5p1               /boot/efi                msdosfs                                  rw                            2    2
#/dev/da5p3               none                     swap                                     sw                            0    0

#/dev/vtbd0p2             /                        ufs                                      rw                            1    1
#/dev/vtbd0p1             /boot/efi                msdosfs                                  rw                            2    2
#/dev/vtbd0p3             none                     swap                                     sw                            0    0

#/dev/da4p2               /                        ufs                                      rw                            1    1
#/dev/da4p1               /boot/efi                msdosfs                                  rw                            2    2
#/dev/da4p3               none                     swap                                     sw                            0    0

#linprocfs                /compat/linux/proc       linprocfs                                rw                            0    0
#linsysfs                 /compat/linux/sys        linsysfs                                 rw                            0    0
#fdesc                    /dev/fd                  fdescfs                                  rw                            0    0
#proc                     /proc                    procfs                                   rw                            0    0

linprocfs       /mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310/proc     linprocfs  rw,late                       0    0
linsysfs        /mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310//sys     linsysfs   rw,late                       0    0
devfs           /mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310/dev      devfs      rw,late                       0    0
tmpfs           /mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310/dev/shm  tmpfs      rw,late,size=1g,mode=1777     0    0
fdescfs         /mnt/zroot-133/A_FILES/Backup/FreeBSD/compat/ubuntu2310/dev/fd   fdescfs    rw,late,linrdlnk              0    0

fdesc                     /dev/fd                  fdescfs                                  rw                            0    0
proc                      /proc                    procfs                                   rw                            0    0

but it is not accepted.
 
Solution :

Code:
/etc/rc.local :


#!/bin/sh
 
zpool import -f -R /mnt/zroot-133 zroot-133
mount -t linprocfs linprocfs /mnt/zroot-133/Backup/compat/ubuntu2310/proc
mount -t linsysfs linsysfs /mnt/zroot-133/Backup/compat/ubuntu2310/sys
mount -t devfs devfs /mnt/zroot-133/Backup/compat/ubuntu2310/dev
mount -t tmpfs tmpfs /mnt/zroot-133/Backup/compat/ubuntu2310/dev/shm
mount -t fdescfs fdescfs /mnt/zroot-133/Backup/compat/ubuntu2310/dev/fd
mount -t nullfs xxx /mnt/zroot-133/Backup/compat/ubuntu2310/tmp
 
Who is "Trond Endrestøl" ? :D

1729831866939.png


– I see that you already marked it answered, thanks.



I found their proper name in FreeBSD list archives:


1729831718861.png
 
Back
Top