VOGONS


Making an MS-DOS 6.22 boot disk

Topic actions

First post, by popcalent

User metadata
Rank Newbie
Rank
Newbie

Hi all,

I downloaded Dos6.22.img from here [1] and burned the image into a floppy disk using:

sudo dd if=Dos6.22.img of=/dev/sdc bs=512 conv=fsync status=progress

However, when I try to boot from my 386 with this disk it says "Non-system disk or disk error". I tried booting the image file on dosbox using the BOOT command it boots fine. Am I doing something wrong when I use dd?

This is the output of dd:

$ sudo dd if=Dos6.22.img of=/dev/sdc bs=512 conv=fsync status=progress
1471488 bytes (1.5 MB, 1.4 MiB) copied, 162 s, 9.1 kB/s1474560 bytes (1.5 MB, 1.4 MiB) copied, 162.434 s, 9.1 kB/s

2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB, 1.4 MiB) copied, 177.923 s, 8.3 kB/s

[1] https://www.allbootdisks.com/download/dos.html

Reply 1 of 27, by jakethompson1

User metadata
Rank l33t
Rank
l33t

Non-system disk or disk error is at least coming from the boot sector so that's a good sign that something is working (unless it is failing over to the hard drive and it's the VBR generating that message). Does the 386 definitely boot with other floppies? I have run into the floppy head not being able to seek for lack of lubrication, but the grinding sound during the BIOS disk seek made this obvious.

Reply 2 of 27, by popcalent

User metadata
Rank Newbie
Rank
Newbie
jakethompson1 wrote on 2026-07-13, 17:14:

Does the 386 definitely boot with other floppies?

Yes, I have an original version of MSDOS 4.01 and it boots on the 386. Also, I tried burning the .img file on different floppies, and I get the error nonetheless.

Last edited by popcalent on 2026-07-13, 17:28. Edited 1 time in total.

Reply 3 of 27, by jakethompson1

User metadata
Rank l33t
Rank
l33t

I assume not a 720k (which 4.01 would be) vs. 1.44mb issue, but I'd think even the boot sector wouldn't load to give you this error in that case.

Reply 4 of 27, by nali

User metadata
Rank Member
Rank
Member

I suppose sdc is a usb floppy.
I would make an image of an existing good floppy, then dd it back to a blank.

Reply 5 of 27, by nali

User metadata
Rank Member
Rank
Member

Also , depending what you want to do with this floppy, I like to have a tftp server, then you can boot from network with AllInOne, even with some ISA network cards.
Not exactly an answer to your specific problem here, but it helped me many times for a lot of things.

Reply 6 of 27, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie

Are you absolutely certain that the image is good and for the same drive type that you are trying to boot it on.

I see that you are using LInux ... Is yours set up to be able to read a FAT floppy? ... if so, can you ls the content of the floppy? (ie: is the directory good)

Do you happen to have DosBox (or any other Virtual MAchine) installed? If so, can it boot the image? - DosBox> boot imagefile

On my MySite->Downloads you'll find DOSBOOT.ZIP which has known good boot images (I've booted them all in Virtual Machines - and written most of the more recent ones to physical disks and booted them on real hardware) for 13 different editions of DOS, including 6.22

https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filecopy(w/o netSW)via Lan/Lpt/Com

Reply 7 of 27, by nali

User metadata
Rank Member
Rank
Member
DaveDDS wrote on 2026-07-13, 21:39:

Do you happen to have DosBox (or any other Virtual MAchine) installed? If so, can it boot the image? - DosBox> boot imagefile

He wrote he tried, and it boot.
I also tried the same Dos6.22.img on 86box and it works.

Reply 8 of 27, by Harry Potter

User metadata
Rank Oldbie
Rank
Oldbie

I'm unfamiliar with sudo, but maybe you need to supply an extra switch to write the boot sector. Try sodo /? and tell me what happens. That should give you some help information.

Joseph Rose, a.k.a. Harry Potter
Working magic in the computer community

Reply 9 of 27, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Hi, I've used to use WinImage on Windows for this purpose.
There's also a 16-Bit version for Windows 3.1x (WinImage 3).
On DOS, there's graphical (menu driven) image software such as Teledisk or Disc Copy Fast (DCF).
The latter supports the *.ima format, too. I've already tried out.

On Linux, there's a graphical image tool, "GNOME Disk Utility", though it's more like Win32 Disk Imager on Windows.
It's more useful for writing/reading images of HDD or SD card images than floppies, I suppose.

