LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-12-2005, 04:35 AM   #1
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Rep: Reputation: 0
Lilo error after 10.2 upgrade


Hi

I have just upgraded installed packages on a slackware 10.1 install to slackware 10.2 and updated config files.

I am about to reboot, but when I run lilo to make sure the boot loader is installed, i get the following error:

Code:
Fatal: VolumeID read error: sector 0 of /dev/sdb not readable
Now this is strange, this device isn't even installed. My disks is a hardware raid5 array installed on sda.

Anyone know what could be wrong? Or might there not be anything wrong at all? And everything will probably be ok if I reboot?

Here's the installed partitions:
Code:
/dev/sda1        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sda2        /boot            ext3        defaults         1   2
/dev/sda5        /var/log         ext3        rw,noexec,nosuid,nodev         1   2
/dev/sda6        /tmp             ext3        rw,noexec,nosuid,nodev
/dev/sda7        /home            ext3        rw,nodev         1   2
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Here's the mounted volumes:
Code:
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/sda2 on /boot type ext3 (rw)
/dev/sda5 on /var/log type ext3 (rw,noexec,nosuid,nodev)
/dev/sda6 on /tmp type ext3 (rw,noexec,nosuid,nodev)
/dev/sda7 on /home type ext3 (rw,nodev)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
 
Old 10-12-2005, 05:00 AM   #2
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry, forgot lilos verbose output:

Code:
LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 08-Apr-2004 and compiled at 00:18:50 on May 21 2004.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Fatal: VolumeID read error: sector 0 of /dev/sdb not readable
 
Old 10-12-2005, 05:19 AM   #3
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
Take a look in /etc/lilo.conf and make sure you are trying to install lilo to /dev/sda and not /dev/sdb.
 
Old 10-12-2005, 05:31 AM   #4
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by heltreko
Take a look in /etc/lilo.conf and make sure you are trying to install lilo to /dev/sda and not /dev/sdb.
lilo.conf is ok. it hasn't been modified since last kernel upgrade.
 
Old 10-12-2005, 07:58 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
What is the output of
Code:
fdisk -l
? I had a strange problem with lilo too in Slackware 10.2 where I had a microdrive (/dev/hde) inserted in the PCMCIA slot of my laptop, and did not have it mounted.

Lilo refused to install a new bootloader and gave weird errors, unless I mounted the microdrive... even though /dev/hde was nowhere mentioned in /etc/lilo.conf

Eric
 
Old 10-12-2005, 08:39 AM   #6
cb951303
Member
 
Registered: Jan 2004
Distribution: Slackware 11 + Dropline Gnome 2.16
Posts: 194

Rep: Reputation: 30
the error should be in lilo.conf ....
 
Old 10-12-2005, 08:44 AM   #7
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Alien Bob
What is the output of
Code:
fdisk -l
? I had a strange problem with lilo too in Slackware 10.2 where I had a microdrive (/dev/hde) inserted in the PCMCIA slot of my laptop, and did not have it mounted.

Lilo refused to install a new bootloader and gave weird errors, unless I mounted the microdrive... even though /dev/hde was nowhere mentioned in /etc/lilo.conf

Eric
fdisk -l output follows:
Code:
Disk /dev/sda: 72.8 GB, 72802631680 bytes
254 heads, 63 sectors/track, 8885 cylinders
Units = cylinders of 16002 * 512 = 8193024 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         122      976090+  82  Linux swap
/dev/sda2   *         123         128       48006   83  Linux
/dev/sda3             129         494     2928366   83  Linux
/dev/sda4             495        8885    67136391    5  Extended
/dev/sda5             495         561      536035+  83  Linux
/dev/sda6             562         579      143986+  83  Linux
/dev/sda7             678        8885    65672176+  83  Linux
Here is direct output from /proc/partitions
Notice those sdb partitions listed. Which are unknown to me.
Code:
major minor  #blocks  name

   8     0   71096320 sda
   8     1     976090 sda1
   8     2      48006 sda2
   8     3    2928366 sda3
   8     4          1 sda4
   8     5     536035 sda5
   8     6     143986 sda6
   8     7   65672176 sda7
   8    16  156290904 sdb
   8    17  156288321 sdb1
I noticed dmesg output the following when lilo is run:
Code:
Device 08:10 not ready.
 I/O error: dev 08:10, sector 0
