[syslinux] Disabling MEMDISK

H. Peter Anvin hpa at zytor.com
Tue Jul 6 15:04:07 PDT 2004


H. Peter Anvin wrote:
> Alexander Heinz wrote:
> 
>>> I have added instructions to memdisk.doc for how to disable MEMDISK. 
>>> However, it's unlikely that this will work if you're running under 
>>> DOS, since DOS will be very unhappy about drives changing underneath it.
>>
>>
>>
>> My goal is to boot DOS/FreeDOS via memdisk, do a few things and 
>> disable the virtual floppy created by memdisk and continue to boot the 
>> local hard disk or an etherboot .com file.
>>
>> So is there a way to delete the virtual floppy and load a .com file 
>> afterwards (probably not because there is no longer a ramdisk to store 
>> it) or a way to combine the program that deletes the virtual floppy 
>> with the etherboot .com file?
>>
> 
> You'd have to put the MEMDISK-disabling code into the .com file, 
> presuambly.
> 

OK, here is a hideously ugly and completely untested way of doing it.  Prefix 
the .com program with this code, i.e. do something like:

[Linux]	cat prefix.com ethboot.com > start.com
[DOS]	copy /b prefix.com+ethboot.com start.com

To compile this:

	nasm -f bin -o prefix.com prefix.asm


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prefix.asm
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20040706/acbe101c/attachment.ksh>


More information about the Syslinux mailing list