Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-07-2010, 09:18 AM   #1
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Rep: Reputation: 19
Trying to chainboot Slackware from Grub2

Dear all,
I've made a mini installation of slackware64-13.1 onto my friend's computer. He already has Ubuntu and Windows partitions that are being handled by GRUB2. I thought the best thing to do would be to have lilo installed to the partition root (on /dev/sda3) and let grub2 chainboot. I've been reading about adding custom entries to the grub menu and things look like they're working but then I reboot and there's no Slackware option.

Currently I've got this file in /etc/grub.d/41_slack. It is executable.
#!/bin/sh -e
echo "Adding Slackware"
cat << EOF
menuentry "Slackware" {
set root=(hd0,3)
chainloader (hd0,3)+1
When I run "sudo update-grub" this is the output
lewi@benny:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.31-10-rt
Found initrd image: /boot/initrd.img-2.6.31-10-rt
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Home Edition on /dev/sda1
Found Slackware Linux (Slackware 13.1.0) on /dev/sda3
So it has found the slackware partition (not because of my menu entry though?) but when I reboot there's no menu entry there.

Any ideas?
Old 06-07-2010, 09:39 AM   #2
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 507
Blog Entries: 1

Rep: Reputation: Disabled
I am using GRUB2 because I can compile it on a 64 bit system & I want grub, not lilo, but I will admit that the automagic menu maker for GRUB2 completely underwhelms me. I edit /boot/grub/grub.cfg by hand just like I did the legacy grub configuration file. It works a treat, but someday I will teach myself how to use update-grub.
Old 06-07-2010, 10:01 AM   #3
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Original Poster
Rep: Reputation: 19
Thanks but I would much prefer to be able to use grub2 without having to manually mess around with grub.cfg. Does anyone know if I'm actually doing anything wrong or is there a better way of getting the three systems booting? I'm much more familiar with lilo so I might just try getting it all to work with that.
Old 06-07-2010, 11:35 AM   #4
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Original Poster
Rep: Reputation: 19
It seems to be working now, I think it was something to do with having some grub legacy stuff lying around. Will mark as solved.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove OS under Grub2 ? FeathersMc Linux - General 4 04-26-2010 12:11 AM
grub2 psmurthy Linux - Newbie 2 03-16-2010 11:20 AM
Grub2 - Error 15 telestrial Linux - Software 13 03-11-2010 06:26 PM
grub2 returns a "invalid magic number" error when booting slackware 13.0's kernel baji Slackware - Installation 4 03-09-2010 06:15 PM
grub2 mbvo Slackware 7 11-12-2009 06:06 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration