Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Hi! I added Fedora 12 in one new partition and after installation and reboot, grub only showed the new Fedora 12 and my XP. And so I did the following: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274

    Grub Help Please


    Hi!

    I added Fedora 12 in one new partition and after installation and reboot, grub only showed the new Fedora 12 and my XP.

    And so I did the following:

    Code:
    grub> find /boot/grub/stage1
     (hd0,4) 
     (hd0,7)
     (hd0,8)
    
    grub> root (hd0,7)
    
    grub> setup (hd0)
     Checking if "/boot/grub/stage1" exists... yes
     Checking if "/boot/grub/stage2" exists... yes
     Checking if "/boot/grub/e2fs_stage1_5" exists... yes
     Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  19 sectors are embedded.
    succeeded
     Running "install /boot/grub/stage1 (hd0) (hd0)1+19 p (hd0,7)/boot/grub/stage2
    /boot/grub/menu.lst"... succeeded
    Done.
    
    grub>
    Now, I was able to bring back the Grub menu to show everything except the Fedora 12.

    hd0,4 is Fedora 10
    hd0,8 is Fedora 12
    hd0,7 is Mint 7 - This is where I want to install Grub.

    Code:
    jun@jun-laptop ~ $ sudo fdisk -l
    
    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xc5e3f820
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1930    15502693+   7  HPFS/NTFS
    /dev/sda2            1931       15817   111547327+   5  Extended
    /dev/sda3           15818       29555   110350485    7  HPFS/NTFS
    /dev/sda4           29556       30401     6795495   82  Linux swap / Solaris
    /dev/sda5            1931        3835    15301881   83  Linux
    /dev/sda6            9778       14512    38033856   83  Linux
    /dev/sda7            3836        5224    11157111   83  Linux
    /dev/sda8            5225        9777    36571941   83  Linux
    /dev/sda9   *       14513       15817    10481663+  83  Linux
    
    Partition table entries are not in disk order
    jun@jun-laptop ~ $
    May I ask for some guidance on how to properly repair my grub and be able to show everything please

    Thanks!
    nujinini
    Linux User #489667

  2. #2
    Linux Guru
    Join Date
    Jul 2008
    Posts
    4,201
    I am still learning grub 2 myself nujinini. And being a Debian type guy. I am not well versed in rpm distros. To make a long story short. Super Grub Disk is now getting into grub 2 isos. Just in case you didn't know.

    Please help test Super GRUB2 Disk 1.98s1 RC1

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Isn't GRUB Legacy default Boot Loader of Fedora 12?

    hd0,7 is Mint 7 - This is where I want to install Grub.
    I am not getting it. Do you want to use GRUB of Mint instead of Fedora? You can install Mint 7's grub and entries of Fedora 12 and 10 in its menu easily.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Isn't GRUB Legacy default Boot Loader of Fedora 12?
    Yes dc, It's using GRUB Legacy.

    I am not getting it. Do you want to use GRUB of Mint instead of Fedora?
    I notice that if I install Fedora last, it does not show the other linux OS in Grub. Only XP.
    Unlike in the other OS I tried. That' the only reason why I want to use Mint's Grub.It shows everything except now. It did not show my freshly installed Fedorq 12.

    You can install Mint 7's grub and entries of Fedora 12 and 10 in its menu easily.
    I would love to learn how to this please!
    nujinini
    Linux User #489667

  6. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    I notice that if I install Fedora last, it does not show the other linux OS in Grub. Only XP.
    This a problem with all RedHat based distros. Installer detects all OSes except Linux. I don't understand why Fedora Team has removed Linux detection from its installer explicitly.

    There are a lot of ways to add entries of Fedora OS in Mint Menu.


    1) Mount / partition of Fedora 12, copy first title block (title, kernel and root lines) from its grub.conf file and paste in menu.lst file of Mint.

    Or

    2) Install Fedora's GRUB in boot sector of its root partition and chainload it. You can install GRUB in boot sector during or after installation.

    Boot up in Rescue mode using Fedora 12 Installation CD/DVD and execute grub command in Rescue Shell.
    Code:
    grub
    grub>root (hd0,8)
    grub>setup (hd0,8)
    exit
    exit
    Above code will install GRUB of Fedora 12 in its boot sector instead of MBR.
    Add this code in menu.lst file of Mint :
    Code:
    title Fedora 12
    rootnoverify (hd0,8)
    chainload +1
    On selecting Fedora 12 in GRUB Menu of Mint, GRUB Menu of Fedora 12 will appear. You can set hiddenmenu option and timeout=1 in Fedora's grub.conf file to make it invisible.

    Second method is a bit lengthy but it has a few advantages. You don't have to edit Mint's menu.lst file after updating kernel of Fedora. Mint is calling (chainloading) Fedora's GRUB and whenever you update Fedora, its GRUB will be updated. No need to change anything anywhere.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #6
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    I chose the 2nd option and was able to do it.

    Code:
    Boot up in Rescue mode using Fedora 12 Installation CD/DVD and execute grub command in Rescue Shell.
    Code:
    
    grub
    grub>root (hd0,8)
    grub>setup (hd0,8)
    
    quit
    Then I boot into Mint and I added this code in menu.lst file and since this was added in the end of the list I also added divider:

    Code:
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda9.
    
    title Fedora 12
    rootnoverify (hd0,8)
    chainload +1
    After I made a reboot, the Fedora 12 was already included in the list of Mint Grub.
    When I clicked on it, it gave me another menu.
    And when I clicked on Fedora 12 again, it did not boot but just remained as it is.

    Do you think I made a mistake somewhere?
    nujinini
    Linux User #489667

  8. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the contents of Mint's menu.lst file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #8
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Hello,

    Here it is :

    Code:
    title           ( 1 ) Mint Gloria (Linux)
    root            (hd0,7)
    kernel          /boot/vmlinuz-2.6.28-18-generic root=/dev/sda8 ro quiet splash
    initrd          /boot/initrd.img-2.6.28-18-generic
    quiet
    
    title           *******Linux Mint 7 Gloria, kernel 2.6.28-18-generic (recovery $
    root            (hd0,7)
    kernel          /boot/vmlinuz-2.6.28-18-generic root=/dev/sda8 ro single
    initrd          /boot/initrd.img-2.6.28-18-generic
    
    #title          Linux Mint 7 Gloria, kernel 2.6.28-11-generic
    root            (hd0,7)
    kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro quiet splash
    initrd          /boot/initrd.img-2.6.28-11-generic
    quiet
    
    #title          Linux Mint 7 Gloria, kernel 2.6.28-11-generic (recovery mode)
    root            (hd0,7)
    kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/sda8 ro single
    initrd          /boot/initrd.img-2.6.28-11-generic
    
    title           *******Linux Mint 7 Gloria, memtest86+
    root            (hd0,7)
    kernel          /boot/memtest86+.bin
    quiet
    
    ### 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           ( 2 ) XP (Windoze)
    rootnoverify    (hd0,0)
    savedefault
    makeactive
    chainloader     +1
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda5.
    title           ( 3 ) Fedora Cambridge (Linux)
    root            (hd0,4)
    kernel          /boot/vmlinuz-2.6.27.41-170.2.117.fc10.i686 ro root=UUID=2776ef$
    initrd          /boot/initrd-2.6.27.41-170.2.117.fc10.i686.img
    savedefault
    boot
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda7.
    title           ( 4 ) Ubuntu Karmic Koala & Studio Hybrid (Linux)
    root            (hd0,6)
    kernel          /boot/vmlinuz-2.6.31-20-generic root=UUID=62310446-d606-4c7a-81$
    initrd          /boot/initrd.img-2.6.31-20-generic
    savedefault
    boot
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda7.
    #title          Ubuntu, Linux 2.6.31-20-generic (recovery mode) (on /dev/sda7)
    root            (hd0,6)
    kernel          /boot/vmlinuz-2.6.31-20-generic root=UUID=62310446-d606-4c7a-81$
    initrd          /boot/initrd.img-2.6.31-20-generic
    savedefault
    boot
    
    # This entry automatically added by the Debian installer for an existing
    # linux installation on /dev/sda9.
    title Fedora 12
    rootnoverify (hd0,8)
    chainload +1
    nujinini
    Linux User #489667

  10. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Is it a fresh install of Fedora 12? Did it boot up fine earlier?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,274
    Yes its a fresh install. It boots up fine.
    nujinini
    Linux User #489667

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •