Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

Creating a Bootable FreeDOS USB Flash Drive From Linux

  1. Home

By Khalid on 2017/07/14 - 15:28, last updated 2017/07/14 - 16:15

As someone who only runs Linux, I occasionally need to run DOS for updating the BIOS on various machines.

Floppy disks are no more an option, since it has been nearly two decades with machines not shipping with them. Therefore, the only realistic option is using USB flash drives.

One excellent alternative to Microsoft MS-DOS, is FreeDOS, a free clone that needs very little resources to run. It can be used to run legacy applications, and one of them is flashing a new BIOS.

There are instructions on how to create a USB disk with FreeDOS, but these instructions require components from SYSLINUX and Grub, and involves a lot of manual steps, which makes it complicated and error prone.

Another tutorial on how to create a bootable FreeDOS USB disk, is better, but is missing a few crucial steps.

In this article, we detail the steps needed to create a bootable FreeDOS disk from Linux.

First, insert a USB flash drive into your PC running Linux, and then type the following command:

sudo parted /dev/sdb mklabel msdos

You will see a warning, and confirmation:

Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?

Yes/No? yes
New disk label type? [msdos]?
Information: Don't forget to update /etc/fstab, if necessary.

Then display the partition table:

sudo parted /dev/sdb print

The output will look similar to the following:

Model: FlashDis Flash Disk (scsi)
Disk /dev/sdb: 530MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags

Information: Don't forget to update /etc/fstab, if necessary.

This means the partition table is empty.

Now create a primary partition. You need to know the size of the USB flash drive you are using:

sudo parted /dev/sdb mkpart primary fat16 0 530MB

Make the partition bootable:

sudo parted /dev/sdb toggle 1 boot

Create a FAT32 filesystem on the partiton:

sudo mkfs.vfat -F 32 /dev/sdb1

Install unetbootin:

apt-get install unetbootin

Now, run unetbootin, which has an easy to use Graphical Interface.

Under 'Select Distribution', select 'FreeDOS'. The 'Version' will be 1.0.

Under 'Type', select 'USB Drive', and under 'Drive', select the partition, for example: /dev/sdb1.

Once you click OK, unetbootin should download FreeDOS, extract the foles, and copy them to the USB flash drive.

Click Exit.

Then, unmount the partition.

sudo umount /dev/sdb1

Now you have a USB drive that is bootable, and you can copy to it the BIOS or other files to the target machine.

Contents: 
Linux
Tags: 
FreeDOS
BIOS
  • Add comment

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.