LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-15-2007, 08:43 AM   #1
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Rep: Reputation: 15
No Grub menu displaying on dual-boot (2 hdd's)


To Anyone Willing To Help:

On my home desktop computer, I have Win XP installed, which works just fine. Recently, I installed Fedora Core 6 on a second hdd in the same computer (IDE, FC6 is on slave, XP on master). When I was installing, it gave me an option to install Grub to the first disk's boot sector (the one with XP), so I selected that. When I rebooted, no Grub menu was displayed, it simply went into the Windows boot menu, where I can select from Windows XP Home Edition, or Windows XP Recovery Console. Poo.

I have the same setup on a laptop that I own, except that XP and FC6 are on the same hdd. It works just fine, and I see the Grub menu everytime. When I select "Other", it takes me to the exact same Windows boot menu that I get from my desktop machine.

I tried changing the boot order in the BIOS to the slave disk (yes, this BIOS actually lets me choose the hard disk order), and nothing. I tried commenting out the "hiddenmenu" line in the /boot/grub/menu.lst file, and checked to make sure that it was the same in the /boot/grub/grub.conf file. My timeout is set to 5 in the /boot/grub/grub.conf file. I also attempted to press the Esc key while booting as fast as I possibly could, and nothing. The only way for me to get into my Linux drive is by booting with the install disk. I'm sorry if I'm annoying with the absolute paths and assumed actions, I just want to make sure that others with similar issues can get a complete answer, because I know it's frustrating. Please help!

--Joe
 
Old 03-15-2007, 08:52 AM   #2
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
assuming u tried booting from both hard disks and nothing shows grub.

does it shows any error when boot from the slave harddisk , if so can u post that.
regards,
Nirmal Tom.
 
Old 03-15-2007, 09:12 AM   #3
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
assuming u tried booting from both hard disks and nothing shows grub.
Correct. No matter which disk I attempt to boot from, it always ends up at the Windows XP menu.

Quote:
does it shows any error when boot from the slave harddisk , if so can u post that.
Believe me, I wish it would tell me SOMETHING, but it doesn't. It hangs for a second (which it didn't do before the install), which indicates to me that it is trying to do something, and even while I am destroying my Esc button with superfast mashing, I arrive at the Windows boot menu.
 
Old 03-15-2007, 09:25 AM   #4
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
ok no probs,
first we shall try install grub again in MBR.
boot with ur first cd and in the boot screen, type
linux rescue
it ask for networking and others just skip.At one stage it will search the installed fedora and says u that it is mounted under /mnt/sysimage and give u a shell prompt.

In the shell prompt,

chroot /mnt/sysimage


then

grub-install /dev/hda


it it is successful, reboot and check.if it prints any error, post me back

regards,
Nirmal Tom.
 
Old 03-15-2007, 09:45 AM   #5
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the help, nirmaltom. I'll try it today on my lunch break (because I have to go home to do it). I'll post back my results in a few hours.
 
Old 03-15-2007, 12:46 PM   #6
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Original Poster
Rep: Reputation: 15
Didn't Work

Nope, it didn't work. This is more or less what it looked like:

Code:
# grub-install /dev/hda
/dev/hdb1 has no corresponding BIOS drive

# grub-install /dev/hda1
/dev/hdb1 has no corresponding BIOS drive

# grub-install /dev/hdb
/dev/hdb1 has no corresponding BIOS drive

# grub-install /dev/hdb1
/dev/hdb1 has no corresponding BIOS drive

# grub-install /dev/hda
/dev/hdb1 has no corresponding BIOS drive
Not sure what to do next.

Does this mean (the "/dev/hdb1" annoyance) that somewhere it is automatically defaulting to /dev/hdb1, regardless of what I'm inputting?

Last edited by JoeLinux117; 03-15-2007 at 02:29 PM.
 
Old 03-16-2007, 02:30 AM   #7
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
i think,u might have instructed anaconda to install grub on first sector of partition and not on MBR, during installation.

check out the contents of /boot/grub/device.map file

if it is like below

(hd0) /dev/hda
(hd1) /dev/hdb

post me that.Also if it is not so, make the file like that and follow grub-install procedure as i told u previous post

regards,
Nirmal Tom.V
 
Old 03-17-2007, 03:30 PM   #8
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Original Poster
Rep: Reputation: 15
I looked at /boot/grub/device.map, and it looked like this:

Code:
(hd1) /dev/hdb
So I changed it to:

Code:
(hd0) /dev/hda
(hd1) /dev/hdb
and installed grub. Fedora boots beautifully, but now I can't boot Windows. What now?
 
Old 03-18-2007, 12:09 AM   #9
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
just post me the output of /boot/grub/grub.conf and fdisk -l

regards,
Nirmal Tom.
 
Old 03-19-2007, 01:02 PM   #10
JoeLinux117
Member
 
Registered: Mar 2007
Location: Miami, FL
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
just post me the output of /boot/grub/grub.conf
Here it is:

Code:
# more /boot/grub/grub.conf
...
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.20-1.2925.fc6)
        root (hd1,0)
        kernel /vmlinuz-2.6.20-1.2925.fc6 ro root=/dev/VolGroup00/LogVol00 acpi=
off rhgb quiet
        initrd /initrd-2.6.20-1.2925.fc6.img
title Fedora Core (2.6.18-1.2798.fc6)
        root (hd1,0)
        kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 acpi=
off rhgb quiet
        initrd /initrd-2.6.18-1.2798.fc6.img
title Other
        unhide (hd0,0)
        rootnoverify (hd0,0)
        chainloader +1
I read somewhere that the "unhide (hd0,0)" would do the trick, so I added that in there, but it still didn't work, just letting you know that it wasn't in there originally (and didn't work without it, either).

Quote:
and fdisk -l
Here it is:

Code:
# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         927     7008088+   b  W95 FAT32
/dev/hda2   *         928        5168    32061960    7  HPFS/NTFS

Disk /dev/hdb: 20.8 GB, 20847697920 bytes
255 heads, 63 sectors/track, 2534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          13      104391   83  Linux
/dev/hdb2              14        2534    20249932+  8e  Linux LVM
Thanks again for all the help.

--Joe
 
Old 03-19-2007, 01:23 PM   #11
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
hi,
it seems that ur first boot sectors of the windows partition is not set properly,not the mbr.
To ensure u can boot into linux safely,First make a copy of grub in second hard disk(the one used for linux).For that get into linux , as root run

grub-install /dev/hdb

Now use ur XP cd to get into recovery console,by booting from it.It will ask for the administrator password,give it and execute the command fixmbr and fixboot.
Then see, whether u are able to boot into windows directly from the first hard disk.The check to boot from second hard disk to get grub nad boot into both linux and windows

regards,
Nirmal Tom.
 
  


Reply

Tags
bios, dual boot, grub, grubconf, grubinstall, menu, menulst, rescue


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
SuSe 10, Win XP - dual boot, 2 seperate HDD's, GRUB question Thanh-BKK Linux - Newbie 6 12-06-2005 08:21 PM
Dual Boot - Dual HDD's sog777 Mandriva 9 05-16-2005 03:31 PM
GRUB menu.lst for Fedora and Mandrake Dual boot the_padre Linux - Newbie 3 03-15-2005 01:21 AM
Dual Boot on Dual HDD's redmoon Linux - Newbie 7 01-31-2005 05:53 AM
no grub menu after startup in dual boot FC3 and XP Remko Fedora - Installation 6 01-19-2005 04:44 AM


All times are GMT -5. The time now is 11:58 PM.

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