How to install MS-DOS on a CF-card without using a floppy

Oracle VM

This information is based on and is more of a note to self. Anyway, as a retrocomputer enthusiast I often find myself in the following situation:

I have a compact flash to IDE adapter with a suitable CF-card. However, I do not have a floppy drive on the retrocomputer that I want to install MS DOS to. Furthermore, I also need to install Ontrack Disk Manager to utilize larger partitions on older computers. The proposed solution is to perform the install by using a Virtual Machine.


Now, I follow this procedure to install Ontrack Disk Manager and MS DOS 6.22 on the CF-card.

Step 1: Type:

wmic diskdrive list brief

to identify your cf-card’s DeviceID (it should look something like \.\PHYSICALDRIVE1)

Step 2: Change to the VirtualBox directory (usually c:\Program Files\Oracle\VirtualBox). Type the following to create a raw virtual machine (.vmdk) (replace N in \.\PHYSICALDRIVE1 with DeviceID).

vboxmanage internalcommands createrawvmdk -filename CompactFlashCard.vmdk -rawdisk \.\PhysicalDriveN

Step 3: Start VirtualBox with administrator rights.

Create a DOS virtual machine (other -> DOS), default settings, except for hard disk, where you choose “Use an existing virtual disk file”, where you assign the CompactFlashCard.vmdk-file that you created earlier.

From here, you can add your Ontrack Disk Manager and MS DOS disk images to the floppy drive of the virtual machine, and install MS DOS. Ontrack Disk Manager usually divides your CF-card to partitions of 2 gb each.

If you want to add additional files (games, drivers etc) to the cf card using your modern PC, you can just unplug and plugin the cf card in Windows and drag n drop software onto it.


  1. a

    I tried your instructions on a Win10 machine. I can crate the vdmk file on the CF card. However, since I deleted all the partitons, I cannot acces the vdmk file from the virtualpc menue (it shows the usb device but does not see a partition and does not let me open it…)

    1. Dreamcast (Post author)

      Hi Andreas! The vdmk-file is created on your computer, usually in the c:\Programxxx\Oracle\VirtualBox\ folder.

  2. Walter Wold

    C:\Program Files\Oracle\VirtualBox>vboxmanage internalcommands createrawvmdk -filename CompactFlashCard.vmdk -rawdisk \.\PhysicalDrive1
    VBoxManage.exe: error: Cannot open the raw disk ‘\.\PhysicalDrive1’: VERR_FILE_NOT_FOUND
    VBoxManage.exe: error: The raw disk vmdk file was not created

    1. Dreamcast (Post author)

      Is your cf-card’s DeviceID PhysicalDrive1 according to Step1?

  3. Walter Wold

    Yes that’s correct. I’ve typed in for listing first and changed N value

    1. Dreamcast (Post author)

      Did you run the command prompt as administrator? (needed to access physical drives).

  4. Walter Wold

    Thanks ! I forgot to use this function. Now I managed to install MsDos 6.22 . To bad my BIOS on my Compaq CDS524 W like CF card tough. Will have to try 2GB instead of 4GB.

  5. Walter Wold

    Now everything is sorted out! I reconfigured Bios setup twice, saved and everything works smooth. Two partitions with 2GB each. No notice!


Leave a Comment

Your email address will not be published. Required fields are marked *

Skip to toolbar