LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 06-13-2004, 03:11 AM   #1
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Rep: Reputation: 30
Default LILO Config


After installing Mandrake 10, there were a ton of boot options in LILO and my Windows install didn't show up so I manually edited lilo.conf to include my Windows partition and (without thinking about it too much) removed all the Linux options except for just plain 'linux'. However, after noticing that one of those choices was linux-smp, I realize that I make a mistake by not leaving THAT option. Could someone with an unmodified copy of lilo.conf (perhaps a backup copy) please post it for me?

-Brandon
 
Old 06-13-2004, 03:22 AM   #2
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
Wait a minute. When I start my computer, at the login screen, it says "Kernel 2.6.3-7mdksmp on a Dual-processor i686". I assume that means that it's already using the SMP kernel. Do I actually need the "linux-smp" boot option in LILO?

-Brandon

PS - And speaking of kernel versions, any idea when Mandrake Update will have the 2.6.6 kernel? According to kernel.org, it's stable already.
 
Old 06-13-2004, 04:07 AM   #3
Ph0enix2003
Member
 
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
If you didn't actually run lilo after setting the options in lilo.conf then no changes were made to the system. You should see /etc/lilo.conf~ now which is the backup of the original file. Just copy it back to lilo.conf and add the Windows partition. You need the smp kernel if you have a multi-CPU system.

The 2.6.6 kernel itself may be stable but it hasn't been fully tested with MDK packages. 2.6.8 or 2.6.9 will probably be out before MDK upgrades to 2.6.6. You know what I'm getting at? ...I'm sure 2.6.3 will work for you just fine. Having the latest kernel for the sake of just that is not necessarily a good thing but if you're in a rush, you can compile 2.6.6 yourself.

Last edited by Ph0enix2003; 06-13-2004 at 04:08 AM.
 
Old 06-13-2004, 04:24 AM   #4
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Rep: Reputation: 30
In yor file manager open the etc directory .In here you should find the lilo config file the liloconfig old should be your original before you deleted. You should be able to rename liloconfig to old & liloconfigold to liloconfig. In answer to your question you do not need the other kernels if your happy with the one you have. You may have to be root to modify files . Please be carefull

Regards Sharkee
 
Old 06-13-2004, 03:17 PM   #5
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
Quote:
If you didn't actually run lilo after setting the options in lilo.conf then no changes were made to the system.
I've been using the system with only those two boot options (Linux and WinXP) for two or three weeks now. The changes have been made already.

Quote:
You should see /etc/lilo.conf~ now which is the backup of the original file. Just copy it back to lilo.conf and add the Windows partition. You need the smp kernel if you have a multi-CPU system.
I already looked before I posted. There is no backup. That's why I was hoping someone could post their backup.
 
Old 06-14-2004, 10:02 AM   #6
Ph0enix2003
Member
 
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
Quote:
Originally posted by spaaarky21
I've been using the system with only those two boot options (Linux and WinXP) for two or three weeks now. The changes have been made already.



I already looked before I posted. There is no backup. That's why I was hoping someone could post their backup.
Someone else's backup won't do you any good since everyone's partition table is different.
 
Old 06-16-2004, 02:28 PM   #7
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
Quote:
Someone else's backup won't do you any good since everyone's partition table is different.
Obviously their computer probably won't be identical to mine but I have no intension of blindly copying their config file to mine. I just want to see what the entry for the "linux-smp" boot option looks like since I accidentally deleted mine without backing up the file first.
 
Old 06-16-2004, 07:47 PM   #8
Ph0enix2003
Member
 
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
Quote:
Originally posted by spaaarky21
Obviously their computer probably won't be identical to mine but I have no intension of blindly copying their config file to mine. I just want to see what the entry for the "linux-smp" boot option looks like since I accidentally deleted mine without backing up the file first.
In this case, just look in your /boot for different kernels, look at the respective entries in lilo.conf and create new ones for the rest of the kernels in a similar fashion. If you have problems figuring it out, post the output from your "ls -l /boot" and your lilo.conf and I'll help you.
 
Old 06-17-2004, 02:30 PM   #9
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Original Poster
Rep: Reputation: 30
I certainly appreciate the help. Here's what I've got in /boot/

boot.0300
initrd-2.6.3-7mdk.img
message@
vmlinuz@
config@
initrd-2.6.3-7mdksmp.img
message-graphic
vmlinuz-2.6.3-7mdk
config-2.6.3-7mdk
initrd.img@
message-text
vmlinuz-2.6.3-7mdksmp
config-2.6.3-7mdksmp
initrd-smp.img@
System.map@
vmlinuz-smp@
diag1.img
kernel.h@
System.map-2.6.3-7mdk
diag2.img
kernel.h-2.6.3-7mdksmp
System.map-2.6.3-7mdksmp
map
us.klt

and my lilo.conf is:

boot=/dev/hda
map=/boot/map
install=menu
default="Linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=600
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="Linux"
root=/dev/hda3
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda2 splash=silent"
vga=788
read-only
other=/dev/hda1
label="WinXP"
table=/dev/hda

Since I want to use the SMP kernel, I assume that replacing "image=/boot/vmlinuz" with "image=/boot/vmlinuz-smp" would be a start but do any of the other settings need to change? Or is it actually that simply?

Thanks for the help,
Brandon
 
Old 06-18-2004, 03:51 PM   #10
Ph0enix2003
Member
 
Registered: Jun 2004
Posts: 101

Rep: Reputation: 15
/boot/vmlinuz@ should be a symbolic link pointing to the non-smp kernel and /boot/vmlinuz-smp@ should be a SL pointing to the SMP kernel but make sure of that. Just run "ls -l /boot" and you'll see an arrow pointing to the actual files in the console output. initrd-smp.img should be pointing to initrd-2.6.3-7mdksmp.img. If all of the above is true - just add the following at the end of your lilo.conf:

Code:
image=/boot/vmlinuz-smp
label="Linux-smp"
root=/dev/hda3
initrd=/boot/initrd-smp.img
append="devfs=mount acpi=ht resume=/dev/hda2 splash=silent"
vga=788
read-only
Don't forget to run "lilo" after making the change. Also, replace the line that says default="Linux" with default="Linux-smp" if you want the SMP kernel to be the default option in the boot menu.

Last edited by Ph0enix2003; 06-18-2004 at 03:57 PM.
 
  


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
default selection in lilo djgerbavore Slackware 2 06-05-2005 09:00 PM
getting default kernel config dunkyb Linux - Software 3 01-08-2005 08:09 PM
Default kernel config pioter Slackware 3 11-19-2003 08:49 PM
LILO / lilo.conf - can't change the config clearh20 Linux - Newbie 14 06-05-2003 10:20 PM
default kernel config bLaX Linux - Newbie 6 11-06-2002 09:10 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration