Click to See Complete Forum and Search --> : LILO won't boot windows


gianfranko
07-19-2001, 12:09 AM
everytime I try to boot windows from lilo I get the message "loading windows" and then the computer just freezes. Meanwhile Linux boots perfectlly fine from the LILO prompt.

Here is a copy of my lilo.conf file:

vga=normal
default=windows
keytable=/boot/us.klt
lba32
prompt
timeout=50
disk=/dev/hdd bios=0x80
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=linux
root=/dev/sda6
initrd=/boot/initrd.img
append=" hdc=ide-scsi hdb=ide-floppy quiet"
vga=788
read-only
image=/boot/vmlinuz
label=linux-nonfb
root=/dev/sda6
append=" hdc=ide-scsi hdb=ide-floppy"
read-only
image=/boot/vmlinuz
label=failsafe
root=/dev/sda6
initrd=/boot/initrd.img
append=" hdc=ide-scsi hdb=ide-floppy failsafe"
read-only
other=/dev/sda1
label=windows
table=/dev/sda
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
other=/dev/fd0
label=floppy
unsafe

What I dont get is the line:
"disk=/dev/hdd bios=0x80"
/dev/hdd is my IDE hard disk drive, but no OS is located there

I am trying to boot from an SCSI drive /dev/sda; the SCSI HD is not recognized by the bios. The bios is setup to boot from the SCSI controller card.

Any suggestions?

yard21
07-19-2001, 07:21 AM
Hm, let's see, AFAIK the line "disk=/dev/hdd bios=0x80" means something like your hdd drive should be treated like it is the first disk, maybe you should comment that out and see what happens.
What I find a little bit confusing is the line "append hdc=ide-scsi ..." because you don't need SCSI-emulation, you do have a real SCSI system, don't you?
I would first create a rescue-disk so you can change the settings back if something goes wrong and then try to comment this thing with the hdd out.

Good luck

slapNUT
07-19-2001, 04:48 PM
disk=/dev/hdd bios=0x80
This tells lilo that hdd is your first drive.

map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
This tells the bios to swap IDE Primary Master (hd0) with IDE Primary Slave (hd1). In Linux speak it swaps hda & hdb. So if hdb is an ide-floppy then you are going to have a floppy drive as hda.

I would agree with beamy, make a backup of the file and a bootdisk then try rewriting /etc/lilo.conf. Dont forget to run lilo to make the changes official.

Radar
07-19-2001, 06:16 PM
Try commenting out the "table=" entry

gianfranko
07-19-2001, 10:16 PM
how do I comment out? I know in windows it is using the REM command but in linux i am not sure?

basically just comment out the table=/dev/sda
and the disk=/dev/hdd bios=0x80 lines?

slapNUT
07-19-2001, 10:39 PM
In most scripting you comment by placing a # in front of the comments. Dont know about lilo but you can try it if it's wrong lilo will just give you a syntax error and quit then you could just remove the line. Remember to make a copy of the file first and also print a copy for reference.

<edit> Radar whats wrong with the table= ? All my dual boots have that, it's usually table=/dev/hda since I dont boot any scsi drives. Is it because of the boot device being scsi? Just curious.

[ 19 July 2001: Message edited by: slapNUT ]

gianfranko
07-19-2001, 11:57 PM
OK I got LILO to boot windows

I tried commenting both out and that didn't work. So, I commented out the disk=/dev/hdd bios=0x80 line and also deleted the following lines:
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

Everything seems to be working fine. I dont know why... But it works...
Any input as to the reason why it works is most surely welcomed.