I have a FreeBSD 11 qcow2 image that I would like to mount in my Debian Jessie machine. I have other qcow2 images that have Debian Jessie on them, and I am able to mount partitions in the image on the host using libguestfs-tools. In the Debian Jessie qcow2 case, I normally do something like this, and it works as expected:
guestmount -a <qcow2 image> -m <parition to mount in the image> --ro <mount point>
However, when I do the same for a FreeBSD image, I get an error:
root@bonddtest:/home/igw/bondd_testbed/ooo# guestmount -a ../shaper.qcow2 -m /dev/gpt/rootfs --ro /mnt
libguestfs: error: mount_options: mount_options_stub: /dev/gpt/rootfs: No such file or directory
guestmount: '/dev/gpt/rootfs' could not be mounted.
guestmount: Did you mean to mount one of these filesystems?
guestmount: /dev/sda1 (unknown)
guestmount: /dev/sda2 (unknown)
guestmount: /dev/sda3 (ufs)
I have tried the other three partition suggestions, but they all result in the same error. Is this not working due to differences in the file system types? The FreeBSD partition I am trying to mount is UFS, whereas the mount point is in an EXT4 partition.
sudo modprobe ufs
. Then/dev/sda3
should be the correct device to mount. See also kernel.org/doc/Documentation/filesystems/ufs.txt for mount options.