LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   boot loader (grub - slackware) (https://www.linuxquestions.org/questions/slackware-14/boot-loader-grub-slackware-447626/)

sycamorex 05-23-2006 03:57 AM

boot loader (grub - slackware)
 
Hello,

I have XP/fedora core 5 /slackware
I installed slackware 10.2 but decieded to not to install
lilo. Now I need to edit fedora's grub.conf to include slackware.
Something's not working

My grub.conf

default=0
timeout=5
splash blablablablabal
hiddenmenu

title Fedora
root (hd0,2)
kernel /boot/vmllinuz-2........ ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2....img

title windows
rootnoverify (hd0,0)
chainloader +1

title slackware
rootnoverify (hd0,5)
kernel /boot/vmlinuz-ide-2.4.31 ro root=LABEL=/1 rhgb quiet
initrd ?????????????????????????????


I edited the slackware entry but something is wrong.
I don't know if the kernel line is correct, and have
no idea what to put in the initrd line.

the files in my /boot directory:
config -> config-ide-2.4.31
config-ide-2.4.31
diag1.img
System.map -> System.map-ide-2.4.31
vmlinuz -> vmlinuz-ide-2.4.31
vmlinuz-ide-2.4.31



So the grub loader works ok for xp and fedora, I can't boot slackware, obviously because of that entry in grub.conf
When I boot into fedora I can mount slackware partition and access the data, so everything seems to be ok with slackware itself.

thanks

bit128_linux 05-23-2006 04:41 AM

Hi. I think the correct lines would be something like:

title Slackware
root (hd0,5)
kernel /boot/vmlinuz-ide-2.4.31 root=/dev/hda6 ro

You should not need initrd, unless you use filesystems like reiserfs, xfs..
The "/dev/hda6" which I wrote above is just a guess of mine from (hd0,5). You should replace that with your apropiate entry :). This configuration works, at least for me :D.

sycamorex 05-23-2006 05:32 AM

thanks,
when i come back from work, I wil try it

sycamorex 05-24-2006 06:52 AM

thanks, it works fine

dmcg3 06-11-2006 02:34 AM

And the search feature works again! Thanks bit128! I haven't been able to boot into my slackware partition for months! I was also trying to needlessly pass it an initrd file and an init= line on the kernal line and it panicked every time. It wasn't a particularly knawing problem as I dual boot with Fedora so I hadn't really tried to fix it until tonight. And now it works! Thanks!

syg00 06-11-2006 04:17 AM

Folks, you would do well to do some reading and seek to understand the difference in grub command lines.
Particularly if you intend to stray from Fedora/Redhat.

BobNutfield 06-11-2006 04:45 AM

Second syg00ś comment...

Learning to properly edit the grub.conf file opens whole new worlds.

Bob


All times are GMT -5. The time now is 05:54 PM.