Btw, how about using rawrite instead of dd on Linux?
Back in the 90s, I remember, install floppies were often created using rawrite.
Edit: Hm, there's no Linux version. It runs on DOS, Windows..

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 10 of 27, by NeoG_

User metadata
Rank Oldbie
Rank
Oldbie

Boot the 386 with the DOS 4.01 floppy and see if it will even read the DOS 6.22 floppy that you wrote. Before trying to troubleshoot a potential image writing issue (which I don't think it is tbh) you want to make sure the disk is readable across both drives.

98/DOS Rig: BabyAT AladdinV, K6-2+/550, V3 2000, 128MB PC100, 20GB HDD, 128GB SD2IDE, SB Live!, SB16-SCSI, PicoGUS, WP32 McCake, iNFRA CD, ZIP100
XP Rig: Lian Li PC-10 ATX, Gigabyte X38-DQ6, Core2Duo E6850, ATi HD5870, 2GB DDR2, 2TB HDD, X-Fi XtremeGamer

Reply 11 of 27, by megatron-uk

User metadata
Rank l33t
Rank
l33t

Try installing mtools, you can use it on images as well as real floppies. You should be able to 'mdir' the dos622 IMG if it is a real FAT12 disk image.
Of course you should also be able to loop mount the disk image using losetup and mount, or just use the Gnome disk image mounter to check it's working/genuine.

dd is definitely what you should be using, normally for writing dos floppy images I don't use any block size or conv prams, and it just works.

Have you tried any other disks written by your usb floppy? I've a couple of different types of these drives and some are better than others.

My collection database and technical wiki:
https://www.target-earth.net

Reply 12 of 27, by megatron-uk

User metadata
Rank l33t
Rank
l33t
NeoG_ wrote on Yesterday, 01:16:

Boot the 386 with the DOS 4.01 floppy and see if it will even read the DOS 6.22 floppy that you wrote. Before trying to troubleshoot a potential image writing issue (which I don't think it is tbh) you want to make sure the disk is readable across both drives.

This. Try just reading the image after booting with a known good boot disk.

My collection database and technical wiki:
https://www.target-earth.net

Reply 13 of 27, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie
nali wrote on 2026-07-13, 23:12:

He wrote he tried, and it boot.
I also tried the same Dos6.22.img on 86box and it works.

Ok, I've not used 86box, but I do boot floppy images all the time is DosBox, VMware and PcEm - the fact that the image boots tells me it's good.

Which means transfer of the image to a physical diskette isn't working. I don't use Linux much, I'm not intimately familiar with "dd"...
A good exercise might be to transfer the image to a disk, then read it back info another image and see if that matches the original image.
Then... binary compare of the two might help figure out how it is being modified.

https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filecopy(w/o netSW)via Lan/Lpt/Com

Reply 14 of 27, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie
popcalent wrote on 2026-07-13, 17:10:

sudo dd if=Dos6.22.img of=/dev/sdc bs=512 conv=fsync status=progress

I just asked a friend who uses Linux MUCH more than I do, a he said to try dropping "conv" he never uses it and thinks it might add metadata to the output somehow.

https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filecopy(w/o netSW)via Lan/Lpt/Com

Reply 15 of 27, by zapbuzz

User metadata
Rank Oldbie
Rank
Oldbie

i still use windows tools for this no rocket science

Reply 16 of 27, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie
zapbuzz wrote on Yesterday, 14:38:

i still use windows tools for this no rocket science

Exactly - this shouldn't be hard - I use my own XDISK(simpler for DOS/BIOS recognized format disks) or ImageDisk(more complex for ANY format disk) under DOS, DSKWRITE or WINIMAGE under Winblows.

But... OP was using "dd" within Linux.

popcalent wrote on 2026-07-13, 17:10:

$ sudo dd if=Dos6.22.img of=/dev/sdc bs=512 conv=fsync status=progress
1471488 bytes (1.5 MB, 1.4 MiB) copied, 162 s, 9.1 kB/s1474560 bytes (1.5 MB, 1.4 MiB) copied, 162.434 s, 9.1 kB/s

I just noticed this - common DOS disk images(.IMG) sizes are:

160k    163,840 bytes 
180k 184,320 bytes
200k 204,800 bytes
320k 327,680 bytes
360k 368,640 bytes
400k 409,600 bytes
720k 737,280 bytes
1200k 1,228,800 bytes
1440k 1,474,560 bytes
2880k 2,949,120 bytes

So why exactly did "dd" transfer 1,471,488 bytes - not a full 1.44m disk image size.
There must be some sort of translation going on...

https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filecopy(w/o netSW)via Lan/Lpt/Com

Reply 17 of 27, by NeoG_

User metadata
Rank Oldbie
Rank
Oldbie
DaveDDS wrote on Yesterday, 18:03:

So why exactly did "dd" transfer 1,471,488 bytes - not a full 1.44m disk image size.
There must be some sort of translation going on...

It's a red herring, dd was set to output progress to the terminal so one of the in-flight progress lines was copied and pasted. The final byte count was as expected

2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB, 1.4 MiB) copied, 177.923 s, 8.3 kB/s

98/DOS Rig: BabyAT AladdinV, K6-2+/550, V3 2000, 128MB PC100, 20GB HDD, 128GB SD2IDE, SB Live!, SB16-SCSI, PicoGUS, WP32 McCake, iNFRA CD, ZIP100
XP Rig: Lian Li PC-10 ATX, Gigabyte X38-DQ6, Core2Duo E6850, ATi HD5870, 2GB DDR2, 2TB HDD, X-Fi XtremeGamer

Reply 18 of 27, by nali

User metadata
Rank Member
Rank
Member

I was curious and tried the same floppy image, from the same web site..
I used "sudo dd if=Dos6.22.img of=/dev/fd0 bs=512 conv=fsync"
On Debian Etch "status=progress" was not an option yet.
But I don't think it makes any difference.
Notice I use a real floppy drive, not a Usb.
It's a Supersocket 7 with a K6-2 550, nothing special.

It boot perfectly from the floppy.
That's why I suggested you check your Usb drive by coping a known working boot floppy.

phil@scsi:~$ sudo dd if=Dos6.22.img of=/dev/fd0 bs=512 conv=fsync 
2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 105.787 seconds, 13.9 kB/s
phil@scsi:~$ sync
phil@scsi:~$ sudo mount /dev/fd0 /mnt/fd0
phil@scsi:~$ ls /mnt/fd0
attrib.exe cd3.sys deltree.exe edit.ini himem.sys mouse.com qbasic.exe setver.exe undelete.ini
autoexec.bat cd4.sys doskey.com emm386.exe io.sys mouse.ini qbasic.hlp share.exe unformat.com
c.bat chkdsk.exe drvspace.bin fdisk.exe label.exe mouse.sys restore.exe sys.com xcopy.exe
cd1.sys command.com edit.exe find.exe mem.exe mscdex.exe scandisk.exe tree.com
cd2.sys config.sys edit.hlp format.com mouse.@@@ msdos.sys scandisk.ini undelete.exe

Since I'm perv, I also tried from BeOS 4.5.
I formated the floppy and dd the image again.
No special options, just dd.
It takes time on BeOS ...

$ uname -a    
BeOS k6 4.5 1000009 BePC
$ dd if=Dos6.22.img of=/dev/disk/floppy/raw
2880+0 records in
2880+0 records out
$ sync

Guess what ?
It boot perfctly too.

The md5sum is:

md5sum Dos6.22.img 
a4a096cab6079c2cfa88a8bde0eac3aa Dos6.22.img

Reply 19 of 27, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie

I also downloaded the Dos6.22.img file from the given link, it is the correct size (1474560 bytes) and boots in DosBox, PCem, and from a real disk when written with either DSKWRITE or my own XDISK.

nali wrote on Yesterday, 22:59:

phil@scsi:~$ sudo dd if=Dos6.22.img of=/dev/fd0 bs=512 conv=fsync
1474560 bytes (1.5 MB) copied, 105.787 seconds, 13.9 kB/s

This shows the correct size for a 1.44m image!

popcalent wrote on 2026-07-13, 17:10:

$ sudo dd if=Dos6.22.img of=/dev/sdc bs=512 conv=fsync status=progress
1471488 bytes (1.5 MB, 1.4 MiB) copied, 162 s, 9.1 kB/s1474560 bytes (1.5 MB, 1.4 MiB) copied, 162.434 s, 9.1 kB/s

And the OP 's command does NOT!

So... if its the same image (@popcalent what is the exact actual size of your Dos6.22.img file?), why the different size - the only difference I see in the commands is "of=/dev/fd0" (which I assume is the 1st floppy) and "of=/dev/sdc" (which I assume is an SDcard?) also "status=progess" is missing in yours (Guessing that just control progress messages?)

Perhaps dd writing to an SDcard isn't the same as a floppy? - It certainly wouldn't be the same geometry.. but I would expect it to write the same number of bytes.

I know when I made a bootable CD(which is -way- different geometry) from a floppy image, the image stored on the CD is exactly the same as the original image of the floppy.

https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filecopy(w/o netSW)via Lan/Lpt/Com