PDA

View Full Version : LILO: Need help adding SATA based Win XP Drive


ViN86
06-07-07, 03:48 PM
i have slackware 11 installed on an IDE drive and windows xp installed on a SATA drive. i have LILO installed to the MBR on the IDE drive.

i want to add win xp to my lilo menu. i can mount the win xp device in linux, and i know that it is /dev/sda1. if i want to boot the win xp drive, would the following be acceptable?

# Windows bootable partition config begins
other = /dev/sda1
label = Windows-XP-Pro
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/sda
# Windows bootable partition config ends

or would i need...

# Windows bootable partition config begins
other = /dev/sda1
label = Windows-XP-Pro
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80
table = /dev/sda
# Windows bootable partition config ends

if someone could shed some light on what exactly the 0x80 and 0x81 mean, that would be great :o

evilghost
06-07-07, 04:23 PM
They are hex SCSI ID of the drive. I'd try it without them first.

http://tldp.org/HOWTO/LILO-6.html

chunkey
06-07-07, 04:38 PM
AFAIK not really,
It's a BIOS thing (for Int 13h )

everything with a 0x8X is a HDD! (0x80 is the first hdd, 0x81 the second ... )
(note: 0x0X is for floppies)

evilghost
06-07-07, 04:41 PM
AFAIK not really,
It's a BIOS

everything with a 0x8X is a HDD! (0x80 is the first hdd, 0x81 the second ... )
(note: 0x0X is for floppies)

BIOS ID, gotcha, thanks for correcting my misinformation.

ViN86
06-07-07, 05:24 PM
so according to the article, if i set the boot order as follows:

1. IDE w/ Linux and LILO
2. SATA w/ Windows
3. SATA w/ Data

then the drives are as follows

1. 0x80
2. 0x81
3. 0x82

then i would have to issue the map-drive...to...map-drive...to cmd.

this seem correct?

chunkey
06-07-07, 05:44 PM
yes, sounds good... (of course there's a small change that the bios puts
the sata drives after 0x83, you have to try!)

ViN86
06-08-07, 12:27 AM
got it workin.

xp boots pretty slow, but i dont really care as long as it runs full speed (which it does) once it's loaded.

i had to use the map-drive feature and the second block of code in the OP worked for me. thx ghost and chunkey :D