linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.0-test9: lilo tried to access just umounted medium
@ 2003-10-31 22:31 Alex Riesen
  2003-10-31 22:34 ` Alex Riesen
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Riesen @ 2003-10-31 22:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: Matthew Dharm, Greg Kroah-Hartman

2.6.0-test9 + bk of 31 Oct.

Do not know, it may be a lilo (22.5.7.2, from gentoo) bug...

I had a flash card mounted (usb reader, 6-in-1 thing, uhci).
Looked over the pics on it, unmounted and removed the card.

Edited lilo.conf, and called lilo:

~ lilo
Reading boot sector from /dev/hda2
Warning: Kernel & BIOS return differing head/sector geometries for device 0x80
    Kernel: 65535 cylinders, 16 heads, 63 sectors
      BIOS: 1024 cylinders, 255 heads, 63 sectors
Fatal: open /dev/sdb: No medium found

sdb is the CF-card:

SCSI device sdb: 63489 512-byte hdwr sectors (33 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 63489 512-byte hdwr sectors (33 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1

Next attempt to run lilo was successful. I can reproduce the problem.
I did not notice this before (in test6, for instance).

strace:

write(1, "Warning: Kernel & BIOS return di"..., 79) = 79
write(1, "    Kernel: 65535 cylinders, 16 "..., 50) = 50
write(1, "      BIOS: 1024 cylinders, 255 "..., 50) = 50
open("/dev/hda1", O_RDONLY)             = 7
read(7, "\353<\220MSWIN4.1\0\2 \1\0\2\0\2\0\0\370\277\0?\0\377\0"..., 512) = 512
close(7)                                = 0
stat64("/dev/hda2", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 2), ...}) = 0
open("/dev/hda2", O_RDONLY)             = 7
read(7, "\372\353 \1\265\1LILO\26\5A\334\242?\0\0\0\0Y\221\335<"..., 512) = 512
close(7)                                = 0
stat64("/dev/hda3", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 3), ...}) = 0
open("/dev/hda3", O_RDONLY)             = 7
read(7, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
close(7)                                = 0
stat64("/dev/hda4", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 4), ...}) = 0
open("/dev/hda4", O_RDONLY)             = 7
read(7, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
close(7)                                = 0
stat64("/dev/hda5", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 5), ...}) = 0
stat64("/dev/hda6", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 6), ...}) = 0
stat64("/dev/hda7", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 7), ...}) = 0
stat64("/dev/hda8", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 8), ...}) = 0
stat64("/dev/hda9", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 9), ...}) = 0
stat64("/dev/hda10", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 10), ...}) = 0
stat64("/dev/hda11", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 11), ...}) = 0
stat64("/dev/hda12", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 12), ...}) = 0
stat64("/dev/sdb", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 16), ...}) = 0
stat64("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
open("/dev/sdb", O_RDONLY)              = -1 ENOMEDIUM (No medium found)
write(1, "Fatal: open /dev/sdb: No medium "..., 38) = 38
sync()                                  = 0
munmap(0x40016000, 4096)                = 0
_exit(1)                                = ?

There are several suspicious things:
 - why it tries to probe for /dev/sdb (yes, the mass storage driver
   recognizes all slots in the reader at load, but the card was already
   removed!)
 - why probing for /dev/sdb is so special so it terminates (it is not
   mentioned anywhere in lilo.conf)
 - why it enumerates devices at all (there are boot= and root= options in
   lilo.conf). Well, this is more a question for lilo maintainers...



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.0-test9: lilo tried to access just umounted medium
  2003-10-31 22:31 2.6.0-test9: lilo tried to access just umounted medium Alex Riesen
@ 2003-10-31 22:34 ` Alex Riesen
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Riesen @ 2003-10-31 22:34 UTC (permalink / raw)
  To: linux-kernel, Matthew Dharm, Greg Kroah-Hartman

Alex Riesen, Fri, Oct 31, 2003 23:31:39 +0100:
> I did not notice this before (in test6, for instance).

correction: it is the same in -test6.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-31 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31 22:31 2.6.0-test9: lilo tried to access just umounted medium Alex Riesen
2003-10-31 22:34 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).