LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2008, 12:57 PM   #1
Chronothread
Member
 
Registered: Apr 2007
Posts: 121

Rep: Reputation: 15
How do I get Slackware onto my GRUB loader


I recently setup a new partition with Slackware 12.1 and I would like to get it on my GRUB loader. I know how to get to my GRUB loader's code for the menu and I know fairly well what everything in there is. I don't know if Slackware 12.1 could have multiple kernels or not, but if I could find the kernel I'm using I could probably set up the loader. How would I go about finding that? Or if there's a better/easier way to get it on the GRUB loader let me know too. Just as a warning I'm still fairly newbesque with Linux in general, so don't be surprised if I have questions about what you told me. Thank you!
 
Old 10-22-2008, 04:40 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,447

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Slack normally uses lilo as a boot-loader - did you install that when you installed Slack ?. Given that you still have grub, either you didn't install lilo at all, or you installed to the partition that has Slack.
If the former, probably easiest to do it again, if the latter simply chainload to the partition involved. Add something similar to the following to the end of /boot/grub/menu.lst - presumes first hard disk, third partition, /dev/sda3 (grub counts from zero)
Code:
title Slackware
root (hd0,2)
chainloader +1
 
Old 10-22-2008, 05:19 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268

Rep: Reputation: 83
Quote:
Originally Posted by Chronothread View Post

if I could find the kernel I'm using I could probably set up the loader. How would I go about finding that?
The Slackware kernels will be in the Slackware /boot directory. Mount the Slackware / partition on a mountpoint and list the /mountpoint/boot directory.

--------------------
Steve Stites
 
Old 10-22-2008, 06:29 PM   #4
Chronothread
Member
 
Registered: Apr 2007
Posts: 121

Original Poster
Rep: Reputation: 15
Ok, thanks for the advice so far. But I may need a little more help.

I'll start by explaining my situation a little more thoroughly. I originally had my computer dual booting with Ubuntu 8.04 and XP. I was planning on installing both Slackware and reinstalling Ubuntu (for various reasons) today. I think I'd like to stick with grub rather then lilo because I already know it a bit. If someone wants to try to convince me to go to lilo I'll be happy to listen why, because I don't know which would work better. In anycase, I installed Slackware and posted the earlier message. Now I reinstalled Ubuntu as well hoping the new grub loader would catch Slackware as well. It did, but now when I try to load it I run into a kernel panic. Not syncing kind of stuff. So what the grub loader put in for Slackware by itself was the following:
Code:
title       Slackware Linux (Slackware 12.1.0) (on /dev/sda1)
root        (hd0,0)
kernel      /boot/vmlinuz-generic-2.6.24.5 root=/dev/sda1
savedefault
boot
If anyone has any suggestions what to do with the kernel panic it would be very helpful. And then again maybe I would switch this question to a new thread. Anywho, again, thank you for your help.
 
Old 10-22-2008, 06:36 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,447

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Probably needs an initrd, but I don't have a Slack system anywhere anymore so hopefully someone who does will pass by and help. Jailbaits suggestion should give you an idea.

This illustrates one benefit of always installing the bootloader with a distro - you get to see their config file, and what options to use.
 
Old 10-22-2008, 06:52 PM   #6
Chronothread
Member
 
Registered: Apr 2007
Posts: 121

Original Poster
Rep: Reputation: 15
When I looked at the boot loader stuff and compared Slackware to Ubuntu I thought I would need some sort of initrd thing (no clue what that stands for by the way). So I had tried making it similar to what Ubuntu had and put in:
Code:
initrd      /boot/initrd.img-generic-2.6.24.5
With that I got no file found. I just looked in Slackware's boot folder and the only file that looked like it was along these lines is README.initrd. When I tried to open that from Ubuntu I get an error saying the file is broken. Any suggestions? Thanks again.
 
Old 10-23-2008, 05:10 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,477
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
By default Slackware 12.1 boots into the huge-smp kernel, so you could try changing this line in Grub's menu.lst:
Code:
kernel      /boot/vmlinuz-generic-2.6.24.5 root=/dev/sda1
to this:
Code:
kernel      /boot/vmlinuz-huge-smp-2.6.24.5-smp root=/dev/sda1
And try booting into Slackware. To use any of the other kernels requires an initrd.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
How to change my Grub Loader to Lilo loader in REDHAT LINUX 9.0 skumar.v Linux - Newbie 3 04-04-2008 10:38 AM
grub(SuSE)/Lilo(Slackware) chain loader problems The Chain Linux - Newbie 32 10-12-2006 05:24 PM
boot loader (grub - slackware) sycamorex Slackware 6 06-11-2006 04:45 AM


All times are GMT -5. The time now is 06:17 PM.

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