LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
LinkBack Search this Thread
Old 11-22-2009, 06:03 AM   #1
caljundi
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
No windows in grub list after fedora installation


Hello,
I installed fedora 11 on a machine that has windows XP. When trying to reboot, pressing any key on the grub screen (to chose the OS: fedora or windows) does nothing. The timer continues till 0 and then boots on linux. Meaning that it does not give me the possibility to chose the OS. This is what fdisk gives:

# fdisk -l

Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb2c379ea

Device Boot Start End Blocks Id System
/dev/sda1 6605 38913 259522042+ f W95 Ext'd (LBA)
/dev/sda2 1 6604 53046598+ 7 HPFS/NTFS
/dev/sda5 6605 22764 129805168+ 7 HPFS/NTFS
/dev/sda6 * 22765 22790 204799+ 83 Linux
/dev/sda7 22790 38658 127463423+ 83 Linux
/dev/sda8 38658 38913 2047999+ 83 Linux

Partition table entries are not in disk order

And this is my grub.conf:

cat /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,5)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=20
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.29.4-167.fc11.i686.PAE)
root (hd0,5)
kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=UUID=dab8f1db-d3c2-477d-b363-bfb8b5bffa49 rhgb quiet
initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img
title Other
rootnoverify (hd0,0)
chainloader +1

Any help about how can I boot windows is highly appreciated.
 
Old 11-22-2009, 07:26 AM   #2
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Ubuntu 9.10
Posts: 288

Rep: Reputation: 32
I have only just started playing with bootloaders, so all of this is "imho" but have a suggestion for you.
Basically, grub install looks at the MBR, and if it sees a reference to another OS that it doesn't understand, you get the "chainloader + 1" which means that if you choose this option, menu.lst has passed the boot instructions back to the original MBR, located on the 1st block (the +1 code) on the device referred to (hd0,0 = say sda1,1 in normal speak).
OK that is the largest of the 3 windows partitions but maybe it isn't the one that contains the OS?

Try adding stanzas to menu.lst say:

Code:
title Other2
rootnoverify (hd0,1)
chainloader +1

title Other3
rootnoverify (hd0,2)
chainloader +1
One of these is the restore partition. The other might be data ie "D" in w$

Another possibility- I don't think this is the case or you would have said, but when you install a 2nd or 3rd etc Linux OS, the MBR hands over to the menu.lst in the latest OS. So the menu.lst you are quoting may be inactive.

Last edited by sonichedgehog; 11-22-2009 at 07:28 AM. Reason: afterthought
 
Old 11-23-2009, 01:34 AM   #3
caljundi
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply,

Quote:
Originally Posted by sonichedgehog View Post

Try adding stanzas to menu.lst say:

Code:
title Other2
rootnoverify (hd0,1)
chainloader +1

title Other3
rootnoverify (hd0,2)
chainloader +1
One of these is the restore partition. The other might be data ie "D" in w$
I am sorry if I missed to mention that I tried (hd0,1) and (hd0,2) (not in the elegant way mentioned in your post) but it did not work!

Quote:
Originally Posted by sonichedgehog View Post
Another possibility- I don't think this is the case or you would have said, but when you install a 2nd or 3rd etc Linux OS, the MBR hands over to the menu.lst in the latest OS. So the menu.lst you are quoting may be inactive.
No, I only have one linux OS on my machine.

Any other ideas? Thank you in advance.
 
Old 11-23-2009, 07:11 PM   #4
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Ubuntu 9.10
Posts: 288

Rep: Reputation: 32
EDIT: try to get into W$ manually first, thus:
(switch on) at grub screen press c. You will get

Code:
GRUB>
enter
Code:
root (hd0,0)
could be (hd0,1) or even (hd0,2) as we said.
on next prompt:
Code:
chainloader +1
on next: I did
Code:
makeactive
but might not be necessary
on next:
Code:
boot
That might take you into w$. I mentioned this below but now I've tried it myself, than checked that it had not altered anything. It's OK. A bit longwinded but safer than the alternatives. (end of EDIT)

This can be complicated. Take a look at
http://www.linuxquestions.org/questi...ystems-754961/

the best part is the grub tutorial, not mine. I was rambling on about the potential problems.

Part of the skill with Linux is knowing how deep you can go without getting into trouble. I would be very careful unless you have a reliable w$ restore disk- if the MBR is messed up then your restore utility (F8,F9, whatever) might not work. You can always get Linux back but W$ is harder to restore. Editing grub and using setup to edit the MBR could leave you in trouble. Of the following, the direct boot from the grub command line is the safest.

I am using Ubuntu, but grub should follow similar principles. Here is part of my menu.lst, just after the last of the ubuntu stanzas:
Code:
### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Windows Vista (loader)
rootnoverify	(hd0,0)
savedefault
chainloader	+1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title		Microsoft Windows XP Home Edition
rootnoverify	(hd0,1)
savedefault
chainloader	+1
I note that your grub.conf does not have the "savedefault", as a long shot it might be worth adding that. Don't change the system generated grub.conf without backing it up. (If it goes wrong and you can't boot then you will need to restore it from a live session, don't try that unless you are confident).Then run update-grub.

Try getting into w$ manually, thus:
"You can also do this while booting the computer, without editing the menu. When the original GRUB comes up, press C to reach the command line. And then:
root (hdX,Y)
chainloader +1 "

(If you get back into w$, you might want to fdisk /mbr) ON SECOND THOUGHTS this is a last resort,only use it if you want to completely remove linux from the MBR.

As you have a big HD, you might consider installing a simple OS that uses grub eg debian, ubuntu. That should pick up your fedora system, and W$. Make a 7gB partition for it, use your existing swap.

Last edited by sonichedgehog; 11-23-2009 at 07:37 PM. Reason: further advice
 
Old 12-05-2009, 03:49 AM   #5
caljundi
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hello,

The institution where I work was off for the past week! Sorry if I did not response as fast as I should.

I installed an ubuntu on my machine, so I have now 3 OSs and I realise that my problem is related to the keyboard. I mean, in fact with either grubs (fedora's and ubuntu's) I can not use the arrows to go to the OS choices screen! However, if in grub.conf or menu.lst I change the default OS I can boot on whatever OS I want(fedora, ubuntu and windows)! And the keyboard works very normally after booting on all of them!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 6. No grub after installation mderdem Fedora 6 04-14-2007 02:55 AM
How to reinstall GRUB after WIndows installation Oracbase Linux - Software 9 11-18-2005 08:43 PM
new windows installation + old grub Ian_Hawdon Linux - Software 1 10-01-2004 05:39 PM
How to reaload GRUB after Windows XP re-installation? bioinfo Linux - General 30 09-19-2004 09:22 AM


All times are GMT -5. The time now is 02:25 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
Open Source Consulting | Domain Registration