Can anyone please tell me how to create a bootable 10MB hard disk image for use with memdisk? I'd like to use FreeDOS. And I know little of DOS. Thanks.
Egan Ford wrote:> Can anyone please tell me how to create a bootable 10MB hard disk image > for use with memdisk? I'd like to use FreeDOS. And I know little of > DOS.Tricky. Almost everything can be done under Linux -- especially since I released the mkdiskimage script, *except* making it bootable, which has to be done with a DOS command called SYS. The easiest way *I* have found to do that is to use DOSEMU to mount the disk image as a hard disk, and then run SYS on it. It wouldn't be *too* hard to make mkdiskimage do the equivalent of "SYS", *except* that the boot sector is DOS-version *and* media-dependent (i.e. it's different on floppies versus hard drives) and isn't readily available as a file; it's only available by copying the boot sector from another disk or disk image of the same type. Now, that's obviously not going to change for QDOS (Quick and Dirty Operating System, the original name for MS-DOS), but perhaps the FreeDOS people could make the boot sector and boot files available in a more convenient format... -hpa
[Forwarded to list. Please don't send me personal replies unless it's confidential. Why? Because this way it's archived, and other people might have things to add, or just be able to learn from it.] Egan Ford wrote:> I have dosemu installed with freedos, how do I tell dosemu to "mount" my > hdimage as drive d:?Add a line like this to dosemu.conf: disk { heads XX sectors XX tracks XX image "/home/egan/newdisk.img"} This should be located after the "disk" line for drive C. It has been a while since I last did this, so I might have screwed up the details. Someone else might be able to fill in anything missing... Once you have gotten this to work, obviously, you do "sys d:". -hpa
H. Peter Anvin wrote:> That stuff I already have. The issue is the boot sector itself, which > is a binary program.Try this one: It seems to be Freedos-Bootsector code. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/freedos/kernel/boot/boot.asm?rev=1.10&content-type=text/vnd.viewcvs-markup bye Christian