How to create a bootable FreeDOS USB stick & Euphoria 3?

by shian ⌂, Thursday, August 27, 2020, 17:49 (30 days ago) @ shian

I've created a raw image (2GB size) of FreeDOS 1.2.

The image also includes Euphoria 3.1.1, Lib2 1.41, RBIL documentation, helppc, QE 2.3.9 IDE, EDU IDE (as part of Lib2), and basic utilities.

When you start FreeDOS it will run a menu written in Euphoria 3 (you can see the source code in C:\UTIL\MENU.EX).

Just download the compressed image, decompress it using 7-zip, burn it to a USB stick of 4GB or more, and restart your computer from the USB stick. (Legacy BIOS must be enabled in your BIOS, and you should be able to start your computer from USB-HDD).

In Linux you can burn the image using the attached documentation, or another Linux utility. On Windows you can (probably) use Rufus to burn the image to a USB stick.


Download fdos12.7z checksum (the compressed image).



-----------------------------------------------
How did I make this image on Linux?
-----------------------------------------------

Credit: Joe's Blog, https://joelinoff.com/blog/ (with few adjustments).


1. Download "FD12CD.iso" from http://www.freedos.org/.


2. Create an empty local Disk as file, using 'dd':

dd if=/dev/zero of=fdos12.img bs=1M count=2047


3. Install "FD12CD.iso" to Disk, using 'qemu':

     qemu-system-x86_64 -cdrom FD12CD.iso fdos12.img -boot d

Notes:
a. In FDISK I did NOT enable large drive support on start.
b. I created a single 2GB drive C: (2GB is maximum for
standard DOS drive), made it bootable, then restart qemu
with ctrl-alt-del... then continue with format and minimal installation.


4. Copy from another FreeDOS USB stick the Euphoria directory &
other utilities and documents, using 'qemu' (/dev/sdb1 is my USB device):

    sudo qemu-system-x86_64 -hdb /dev/sdb fdos12.img


5. Test again if the image is bootable, using 'qemu':

qemu-system-x86_64 fdos12.img -boot c


6. Burn the bootable image to a USB stick, using 'dd':

sudo dd if=fdos12.img of=/dev/sdb bs=1M


7. Test the new USB stick, using 'qemu':

First find the USB id, using 'lsusb':

      lsusb

= ( Bus 002 Device 005: ID 0781:5567 SanDisk Corp. Cruzer Blade )

Now test it using ID 0781:5567:

      sudo qemu-system-x86_64 -usb -usbdevice host:0781:5567 -m 1024 -vga std

(Using the above qemu command FreeDOS runs OK from the USB stick!)


8. OK. Ready. Now you can reboot your PC from the USB stick (legacy BIOS must
be enabled in the BIOS)... and you can start using FreeDOS and Euphoria!

Tags:
Euphoria 3, FreeDOS, USB


Complete thread:

 RSS Feed of thread

powered by my little forum