Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 05-05-2008, 09:45 PM   #1
Registered: Jul 2007
Posts: 36

Rep: Reputation: 15
small question about lilo

what happens is that I had an old slackware installation and now I installed slackware 12.1 in a separate partition, configured lilo and added the both partitions to lilo bootloader, now everytime that I am going to boot the old Slackware installation entry in lilo, it boots but using the kernel of slackware 12.1, the same thing happened me before with older version of slackware, is there a way to both the old install with the correct kernel or I have to use GRUB instead?

I'm using only one harddisk drive and lilo was installed to the MBR with the /etc/lilo.conf file of the Slackware 12.1 install

/dev/sda1 is the old slackware install and /dev/sda5 is slackware 12.1

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
boot = /dev/sda
#compact        # faster, but won't work on all systems.
# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Append any additional kernel parameters:
append=" vt.default_utf8=0"
timeout = 300
# VESA framebuffer console @ 640x480x256
vga = 0x0F01
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda5
  label = Slackware12.1
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda3
  label = WindowsXP
  table = /dev/sda
# Windows bootable partition config ends

Last edited by dissociative; 05-06-2008 at 10:54 AM. Reason: added lilo.conf and some details
Old 05-05-2008, 11:04 PM   #2
Registered: Feb 2004
Location: Westchester, NY
Distribution: slackware
Posts: 63

Rep: Reputation: 15
Make sure the entries in lilo.conf point to distinct kernels, and that there are system maps for each. (You might include your lilo.conf in your post, so's we can have an idea of what you're dealing with.)
Old 05-07-2008, 07:36 AM   #3
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,929

Rep: Reputation: 128Reputation: 128
The problem is that both kernel labels are pointing to the same kernel,
which is /boot/vmlinuz. You need separate kernel images for each system
you want to boot.
Old 05-09-2008, 06:01 AM   #4
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
This works for me, but I don't know if this is the standard solution:
1. Mount your old Slackware partition on Slackware 12.1 (my mount point is /mnt/slack);
2. Make a new folder in /boot (on sda5), where you'll copy your old /boot/*.* files from sda1 (in my case to /boot/oldslack):
cp /mnt/slack/boot/*.* /boot/oldslack
3. Edit your /etc/lilo.conf file:
# Linux bootable partition config begins
image = /boot/oldslack/vmlinuz
  root = /dev/sda1
  label = Slackware
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
4. Run lilo and if no errors, then you'll be able to boot from both partitions.
Old 05-11-2008, 01:20 AM   #5
Registered: Jul 2007
Posts: 36

Original Poster
Rep: Reputation: 15
I solved the problem, first I mounted the partition of Slackware 12.1 from the older slackware installation in /mnt/hd and then edited /etc/lilo.conf adding the boot entry to point to the kernel of the Slackware 12.1 partition this way

image = /mnt/hd/boot/vmlinuz
root = /dev/sda5
label = Slackware

and now lilo boots Slackware 12.1 with the right kernel


boot, kernel, lilo, slackware

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
trying to format using small linux install and lilo moonlightcheese Linux - General 2 02-07-2007 01:05 PM
Small question about /etc/rc.local - Symbolic link question Arodef Linux - General 4 05-13-2006 02:29 AM
Seems like small lilo config problem...maybe more devNul73 Linux - Newbie 2 04-06-2004 06:33 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM
Lilo small problem hpc Linux - Newbie 1 07-14-2001 12:09 PM > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration