Page 1 of 1

Bochs: Could not read the boot disk

Posted: Tue Dec 28, 2004 12:43 pm
by St8ic
My OS crashes before jumping to the kernel on a real machine, so I've been trying to set it up in bochs to analyze the problem. When I try to get bochs to load off the floppy it gives me this in bochsout.txt:

00002402535i[BIOS ] FATAL: Could not read the boot disk

I tried with a disk image also, but the same problem occured. It should at least load the bootstrap because it works on a real PC, right? Here is my bouchsrc:

Code: Select all

megs: 32
romimage: file=../BIOS-bochs-latest, address=0xf0000
vgaromimage: ../VGABIOS-elpin-2.40
floppya: 1_44=A:, status=inserted
boot: a
log: bochsout.txt
mouse: enabled=0

Re:Bochs: Could not read the boot disk

Posted: Tue Dec 28, 2004 12:53 pm
by St8ic
I also noticed these lines in bochsout:

00000000000i[DMA ] channel 2 used by Floppy Drive
00000000000e[FDD ] Cannot open floppy drive
00000000000i[FDD ] fd0: 'A:' ro=0, h=0,t=0,spt=0
-AND-
00002366830e[HD ] device set to 0 which does not exist
00002367123e[HD ] device set to 1 which does not exist
00002395721i[FDD ] attempt to read/write sector 1, sectors/track=0 with media not present
00002401769i[BIOS ] Boot from Floppy 0 failed
00002409480i[BIOS ] FATAL: Could not read the boot disk

Re:Bochs: Could not read the boot disk

Posted: Tue Dec 28, 2004 4:55 pm
by fraserjgordon
Try this:

Code: Select all

boot: floppy
floppya: 1_44="a:", status=inserted
Bochs is very likely picky about having the quotes around the line.
HTH

Re:Bochs: Could not read the boot disk

Posted: Wed Dec 29, 2004 1:28 pm
by St8ic
Thanks for the suggestion, but it gives me the same errors.

Re:Bochs: Could not read the boot disk

Posted: Wed Dec 29, 2004 2:39 pm
by CloudNine
I think linking to a real floppy drive doesn't work for Windows 9x, you didn't say what you were using.