Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-21-2009, 05:32 AM   #1
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64- on Lenovo Thinkpad W520
Posts: 10,112

Rep: Reputation: Disabled
[SOLVED] Slackware64-current: lilo not updating the boot loader after kernel upgrade

Hi everybody,

I am running slackware64-current on a Lenovo Thinkpad T61 (model 6457-4xg to be accurate), with a customized kernel.

My disk layout is as follows:

Disque /dev/sda: 160.0 Go, 160041885696 octets
255 têtes, 63 secteurs/piste, 19457 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Identifiant de disque : 0x43c69dc0

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1               1         850     6821888   27  Inconnu
La partition 1 ne se termine pas sur une frontière de
/dev/sda2             850        3492    21224688    7  HPFS/NTFS
/dev/sda3            3492       19457   128240280    5  Etendue
/dev/sda5   *        3492        5536    16412728+  83  Linux
/dev/sda6            5536        5925     3129808+  82  Linux swap
/dev/sda7            5925       19457   108697648+  83  Linux
Please note that I made /dev/sda5 bootable and installed the bootloader on it to keep the MBR as shipped.

So far, so good, I have a dual boot Windows / Linux.

But now this is what happens when I run lilo to install the a kernel
bash-3.1# lilo -b /dev/sda5 -M /dev/sda ext  -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 12:48:48 on Feb 27 2009.

/boot/boot.0800 exists - no /dev/sda backup copy made.
The Master Boot Record of  /dev/sda  has been updated.
Please note that no image are included and in fact when I reboot I still get the old kernel.

Here is my lilo.conf:
lba32 # Allow booting past 1024th cylinder with a recent BIOS
append=" vt.default_utf8=1"
boot = /dev/root
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
timeout = 1200
vga = 773
other = /dev/sda2
label = Windows
table = /dev/sda
image = /boot/vmlinuz-
root = /dev/root
label = Linux-
I should be wrong but where ???

Any help appreciated

Last edited by Didier Spaier; 07-27-2009 at 07:18 AM. Reason: Note that the issue is solved
Old 07-21-2009, 05:55 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065Reputation: 8065
What happens if you change the two "/dev/root" instances to "/dev/sda5" ? You should not use /dev/root in lilo.conf anyway.

Old 07-21-2009, 05:59 AM   #3
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 90
The '-M' option of lilo you are using tells it to overwrite the mbr (/dev/sda).
I don't think setting the 'bootable' flag makes any difference (my drive has no bootable flag set at all)
Old 07-21-2009, 08:00 AM   #4
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64- on Lenovo Thinkpad W520
Posts: 10,112

Original Poster
Rep: Reputation: Disabled

Eric, thanks for the advice -- lilo seems able to follow the symlink /dev/root though (liloconfig wrote it too)

Nils, thanks for the reminder.

I ended up being successful with following command:
lilo -b /dev/sda5 -P ignore

lilo still complain about inconsistency in the partition table but it works:
bash-3.1# uname -a
Linux darkstar #1 SMP PREEMPT Tue Jul 21 00:13:41 CEST 2009 x86_64 Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz GenuineIntel GNU/Linux
I guess I should have RTFM a little better


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
[SOLVED] Latest slackware64-current xorg and kernel update woes veeall Slackware 10 07-19-2009 12:31 AM
Kernel panic on Booting to Fedora Core 5 from LILO boot loader. vmniza Linux - General 1 06-30-2009 07:10 AM
[SOLVED] Problem with kqemu in slackware64-current since kernel niels.horn Slackware 3 06-20-2009 04:27 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:18 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
Open Source Consulting | Domain Registration