LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2006, 10:09 PM   #1
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Rep: Reputation: 15
Need a grub.conf entry format


Ok, I installed Slackware 10.2 alongside my SuSE 10.0 yesterday. I wanted to keep Grub, so I installed LILO to the partition, not MBR. Now I need a way to get to that entry through Grub. How would I go about doing this? I assume so far that it's by adding an entry to grub.conf. I would like to do this preferably through YaST (Boot Loader section).

My SuSE is on hdb4, while Slackware is on hdb1. I selected the bare.i kernel from the Slackware CD on install, because that's the only way it would work out.

If you need the contents of files or more details don't hesitate to ask. I hope to be using Slackware soon.
RedNovember
 
Old 02-04-2006, 10:57 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
put this in grup.conf
Code:
title Slackware
    root (hd1,0)
    kernel /boot/vmlinuz ro root=/dev/hdb1
assuming that hdb is the second hard disk on the system.
Actually if suse and slackware are one the same disk check the suse configuration.

DO you have any cd burners?
If yes since slack by default uses the the 2.4 kernel, in order to burn CD's with Slack, you need to emulate your CD drives as scsi.
SO, assuming hdc and hdd are the CD roms you need something like this in the kernel line:

Code:
kernel /boot/vmlinuz ro root=/dev/hdb1 hdc=ide-scsi hdd=ide-scsi
You won't need lilo at all. Grub can boot slack.

Last edited by perfect_circle; 02-04-2006 at 11:00 PM.
 
Old 02-05-2006, 08:47 AM   #3
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Original Poster
Rep: Reputation: 15
Thanks a bunch mate, I'll reboot and see if this works.
EDIT: No dice, it gives me
Code:
Booting 'Slackware 10.2'...

[boot line]

Error 15: File not found

Press any key to continue...
It then takes me to a black and blue Grub screen to reselect.

Last edited by RedNovember; 02-05-2006 at 09:07 AM.
 
Old 02-05-2006, 09:58 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
it would be more specific, if you had posted the contents of grub.conf (usually it is here:
/boot/grub/grub.conf)
What you basically do is this:
copy the kernel from slackware (on that partition under /boot ) to the /boot directory on your suse - that is where the suse-kernel is.
This is probably what you missed before and in part responsible for the error you saw in return...
Then add a line like perfect_circle gave here as an example to your suse's grub.conf
(of course the name of the kernel needs to match the actual name of the slackware-kernel
AND the root (hd1,0)statement needs to be the same as the one to boot suse - this would be: root (hd1,3) - but check this...)
This way you don't even need lilo for slackware - just leave it or not - this way done it will just not be used)

Last edited by jomen; 02-05-2006 at 10:02 AM.
 
Old 02-05-2006, 10:06 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Note that--in /boot/grub--it may actually be "menu.lst"

Go here for the ultimate in dual-boot tips: http://www.justlinux.com/forum/showt...hreadid=143973
 
Old 02-05-2006, 10:25 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
Quote:
Note that--in /boot/grub--it may actually be "menu.lst"
shouldn't _both_ be there - with menu.lst being a link to grub.conf ?
 
Old 02-05-2006, 11:00 AM   #7
RedNovember
Member
 
Registered: Oct 2005
Distribution: Debian etch
Posts: 103

Original Poster
Rep: Reputation: 15
thanks all - I am booting into Slackware properly. I still can't figure out how to get X running though...

I have menu.lst, but no grub.conf. The error was due to a initrd line that was being passed; removed that from menu.lst and it worked.
 
Old 02-05-2006, 02:28 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by RedNovember
thanks all - I am booting into Slackware properly. I still can't figure out how to get X running though...

I have menu.lst, but no grub.conf. The error was due to a initrd line that was being passed; removed that from menu.lst and it worked.
http://www.slackbook.org/html/x-window-system.html
 
Old 02-05-2006, 04:04 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by jomen
shouldn't _both_ be there - with menu.lst being a link to grub.conf ?
No--no need for that.
Never saw it on my Ubuntu system
 
Old 02-05-2006, 04:37 PM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
ok. - Gentoo - which I'm using - uses grub.conf as the default configuration-file.
This is probably done to be somewhat consistent about the naming-sceme for config-files - they are easier identified as such when having this ending (.conf)
This is why in Gentoo menu.lst is symlinked to grub.conf probably.
Grub originally uses menu.lst as its config-file so on other distributions just menu.lst really _needs_ to be there.
I learned something new - Thank you!
I was using lilo until I switched to Gentoo a year ago. That is why I never learned about this.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bogus entry in /etc/resolv.conf jeffbarish Linux - Networking 10 12-12-2006 07:48 PM
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
sources.list entry format for suse 9.2.9 repository TomF Suse/Novell 4 04-06-2005 04:49 PM
Mandrake adds unwanted entry to resolv.conf kmasaryk Mandriva 8 11-27-2004 03:40 PM
module.conf entry not loading thompsonrj Linux - Hardware 2 01-31-2004 11:06 PM


All times are GMT -5. The time now is 02:42 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 Google+: linuxquestions
Open Source Consulting | Domain Registration