Page 1 of 1

How to modify .vdi file

Posted: 23. Jul 2009, 07:27
by SpaceJehovah
Hi all,

I am a fresh fish. I wanna copy a 512B bootsector into .vdi file to get a hard disk image, then make VBox boot from virtual disk image...
But when i'm using winhex to edit .vdi, i don't know from where to copy such 512B bootsector...

Thanks

Re: How to modify .vdi file

Posted: 23. Jul 2009, 12:57
by mpack
:?: A boot sector is not enough to boot a VM: but I'll assume you already know that.

Terry's All about VDIs tutorial gives you enough information to parse the VDI format, it should be the easiest thing in the world to find the boot sector. Looking at the VBox source code will help as well to flesh out the details of the format. I assume you have the background knowledge to understand all this, otherwise the road you are starting on makes no sense.

Re: How to modify .vdi file

Posted: 23. Jul 2009, 12:58
by vbox4me2
Look in the OSE sources or use a linuxISO/BartPE to access the VDI.

Re: How to modify .vdi file

Posted: 23. Jul 2009, 14:40
by SpaceJehovah
Thanks! I'll try again :D