You are not logged in.
Pages: 1
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
Thanks in advance!
/Neuwerld
Last edited by neuwerld (2009-08-23 23:23:14)
Offline
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
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
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
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
Offline
Pages: 1