How to run FreeDOS, an open-source version of DOS, on any PC

FreeDOS 1.4
(Image credit: Tom's Hardware)

I remember using MS-DOS 6.22 on my first PC, a 486 DX 33 with a “massive” 4MB of RAM. It was quite the culture shock, upgrading from a Commodore Amiga 500, and its Workbench graphical operating system, to the text based MS-DOS. I quickly learnt how MS-DOS worked, and because I wanted sound when playing Star Wars: X-Wing, I learnt how to tweak my configuration.

MS-DOS is (sadly) long gone, but if you want to relive the old days, or if you have applications that refuse to work with a modern Windows OS, then FreeDOS is for you.

FreeDOS is an open source operating system that is largely compatible with MS-DOS and behaves just like it. If you dream of flying through space to defeat an empire, or you have an old DOS application that you want to use again, then it’s for you. In this how-to, we’ll go through how to install FreeDOS inside of a virtual machine, and on to real hardware.

FreeDOS comes in multiple versions, depending on how you want to tailor your retro experience.

  • An image for use with virtual machines (FreeDOS for everyone).
  • A live CD image for use with modern hardware.
  • A legacy CD image for older hardware.
  • A floppy disk edition for classic hardware.

For the virtual machine, legacy and floppy versions there are additional “bonus” disk images that contain extra applications. These applications are bundled into the full USB version for modern hardware.

How to install FreeDOS on a virtual machine and real hardware

FreeDOS 1.4

(Image credit: Tom's Hardware)

To manage our virtual machine (VM), we used Oracle’s VirtualBox. This easy to use application manages multiple VMs and best of all it is completely free.

1. Download and install VirtualBox for your operating system. There is a version of VirtualBox for Windows, macOS, Linux and even Solaris.

2. Download FreeDOS for everyone, and extract the ZIP archive to a directory. If you are installing to real hardware, download the appropriate live CD or floppy image for your target system. On an Asus eeePC 701 we used the live CD for modern hardware.

3. Open VirtualBox and click on New to create a new VM.

FreeDOS 1.4

(Image credit: Tom's Hardware)

4. Call the VM FreeDOS1-4 and use the FD14LIVE disc image that was previously extracted. Click Next.

FreeDOS 1.4

(Image credit: Tom's Hardware)

5. Set the RAM and processors for the VM and then click Next. As this is a typical DOS machine, 32MB is considered an immensely powerful system. You could easily use 8/16MB instead.

FreeDOS 1.4

(Image credit: Tom's Hardware)

6. Create a Virtual Hard Disk of around 500MB and click Next. Our first PC had “just” a 120MB hard drive. Enough to store our MS-DOS, Windows 3.1 and plenty of games.

FreeDOS 1.4

(Image credit: Tom's Hardware)

7. Check the summary page, and click Finish to create the VM. If you need to change anything, just click Back until you reach the correct section.

FreeDOS 1.4

(Image credit: Tom's Hardware)

8. Select the VM from the list and click Start to power on the VM. We are essentially powering on a virtual computer.

FreeDOS 1.4

(Image credit: Tom's Hardware)

9. Click the mouse inside of the VM window to trigger mouse capture. This ensures that input is captured in the VM and not the host OS. This can be turned off at any time by pressing the right CTRL key. Clicking back in the VM window will capture the mouse again.

FreeDOS 1.4

(Image credit: Tom's Hardware)

10. From the menu, select Install to harddisk and press Enter. This will start the FreeDOS installation process.

FreeDOS 1.4

(Image credit: Tom's Hardware)

11. Set your preferred language for the installer.

FreeDOS 1.4

(Image credit: Tom's Hardware)

12. Confirm that you wish to perform the installation and press Enter.

FreeDOS 1.4

(Image credit: Tom's Hardware)

13. Select Yes to partition the drive. Our virtual hard disk is blank, and needs a partition and format before it can be used.

FreeDOS 1.4

(Image credit: Tom's Hardware)

14. Reboot the VM for the changes to take effect.

FreeDOS 1.4

(Image credit: Tom's Hardware)

15. From the menu, select Install to harddisk and press Enter, again. Yes we have to go through the language selection and confirm the installation again.

FreeDOS 1.4

(Image credit: Tom's Hardware)

16. Format drive C: so that it can be used for the installation.

FreeDOS 1.4

(Image credit: Tom's Hardware)

17. Select your keyboard layout and press Enter. There are more keyboard layout choices via the More option.

FreeDOS 1.4

(Image credit: Tom's Hardware)

18. Select Full installation including applications and games and press Enter. This installs every part of FreeDOS, including a selection of games and demos.

FreeDOS 1.4

(Image credit: Tom's Hardware)

19. Select Yes and press Enter to install FreeDOS to your virtual machine.

FreeDOS 1.4

(Image credit: Tom's Hardware)

20. Leave the installation until prompted to take action.

FreeDOS 1.4

(Image credit: Tom's Hardware)

21. Press right CTRL and then click on Devices >> Optical Drives and then Remove disk from virtual drive to “eject” the virtual CD image.

FreeDOS 1.4

(Image credit: Tom's Hardware)

22. Back in the VM, select Yes and press Enter, to reboot the VM and boot from the FreeDOS install.

FreeDOS 1.4

(Image credit: Tom's Hardware)

23. The VM will now boot into FreeDOS directly from the virtual harddisk.

FreeDOS 1.4

(Image credit: Tom's Hardware)

With FreeDOS installed, we have a series of directories full of applications, games and tools that we can use to get started with FreeDOS.

FreeDOS 1.4

(Image credit: Tom's Hardware)
Swipe to scroll horizontally

Directory Name

Example Applications

Apps

Applications for audio playback such as LAME, Blade Encoder, MIDI playback.

Devel

Developer demo files for interacting with the Logger device driver.

FreeDOS

FreeDOS specific configuration files for the OS.

Games

Doom clones, Boom and FreeDoom. FlappyBird, Tetris, Sudoku.

Net

Networking and Internet browsers such as Lynx.

PGME

Program and Game Manager application.

Util

Utilities to work with archives.

FreeDOS 1.4

(Image credit: Tom's Hardware)

We “tested” the Games folder and found FreeDoom to be very playable, even with the quirky arrow keys for movement setup. There is plenty of fun to be had with these games. We even found Vertigo, a full flight simulator! It's very hard to play with a keyboard!

FreeDOS 1.4

(Image credit: Tom's Hardware)

If you need to make a connection to the outside world, then the Net folder contains applications to browse the web (slowly) and to make SSH (Secure Shell) connections to remote devices. On real hardware you need to make sure that your Ethernet device is supported, on a virtual machine it just works.

Sharing Files with FreeDOS

Sharing files / folders with FreeDOS differs between virtual and real hardware. On virtual hardware we need to share using CD ROM or floppy drive images of our legally owned software.

Real hardware users can plug in a CD ROM drive, or a USB drive into their machine and work as normal. A quick note though: The USB drive must be attached when the system is powered on. You cannot insert it after as the OS will not detect the drive. Drive detection is performed on boot. Once you learn this quirk, you’ll see adapt and have files to and from your FreeDOS install.

Les Pounder

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".