LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 09-29-2009, 07:17 AM   #1
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Rep: Reputation: 16
fedora not showing in boot menu


I have Fedora 11 installed on my pc and partitioned my hard drive to install SLED 11. I tried installing SLED with out a boot loader but it did not work. now the only OS I can boot to is SLED. How do I edit the boot loader to show and boot my Fedora partition?

thanks
 
Old 09-29-2009, 07:40 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you installed SLED and did not install a bootloader, that would mean that the Fedora loader was still in use. If SLED is the only option, that would mean you somehow reconfigured the Fedora loader to somehow show SLED but not Fedora-----this does not seem plausible.

The trick with GRUB is that it gets "hard-coded" on installation to point to the desired /boot partition.

Regardless, since you can get into SLED, I would proceed as follows:

1. Look in /boot/grub/menu.lst to confirm that you see the same boot options listed as what you see when actually booting. This confirms that we know which partition GRUB is pointed at.

2. Assuming it is in fact the SLED menu being used, simply edit it to add the entry for Fedora.

3. If it's NOT the right menu, then simply re-install GRUB from SLED and have it point to SLED's /boot. Example: suppose you have one drive (sda) and /boot is on sda3. Install grub as follows:
grub ##starts the grub shell
root (hd0,2) ##points grub at drive 1, partition #3 (grub counts from zero)
setup (hd0) ##installs grub on the MBR of drive 1

I find it convenient to alway set up aliases (soft links) in /boot so that the menu.lst can always have the same names for the kernel and initrd files.
 
Old 09-29-2009, 07:41 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
easiest would be to redo grub legacy in mbr to point to your fedora boot partition

see my signature on troubleshooter....but I gather you can boot into the other distro but claim it was installed without a bootloader?

Can you explain that a bit more please?
 
Old 09-29-2009, 07:49 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by aus9 View Post
easiest would be to redo grub legacy in mbr to point to your fedora boot partition
....and then edit the Fedora menu.lst to have an entry for SLED....

aus;
Since when is LXDE a distribution?
 
Old 09-29-2009, 07:45 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi pixellany

I assume you mean aus9....am I just a string to you as well? lol

I could leave it blank, but it focusses the mind of some ppl that LXDE is my preferred wm and I do not want to recommend my distro ...sidux...as some newbies may think.....illogically...that they should try sidux.

If I was a moderator I might think this is off topic.
 
Old 09-30-2009, 01:06 AM   #6
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
sorry I was a bit vague. I tried installing SLED without boot loader and Fedora was the only OS to boot. I then thought if there is no boot loader for SLED how would it boot so I redid the installation with a boot loader but now SLED is the only OS booting or show as an option when booting.
How do I fix the mess I made?

thanks
 
Old 09-30-2009, 03:05 AM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

ok based on your new explanation, the bootloader can point to distro one or your other one....its your choice.

There is only one mbr for each drive but each partition for linux (non-swap) can have grub in it as well.

Therefore boot up SLED and if below confuses you....post your /etc/fstab and the output of fdisk -l

Open a terminal and su to root or use sudo (command)



Code:
su
fdisk -l

(shows partition structure)

grub

find /boot/grub (assuming you are using grub legacy)

it should return 2 hd entries like hd0,0 and hd0,5 or whatever.

The first entry is your Fedora boot partition and second is your SLED one.

First we embed grub into Fed's boot partition

root (hd0,0)
setup (hd0,0)

Next we embed grub into SLED's boot partition as well...why not...no harm

root (hd0,4)
setup (hd0,4)
change to correct hd0,x as grub finds...hd0,4 assumes /dev/sda5

next edit with root powers...your /boot/grub/menu.lst to add an entry for Fedora

------
copy and paste

title Fedora
root (hd0,0)
chainloader +1

_________

But you must change hd0,0 to what is the correct outputs.

reboot to test.

2) if you can not boot into fedora...create a similar chainload to SLED

title SLED
root (hd0,4)
chainloader +1

remember grub counts from zero as per my signature.

for stuff to try out at menu stage...press C for commands and have a peek this
http://www.linuxquestions.org/questi...hooter-278748/

Last edited by aus9; 09-30-2009 at 03:06 AM.
 
