I did some testing on the freedos.img provided in the virtualbox folder in the 
ftp directory on ibiblio (IPV4), and it gives errors on everything but .VMDK

"c:\program files\oracle\virtualbox\vboxmanage.exe" internalcommands  repairhd 
-dry-run -format VMDK freedos.vmdk


so that particular .img should be renamed to .vmdk
there is a virtualbox command you can use to convert your vdi/vmdk/vhd to RAW 
and vice versa:

- vboxmanage.exe doesn't know how to autodetect file extensions with multiple 
dots in the filename.

should you want to convert to RAW format, I have a batch file:
Fri 01/17/2014  3:51:07.85|D:\os\fdos1.1|>type \u\vbox*cmd

@REM vbox2raw.cmd
@ECHO OFF
IF @%1@==@@ GOTO help
IF @%2@==@@ GOTO help
IF NOT @%3@==@@ GOTO help
"c:\program files\oracle\virtualbox\vboxmanage.exe" internalcommands  
converttoraw %1 %2
GOTO end
:help
@ECHO vbox2raw - convert virtualbox hard disk image to raw disk image
@ECHO usage: vbox2raw filein.vdi fileout.raw
GOTO end
:end

@REM vboxraw2vdi.cmd
@ECHO OFF
IF @%1@==@@ GOTO help
IF @%2@==@@ GOTO help
IF NOT @%3@==@@ GOTO help
"c:\program files\oracle\virtualbox\vboxmanage.exe" internalcommands  converthd 
-srcformat RAW -dstformat VDI %1 %2
GOTO end
:help
@ECHO vboxraw2vdi - convert raw disk image to virtualbox .vdi hard disk image 
format
@ECHO usage: vboxraw2vdi filein.img fileout.vdi
GOTO end
:end


@REM vboxraw2vhd.cmd
@ECHO OFF
IF @%1@==@@ GOTO help
IF @%2@==@@ GOTO help
IF NOT @%3@==@@ GOTO help
"c:\program files\oracle\virtualbox\vboxmanage.exe" internalcommands  converthd 
-srcformat RAW -dstformat VHD %1 %2
GOTO end
:help
@ECHO vboxraw2vhd - convert raw disk image to virtualbox .vhd hard disk image 
format
@ECHO usage: vboxraw2vhd filein.img fileout.vhd
GOTO end
:end

@REM vboxraw2vmdk.cmd
@ECHO OFF
IF @%1@==@@ GOTO help
IF @%2@==@@ GOTO help
IF NOT @%3@==@@ GOTO help
"c:\program files\oracle\virtualbox\vboxmanage.exe" internalcommands  converthd 
-srcformat RAW -dstformat VMDK %1 %2
GOTO end
:help
@ECHO vboxraw2vmdk - convert raw disk image to virtualbox .vmdk hard disk image 
format
@ECHO usage: vboxraw2vmdk filein.img fileout.vmdk
GOTO end
:end


enjoy... :-D



 
-------------
Jim Michaels
jmich...@yahoo.com
j...@renewalcomputerservices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements 
(note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to