Page 1 of 1
How do I mount a .VDI filesystem under linux?
Posted: Tue Jun 28, 2011 6:11 pm
by mister_v
Hi,
I want to mount a harddisk of VirtualBox under linux.
How do I do that?
It has .vdi exetntion.
Filesystem was created by VirtualBox 4.0.4
thanks.
Re: How do I mount a .VDI filesystem under linux?
Posted: Wed Jun 29, 2011 3:09 pm
by mister_v
I was able to create a clone and use it on another virtual machine with
Code: Select all
VBoxManage clonevdi /var/vm/test_drive.vdi /var/vm/test_drive_22.vdi
is the same as
Code: Select all
VBoxManage clonehd /var/vm/test_drive.vdi /var/vm/test_drive_22.vdi
But this isn't exactly what I want.
I know that the .vdi file is a complete harddisk,
and that I need to access the partition on it.
Re: How do I mount a .VDI filesystem under linux?
Posted: Fri Jul 01, 2011 6:08 pm
by Chris
For fixed-size VDI images,
you can follow this tutorial.
http://wiki.przemoc.net/tips/linux#moun ... size_image
For dynamic size VDI-images, it looks to be more difficult...
From what I read it is highly discouraged to mount it with a non-vdi aware application.
With the risk of corrupting the data.
You can get info of the VDI-image with:
Code: Select all
VBoxManage showhdinfo drive.vdi
UUID: {UUID1}
Accessible: yes
Logical size: 61440 MBytes
Current size on disk: 7041 MBytes
Type: normal (base)
Storage format: VDI
Format variant: dynamic default
In use by VMs: {VBOXSYS} (UUID: {UUID2})
Location: /var/driveb/share/os_sys/drive.vdi