LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   GRUB configuration for dual Linux install (https://www.linuxquestions.org/questions/linux-general-1/grub-configuration-for-dual-linux-install-809430/)

dchester11 05-22-2010 03:23 AM

GRUB configuration for dual Linux install
 
Hello all

I am attempting to install Fedora 12 and Mint Isadora on the same hard drive. My other hard drive is a Windows install

I installed Fedora with the GRUB loader leaving free space on the drive for Mint. I installed Mint on the free space, skipping the Mint Boot loader install.

I can boot Fedora and Windows ok.

I booted Fedora, mounted /dev/sdb4 (the Mint partition) to /mnt and copied these files to /boot
  • vmlinuz-2.6.32-21-generic-mint
  • System.map-2.6.32-21-generic
  • initrd.img-2.6.32-21-generic

Here is my /boot/grub/menu.lst
Code:

# 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/mapper/vg_fedoralt-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Mint Isadora
        root (hd0,4)
        kernel (hd0,0) /vmlinuz-2.6.32-21-generic-mint root=/dev/hd4
        initrd /initrd.img-2.6.32-21-generic

title Fedora (2.6.31.5-127.fc12.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_fedoralt-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
        initrd /initramfs-2.6.31.5-127.fc12.i686.img

title Windows
        rootnoverify (hd1,0)
        chainloader +1

When I try to load Mint I get an Error Code 1

Can anyone help me out with this.

I have tried multiple suggestions and tried to get through the grub docs but am pretty bogged down in it.

Thanks in advance.

zeno0771 05-22-2010 03:40 AM

GRUB error 1 is "Filename must be either an absolute filename or blocklist"

I'm curious as to why...
Code:

title Mint Isadora
        root (hd0,4)
        kernel (hd0,0) /vmlinuz-2.6.32-21-generic-mint root=/dev/hd4
        initrd /initrd.img-2.6.32-21-generic

root=/dev/hd4... Shouldn't that be "hda4"?
With that, I think the "(hd0,0)" in the kernel line is redundant.

ronlau9 05-22-2010 04:01 AM

title Mint Isadora
root (hd0,4)
kernel (hd0,0) /vmlinuz-2.6.32-21-generic-mint root=/dev/hd4
initrd /initrd.img-2.6.32-21-generic
Thanks in advance.[/QUOTE]

Assuming that Mint is on (hd0,4) than should it not be kernel(hd0,4) and root=/dev/hd0,4
But this notification means that Mint is on partition 5 of the first boot HD

dchester11 05-22-2010 08:05 PM

2 Attachment(s)
I changed my menu.lst to this. I'm not sure i totally understood or did it correctly though. I am now getting Error 15.
Code:

...
title Mint Isadora
        root (hd0,4)
        kernel /vmlinuz-2.6.32-21-generic-mint root=/dev/sdb4
        initrd /initrd.img-2.6.32-21-generic
...

I added attachments of screenshots of how the Fedora installer says my drives are set up. I would have thought that the Linux drives would be (hd1,0),(hd1,1), etc. since they are on the sdb1,sdb2,etc. But the auto generated menu.lst from Fedora set it at (hd0,x) so I just continued with that.

brucehinrichs 05-22-2010 09:10 PM

Try:
Code:

title Mint Isadora
        root (hd0,3)
        kernel /vmlinuz-2.6.32-21-generic-mint root=/dev/sdb4
        initrd /initrd.img-2.6.32-21-generic

Grub1 starts counting drives and partitions from 0. Therefore first drive, fourth partition is (hd0,3)

If that doesn't work then try:
Code:

title Mint Isadora
        root (hd0,3)
        kernel /boot/vmlinuz-2.6.32-21-generic-mint root=/dev/sdb4
        initrd /boot/initrd.img-2.6.32-21-generic

You said in your first post:

Quote:

...copied these files to /boot

* vmlinuz-2.6.32-21-generic-mint
* System.map-2.6.32-21-generic
* initrd.img-2.6.32-21-generic
You may have to preface your kernel and initrd entries with /boot for grub to find them.

dchester11 10-07-2010 06:00 PM

Excellent. That worked. Ty


All times are GMT -5. The time now is 01:03 AM.