PDA

View Full Version : Troubles with dual boot on 2 hds system



ronnie_blue
11-28-2003, 05:46 PM
Hi all,i have a machine with 2 hard disks.
On the first(primary master) i installed knoppix3.3 with Lilo on MBR.
On the second (primary slave) i have 2 partitions (C:Win xp, D: Files).
Summary for Linux:
hda1:knoppix 3.3(ext3)
hda2:Swapspace
hdb1:Xp(ntfs)
hdb5:store space(ntfs)
The settings in Bios and in /etc/lilo.conf seem to be correct;in fact
lilo prompts me two options(Linux and Xp) but only Linux boots;
if i choose Xp it shows "Loading XP" on top of screen,a blinking cursor
and the system blocks.
If i set the bios to boot from primary slave,Xp loads and works good(this only to say that it is not damaged)
I tried
lilo
and lilo -v
from terminal but nothing changed.
Can anybody give me a helping hand?

L2Cache
11-28-2003, 07:02 PM
You could see how your setup compares to this working redhat setup:

Windows/Linux dual boot
On one PC, I have Lilo on the MBR of drive 1 and can choose Windows or RedHat9 at boot. To change Lilo, as root, edit /etc/lilo.conf, then, in a terminal window, type /sbin/lilo. My dual boot /etc/lilo.conf setup with Windows 98 SE on the first drive and Linux on the second Linux partition of the second drive:

prompt
timeout=50
default=Windows
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.20-8
label=RedHat9
initrd=/boot/initrd-2.4.20-8.img
read-only
append="hdc=ide-scsi root=LABEL=/"

other=/dev/hda1
optional
label=Windows

ronnie_blue
11-28-2003, 11:17 PM
Thank you for your fast answer.
This is my lilo.conf
_______________________
lba32
boot=/dev/hda1
root=/dev/hda1

bitmap=/boot/sid.bmp
bmp-colors=1,,0,2,,0
bmp-table=120p,173p,1,15,17
bmp-timer=254p,432p,1,0,0

install=/boot/boot-bmp.b

prompt
timeout=50
map=/boot/map
vga=normal

image=/vmlinuz
label=Linux
read-only

other=/dev/hdb1
label=Xp
___________________________

As you can see it reflects my system's configuration(as reported above)
It keeps being strange that xp doesn't load.
:cry:
If you can find something wrong ,please let me know.
I need your help.
I tried /sbin/lilo as root with no results.

L2Cache
11-29-2003, 06:21 AM
First you can try changing boot=/dev/hda1 to boot=/dev/hda
Then run /lilo or /sbin/lilo
That will put lilo on the mbr of the first HD.
boot=/dev/hda is on the mbr
boot=/dev/hda1 is on the first partition

jackren
11-29-2003, 11:10 PM
change your Xp entry in lilo.config to:

other=/dev/hdb1
table=/dev/hdb
label=Xp
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80


this should do the trick

ronnie_blue
11-30-2003, 11:26 AM
change your Xp entry in lilo.config to:

other=/dev/hdb1
table=/dev/hdb
label=Xp
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80


this should do the trick

Thank you jackren,
i followed your suggestions and now i have
a perfect dual-boot system.
regards,ronnie.