VOGONS

Common searches


First post, by lottem

User metadata
Rank Newbie
Rank
Newbie

Motherboard: Biostar N68SA-M2S
Processor: AMD Phenom 9100E Quad Core
Main Memory: 1GB
Video Board: Onboard Nvidea GeForce 7025
Sound Board: N/A
O/S: Windows 7 32bit
DOSBOX Version: 0.74
I have read the DOSBOX manual.
PROBLEM:
I want to be able to create, format, and work with floppy disk images.
I can mount and use floppy disk images created by raw-write-win http://www.chrysocome.net/rawwrite Version 0.7, Virtual Floppy http://vfd.sourceforge.net/ Version 2.1, and real physical floppy disks in a real floppy disk drive.
What I CAN NOT seem to do is to format any of the above. I am using the FreeDOS format program Version 0.91v. Example below using an image file created by raw-write-win containing a couple of files.
------------
C:\USERS\EDLOTT\DOSBOX>IMGMOUNT B C:\TESTFDD.IMG -T floppy -fs FAT
Drive B is mounted as C:\TESTFDD.IMG
C:\USERS\EDLOTT\DOSBOX> dir b:
Directory of B:\.
DIRP BAT 39 02-11-20138:10
MYM BAT 39 02-11-20138:10
2 Files 78 Bytes
0 Dir(s) 1,456,640 Bytes Free
C:\USERS\EDLOTT\DOSBOX>FORMAT B: /F:1440
Insert new diskette for drive B:
Press ENTER when the right disk is in the drive...
# Boot sector unreadable, disk not yet formatted
Formatting to 1440k (Cyl=80 head=2 Sec=18)
[Error 53]
C:\USERS\EDLOTT\DOSBOX> dir b:
Directory of B:\.
DIRP BAT 39 02-11-20138:10
MYM BAT 39 02-11-20138:10
2 Files 78 Bytes
0 Dir(s) 1,456,640 Bytes Free
------------
THE VERSION WITH DEBUG IS:
------------
C:\USERS\EDLOTT\DOSBOX>FORMAT B: /F:1440 /D
[DEBUG] Format 0.91v, selected drive B:
[DEBUG] Sector buffer at 0BBB:6770, track buffer at 0BBB:6B70
[DEBUG] Skipped ASSIGN check for diskette drive.
Insert new diskette for drive B:
Press ENTER when the right disk is in the drive...
[DEBUG] Checking whether we need low-level format.
[DEBUG] Test-reading boot sector.
[FF]*[FF]*[FF]*[FF]#[DEBUG] Error code: 0x808
# Boot sector unreadable, disk not yet formatted
[DEBUG] Current Disk Drive Parameter Table Values at F000:1060:
[DEBUG] [DDPT] Sector size: code 0x00 Fill char: 0x00
Formatting to 1440k (Cyl=80 head=2 Sec=18)
------------
I can use the FreeDOS format program Version 0.91v to successfully format diskettes from a real boot floppy in a real floppy drive running FreeDos.
------------
This seems like something many people would like to do. I did some google searches and in the DOSBOX forum but was unable to find a solution to this problem; however I may have missed something. Any assistance you can provide would be much appreciated.
------------
Ed. Lott

Reply 1 of 2, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Try without -fs fat
As DOSBox is for games formatting floppy images is NOT what many people like to do, or rather, if it were, there would have been many reports of it not working 😉

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 2, by TheGreatCodeholio

User metadata
Rank Oldbie
Rank
Oldbie

Mainline DOSBox doesn't bother to emulate the INT 13h format track syscall, and returns an error.
In DOSBox-X I patched emulation to instead do nothing but return success anyway, which seems to make FORMAT.COM happy. Try using DOSBox-X

DOSBox-X project: more emulation better accuracy.
DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.