LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2007, 11:32 PM   #1
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
Slackware and GRUB


I just installed Slackware 11.0 on my computer, on sda1, partition 4. I am trying to boot Slackware with Grub, but keep getting "Error 23: Error while parsing number".

title Slackware 11.0
root (sd0,4)
kernel /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd

is what I added to menu.lst. Thanks for your help!

Last edited by loincloth170; 01-11-2007 at 11:33 PM.
 
Old 01-12-2007, 03:30 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647

Rep: Reputation: 148Reputation: 148
What do you mean with "sda1, partition 4"? sda1 is the first partition on sda, the fourth one is sda4. Please clarify that. And from looking after GRUB myself some time ago I remember that you cannot give "(sd...)" but only "(hd...)" but I may be wrong.
 
Old 01-12-2007, 04:00 AM   #3
binary1011100
Member
 
Registered: Apr 2006
Location: Manchester, UK
Distribution: Slackware, Debian
Posts: 89

Rep: Reputation: 15
Why the hell would you want to put GRUB on slackware

Why?? is ther a specific reason you want to use grub over lilo???
 
Old 01-12-2007, 01:18 PM   #4
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Oops, I meant to just say sda4, my mistake. But in the menu.lst I got it correct right? sda0, 4 is sda, partition 4? And thanks I'll definitely just put "hd" instead of "sd".

And no, there was no particular reason, except that I felt a lot more comfortable in Ubuntu, where GRUB is, so I thought it would be easier changing that than to figure out Slackware and change LILO.
 
Old 01-12-2007, 01:23 PM   #5
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Alright, changed "sd0, 4" to "hd0, 4" but I'm still getting the Error.
 
Old 01-12-2007, 02:29 PM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647

Rep: Reputation: 148Reputation: 148
sda4 is hd0,3 -- GRUB starts counting with zero, LILO with one
 
Old 01-12-2007, 02:57 PM   #7
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks titopoquito! Unfortunately now I'm getting "Error 15: File not found", but at least it's a different error hahaha.
 
Old 01-12-2007, 04:27 PM   #8
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647

Rep: Reputation: 148Reputation: 148
I'm not sure, but I use a slightly other syntax for my grub menu.lst. I have no initrd but guess it should work too with the same syntax:
Code:
title Slackware 11.0
kernel (hd0,3)/boot/vmlinuz root=/dev/sda4 ro 
initrd (hd0,3)/boot/initrd
Else if you boot up you can try your luck with the GRUB shell. Just input the lines from hand (EDIT: without the title line) and you can use TAB for autocompletion -- this way you are sure that it finds the files or you may get an idea why GRUB cannot see one of the files.

EDIT: By the way, you are sure that "vmlinuz" and "initrd" are there and called exactly like that?

Last edited by titopoquito; 01-12-2007 at 05:03 PM.
 
Old 01-12-2007, 10:04 PM   #9
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Are you running the 2.4 or 2.6 kernel?
If you are only running the 2.4 then you don't need to specify the:

Code:
initrd /boot/initrd.gz
In the grub's menu.lst file, having a entry like this should work fine:


Code:
title Slackware 11.0
kernel (sd0,3)/boot/vmlinuz root=/dev/sda4 ro

Last edited by fotoguy; 01-12-2007 at 10:06 PM.
 
Old 01-13-2007, 03:10 AM   #10
binary1011100
Member
 
Registered: Apr 2006
Location: Manchester, UK
Distribution: Slackware, Debian
Posts: 89

Rep: Reputation: 15
Arrow Just use LILO

If you have no reason for using grub then use lilo, it is certainly no harder to use and there is a script you can run called liloconfig, this script should automatically configure lilo for you, simply run liloconfig as root and follow the steps, make sure that you install to MBR, if you have a windows partition it should detect this and add it into the lilo configuration automatically
 
Old 01-13-2007, 03:28 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I used to use grub when I was a Slackware user. Its a lot better than LILO if you multiboot. Anyway, try the following
Code:
title Slackware 11.0
    root(hd0,3)
    kernel (hd0,3)/boot/vmlinuz root=/dev/sda4 ro 
    initrd (hd0,3)/boot/initrd
Make sure that the kernel and initrd names match the kernel and initrd versions on your system.
 
Old 01-13-2007, 12:35 PM   #12
loincloth170
LQ Newbie
 
Registered: Dec 2006
Location: Texas
Distribution: Ubuntu
Posts: 26

Original Poster
Rep: Reputation: 15
fotoguy- Thanks for the code, it worked perfectly, except I had to switch the sd to hd.

redazz- When I change the default kernel (2.4) to 2.6, what would the new kernel and initrd be?

Thanks to everyone for your help!!
 
Old 01-13-2007, 06:36 PM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
redazz- When I change the default kernel (2.4) to 2.6, what would the new kernel and initrd be?
You look in your /boot/ and use whatever versions of the 2.4 kernel and its initrd image that are listed in that directory.
 
Old 01-13-2007, 10:58 PM   #14
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by loincloth170
fotoguy- Thanks for the code, it worked perfectly, except I had to switch the sd to hd.

redazz- When I change the default kernel (2.4) to 2.6, what would the new kernel and initrd be?

Thanks to everyone for your help!!
Glad it help, yeah it should have been hd instead of sd,sorry about that.

By default slackware 2.6 kernels only have ext2 and ext3 filesystem support compiled into the kernels and not as modules like with reiserfs.

So if you go for a 2.6 kernel and have you partitions setup with reiserfs filesystem, which is the default, you will also need to create a initrd file to go with the kernel.

This is not hard to do, there is a program called mkintrd that comes with slackware which you can run after installing the new kernel and modules. If you install the 2.6.18 kernel just su to root then type at the command prompt:

Code:
mkinitrd -k 2.6.18 -m reiserfs
Now you should a have a /boot/initrd.gz file, now just edit you /boot/grub/menu.lst file pointing to your new kernel and initrd.gz file.
 
Old 01-14-2007, 05:25 AM   #15
binary1011100
Member
 
Registered: Apr 2006
Location: Manchester, UK
Distribution: Slackware, Debian
Posts: 89

Rep: Reputation: 15
How is GRUB better than LILO for Multiboot?

As I currently use both I would suggest that neither is better than the other for multiboot, what exaclty do you base that decision on
 
  


Reply



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
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
Slackware and Grub rharvey@cox Slackware 8 01-27-2004 03:50 PM
does slackware come with grub opafire Slackware 10 11-11-2003 04:32 AM
Slackware 8.1 and GRUB StevenPUlrick Slackware 10 02-16-2003 12:02 PM
Grub on Slackware esael Linux - General 2 09-26-2002 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration