Hello.
I've mapped into the memory my image file with the mdconfig command like this :
as you can see below all the partitions inside the image file have been mapped correctly inside the memory :
they are present even in /dev :
now,what I want to do is to mount the md0p4 / zfs partition. The most obvious command to try is :
but it didn't work :
or :
if I do :
the md0 disk is not in the list :
How to do that ?
I've mapped into the memory my image file with the mdconfig command like this :
Code:
# mdconfig -a -t vnode -f FreeBSD-15-xen.img -u 0
as you can see below all the partitions inside the image file have been mapped correctly inside the memory :
Code:
=> 40 419430320 md0 GPT (200G)
40 532480 1 efi (260M) 532520
1024 2 freebsd-boot (512K) 533544
984 - free - (492K) 534528
4194304 3 freebsd-swap (2.0G) 4728832
414699520 4 freebsd-zfs (198G) 419428352
2008 - free - (1.0M)
they are present even in /dev :
Code:
# ls /dev/md0*
/dev/md0 /dev/md0p1 /dev/md0p2
/dev/md0p3 /dev/md0p4
now,what I want to do is to mount the md0p4 / zfs partition. The most obvious command to try is :
Code:
# mount -t zfs /dev/md0p4 ./FreeBSD-15-xen
but it didn't work :
Code:
mount: /dev/md0p4: Invalid fstype: Invalid argument
or :
Code:
# mount /dev/md0p4 ./FreeBSD-15-xen
mount: /dev/md0p4: Invalid fstype: Invalid argument
if I do :
Code:
# zfs list
the md0 disk is not in the list :
Code:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 425G 20.9G 96K /zroot
zroot/ROOT 345G 20.9G 96K none
zroot/ROOT/13.1-RELEASE-p5_2023-01-12_235731 268M 20.9G 136G /
zroot/ROOT/13.1-RELEASE-p5_2023-01-20_181957 344G 20.9G 292G /
zroot/ROOT/13.1-RELEASE-p5_2023-01-20_181957@2023-01-20-18:19:57-0 52.1G - 140G -
zroot/tmp 198M 20.9G 198M /tmp
zroot/usr 77.5G 20.9G 120K /usr
zroot/usr/home 63.3G 20.9G 63.3G /usr/home
zroot/usr/ports 14.2G 20.9G 14.2G /usr/ports
zroot/usr/src-old 96K 20.9G 96K /usr/src-old
zroot/var 2.46G 20.9G 136K /var
zroot/var/audit 96K 20.9G 96K /var/audit
zroot/var/crash 1.11G 20.9G 1.11G /var/crash
zroot/var/log 4.73M 20.9G 4.73M /var/log
zroot/var/mail 1.33G 20.9G 1.33G /var/mail
zroot/var/tmp 18.1M 20.9G 18.1M /var/tmp
zroot2 468G 431G 468G /mnt/zroot2/zroot2
zroot2/ROOT 288K 431G 96K none
zroot2/ROOT/default 192K 431G 192K /mnt/zroot2
zroot2/tmp 148K 431G 148K /mnt/zroot2/tmp
zroot2/usr 384K 431G 96K /mnt/zroot2/usr
zroot2/usr/home 96K 431G 96K /mnt/zroot2/usr/home
zroot2/usr/ports 96K 431G 96K /mnt/zroot2/usr/ports
zroot2/usr/src 96K 431G 96K /mnt/zroot2/usr/src
zroot2/var 3.71M 431G 96K /mnt/zroot2/var
zroot2/var/audit 96K 431G 96K /mnt/zroot2/var/audit
zroot2/var/crash 2.74M 431G 2.74M /mnt/zroot2/var/crash
zroot2/var/log 588K 431G 588K /mnt/zroot2/var/log
zroot2/var/mail 96K 431G 96K /mnt/zroot2/var/mail
zroot2/var/tmp 120K 431G 120K /mnt/zroot2/var/tmp
How to do that ?