Old 09-30-2009, 04:17 AM   #8
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
the fdisk -l came back like this
Device Boot Start End Blocks ID System
/dev/sda1 5951 6078 102816 83 Linux
/dev/sda2 679 13828 62251875 83 Linux
/dev/sda3 13829 14593 6144862+ 83 Linux
/dev/sda4 * 1 5950 47793343+ f W98 Ext'd (LBA)
/dev/sda5 1 262 2104452 82 Linux swap / Solaris
/dev/sda6 263 1568 10490413+ 83 Linux
/dev/sda7 1569 5950 35198383+ 83 Linux


find /boot/grub came up with Error 15: File not found.

/dev/sda1 is the boot partition for Fedora if I remember correctly.
 
Old 09-30-2009, 05:04 AM   #9
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
ok the find /boot/grub/menu.lst command pruduced (hd0,5)

when I type
root (hd0,0)
the output is Filesystem type is ext2fs, partition type 0x83

Last edited by bcbotha; 09-30-2009 at 05:07 AM.
 
Old 09-30-2009, 09:27 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,541

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Assuming you are still using the SLED bootloader, the entry aus9 posted above

Quote:
title Fedora
root (hd0,0)
chainloader +1
should work in the SLED menu.lst file if Fedora is indeed on sda1. You could also mount the sda1 parition from SLED and navigate to the /boot/grub directory of Fedora and copy the first Fedora entry from the grub.conf file in /boot/grub directory.
 
Old 10-01-2009, 01:52 AM   #11
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
I typed
Code:
root (hd0,0)
setup (hd0,0)
and now my Fedora partitions is booting again but it's not giving me any options at all it's just booting striaght into Fedora.

I booted from a Parted Magic cd I have and accessed both menu.lst's. I copied Fedora's entry into the SLED menu and the SLED entry into the Fedora menu. Was this a bad or stupid thing to do? will it help at all?

I'm wanting to be able to boot to the multiboot screen and select either Fed or SLED but at the moment Fedora boot and does not even get to the multiboot screen.
 
Old 10-01-2009, 03:05 AM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

you may have a hiddenmenu option in the Fedora menu or...you have a savedefault option.

post the output of fed's /boot/grub/menu.lst

leaping ahead..use root powers to delete any reference to savedefault or hiddenmenu

at top of menu add a new line

default 0

where grub legacy counts menu items from zero...so the first hightlighted entry will be top line...fedora

also look for timeout value...if value is 0 you have NO time to see menu and it boots the default item.

see my signature if needed
 
Old 10-05-2009, 02:57 AM   #13
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
I managed to solve my problem (temporarily or not).
I had to reinstall both OS's so I installed Fedora first and set it to boot from /dev/sda1 which is the boot partition I made for it. Then I installed SLED and let it choose where it wanted to boot from. When I rebooted I could choose SLED or Fedora /dev/sda1.
 
Old 10-07-2009, 05:52 AM   #14
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 151

Original Poster
Rep: Reputation: 16
I think I may have messed up my system again....
I had everything running well untill I resized my partitions. I made the SLED partition smaller and the Fedora partiton bigger.now when booting I get an error message saying
Code:
Error No operating system

Reboot and Select proper Boot device
or Insert Boot Media in selected Boot device and press a key
how do I rectify this problem? Niether operating system is booting.

thanks
 
Old 10-07-2009, 07:33 AM   #15
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

you resized your partitions after install I assume?

reboot into a live cd and re-install (linking grub in mbr to balance of its booting files) grub into mbr

assuming fedora is still first partition

Code:
su
grub
root (hd0,0)
setup (hd0)
quit
some live cds do not use su so try sux or sudo grub....combining sudo and grub into one line

good luck

if it works last line of messages will say succeeded
 
  


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
Installed Fedora as dual boot but Grub boot menu is not showing up nilocjin Linux - Newbie 4 06-03-2009 02:09 PM
Fedora disappeared from boot menu the-nazgul Linux - Newbie 5 05-21-2008 05:38 AM
Fedora not showing up in Boot menue satunge Fedora - Installation 6 02-02-2008 07:55 AM
Grub - Delay before showing boot menu IK81 Linux - General 3 10-02-2006 11:02 AM
boot menu no longer showing tedivm Linux - Newbie 2 08-23-2004 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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