Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a virtual Windows 7 computer using VirtualBox on a Linux host. How can I mount this virtual pc's harddisk (VDI file) in Linux? It's a dynamic file, meaning that it only takes up as much space as is actually used.

share|improve this question
I also want to know more about this. So far, the only way I coul dsee would be to actually start the VM, setup a shared directory, and put files there. – jfmessier Sep 3 '09 at 12:45
This is a duplicate of the question:…. – Isaac Sutherland Nov 26 '11 at 23:33
@IsaacSutherland This question is more than a year older than that one. – Bart van Heukelom Nov 27 '11 at 15:06
@BartvanHeukelom The top-ranked answer at the question works for me. Should I have copied thkala's answer to this thread? – Isaac Sutherland Nov 28 '11 at 2:44

it looks like vdfuse is the tool you are looking for. At least for Ubuntu (and possibly Debian) hosts. If you want to compile yourself (2010 source) you can do that too. Sources seem to be here.

To install in Ubuntu use sudo apt-get install virtualbox-fuse

There is also a script vdimount script on Google Code.

share|improve this answer
This doesn't work anymore as of 2013 as the package was removed. And the script you mention only mounts fixed sized images. – Frederick Nord Oct 22 '13 at 17:21
It still seems to be on launchpad: – stwissel Oct 22 '13 at 18:14

VDI is a complex format and AFAIK there's currently no software that can directly mount a dynamic VDI image, although there are plenty to converting it from/to other formats.

I hope to be wrong (or be wrong in the future, such as when someone writes that piece of software) and I'll take a look at this thread just in case ;-)

share|improve this answer
vdfuse works as of Ubuntu 12.04 (didn't test on any other version) for dynamic images too. Haven't tested one with snapshots yet – stwissel Jun 21 '12 at 4:43

I always wanted to know, if I could do that. Here is a very informative link >>

So it seems you can mount only fixed sized VDI files in both windows and linux.

share|improve this answer
not anymore. I successfully mount variable size VDI using vdfuse – stwissel Jun 21 '12 at 4:42

I came across this page while looking for a way to mount dynamic VDI files. I'm still looking. There is a commercial product available for Windows called WinMount that claims to do it. This doesn't help me (or you), but may help others who also stumble upon this web page.

share|improve this answer

You must log in to answer this question.

protected by BinaryMisfit Dec 21 '10 at 17:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .