Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-02-22, 10:00 PM CST
ReddiePenguin Offline
Registered User
 
Join Date: Feb 2009
Posts: 3
Configuring already installed Grub for Fedora?

I have a laptop that originally came with Windows Vista.

Though I shrunk the partition and installed Ubuntu.

Though, since there is still a fair amount of disk space left on the 160GB drive, I decided to give 20GB to the root partition of Fedora while I play with Fedora.

Now, I figured it would completely mess things up if I allowed Fedora to install GRUB, because it would probably completely FUBAR Ubuntu because it didn't see to recognize Ubuntu when it was asking to install the bootloader.

I was wondering since Fedora is installed just not accessible, should I just add Fedora to the GRUB that was installed by Ubuntu?

I don't care if I have to mess with command line or anything like that, I'm used to it. I've already compiled my own packages and installed the Distro all my friends claim is hard as heck, Gentoo.

Though, I have never had a situation like this, so I want to ask before I FUBAR my laptop setup.
Reply With Quote
  #2  
Old 2009-02-23, 04:01 PM CST
stoat Offline
Community Manager
 
Join Date: Jun 2006
Posts: 4,062
Quote:
Originally Posted by ReddiePenguin

Now, I figured it would completely mess things up if I allowed Fedora to install GRUB, because it would probably completely FUBAR Ubuntu because it didn't see to recognize Ubuntu when it was asking to install the bootloader.

I was wondering since Fedora is installed just not accessible, should I just add Fedora to the GRUB that was installed by Ubuntu?
Hello ReddiePenguin,

If that means that you chose not to install Fedora's GRUB at all, then no GRUB stages or grub.conf file were created for Fedora. But you can still boot the Fedora kernel and initial ramdisk directly from the Ubuntu menu.
  1. Boot Ubuntu and open a terminal.
  2. Mount the Fedora partition.
  3. Open Fedora's grub.conf file with a text editor.
  4. Copy the title, root, kernel, and initrd command lines for the latest Fedora kernel.
  5. Paste those lines in the Ubuntu menu.lst file.
  6. Repeat every time the Fedora kernel is updated.
Actually, some people prefer directly booting another system's kernel that way because it avoids the delay of going through the second system's menu. Another way to install Fedora without it disturbing an existing boot loader arrangement is to choose the boot loader option to install Fedora's boot loader in the first sector of the boot partition. At first Fedora will not boot, but it will when it is added to another system's boot menu. This method allows for some additional booting methods (e.g., configfile, chainloader) because GRUB stages and the grub.conf file are created.
Reply With Quote
  #3  
Old 2009-02-25, 02:34 PM CST
ReddiePenguin Offline
Registered User
 
Join Date: Feb 2009
Posts: 3
Quote:
Originally Posted by stoat View Post
Hello ReddiePenguin,

If that means that you chose not to install Fedora's GRUB at all, then no GRUB stages or grub.conf file were created for Fedora. But you can still boot the Fedora kernel and initial ramdisk directly from the Ubuntu menu.
  1. Boot Ubuntu and open a terminal.
  2. Mount the Fedora partition.
  3. Open Fedora's grub.conf file with a text editor.
  4. Copy the title, root, kernel, and initrd command lines for the latest Fedora kernel.
  5. Paste those lines in the Ubuntu menu.lst file.
  6. Repeat every time the Fedora kernel is updated.
Actually, some people prefer directly booting another system's kernel that way because it avoids the delay of going through the second system's menu. Another way to install Fedora without it disturbing an existing boot loader arrangement is to choose the boot loader option to install Fedora's boot loader in the first sector of the boot partition. At first Fedora will not boot, but it will when it is added to another system's boot menu. This method allows for some additional booting methods (e.g., configfile, chainloader) because GRUB stages and the grub.conf file are created.

I like the first sector id, but one small problem left for me, how do you tell Ubuntu's Bootloader on the MBR to go to Fedora's boot menu, so far I just have Ubuntu and Vista in it's menu.
Reply With Quote
  #4  
Old 2009-02-25, 03:52 PM CST
stoat Offline
Community Manager
 
