Subject: Re: Boot NetBSD from W95?
To: None <netbsd-help@NetBSD.ORG, christos@zoulas.com>
From: Ty Sarna <tsarna@endicor.com>
List: netbsd-help
Date: 12/07/1997 14:12:22
In article <EKu0nu.BJC@tac.nyc.ny.us> you write:
> In article <199712071809.MAA24998@lotharon.endicor.com> tsarna@endicor.com (Ty Sarna) writes:
> >Is there a way to boot NetBSD from W95?
> 
> put a kernel on msdosfs and run
> 
> C:\>dosboot.exe netbsd

Aha! Thank you! I knew about dosboot (BTW, dosboot -u is even better --
don't have to keep a kernel on the DOS side that might get out of sync
with the real one), but I was absolutely sure it had to be run under
DOS, not W95. But you convinced me to try it anyway, and it turns out
that I was right, except that Windows has the reboot-under-dos-and-run-
this-program-thing. So, it really can be run *from* (as opposed to
*under*) W95. Yay!

One problem: since dosboot never exits properly, Windows doesn't ever
clean up whatever magic files it uses to tell itself to boot to DOS and
run a program rather than booting normally. So when NetBSD reboots
itself, it goes back to DOS, which goes back to NetBSD. Aaagh!

I assume if I knew what the magic files were, I could run a batch file
instead of dosboot directly, and have the batch file nuke the magic
files before running dosboot. Anyone know what the magic involved is?