Click to See Complete Forum and Search --> : LILO configuration help


tensai
03-19-2003, 04:59 AM
I have RH 8.0 setup on IDE1 master (hde) and WinXP setup on IDE2 master (hdg). This is my lilo.conf file.

prompt
timeout=50
default=linux
boot=/dev/hde
map=/boot/map
install=/boot/boot.b
restricted
message=/boot/message
linear

image="/boot/vmlinuz-2.4.18-27.8.0"
label="linux"
read-only
initrd="/boot/initrd-2.4.18-27.8.0.img"
append="hda=ide-scsi root=LABEL=/"

other=/dev/hdg1
table=/dev/hdg
label=WinXP

Whenever I select WinXP, Lilo give L? response. I remember similar setup when I had Win2k and RH before, and this config file worked then. Instead of hde and hdg, I had hda and hdb. I don't think that would be the culprit. I am open to all suggestions. WinXP boots fine if I unplug the IDE1 drive.

thanks,

mdwatts
03-19-2003, 07:48 AM
Add the map commands to lilo.conf and run /sbin/lilo (as root) after.

other=/dev/hdg1
table=/dev/hdg
label = WinXP
map-drive = 0x81
to = 0x80
map-drive = 0x80
to = 0x81

tensai
03-20-2003, 03:28 AM
The map-drive option didn't help. I am suspecting that my BIOS number for hdg isn't 0x81. This is the verbose output from executing lilo.

Device 0x2101:
BIOS drive 0x80, 255 heads, 24321 cylinders, 63 sectors. Partition offset: 63 sectors.
RAM disk: 504 sectors.
Added linux *
<dev=0xc0,hd=0,cyl=76,sct=89>
"ro BOOT_FILE=/boot/vmlinuz-2.4.18-27.8.0 hda=ide-scsi root=LABEL=/"

Boot other:
/dev/hdg1, on /dev/hdg, loader /boot/chain.b
Device 0x2201:
BIOS drive 0x80, 255 heads, 7297 cylinders, 63 sectors. Partition offset: 63 sectors.
Mapped 6 (4+1+1) sectors.
Added WinXP
<dev=0xc0,hd=0,cyl=76,sct=123>

is there a command to see how BIOS is mapping each drive? The two harddisks are on separate DEVICE, but both are labelled BIOS drive 0x80? How does that work?

mdwatts
03-20-2003, 07:13 AM
First try removing the table=/dev/hdg and map lines to see if that works.

If not, re-add both and try 0x82 and then 0x83 etc. until (hopefully) one of them works.