Might be hardware error. I will run checks later.

But it doesn't make sense to me that lilo reports sdb
 
Old 10-12-2005, 08:53 AM   #8
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by cb951303
the error should be in lilo.conf ....
That would make sense. But I can't find anything wrong with it:
Code:
# Start LILO global section
boot = /dev/sda
prompt
timeout = 150
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# End LILO global section

# Linux bootable partition config begins
image = /boot/bzImage2.4.31-ow1
  root = /dev/sda3
  label = Linux-2.4.31ow1
  read-only
# Linux booble partition config ends
I've doublechecked for possible nasty formatting errors. though that kind of error never happened to me. vim does its job
 
Old 10-12-2005, 11:00 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Device 08:10 not ready.
I/O error: dev 08:10, sector 0
That is definitely /dev/sdb you see complaints about in dmesg....

Eric
 
Old 10-12-2005, 11:44 AM   #10
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Indeed it was sdb, and somewhat similar to your microdrive issue. I sat down and checked some old logs for issues regarding sdb, and behold:
Code:
Jul 14 15:01:34 mx03 kernel: hub.c: new USB device 00:1d.7-2, assigned address 2
Jul 14 15:01:37 mx03 kernel: Initializing USB Mass Storage driver...
Jul 14 15:01:37 mx03 kernel: usb.c: registered new driver usb-storage
Jul 14 15:01:37 mx03 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 14 15:01:37 mx03 kernel:  sdb: sdb1
Jul 14 15:01:37 mx03 kernel: USB Mass Storage support registered.
Jul 14 15:05:52 mx03 kernel: usb.c: USB disconnect on device 00:1d.7-2 address 2
Someone connected a usb drive (I did think the 156290904 block size in the partition table was rather large..) to the server without my knowledge. (the server is remotely hosted.)
The sdb device was still known in the active partition table and caused problems as it obviously ain't mounted. That left two solutions, mount it or remove it. The latter would be my choice.
I reloaded slackwares hotplug system which smoothly removed the sdb device from the partition table and lilo worked just fine and dandy.
 
Old 10-13-2005, 12:28 AM   #11
heltreko
Member
 
Registered: Mar 2005
Location: Stockholm, Sweden
Distribution: Slackware, Zenwalk
Posts: 141

Rep: Reputation: 15
This was an interesting lilo issue well worth reading.

Is this a desired behavior of lilo or should it be viewed as a problem and reported to someone working with developing lilo?
 
Old 10-13-2005, 03:22 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
As far as I am concerned this is either a bug in lilo or an undesired feature. But I have not delved too deep into the problem after I found out I could get away with mounting the microdrive before running lilo. There might be something I have overlooked.
Comments, anyone?

Eric
 
Old 10-13-2005, 06:38 AM   #13
PurpleMotion
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware & Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
It's maybe more likely to be a issue with the usb subsystem in the 2.4 kernel than lilo. It obviously didn't cleanly remove the drive, as it was left in /proc/partitions as a "zombie".
 
Old 10-13-2005, 06:50 AM   #14
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
this has often happened to me and also happens for installation of 2.6.x kernels so is a lilo/hotplug prob rather then kernel prob (I'd guess).

Damn annoying betimes, having to plug back in usb device to install lilo.
 
Old 10-13-2005, 06:58 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally posted by PurpleMotion
It's maybe more likely to be a issue with the usb subsystem in the 2.4 kernel than lilo. It obviously didn't cleanly remove the drive, as it was left in /proc/partitions as a "zombie".
Well.... I have only experienced this with 2.6 kernels. When booting the same hardware with a 2.4 kernel, I do not have this problem. In fact, before I discovered how I could circumvent the problem by mounting my microdrive, I rebooted to a 2.4 kernel just to run lilo!

Eric
 
  


Reply



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 Update After Upgrade-How? jam5173 Linux - Newbie 3 12-03-2005 01:43 AM
lilo problem after upgrade to 10.1 lukameen Slackware 10 05-11-2005 03:27 PM
Lilo won't boot XP after kernel upgrade jafriede Slackware 6 09-22-2004 01:35 PM
Error trying to dist-upgrade or upgrade KDE prophet621 Linux - Newbie 0 09-10-2003 04:17 PM
lilo upgrade errors vexer Linux - Software 1 08-08-2003 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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