Join Date: Jun 2006
Posts: 4,062
Quote:
Originally Posted by ReddiePenguin

how do you tell Ubuntu's Bootloader on the MBR to go to Fedora's boot menu, so far I just have Ubuntu and Vista in it's menu.
Ubuntu's boot loader in the master boot record will continue to do what it always had been doing: load and execute subsequent Ubuntu GRUB stages that eventually lead to the Ubuntu menu being shown. It's the Ubuntu GRUB menu that is being adjusted in your situation. I know of three ways to launch Fedora from the Ubuntu menu...
  1. The direct method. It works by directly loading and executing the Fedora kernel and initial ramdisk just like Ubuntu starts its own kernel. Good for when Fedora's GRUB was not installed meaning there are no GRUB stages or grub.conf for the Fedora system. Also good for faster booting because it skips the delay of the Fedora splashscreen and/or menu and/or countdown. Bad when Fedora's kernel gets updated because it breaks and requires editing. Bad if there is no Fedora grub.conf because the kernel and initrd menu command lines then have to be hand-written from scratch (not so easy to do sometimes). To force Anaconda to create a grub.conf when Fedora is installed, choose the GRUB boot loader option to install the boot loader in the first sector of the boot partition. That will not harm the existing boot loader arrangement, but it ensures that a grub.conf is created for Fedora which allows simple copying of the menu entries from the grub.conf to Ubuntu's menu.lst (easier by far). Example (just typical) of what goes in the Ubuntu menu.lst...
    Code:
    title Fedora (2.6.27.12-170.2.5.fc10.i686)
    root (hd1,4)
    kernel /boot/vmlinuz-2.6.27.12-170.2.5.fc10.i686 ro root=/dev/sdb5 rhgb quiet vga=0x318
    initrd /boot/initrd-2.6.27.12-170.2.5.fc10.i686.img
  2. The configfile command. It works by reloading the GRUB menu with Fedora's grub.conf information. Requires the Fedora GRUB boot loader be installed in the first sector of the boot partition in order to force Anaconda to create a grub.conf for Fedora. Good because it is "immune" to breakage by Fedora kernel updates. Example (just typical) of what goes in the Ubuntu menu.lst...
    Code:
    title Fedora
    configfile (hd1,4)/grub/grub.conf
    If Fedora does not have a separate boot partition, then do it like this...
    Code:
    title Fedora
    configfile (hd1,4)/boot/grub/grub.conf
  3. The chainloader command. It works by loading and executing the boot sector code of the Fedora partition. Therefore this method requires that Fedora's GRUB boot loader be installed in the first sector of the boot partition during installation. Good because it is "immune" to breakage by Fedora kernel updates. Example (just typical) of what goes in the Ubuntu menu.lst...
    Code:
    title Fedora
    chainloader (hd1,4)+1

P.S.: How to install Fedora's GRUB boot loader in the first sector of the boot partition.

Last edited by stoat; 2009-02-25 at 05:34 PM CST.
Reply With Quote
  #5  
Old 2009-02-26, 10:38 AM CST
ReddiePenguin Offline
Registered User
 
Join Date: Feb 2009
Posts: 3
Thank You

Thank You, so much for your elaborate and detailed answer.

That was way more than I asked for, but definitely glad I got all of that. It really helps me better understand boot loaders, which always were somewhat hazy for me.
Reply With Quote
Reply

Tags
configuring, fedora, grub, installed

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
Installed fedora, lost access to ubuntu - grub edit liam.lah Installation Help 29 2009-10-16 12:08 PM CDT
Installed Fedora 9, but GRUB won't load... dmivor Installation Help 10 2008-10-11 06:17 PM CDT
GRUB didn't install when I installed Fedora 9? Please Help! CJay Installation Help 5 2008-10-05 10:56 AM CDT
my computer wont boot after i installed fedora C5 GRUB errors. roodi2005 Installation Help 2 2006-10-30 10:00 AM CST
Installed Fedora Core 5 on Secondary SATA HD, Grub Won't Install riomx Installation Help 6 2006-08-06 08:50 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 11:55 AM CST.

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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to NLP-er enjoy automatic translations (vBET 2.3.8)