Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay on /dev/sda
sda1 is windows xp
sda2 slackware /boot /system files
sda3 slackware swap
sda5 Centos LVM
Now my question is when I install CentOS grub did not automaticly setup the slackware partition and I have to configure it manually.
And I am a little lost.
This is my grub.conf file
Quote:
[root@centos ~]# cat /boot/grub/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,4)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol01
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.el5)
root (hd0,4)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol01 rhgb quiet
initrd /initrd-2.6.18-92.el5.img
title Slackware
root (hd0,1)
kernel /vmlinuz-generic-2.6.29.6
title Other
rootnoverify (hd0,0)
chainloader +1
So Slackware /boot is on sda2 (To grub, this is (hd0,1))
Suppose that the kernel image is named "vmlinuz", and the initrd image is named "initrd" **.
the grub menu.lst entry will be:
title Slackware
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 ro
initrd /boot/initrd
**I always set up soft links in /boot so that these exact names can be used in the config files. This way, I never have to keep track of the exact file names.
for your grub kernel entry use the following:
kernel /boot/vmlinuz root=/dev/hda2 ro
or
kernel /boot/vmlinuz root=/dev/sda2 ro
if neither one works then there is good chance centos grub will not boot a slackware partition.
take your slackware install disk and install lilo to the root partition of slackware, then make the following entry in your grub
rootnoverify (hd0,1)
chainloader +1
to install lilo go back into setup with the slackware install disk select the partition you installed to again, but do not format. get back to the main menu select configure system select no or cancel untill you get to the lilo setup. select simple, install to root partion. after installing lilo select cancel and no to all other prompts untill you get back to the main screen reboot. add the chainloading entry to grub.
to install lilo go back into setup with the slackware install disk select the partition you installed to again, but do not format. get back to the main menu select configure system select no or cancel untill you get to the lilo setup. select simple, install to root partion. after installing lilo select cancel and no to all other prompts untill you get back to the main screen reboot. add the chainloading entry to grub.
I am not trying to use lilo I am trying to use grub.
File system I selected when I installed slackware was ext3
I know your not using lilo. I was in the middle of typing when sysfce2 had posted. most grubs from other distos will not boot a slackware formatted partition, I was telling you one way to get slackware to boot from centos grub because I also use a grub that will not boot a slackware partition, however sysfce2 way will work too, and is an easier way. if you have ide harddrive use /dev/hda2, sata then /dev/sda2. will need to copy vmlinuz-huge-smp-2.6.29.6-smp to centos boot directory and use it in your kernel line of grub, vmlinuz is a link to it
Last edited by colorpurple21859; 10-24-2009 at 08:06 PM.
Reason: more info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.