LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-12-2010, 08:29 PM   #1
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Rep: Reputation: 15
grub doesn't show boot menu, just goes directly into Linux ?


Fedora 13 = Primary Master drive
Windows XP = Secondary Master drive

I installed Fedora 13 from a cd.
Here's my fdisk:
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 28.2 GB, 28152168448 bytes
255 heads, 63 sectors/track, 3422 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Here's my /boot/grub/grub.conf:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_bryan-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.33.6-147.2.4.fc13.i686)
root (hd0,0)
kernel /vmlinuz-2.6.33.6-147.2.4.fc13.i686 ro root=/dev/mapper/vg_bryan-lv_root rd_LVM_LV=vg_bryan/lv_root rd_LVM_LV=vg_bryan/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.6-147.2.4.fc13.i686.img
title Windows XP
rootnoverify (hd0,1)

my grub/menu.lst is the same as /boot/grub.grub.conf

Thanks.

Last edited by trien27; 10-11-2010 at 01:38 PM. Reason: Windows XP should be Secondary Master Drive, not Primary Slave Drive
 
Old 08-12-2010, 09:10 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
Change the timeout value and comment out the hiddenmenu line:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_bryan-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.33.6-147.2.4.fc13.i686)
root (hd0,0)
kernel /vmlinuz-2.6.33.6-147.2.4.fc13.i686 ro root=/dev/mapper/vg_bryan-lv_root rd_LVM_LV=vg_bryan/lv_root rd_LVM_LV=vg_bryan/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.6-147.2.4.fc13.i686.img
title Windows XP
rootnoverify (hd0,1)
See if that does it.
 
Old 08-12-2010, 09:51 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Agree with brucehinrichs and the menu.lst file you see is a link to the grub.conf file
 
Old 08-15-2010, 01:07 PM   #4
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
Thanks, Bruce.
Changing the timeout and commenting out the hiddenmenu works.

Last time I got the grub menu, but when I went to Windows XP, there's an Error 13. Hope I don't get it now.

I will try to get into Windows XP now and see what happens.
 
Old 08-15-2010, 01:15 PM   #5
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
New problem:
Using Grub menu doesn't boot into Windows XP, clicking on Windows XP just gets a blank screen, then gets me back to the Grub dualboot menu, not Windows XP? Using F12 at the splash screen and selecting Primary Slave Drive does work and boots into Windows XP. Should I use mapping/remapping?

Thanks.
 
Old 08-15-2010, 03:48 PM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
You are missing
Code:
chainloader +1
at the bottom of the file, below
Quote:
title Windows XP
rootnoverify (hd0,1)
 
Old 08-15-2010, 09:49 PM   #7
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
Now I get the grub menu with WinXP, but when I click and tried to load it, there's an Error 13: Invalid or unsupported executable format. I have no idea what else could be wrong. I already added the line

chainloader +1

but still get this problem.

Thanks.
 
Old 08-16-2010, 03:35 AM   #8
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
UuuuPSsss, I missed your XP is on the slave drive (top of the first post). In that case you have to use
Quote:
rootnoverify (hd1,0)
or maybe
Quote:
rootnoverify (hd1,1)
(I do not use dual boot).

If this does not help. thy adding from this:

Quote:
title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader +1

or

title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 08-23-2010, 08:55 PM   #9
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
Tried this:
title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
makeactive
chainloader +1

but I get Error 21: Selected disk does not exist.

I'll try:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

later and see what happens.
 
Old 08-25-2010, 06:43 PM   #10
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
I tried:
title Windows XP
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

And now:
I get Error 21: The selected hard drive does not exist[Windows XP hard drive: Primary Slave drive],
plus
I get all three OSes selections: old version of Fedora, new version of Fedora & Windows XP.
 
Old 08-26-2010, 10:28 AM   #11
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
What about clean code like this:
Code:
title Windows XP
rootnoverify (hd1,0)
chainloader +1
or
Code:
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
maybe those swaps do something to it.

One other thing crossed my mind. Take a look at /boot/grub/device.map file. I believe you need one extra row for "hd1". Since you added HDD later, grub might not have it in device map file and even my previos examples might work out of the box after you fix device.map file.

Last edited by DrLove73; 08-26-2010 at 10:35 AM.
 
Old 09-06-2010, 04:54 PM   #12
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
tried the rest of the posts, but none worked: Everything says "Error 21: The selected hard drive does not exist"
 
Old 09-06-2010, 08:12 PM   #13
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Sorry did not see it was marked solved.

Last edited by Larry Webb; 09-06-2010 at 08:16 PM.
 
Old 09-07-2010, 05:57 AM   #14
trien27
Member
 
Registered: Feb 2005
Location: NYC
Distribution: Fedora 14
Posts: 195

Original Poster
Rep: Reputation: 15
I initially thought the problem was solved. I kind of did things too quickly. It still is NOT solved.
 
Old 09-07-2010, 06:25 AM   #15
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I have read the posts and I am confused. In fedora from terminal as root run command fdisk -l and post the results. Your original grub menu has XP on the second partition of the primary drive but above you say it is on slave.
 
  


Reply



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
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does.. wiliweld *BSD 7 05-03-2010 01:05 PM
[SOLVED] Dual boot, grub doesn"t show vista, no menu.lst mike11 Linux - Newbie 4 11-22-2009 07:56 PM
GRUB does not show windows in boot menu mansoor323 Linux - Newbie 1 09-11-2009 10:31 PM
Why kernel didn't show in GRUB menu? yzhong Linux - Newbie 1 11-27-2008 05:31 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration