mount: unknown filesystem type 'exfat'
<fs> run ... <fs> list-filesystems /dev/sda1: exfat <fs> mount /dev/sda1 /
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 ... libguestfs: error: mount: /dev/sda1 on / (options: ''): mount: unknown filesystem type 'exfat'
<fs> q
Results 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
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
On Sun, Oct 02, 2016 at 08:07:35AM -1000, Miles Wolbe wrote:
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
Thanks for testing. I've just posted a patch so we can include this upstream. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
On Oct 2, 2016, at 09:08, Richard W.M. Jones <rjones@redhat.com> wrote:
Thanks for testing. I've just posted a patch so we can include this upstream.
Right on - thanks very much! And thanks for the shout-out in the patch notification - you are really too kind in even mentioning me, as you certainly did all of the work. Just added guestfish to this old guide I cobbled together 5 years ago: Mounting partitions from full disk images https://tinyapps.org/docs/mount_partitions_from_disk_images.html My apologies for not having added it sooner! Aloha, Miles
participants (2)
-
Miles Wolbe -
Richard W.M. Jones