Page 1 of 1
convert dd image to vdi
Posted: 2. Mar 2011, 13:55
by dor20
Hi,
I have created a DD image of hd, now i've got a few files naned filename.001, filename.002, filename.003, etc.
Usually I use the "vboxmanage convertfromraw" to convert filename.001 to filename.vdi. Now, i would like to know if there's a way to convert filename.001 and all the following files (filename.002, filename.003, etc) to .vdi file?
thx,
dor20
Re: convert dd image to vdi
Posted: 2. Mar 2011, 14:08
by HubTou
Hello,
Do a "copy /b filename.* filename.raw" first.
Then a "VBoxManage internalcommands converthd -srcformat RAW -dstformat VDI filename.raw filename.vdi".
Best regards,
Hubert
Re: convert dd image to vdi
Posted: 2. Mar 2011, 14:39
by dor20
HubTou wrote:Hello,
Do a "copy /b filename.* filename.raw" first.
Then a "VBoxManage internalcommands converthd -srcformat RAW -dstformat VDI filename.raw filename.vdi".
Best regards,
Hubert
Thx, but i have to convert all the following files to one vdi file they are all an image of one hd. Is there a command to convert all those files into one vdi file?
dor20
Re: convert dd image to vdi
Posted: 2. Mar 2011, 15:52
by mpack
dor20 wrote:i have to convert all the following files to one vdi file they are all an image of one hd
The Windows "copy" command which HubTou gave you will combine all of the source files to one destination file - however the version he gave assumes they will be combined by default in the correct order, which is not an assumption I would make. IMHO it would be better to use "copy /b file.001 + file.002 + file.xxx outputfile.raw", then do your usual convertfromraw step.
Re: convert dd image to vdi
Posted: 3. Mar 2011, 15:08
by dor20
Thx, but the vdi file doesn't work, any other suggestions to concatenate the dd imae files to one raw file so i can convert it to vdi file?
dor20
Re: convert dd image to vdi
Posted: 3. Mar 2011, 16:08
by mpack
dor20 wrote:any other suggestions
No, the method already given should be fine. As to your VDI problem, I can't provide any advice on that either until your level of feedback is substantially more useful than "doesn't work".
Re: convert dd image to vdi
Posted: 3. Mar 2011, 18:38
by dor20
I'm trying to bootup the machine and i'm getting a message: "A disk read error occurred Press Ctrl+Alt+Del to restart" and the machine stop.
Any suggestions ?
Thank you
dor20
Re: convert dd image to vdi
Posted: 3. Mar 2011, 19:57
by HubTou
Make sure that you declared exactly the same kind of disks in VirtualBox than in your physical system.
Ie. IDE, SATA, SCSI, SAS.
And more generally, hardware as close as possible to the original one.
Best regards,
Hubert
Re: convert dd image to vdi
Posted: 5. Mar 2011, 11:35
by mpack
+1 to what HubTou said. I would just add that you need to use a little common sense: examine the concatenated file before using convertfromraw. Check that the size is consistent with it resulting from a merge of all the original files. Otherwise it means you aren't getting the correct result from the copy command. convertfromraw itself is a simple function (or used to be) and should work fine.