Re: How to boot second grub?

av1_at_ansae.com
Date: 05/01/05

  • Next message: Jeff Vian: "Re: Presentations using FC3"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sun, 01 May 2005 12:18:51 -0400
    
    

    Thanks for the info, Scott. Unfortunately I'm still stuck.

    When I installed the second fc3 on /dev/hdb, I did tell the installer to put
    a grub on the first sector of the root partition on /dev/hdb. (I installed
    the second fc3 in one partition instead of separate / and /boot partitions.)
    I booted the first fc3 and temporarily mounted /dev/hdb1 to see what the
    installer did. It did install grub in /boot/grub on hdb1.

    It gets weirder though. I took your suggestion of running grub-install
    /dev/hdb anyway. (On the theory the installer copied the grub files but did
    not set up the first sector of hdb.) Now when I boot the machine, and it
    tries to boot the original grub on the mbr of hda, it goes into an infinite
    loop printing "GRUB GRUB GRUB GRUB..." across the screen. Looks like I'll
    need to boot into an emergency Linux from the CD and figure out what went
    wrong.

    Maybe I missed something. Starting from square one, with a clean fc3 on
    /dev/hda, and an empty, unformatted /dev/hdb, I'd like to do this: install a
    new, self-contained fc3 with its own grub on /dev/hdb, and chainload from
    the first grub on hda to the second one on hdb. What's the right way to set
    up the second fc3 so I can do this?

    Thanks for your advice

     --Cliff

    Scott Talbot writes:

    > On Sat, 2005-04-30 at 11:23 -0400, av1@ansae.com wrote:
    >> Very sorry, my finger hit "send" too fast and I forgot to type a subject.
    >>
    >> I've been able to set up two FC3's with a single grub, but what I'd really
    >> like to do is set up a second grub and have the first chainload to the
    >> second. (I want to play with custom kernels on the second.)
    >>
    >> I have two ide's, hda and hdb. My first fc3 is on hda. I tried installing
    >> the second fd3 with /boot on hdb1 and / on hdb2. I told anaconda to put the
    >> second grub on the mbr and used the advanced bootloader screen to reorder
    >> the drives so it would write it to hdb instead of hda.
    >>
    >> After installing, I went to my first grub.conf and added
    >>
    >> title Second Fedora
    >> rootnoveriy (hd1,0)
    >> chainloader +1
    >>
    >> But when I reboot and select Second Fedora, I get Error 13 invalid or
    >> unsupported executable format. What did I do wrong? What's the right way to
    >> set this up?
    >>
    >> --Cliff
    >>
    >
    > Cliff:
    >
    > You need to have a copy of grub in the /boot directory (or / if you
    > didn't make a new /boot).
    >
    > assuming grub's hd1,0 is = to hdb1 you'll want to boot into your new
    > FC3 and perform grub-install /dev/hdb1
    >
    > You now won't be able to get to your old install, so you'll have to
    > boot a rescue cd, chroot into your old install, and perform the grub-
    > install to wherever that bootstrap is (/dev/hda is the MRB and the most
    > usual place).
    >
    > HTH
    >
    > Scott
    >
    >
    > --
    > fedora-list mailing list
    > fedora-list@redhat.com
    > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
     

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jeff Vian: "Re: Presentations using FC3"

    Relevant Pages

    • Re: SATA drive probs: Knoppix OK, but nothing else
      ... (and according to the grub manual that error means grub is halting because ... it is trying to mount an existant partition but the partition is formatted ... issue with Debian and this drive...:-(..was attemtping this all with Debian ... try running the grub installer from ...
      (Debian-User)
    • Re: MBR Confusion
      ... AMD64 box into the debian installer, and installed a fresh i386 etch ... Now I can't boot my box without the external drive attached, ... grub complains with "error 21." ...
      (Debian-User)
    • RE: Help
      ... both OS's and you don't have a grub menu. ... In my case, the installer got ... it finds every OS that it can that are on your drives, ... even though no operating system exists on these partitions. ...
      (Ubuntu)
    • Re: Help
      ... both OS's and you don't have a grub menu. ... In my case, the installer got ... it finds every OS that it can that are on your drives, ... even though no operating system exists on these partitions. ...
      (Ubuntu)
    • GRUB on x86_64
      ... Is a new GRUB for FC3 going to released that fixes the segfault on ... I found a patch in the GRUB bug tracking system that fixes the problem ... I couldn't even rebuild ...
      (Fedora)