Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th August 2009, 08:36 PM
shahdharmit Offline
Registered User
 
Join Date: Oct 2008
Location: Ahmedabad, India
Posts: 289
linuxfedorafirefox
Unhappy Need to edit grub.conf

Hello..

I installed CentOS 5.3 in my laptop few hours back and chose not to install boot loader as I already had one in Fedora 11. My Fedora 11 is running perfectly but the issue is that I can't get a option in boot loader to boot CentOS. Can anyone please help me out. Below is the detail for CentOS that I myself wrote in grub.conf:
Quote:
title CentOS
root (hd0,3)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/sda4 rhgb quiet
initrd /initrd-2.6.18-128.el5.img
Thanks
__________________
Registered Linux User #503191

JUST DO IT.....!!!! :cool:
Reply With Quote
  #2  
Old 14th August 2009, 09:52 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxmozilla
Have you commented #hiddenmenu and adjusted the timeout to >0?

Last edited by sonoran; 14th August 2009 at 09:54 PM.
Reply With Quote
  #3  
Old 14th August 2009, 10:45 PM
bbfuller Offline
Registered User
 
Join Date: Jun 2005
Location: UK
Posts: 4,347
linuxopera
Hello shahdharmit

I've got CentOS working here as a third OS alongside Windows XP and Debian on the same disk.

I agree with sonoran about the need to edit menu.lst to comment out "hiddenmenu" and make the timeout a setting where you will be able to see the boot menu entries.

In the case of Debian, it automatically detected the CentOS and Windows installations and added them itself to "menu.lst". I do notice though that two of the lines it has entered are different to yours.

Where you have:

Quote:
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/sda4 rhgb quiet
initrd /initrd-2.6.18-128.el5.img
My "menu.lst" reads:

Code:
kernel /boot/vmlinuz-2.6.18-128.el5 ro root=/dev/sda4 rhgb quiet
initrd /boot/initrd-2.6.18-128.el5.img
I've just tried it without the "/boot" additions to those two lines and it won't start without them.

I accept that Fedora doesn't appear to need those additions but it appears that for CentOS you need to be more explicit about the path.
Reply With Quote
  #4  
Old 14th August 2009, 11:01 PM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
windows_vistafirefox
Quote:
Originally Posted by shahdharmit View Post
Hello..

I installed CentOS 5.3 in my laptop few hours back and chose not to install boot loader as I already had one in Fedora 11. My Fedora 11 is running perfectly but the issue is that I can't get a option in boot loader to boot CentOS. Can anyone please help me out. Below is the detail for CentOS that I myself wrote in grub.conf:


Thanks
Just add what you have for CentOS to your /etc/grub.conf in F11 and you should be golden.
Reply With Quote
  #5  
Old 14th August 2009, 11:26 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
windows_xp_2003ie
Quote:
Originally Posted by bbfuller

I've just tried it without the "/boot" additions to those two lines and it won't start without them.

I accept that Fedora doesn't appear to need those additions but it appears that for CentOS you need to be more explicit about the path.
Hello bbfuller,

When to add /boot in a GRUB terminal command or menu command depends on whether or not there is a separate boot partition. If there is, then do not include /boot in the path. If there is not a separate boot partition, then always include /boot in the path. Therefore, I predict that your CentOS system does not have a separate boot partition. In the commented text of a Fedora grub.conf, it will say that all paths are relative to something. Sometimes it's / and sometimes it's /boot. For example...
Code:
# 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/hda7
#          initrd /initrd-version.img
...or...
Code:
# NOTICE: You do not have a /boot partition. This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,4)
#          kernel /boot/vmlinuz-version ro root=/dev/sda5
#          initrd /boot/initrd-version.img
Hey, I didn't invent it.

Quote:
Originally Posted by zackf

Just add what you have for CentOS to your /etc/grub.conf in F11 and you should be golden.
Hello zackf,

In the first post, shahdharmit said he/she chose not to install a boot loader intending to use an existing one. That's what that boot loader option is supposed to be for, I guess. But here's the thing. That usually results in no grub.conf or menu.lst being created. No GRUB stages are created. Usually nothing exists in the /boot/grub folder but the splashscreen image. So, copying menu commands is not an option. I don't think people should do that option because it forces them to hand-write menu commands for the existing boot loader's config file, and that's not always so easy to do. Next time shahdharmit wants to install that way, I recommend choosing the option to install the new system's GRUB in the first sector of its boot partition. That doesn't disturb the existing boot loader, but it preserves all the other booting options like configfile, chainloader and copying from the grub.conf because the grub.conf and the stage files are all there as usual.

Last edited by stoat; 14th August 2009 at 11:58 PM.
Reply With Quote
  #6  
