LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2011, 12:45 PM   #1
keimasi
Member
 
Registered: Dec 2010
Location: Iran, Tehran
Distribution: ubuntu
Posts: 31

Rep: Reputation: 0
correcting bootloader


Hi friends

I just Install fedora 14 on my laptop. when i restart it i cant see my other os (ubuntu) and it directly load fedora and i cant choose them,

if u can please guide me


thanks
 
Old 03-23-2011, 01:07 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
How did you install grub? You should be able to reinstall grub as root and reconfigure it.
 
Old 03-23-2011, 01:09 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Fedora's grub will not pick up ubuntu. You should have installed the fedora grub to the partition and let ubuntu take care of the MBR.
 
Old 03-23-2011, 01:11 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
No,it's just Fedoras lame defaults. When you reboot, just after the POST (hardware) messages, the screen will go blank - hit <Esc> and you should see the boot menu.
When you are in Fedora, run this from a terminal, and post the output
Code:
su -c 'grep -Ei "timeout|hidden" /boot/grub/grub.conf'
 
1 members found this post helpful.
Old 03-23-2011, 01:13 PM   #5
keimasi
Member
 
Registered: Dec 2010
Location: Iran, Tehran
Distribution: ubuntu
Posts: 31

Original Poster
Rep: Reputation: 0
i must use this?
Code:
grub-install /dev/hda
 
Old 03-23-2011, 01:38 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Try what I suggested before you start (re-)installing.
 
Old 03-23-2011, 01:39 PM   #7
keimasi
Member
 
Registered: Dec 2010
Location: Iran, Tehran
Distribution: ubuntu
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
No,it's just Fedoras lame defaults. When you reboot, just after the POST (hardware) messages, the screen will go blank - hit <Esc> and you should see the boot menu.
When you are in Fedora, run this from a terminal, and post the output
Code:
su -c 'grep -Ei "timeout|hidden" /boot/grub/grub.conf'
Code:
# su -c 'grep -Ei "timeout|hidden" /boot/grub/grub.conf'
timeout=0
hiddenmenu
 
Old 03-23-2011, 01:46 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
As root edit that file and change the timeout to say 5 (seconds) - personally I'd also comment out the hiddenmenu; just add a # character at the start of the line. That is up to you after you see the effect of the first change.
 
Old 03-23-2011, 01:48 PM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,143

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
You just need to add Ubuntu to Fedora's grub.conf

Open a terminal, enter
su -c "gedit /boot/grub/grub.conf"
and add to the end of the file

title Ubuntu
root (hd0,0)
kernel /boot/vmlinuz ro root=/dev/sda1
initrd /boot/initrd.img

This example assumes you have Ubuntu on the first partition (sda1) which grub calls (hd0,0). Alter that if it isn't there. Also, look at Ubuntu's /boot directory and check that vmlinuz and initrd haven't been given long names like "vmlinuz-2.6.32".

You also need to alter the entry timeout=0 to timeout=5 and delete "hiddenmenu".


Fedora only add Windows automatically: they can't believe that any one with Fedora would want any other Linux!

Last edited by DavidMcCann; 03-23-2011 at 01:50 PM.
 
Old 03-23-2011, 07:32 PM   #10
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
I only suggested that he reinstall grub to the partition because: when he had only ubuntu installed that had control of the MBR and it still believes it does.

When Fedora was installed, then it also installed to the MBR.

One solution is to have grub2 installed in one of the installs and not have any grub installed in the other install, just a /boot/grub/menu.lst file with correct entries in it for grub2 to pick up.

Although this does make it necessary to manually update the menu.lst with each kernel upgrade or at least update some symlinks pointing to the latest kernel and image.

As an alternative, one can install the secondary grub to the partition boot record and then the menu.lst will get automatically updated. The drawback of this option is that you have to boot the primary os and update-grub. Although this can be overcome by adding an entry in the primary grub's configuration pointing to the symlinks in the secondary. This is basically what post # is referring to. Ubuntu automatically updates symlinks with each kernel update ( although I believe that they are in / and not /boot but I am not sure)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Looking for insight on correcting this output from 'ls -l': ?--------- ? ? ? rayfordj Linux - Newbie 3 02-23-2008 10:32 PM
need help in correcting errors urgently weifeng Programming 4 02-10-2006 12:26 AM
need help in correcting errors urgently weifeng Programming 1 02-09-2006 08:18 PM
Problem Correcting Dependencies Dip Linux - Software 4 12-25-2003 08:16 AM
Correcting e-mails in Evolution 1.4.5 finrold Linux - Software 0 10-29-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:32 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