Hello, Can anyone please tell me whether guestfish can mount exFAT partitions? I created a full disk image of a drive which contained a single exFAT partition. Was able to mount it with kpartx/FUSE: # kpartx -a -v disk.img add map loop0p1 (252:2): 0 39070078 linear 7:0 2 # mount /dev/mapper/loop0p1 /mnt -o ro FUSE exfat 1.2.3 # ls /mnt foo bar baz etc but not guestfish: $ sudo apt install libguestfs-tools $ guestfish --version guestfish 1.32.2 $ guestfish -a disk.img ...><fs> run...><fs> list-filesystems/dev/sda1: exfat><fs> mount /dev/sda1 /libguestfs: error: mount: /dev/sda1 on / (options: ''): mount: unknown filesystem type 'exfat'><fs> qResults identical under both Linux Mint 18 and Fedora 24 (which was running a slightly newer version of guestfish, 1.34.2). Sincerely, Miles P.S. I read about installing libguestfs-winsupport for NTFS in the FAQ, but it appears to only be for RHEL: https://access.redhat.com/discussions/623573#comment-595723
Richard W.M. Jones
2016-Oct-02 12:27 UTC
Re: [Libguestfs] mount: unknown filesystem type 'exfat'
On Sat, Oct 01, 2016 at 08:56:16PM -1000, Miles Wolbe wrote:> Hello, > > Can anyone please tell me whether guestfish can mount exFAT partitions? > > I created a full disk image of a drive which contained a single exFAT partition.guestfish or libguestfs don't support filesystems. It's whatever is supported by the kernel. exFAT is apparently not supported by the Linux kernel, but there is a FUSE driver for it called exfat-fuse (as you found out). So if you add exfat-fuse and maybe exfat-utils to the appliance, it should work, ie: # echo exfat-fuse > /usr/lib*/guestfs/supermin.d/zz-exfat # echo exfat-utils >> /usr/lib*/guestfs/supermin.d/zz-exfat (Note the package names might be different. Apparently in RPMfusion it's called fuse-exfat.) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
> On Oct 2, 2016, at 02:27, Richard W.M. Jones <rjones@redhat.com> wrote: > > guestfish or libguestfs don't support filesystems. It's whatever > is supported by the kernel. > > exFAT is apparently not supported by the Linux kernel, but there is a > FUSE driver for it called exfat-fuse (as you found out). > > So if you add exfat-fuse and maybe exfat-utils to the appliance, > it should work, ie: > > # echo exfat-fuse > /usr/lib*/guestfs/supermin.d/zz-exfat > # echo exfat-utils >> /usr/lib*/guestfs/supermin.d/zz-exfat > > (Note the package names might be different. Apparently in RPMfusion > it's called fuse-exfat.)Awesome! Thanks very much Rich. That worked perfectly! In Fedora 24 x64: # echo fuse-exfat > /usr/lib64/guestfs/supermin.d/zz-exfat # echo exfat-utils >> /usr/lib64/guestfs/supermin.d/zz-exfat In Linux Mint 18 x64: # echo exfat-fuse > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-exfat # echo exfat-utils >> /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-exfat $ guestfish -a disk.img><fs> run ><fs> list-filesystems/dev/sda1: exfat><fs> mount /dev/sda1 / ><fs> ls /foo bar baz etc Gratefully, Miles