I have a Linux ext3 disk image that I downloaded on my Mac (running macOS Sierra 10.12.3). I also have a Linux VM (Ubuntu 16.04) running in VMWare (Fusion version 8.5.3) on the Mac. I'd like to mount this disk image in the Linux VM.
I've shared the folder on the Mac containing the disk image to the VM, and I can mount it using this command:
$ vmhgfs-fuse ".host:/$(vmware-hgfsclient)" ~/Shared
But when I try and mount a disk image in this directory, I get a permission denied error:
$ sudo mount -t ext3 -o loop ~/Shared/linux-ext3.img /mnt
mount: /home/dave/Shared/linux-ext3.img: failed to setup loop device: Permission denied
The same thing happens even if I try and mount it read-only:
$ sudo mount -t ext3 -o loop,ro ~/Shared/linux-ext3.img /mnt
mount: /home/dave/Shared/linux-ext3.img: failed to setup loop device: Permission denied
The shared directory is mounted read-write:
vmhgfs-fuse on /home/dave/Shared type fuse.vmhgfs-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
And the disk image file is readable and writable by all:
$ cd ~/Shared/
$ ls -lh linux-ext3.img
-rw-rw-rw- 1 501 dialout 25G Feb 2 21:01 linux-ext3.img
So I don't understand why I am getting this error.
allow_root
/allow_other
in FUSE and actual root (and I always get confused by them, too). Trychmod o+rw linux-ext3.img
vmhgfs-fuse
: If it doesn't supportchmod
, try anything that would make the image readable to root:sudo vmhgfs-fuse ...
, or makeroot
a member ofdialout
, etc. Or, conversely, try mounting the image read-only.vmhgfs-fuse
disallows root access, by default.