Old 15th August 2009, 03:45 AM
zackf Offline
Registered User
 
Join Date: Nov 2006
Location: South Carolina
Posts: 798
linuxubuntufirefox
Quote:
Originally Posted by stoat View Post
Hello bbfuller,


Hello zackf,

In the first post, shahdharmit said he/she chose not to install a boot loader intending to use an existing one. That's what that boot loader option is supposed to be for, I guess. But here's the thing. That usually results in no grub.conf or menu.lst being created. No GRUB stages are created. Usually nothing exists in the /boot/grub folder but the splashscreen image. So, copying menu commands is not an option. I don't think people should do that option because it forces them to hand-write menu commands for the existing boot loader's config file, and that's not always so easy to do. Next time shahdharmit wants to install that way, I recommend choosing the option to install the new system's GRUB in the first sector of its boot partition. That doesn't disturb the existing boot loader, but it preserves all the other booting options like configfile, chainloader and copying from the grub.conf because the grub.conf and the stage files are all there as usual.
I misunderstood that shahdharmit manually wrote that in his F11 grub instead of taking it out of Cent. After re-reading you're absolutely right.
Reply With Quote
  #7  
Old 15th August 2009, 06:24 AM
shahdharmit Offline
Registered User
 
Join Date: Oct 2008
Location: Ahmedabad, India
Posts: 289
linuxfedorafirefox
sonoran-> As per your advise I've commented out hidden menu but I don't know it's effect is whatsoever.

bbfuller-> We've had talk earlier so you might be knowing that I already have been using F11. And CentOS was installed after that so I didn't quite get you when you mentioned that Deb could easily detect WinXP and CentOS installations. I didn't let CentOS detect my installations at all.

One more thing, I've got a huge list of kernels in grub.conf of F11 due to the updates. Now can I install a boot loader of CentOS and then add /dev/sda5 while installation so that it boots up Fedora?

I might sound idiot but I I couldn't create a /boot partition for CentOS. I tried a heck lot of times but it didn't let me do. It showed up an error that "No space left for None". That confused me. Can I use Fedora's /boot partition somehow to boot CentOS or by installing the CentOS boot loader and adding the entry for Fedora's /boot path in it will do the thing? CentOS is on /dev/sda4 and the boot partition of Fedora is on /dev/sda5.
__________________
Registered Linux User #503191

JUST DO IT.....!!!! :cool:
Reply With Quote
  #8  
Old 15th August 2009, 06:28 AM
shahdharmit Offline
Registered User
 
Join Date: Oct 2008
Location: Ahmedabad, India
Posts: 289
linuxfedorafirefox
I just read stoat's post a bit deeply and I think I've to use /boot of F11 to let CentOS boot. Thanks Stoat.
__________________
Registered Linux User #503191

JUST DO IT.....!!!! :cool:
Reply With Quote
  #9  
Old 15th August 2009, 07:10 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,136
linuxmozilla
Quote:
Originally Posted by shahdharmit View Post
I just read stoat's post a bit deeply and I think I've to use /boot of F11 to let CentOS boot. Thanks Stoat.
Hello shahdharmit,
Unless I misunderstand you, I do not think that will work. Each OS needs its own /boot directory, whether or not that is located on a separate partition. Can you look at your centOS filesystem, either from Fedora or a rescue disk or livecd, and see what is in the /boot directory?
Reply With Quote
  #10  
Old 15th August 2009, 09:26 AM
shahdharmit Offline
Registered User
 
Join Date: Oct 2008
Location: Ahmedabad, India
Posts: 289
linuxfedorafirefox
sonoran, issue solved. And I figured out the purpose of commenting out hiddenmenu. That was nice. I like it this way. I used the /boot partition of F11 to boot centOS. Just as mentioned some of the posts by other fellow members of the forum. Thanks for your help sonoran. And thanks to bbfuller, stoat and zackf. Thanks a lot guys. Btw, you can address me by "he". :-)
__________________
Registered Linux User #503191

JUST DO IT.....!!!! :cool:
Reply With Quote
Reply

Tags
edit, grubconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit grub.conf for configuring Ubuntu 9.04 shahdharmit Using Fedora 18 17th September 2009 04:22 PM
possible to edit /boot/grub/grub.conf from live cd? mailman1175 Using Fedora 4 29th December 2008 01:28 AM
How to edit your GRUB.conf gonzalo76 Guides & Solutions (No Questions) 19 30th August 2008 08:51 AM
How the hell do I edit grub.conf? RicksonCrazy Using Fedora 10 23rd April 2008 06:55 AM
GRUB won't see WinXPx64 and don't let me edit grub.conf A.N.K. Installation and Live Media 1 29th March 2006 08:23 AM


Current GMT-time: 18:52 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat