Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is there any tool to mount a .vdi file (and/or examine its partitions) in Unix/Linux?


migration rejected from Jul 31 '13 at 4:55

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by kce, Falcon Momot, Scott Pack, Michael Hampton Jul 31 '13 at 4:55

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Falcon Momot, Scott Pack, Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

Not a programming question, I suggest asking on ServerFault or SuperUser – Dan Grossman Dec 9 '10 at 1:25

I have successfully used qemu-nbd (which comes with the qemu package) to access VirtualBox .vdi disks.

First you make sure that the nbd kernel module is loaded with the max_part option set to a number high enough to accommodate all the partitions in your .vdi image:

# rmmod nbd
# modprobe nbd max_part=16

Then you use qemu-nbd to attach the image:

# qemu-nbd -c /dev/nbd0 test.vdi

You will get a /dev/nbd0 block device, along with several /dev/nbd0p* partition device nodes. You use them as any other disk. Once you are done, you unmount everything, and disconnect the device:

# qemu-nbd -d /dev/nbd0

You can try for CloneVDI tool for your .VDI files, refer to below URL for more details.


it looks like vdfuse is the tool you are looking for. It is in the Ubuntu repositories. If you want to compile yourself (2010 source) you can do that too.


Short of using another emulator, you can use a loopback device to mount it. Instructions are available via Google, although one nice one I found is here. This will allow you to mount it as a loopback device.


Download the gparted iso image then:

sudo mkdir /mnt/cdrom
sudo mount -o loop,ro ~/Downloads/gparted-live-0.15.0-3-i486.iso /mnt/cdrom

(If cdrom is already defined use a different name like cdrom1)

Then in VirtualBox->Settings->Storage, under the IDE controller add the image, and don't forget to start select "Live CD/DVD".

Start the virtual machine, and VirtualBox will boot the gparted image, which then gives you access to the partitions in the vdi.

From there you can run fsck, mount partitions, etc.


On Debian x64 testing I get this:

~# **apt-get install virtualbox-fuse**

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:
 virtualbox-fuse : Depends: virtualbox (= 4.1.18-dfsg-2+deb7u1)
E: Unable to correct problems, you have held broken packages.

Status of package:

~# dpkg -s virtualbox-4.2 | grep -i status 
Status: install ok installed
Please only use the Post Answer system for submitting actual answers to the question at hand. If you have a new question then please Ask it instead. – Scott Pack Jul 31 '13 at 4:12