Package: lilo
Version: 22.6.1-6.2
Severity: grave

Hello,

I had problems upgrading an (almost) regular Woody system to Sarge
(bailed out in postinst, which is better than silent failure, though).

And its lilo version still has problems. Look:

netquarter:/# lilo
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hdc1
netquarter:/# lilo -v5
LILO version 22.6.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 17-Nov-2004, and compiled at 12:32:32 on May 25 2005
Debian GNU/Linux

raid_setup: dev=1602  rdev=1601
raid_setup returns offset = 00000000  ndisk = 0
 BIOS   VolumeID   Device
Reading boot sector from /dev/hdc1
geo_get: device 1601, all=1
pf_hard_disk_scan: (22,0) /dev/hdc
pf_hard_disk_scan: (22,1) /dev/hdc1
lookup_dev:  number=1600
lookup_dev:  number=1600
pf:  dev=1600  id=00000000  name=/dev/hdc
geo_query_dev: device=1600
lookup_dev:  number=1600
lookup_dev:  number=0300
exit geo_query_dev
bios_dev:  device 1600
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
    fn 08: 1024 cylinders, 255 heads, 63 sectors
    fn 48: 29765 cylinders, 16 heads, 63 sectors
lookup_dev:  number=1600
bios_dev:  masked device 1600, which is /dev/hdc
bios_dev: geometry check found 0 matches
bios_dev: (0x80)  vol-ID=00000000  *PT=08078DAE
bios_dev: PT match found 1 match (0x80)
NT partition: /dev/hdc 1 /dev/hdc1
pf_hard_disk_scan: (22,2) /dev/hdc2
pf_hard_disk_scan: (22,3) /dev/hdc3
pf_hard_disk_scan: (22,4) /dev/hdc4
pf_hard_disk_scan: (22,5) /dev/hdc5
pf_hard_disk_scan: (22,6) /dev/hdc6
pf_hard_disk_scan: (22,7) /dev/hdc7
pf_hard_disk_scan: (22,8) /dev/hdc8
pf_hard_disk_scan: (22,9) /dev/hdc9
  1600  00000000  /dev/hdc
pf_hard_disk_scan: ndevs=1
  1600  00000000  /dev/hdc
Resolve invalid VolumeIDs
Resolve duplicate VolumeIDs
  1600  00000000  /dev/hdc
device codes (user assigned pf) = 1
device codes (user assigned) = 1
device codes (BIOS assigned) = 1
device codes (canonical) = 1
geo_query_dev: device=1601
lookup_dev:  number=1601
exit geo_query_dev
bios_dev:  device 1601
lookup_dev:  number=1600
bios_dev:  masked device 1600, which is /dev/hdc
bios_dev: geometry check found 0 matches
bios_dev: (0x80)  vol-ID=00000000  *PT=08078DAE
bios_dev: PT match found 1 match (0x80)
Device 0x1601: BIOS drive 0x80, 255 heads, 1867 cylinders,
               63 sectors. Partition offset: 63 sectors.
registering bios=0x80  device=0x1601
Using Volume ID 00000000 on bios 80
part_verify:  dev_nr=1601, type=1
geo_get: device 1600, all=1
geo_query_dev: device=1600
lookup_dev:  number=1600
exit geo_query_dev
bios_dev:  device 1600
lookup_dev:  number=1600
bios_dev:  masked device 1600, which is /dev/hdc
bios_dev: geometry check found 0 matches
bios_dev: (0x80)  vol-ID=00000000  *PT=08078DAE
bios_dev: PT match found 1 match (0x80)
Device 0x1600: BIOS drive 0x80, 255 heads, 1867 cylinders,
               63 sectors. Partition offset: 0 sectors.
registering bios=0x80  device=0x1600
Using Volume ID 00000000 on bios 80
lookup_dev:  number=1600
part_verify:  part#=1
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hdc1
netquarter:/# lilo -P ignore
Fatal: Filesystem would be destroyed by LILO boot sector: /dev/hdc1
netquarter:/# lilo -F
WARNING: '-F' override used. Filesystem on  /dev/hdc1  may be destroyed.

Proceed? [N/y]y
Added Linux *
Skipping /vmlinuz.old
Added Linux(hdc1)
You have new mail in /var/mail/root
netquarter:/# umount /boot 
netquarter:/# mount /boot/

The filesystem is still allright. No wonder, it is a pure ext2 FS.
netquarter:/# mount 
...
/dev/hdc1 on /boot type ext2 (rw)

The only problem I can see is that this system has been migrated from Windows
environment and I assume that hdc1 has been a windows boot partitition in the
past because "strings" shows me typical messages in the bootblock, created by
the format.exe utility from german Windows 9x.

However, no such problems appeared while Woody has been installed on that box
few years ago.

I will attach lilo.conf and the bootblock from hdc1 to this report.

Eduard.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.2
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages lilo depends on:
ii  debconf                      1.4.59      Debian configuration management sy
ii  libc6                        2.3.5-8.1   GNU C Library: Shared libraries an
ii  libdevmapper1.01             2:1.01.05-1 The Linux Kernel Device Mapper use

lilo recommends no packages.

-- debconf information excluded

-- 
* Alfie hätte auch gerne was von dem, was Joey geraucht hat, als er das
        geschrieben hat...
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
# | computer will most likely fail to boot if a kernel-image      |
# | post-install script or you don't remember to run `lilo'.      |
# |                                                               |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
disk=/dev/hdc
bios=0x80


# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hdc1

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdc2

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=150
#       prompt
#       single-key
#       delay=100
#       timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
#       label=HURD
#       restricted
#       alias=3
other=/dev/hdc1
  label="Linux(hdc1)"

Attachment: bootblock
Description: Binary data

Reply via email to