LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual Boot, Lilo Windows / Red Hat (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-lilo-windows-red-hat-23961/)

kbhadsten 06-21-2002 05:01 AM

Dual Boot, Lilo Windows / Red Hat
 
Hello!!!
Ive just installed Red Hat 7.3 on my harddrive # 2, but after the installation, i couldn't boot my Windows 2k anymore.
I started using grub, but the I read that if I wanted to boot Windows I had to use Lilo, så I reinstalled the entire Linux og used Lilo instead.
I updated Red Hat, online so now i can chose between three in the lilo bootmenu.
the lilo.conf file looks like this:

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

image=/boot/vmlinuz-2.4.18-5
label=linux
root=/dev/hdb5
append="hdd=ide-scsi"
read-only
initrd=/boot/initrd-2.4.18-5.img

other=/dev/hda5
optional
label=Windows2000
table=/dev/hdb
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80

but it does'nt work!!!! Windows is installed on my seagate harddrive, wich is P-Master, og Linux on my second harddrive, wich is S-Master.!!!

My question is: "How do I remove on of the three options in the bootmenu? And how do i get Windows to boot.?"

Best Regards
Kasper Brandenburg. Denmark:newbie:

linuxcool 06-21-2002 05:34 AM

Change this section of lilo.conf:

other=/dev/hda5
optional
label=Windows2000
table=/dev/hdb
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80

To this:

other=/dev/hda5
optional
label=Windows2000
table=/dev/hda

After making these changes run /sbin/lilo

kbhadsten 06-21-2002 05:37 AM

How do I run /sbin/lilo, just type it in the terminal or what?

linuxcool 06-21-2002 05:45 AM

z

linuxcool 06-21-2002 05:46 AM

Yes, type it into a terminal. Remember that you need to be root to edit the file and run /sbin/lilo.

kbhadsten 06-21-2002 05:49 AM

Hello Again
I still have problems, when i type "/sbin/lilo" in the terminal, the following message appears:

added linux *
Fatal: Partition entry not found

linuxcool 06-21-2002 05:54 AM

It appears that /dev/hda5 is not your windows2000 partition. It could be /dev/hda1. Change the other=/dev/hda5 to other=/dev/hda1. Then run /sbin/lilo. Any time you make changes, run /sbin/lilo.

kbhadsten 06-21-2002 05:56 AM

he he, you are right, and wrong, I changed the line you "talked" about, new error:
fatal: First sector of /dev/hda1 doesn't have a valid boot signature

kbhadsten 06-21-2002 05:58 AM

can i take a screendump in linux, and how - because i found a hardware browser, wich tells my the names of my partitions, I could show it to you

linuxcool 06-21-2002 05:59 AM

Run fdisk -l /dev/hda and post a copy of it's output so I can see if I can figure out where windows2000 is on /dev/hda.

kbhadsten 06-21-2002 06:08 AM

I don't know how to take a screendump, so here it is:

Unit: boot Start Bloks id system
/dev/hda1 * 1 b Win95 FAT32
/dev/hda2 575 f Win95 Enhanced (LBA)
/dev/hda5 575 b Win95 FAT32

linuxcool 06-21-2002 06:16 AM

It looks like hda1 is the windows2000 partition. Try removing this line from /etc/lilo.conf: table=/dev/hda. Then run /sbin/lilo.

If you are in x windows, you can paste text by placing the mouse pointer at the start of the text you want to copy then clicking the left mouse button and then drag it over the text and release the mouse button at the end of the text. The text will be highlighted.

To paste the text, move the mouse pointer to where you want to paste it and click the left mouse button and then the middle mouse button. The text will be copied there.

kbhadsten 06-21-2002 06:16 AM

Hi again
I've tried som different stuff, and when I used this configuration:

prompt
timeout=50
default=linux
boot=/dev/hda1
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.18-5
label=linux
root=/dev/hdb5
append="hdd=ide-scsi"
read-only
initrd=/boot/initrd-2.4.18-5.img
other=/dev/hda2
optional
label=Windows2000
table=/dev/hda

and wrote /sbin/lilo ind the terminal, it replied:

added: linux *
added: windows2000

but i still doesn't work :o( I tried.

kbhadsten 06-21-2002 06:24 AM

it still dosn't work, I tried what you surgested, but - no luck yet.
how about this:

map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80

I read on redhat.com that in order to boot windows, we needed to trick windows into thinking that IT was in control of the MBR

linuxcool 06-21-2002 06:28 AM

I believe hda2 is an extended partition and not windows2000.

This line: boot=/dev/hda1 should have been left as boot=/dev/hda. Changing it to hda1 caused lilo to install itself in the boot sector of hda1 instead of the mbr of hda.

If you have windows2000 install disk, I think you can repair the boot sector of hda1, but I'm not real sure about that.


All times are GMT -5. The time now is 04:54 PM.