Using vdfuse to mount a VirtualBox drive

… as covered here in the second post. I’m using vdfuse, installed with Yast on Opensuse 11.2, 64bit.

http://forums.opensuse.org/forums/english/get-technical-help-here/virtualization/469942-mounting-virtual-box-machine-images-host.html

I get it to mount, but I end up with a one giant blob in /mnt/vdi called “EntireDisk.” I can’t browse it. Here’s what happened:


linux-clmk:/home/stephen/.VirtualBox # ls HardDisks
CentOS.vdi  Opensuse 12.1.vdi  WinXP.vdi  WinXPDriveD.vdi  {ec4c3cce-0bd4-4aec-a31f-12377cfeed08}.vmdk

linux-clmk:/home/stephen/.VirtualBox # mkdir /mnt/vdi; vdfuse -r -f /home/stephen/.VirtualBox/HardDisks/WinXP.vdi /mnt/vdi

linux-clmk:/home/stephen/.VirtualBox # mount
... snip ...
/home/stephen/.VirtualBox/HardDisks/WinXP.vdi on /mnt/vdi type fuse.vdfuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

linux-clmk:/home/stephen/.VirtualBox # cd /mnt/vdi
linux-clmk:/mnt/vdi # ls -al
total 10485765
dr-xr-x--- 1 stephen users           0 Aug 31  2009 .
drwxr-xr-x 3 root    root         4096 May 27 11:42 ..
-r-------- 1 stephen users 10737418240 Aug 31  2009 EntireDisk

Continuing with the suggestion in the 2nd post from the link above, I tried this and just got the “usage” for mount, so obviously, I’m missing something.


linux-clmk:/mnt # mount -o loop, ro /mnt/vdi/EntireDisk /mnt/WinXP
Usage: mount -V                 : print version
... snip ...

I’m not a guru with mounting and unmounting disks, so I know I’ve probably missed something obvious. Any ideas? Thanks in advance.

You can find vdfuse here: software.opensuse.org:

Here is a man page on using it: Ubuntu Manpage: vdfuse - x86 virtualization solution

I have not used this myself.

Thank You,