Re: Chainloader question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sat, Nov 21, 2009 at 5:39 AM, Erik P. Olsen <epodata@xxxxxxxxx> wrote:
On 20/11/09 23:50, Mikkel wrote:
> Erik P. Olsen wrote:
>> Can a 64-bit system be chainloaded from a 32-bit?
>>
> What do you mean by chainloaded? If you are talking about a Grub,
> then it is the same for a 32 or 64 bit version of Fedora. Grub is a
> boot loader that is independent of the OS installed. (Except for
> storing its files.)
>
My setup is fairly simple. I have a running fedora 10, 32-bit version. I have
build a 64-bit fedora 12 system which I want to chainload using grub from F10.
So far I have only got the answer "Geom error" and I thought that might be due
to the different architectures.



In my case, I had to reinstall grub on the /boot partition of the chainloaded Fedoras.

First, find out where is /boot:

su -
grub
grub>find /grub/stage1
(hd0,0)
(hd1,1)
(hd2,0)
grub>quit

Then, install it on the /boot partition:

su -
grub
root (hd2,0)
setup (hd2,0)
quit

In my case, I have three disks with F10 x86_64 (hd2), F8 x86_64 (hd1) and RHEl5 (hd0).

grub is installed on the mbr in hd0 (my RHEL main disk). The other two have grub on /boot,
the way I showed you. This is my RHEL grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# 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/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=2
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-164.6.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.6.1.el5 ro root=LABEL=/ quiet
        initrd /initrd-2.6.18-164.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-164.2.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.2.1.el5 ro root=LABEL=/ quiet
        initrd /initrd-2.6.18-164.2.1.el5.img
title Fedora 10
        rootnoverify (hd2,0)
        chainloader +1
title Fedora 8
        rootnoverify (hd1,1)
        chainloader +1
title Windows XP
        map (hd0,0) (hd1,0)
        map (hd1,0) (hd0,0)
        rootnoverify (hd1,0)
        chainloader +1
title Memtest86+ (2.11)
        root (hd0,0)
        kernel --type=netbsd /elf-memtest86+-2.11


The disk with F8 will receive F12 soon, and the disk with F10 will receive F14, and so on...

I hope this helps.

--
Paulo Roma Cavalcanti
LCG - UFRJ
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux