Install vdfuse in ubuntu 12.10/12.04
Open the terminal and run the following command
sudo apt-get install virtualbox-fuse
vdfuse [options] -f image-file mountpoint
-t specify type (VDI, VMDK, VHD, or raw; default: auto)
-f VDimage file
-a allow all users to read disk
-w allow all users to read and write to disk
-g run in foreground
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.
If you want to mount .vdi file use the following syntax
sudo vdfuse -f /path/to/file.vdi /path/to/mountpoint
/path/to/mountpoint will now contain files like ‘EntireDisk', ‘Partition1', etc. If there's only one partition showing, you probably want that one. So to mount the filesystem, just type:
mount /path/to/mountpoint/Partition1 /path/to/someother/mountpoint
The filesystem should now be mounted on /path/to/someother/mountpoint.