Linux - SoftwareThis 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
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.
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.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647
Rep:
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.
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.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,647
Rep:
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.