LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-21-2002, 06:01 AM   #1
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Rep: Reputation: 0
Question 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
 
Old 06-21-2002, 06:34 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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
 
Old 06-21-2002, 06:37 AM   #3
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
How do I run /sbin/lilo, just type it in the terminal or what?
 
Old 06-21-2002, 06:45 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
z

Last edited by linuxcool; 06-21-2002 at 06:48 AM.
 
Old 06-21-2002, 06:46 AM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Yes, type it into a terminal. Remember that you need to be root to edit the file and run /sbin/lilo.
 
Old 06-21-2002, 06:49 AM   #6
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2002, 06:54 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.
 
Old 06-21-2002, 06:56 AM   #8
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2002, 06:58 AM   #9
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2002, 06:59 AM   #10
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.

Last edited by linuxcool; 06-21-2002 at 07:00 AM.
 
Old 06-21-2002, 07:08 AM   #11
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2002, 07:16 AM   #12
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.
 
Old 06-21-2002, 07:16 AM   #13
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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 ( I tried.
 
Old 06-21-2002, 07:24 AM   #14
kbhadsten
LQ Newbie
 
Registered: Jun 2002
Location: Denmark
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 06-21-2002, 07:28 AM   #15
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Red Hat 7.2/ Windows XP dual boot mobok7v Linux - General 10 11-27-2006 03:47 PM
Cannot dual boot Windows XP with Red Hat 9 fries321 Linux - Newbie 6 08-03-2006 10:24 AM
Dual Boot Problem (Windows XP & Red Hat 8) sypkensj Linux - Newbie 50 07-13-2006 03:31 PM
dual boot Windows XP Pro and Red Hat Fedora Core 2 j2linux2 Fedora 5 10-01-2004 10:32 AM
how can i dual boot between windows and red hat? phancom Linux - Newbie 2 09-17-2003 10:53 AM


All times are GMT -5. The time now is 01:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration