I have followed [this whole article] on how to mount VHD in Linux with vdfuse](http://rrbits.com/epb/2014/09/14/mount-a-vhd-or-vdi-in-linux-with-vdfuse) and everything went great except the last step. When I type vdfuse -r "/media/mike/DATA/VM-VHD/SGOS.vhd" ~/Test
(I just want to copy one file from that VHD), in return I get this:
ERROR: a single mountpoint must be specified
DESCRIPTION: This Fuse module uses the VirtualBox access library to open a
VirtualBox supported VD image file and mount it as a Fuse file system. The
mount point contains a flat directory containing the files EntireDisk,
Partition1 .. PartitionN. These can then be loop mounted to access the
underlying file systems
Version: 0.83
USAGE: vdfuse [options] -f image-file mountpoint
-h help
-r readonly
-t specify type (VDI, VMDK, VHD, or raw; default: auto)
-f VDimage file
-s Snapshot file(s) to load on top of the image file
-a allow all users to read disk
-w allow all users to read and write to disk
-g run in foreground
-v verbose
-d debug
NOTE: you must add the line "user_allow_other" (without quotes)
to /etc/fuse.confand set proper permissions on /etc/fuse.conf
for this to work.
I'm sure I have user_allow_other
in configuration file and permissions are set properly. What should that "mountpoint" be?
Best Answer
You're missing the
-f
option. It also looks likevdfuse
needs to be told what thetype
of file it is. The command should be:The
-f
specifies the file that you're mounting. The-t
means what type, since you're using VHD, that is what is specified.Also make sure that you uncomment the line for "user_allow_other" in
/etc/fuse.conf
. To uncomment just paste the line below to a terminal:the
#
is used to comment a line in a file and thesed
line above removes the#
from that line.In my example below I am showing step-by-step of how I am able to access the files contained within my VM:
Hope this helps!