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 08-18-2005, 05:35 PM   #1
nenyo
Member
 
Registered: Jan 2005
Location: Alamogordo
Distribution: Gentoo 2005.0
Posts: 136

Rep: Reputation: 15
lilo.conf ---> how do i dual boot between kernels?


i have an OLD laptop and i just put vectorlinux 3.2 on it. i want to upgrade the kernel to 2.4.31 or 2.6(not sure if it would run it though). since im a total novice with the whole kernel thing i want to be able to boot back into the old kernel to retry WHEN i screw it up. if i set up the old one as vmlinuz.old and boot from that it would be perfect.

i know how to do this with grub but is there a way with lilo? if so how.

:::::::: justification (my predicament) ::::::::
i will probably put grub on it later but for now im using lilo. i need to get network support to start downloading stuff for setup. in order to do this i need ndiswrapper for my wireless card because the computer has no networking capabilities other than a pc card slot. ndiswrapper require that i upgrade to 2.4.20 first.
 
Old 08-18-2005, 06:11 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Having an old computer shouldn't be a problem for the kernel. It's detecting hardware, and unless they've dropped support for your older hardware, a 2.6.x.x should work fine.

Kwan Lowe's Kernel Build Guide should take care of that part. He has LiLO and GrUB instructions.

Also use the instructions in Jesper Juhl's super fast 2.6 guide for getting it installed. Here's an example of my /etc/lilo.conf for two different boxen. One is a Slackware only box with two kernels, the other has a Windoze boot and several Slackware kernels.
Code:
mingdao@slackbox:~$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
#compact        # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.12.5
  root = /dev/hda2   
  label = Slack-2.6.12.5
  read-only
image = /boot/vmlinuz
  root = /dev/hda2   
  label = Slack-2.4.31  
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
Code:
mingdao@james:~$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
# Bitmap in BMP format: 640x480x4
  bitmap = /boot/slack.bmp
# Colors fg,bg,sh,h-fg,h-bg,h-sh
  bmp-colors = 9,0,9,0,9,0
# Location of the option table: x,y,column,lines,space
  bmp-table = 61,15,1,8
# Timer x,y,fg,bg,sh
  bmp-timer = 73,29,0,9
#append="elevator=cfq"
#compact # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.12.5
root = /dev/sda2
label = 2.6.12.5
read-only
image = /boot/vmlinuz-2.6.12.4
root = /dev/sda2
label = 2.6.12.4
read-only
image = /boot/vmlinuz-2.6.12.3
root = /dev/sda2
label = 2.6.12.3
read-only
image = /boot/vmlinuz-2.6.12.2
root = /dev/sda2
label = 2.6.12.2
read-only
image = /boot/vmlinuz-2.6.12.1
root = /dev/sda2
label = 2.6.12.1
read-only
image = /boot/vmlinuz-2.6.12
root = /dev/sda2
label = 2.6.12
read-only
image = /boot/vmlinuz-2.6.11.11 
root = /dev/sda2
label = 2.6.11.11
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = WinXP
table = /dev/hda
# Windows bootable partition config ends
 
Old 08-18-2005, 07:20 PM   #3
nenyo
Member
 
Registered: Jan 2005
Location: Alamogordo
Distribution: Gentoo 2005.0
Posts: 136

Original Poster
Rep: Reputation: 15
thanks but i already did that. i guessed thats how one is supposed to do it and gave it a try. i then coppied yours and changed the info to fit my comp. that didn't work either. when i boot up it still shows only one option in the list.

do i have to export to mbr somehow?
 
Old 08-18-2005, 07:32 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
After you edit the file "/etc/lilo.conf" you must run "/sbin/lilo" as root.
 
Old 08-18-2005, 09:26 PM   #5
nenyo
Member
 
Registered: Jan 2005
Location: Alamogordo
Distribution: Gentoo 2005.0
Posts: 136

Original Poster
Rep: Reputation: 15
thank you. worked perfectly
 
Old 08-18-2005, 09:46 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally posted by nenyo
thank you. worked perfectly
You're welcome. It was in both kernel guides I gave you, btw:
Quote:
Install the new kernel by running the lilo program.

$ /sbin/lilo
~ Kwan Lowe
Quote:
when you are done, save the file and run /sbin/lilo to reinstall the lilo bootloader
~ Jesper Juhl
:{)>
 
  


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
Lilo.conf: can't boot windoze Cichlid Linux - General 6 12-31-2004 08:23 AM
need help with lilo conf, want to boot to Fedora rswitzer Red Hat 2 09-16-2004 06:56 AM
GRUB dual boot with two diff kernels fails at boot mosquito_dk Linux - Software 3 09-06-2004 09:18 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
help me conf lilo for dual linux boot bosewicht Linux - Newbie 17 09-20-2003 10:08 AM


All times are GMT -5. The time now is 04:36 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