Hi there, I have a file, it's 2 TB in size. The sender said: this is a zfs poolfile. I did setup a Ubuntu 22.04 in VirtualBox, connected the USB drive with the 2 TB ZFS poolfile, mounted it in Ubuntu and typed in:
the dataset1 and ..2 could be a partition, too. I do not know exactly.
Question: how can I mount the zfsfile01 as a loop dump file and mount also the dataset2/partiton 2??
I have tried:
Must I mount the pool file AND the partition (above: dataset2) in one command?
I come to you because the
Can you help me? Thanks a lot, Alois.
fdisk -l zfsfile01
. Ubuntu said:
Code:
toor@toor-ZFS:/media/sf_E_DRIVE$ sudo fdisk -l zfsfile01
Festplatte zfsfile01: 1,82 TiB, 2000398934016 Bytes, 3907029168 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: gpt
Festplattenbezeichner: 44E0E83D-A9CA-11EC-xxxx-xxxxx
Gerät Anfang Ende Sektoren Größe Typ
dataset1 128 4194431 4194304 2G FreeBSD Swap
dataset2 4194432 3907029127 3902834696 1,8T FreeBSD ZFS
toor@toor-ZFS:/media/sf_E_DRIVE$
Question: how can I mount the zfsfile01 as a loop dump file and mount also the dataset2/partiton 2??
I have tried:
Code:
losetup -f // got the loop8 as a next free device, then:
losetup /dev/loop8 /media/sf_E_Drive/zfsfile01 // got error: not possible: error msg is like (german) not possible, progress not valid
zpool import /media/sf_E_Drive/zfsfile01 // got error: no such pool available, i est. i need a loop back device at first.
I come to you because the
fdisk -l
shows a FreeBSD type and at the ubuntu-forums (https://askubuntu.com/questions/1441781/mount-a-zfs-poolfile-with-dataset-as-a-loopback) mentioned, that there could be a special thing because the partition is a FreeBSD - Type.Can you help me? Thanks a lot, Alois.