LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-21-2009, 05:32 AM   #1
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,181

Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
[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 2.6.30.1 kernel.

My disk layout is as follows:

Code:
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 cylindre.su
/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 2.6.30.2 kernel
Code:
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.
bash-3.1#
Please note that no image are included and in fact when I reboot I still get the old 2.6.30.1 kernel.

Here is my lilo.conf:
Code:
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
change-rules
reset
vga = 773
other = /dev/sda2
label = Windows
table = /dev/sda
image = /boot/vmlinuz-2.6.30.2
root = /dev/root
append="fastboot"
label = Linux-2.6.30.2
read-only
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: 5,232

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

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

Rep: Reputation: 89
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
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,181

Original Poster
Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
[Solved]

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:
Code:
bash-3.1# uname -a
Linux darkstar 2.6.30.2 #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
bash-3.1#
I guess I should have RTFM a little better
 
  


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
[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 2.6.29.5 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


All times are GMT -5. The time now is 04:39 AM.

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