You are not logged in.

#1 2009-08-23 21:33:56

neuwerld
Member
From: Sweden
Registered: 2009-03-13
Posts: 75
Website

Need help with grub menu.lst [SOLVED]

Hey there!

I would need some help with the setting up of my grub´s menu.lst.
On my computer I first installed Arch then installed centos, I want them to run dualbooted. But when I installed centos it wrote over my previous grub and now I can only boot centos.
Here is a layout of my partitions on my disk, I only got 1 disk:

Arch partitions:
/dev/sda1    ext4     93.13GB     /
/dev/sda2    ext4     1,5 GB       /boot
/dev/sda3    swap       5GB          swap

Centos partitions:
/dev/sda4   extended     198.43GB
        /dev/sda5     ext3      102MB    /boot
        /dev/sda6     unknown      198.34GB     lvm flaged

I got this with gparted.

Here is the menu.lst that I have tried to config to my pleasure:

# 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,4)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.4.1.el5.centos.plus)
    root (hd0,4)
    kernel /vmlinuz-2.6.18-128.4.1.el5.centos.plus ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.18-128.4.1.el5.centos.plus.img



title CentOS (2.6.18-128.el5)
    root (hd0,4)
    kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.18-128.el5.img



title Arch Linux
    rootnoverify (hd0,1)
    kernel /vmlinuz26 root=/dev/sda2
    initrd /kernel26.img

If there is something that I have forgotten please let me know smile

Thanks in advance!
/Neuwerld

Last edited by neuwerld (2009-08-23 23:23:14)

Offline

#2 2009-08-23 21:39:51

OneEyedPimp
Member
Registered: 2008-05-02
Posts: 103

Re: Need help with grub menu.lst [SOLVED]

Edit:

It looks like Centos overwrote Arch's boot settings. All you need to do is boot into Centos, mount /dev/sda2 and copy any file named /vmlinuz26 and kernel26.img and put them in the /boot of cent(sda5). I can help more if you post the contents of sda2...

then it _should_ look like this

title Arch
    root (hd0,1)
    kernel /vmlinuz26 root=/dev/sda1 ro
    initrd /kernel26.img

Edit Edit: Made it more clear

Last edited by OneEyedPimp (2009-08-23 21:47:48)

Offline

#3 2009-08-23 22:20:10

neuwerld
Member
From: Sweden
Registered: 2009-03-13
Posts: 75
Website

Re: Need help with grub menu.lst [SOLVED]

I can´t mount my sda2 because centos doesnt support ext4, I read this in a forum:

Grub currently doesn't have support for ext4 partitions. If you have a separate /boot partition, leave it as ext3, and your root partition can be ext4. Plus ext4 and ext3 are forward/backward compatible (for basic features) so upgrading is pretty straightforward.

So I am lost here, what shall I do?

Isn´t it possible to remove the partitions from sda4 to sda6 and just install grub on the sda2 partiton again or something?

/Neuwerld

Last edited by neuwerld (2009-08-23 22:21:18)

Offline

#4 2009-08-23 23:17:49

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Need help with grub menu.lst [SOLVED]

Grub currently doesn't have support for ext4 partitions

arch's grub boots ext4 partitions. I would read the wiki on installing grub to mbr using the grub from arch and NOT centos. Just use the livecd with arch's patched version of grub. that should be enough to get your booting arch again.

Last edited by jacko (2009-08-23 23:18:46)

Offline

#5 2009-08-23 23:22:46

neuwerld
Member
From: Sweden
Registered: 2009-03-13
Posts: 75
Website

Re: Need help with grub menu.lst [SOLVED]

jacko wrote:

Grub currently doesn't have support for ext4 partitions

arch's grub boots ext4 partitions. I would read the wiki on installing grub to mbr using the grub from arch and NOT centos. Just use the livecd with arch's patched version of grub. that should be enough to get your booting arch again.

Just did that and will see if I can get it to play with this grub instead smile

Offline

Board footer

Powered by FluxBB