下載了kernel-image-2.6.12-k7,按照無痛起步法的步驟(過去都成功)
ln -s /boot/initrd.img-2.6.12-1-k7 /boot/initrd.img
跟著更改/etc/lilo.conf
新的boot directory:
-rw-r--r-- 1 root root 512 2003-01-14 11:11 boot.0300
-rw-r--r-- 1 root root 308326 2005-05-26 07:01 coffee.bmp
-rw-r--r-- 1 root root 16984 2003-01-14 11:06 config-2.4.18-bf2.4
-rw-r--r-- 1 root root 59812 2005-06-21 11:22 config-2.6.11-1-k7
-rw-r--r-- 1 root root 61157 2005-07-21 07:13 config-2.6.12-1-k7
-rw-r--r-- 1 root root 56416 2005-01-09 04:34 config-2.6.9-2-k7
lrwxrwxrwx 1 root root 13 2004-06-13 12:29 debian.bmp -> /boot/sid.bmp
-rw-r--r-- 1 root root 153720 2005-05-26 07:01 debianlilo.bmp
lrwxrwxrwx 1 root root 28 2005-07-23 13:21 initrd -> /boot/initrd.img-2.6. 12-1-k7
-rw-r--r-- 1 root root 4669440 2005-06-22 07:09 initrd.img-2.6.11-1-k7
-rw-r--r-- 1 root root 4923392 2005-07-23 13:21 initrd.img-2.6.12-1-k7
-rw-r--r-- 1 root root 4599808 2005-01-10 07:05 initrd.img-2.6.9-2-k7
-rw------- 1 root root 143872 2005-06-22 07:11 map
-rw-r--r-- 1 root root 23662 2005-05-26 07:01 sarge.bmp
-rw-r--r-- 1 root root 24116 2005-05-26 07:01 sid.bmp
-rw-r--r-- 1 root root 559088 2003-01-14 11:06 System.map-2.4.18-bf2.4
-rw-r--r-- 1 root root 838220 2005-06-21 13:07 System.map-2.6.11-1-k7
-rw-r--r-- 1 root root 870302 2005-07-21 08:40 System.map-2.6.12-1-k7
-rw-r--r-- 1 root root 812292 2005-01-09 07:52 System.map-2.6.9-2-k7
-rw-r--r-- 1 root root 1263339 2003-01-14 11:06 vmlinuz-2.4.18-bf2.4
-rw-r--r-- 1 root root 1228391 2005-06-21 13:07 vmlinuz-2.6.11-1-k7
-rw-r--r-- 1 root root 1297233 2005-07-21 08:39 vmlinuz-2.6.12-1-k7
-rw-r--r-- 1 root root 1211477 2005-01-09 07:52 vmlinuz-2.6.9-2-k7
新的lilo.conf 的主要部份:
default=Linux
image=/vmlinuz
label=Linux
initrd=/boot/initrd
append="pci=noacpi"
read-only
# restricted
# alias=1
image=/vmlinuz.old
label=LinuxOLD
initrd=/boot/initrd.img-2.6.11-1-k7
read-only
optional
# restricted
# alias=2
跟從前相同
可是一運行lilo -v -v -v,便出現以下錯誤:
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
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.01.03 (2005-06-13)(compat) and kernel driver
raid_setup returns offset = 00000000 ndisk = 0
BIOS VolumeID Device
Reading boot sector from /dev/hda
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
pf_hard_disk_scan: ndevs=1
0300 4FE48BB5 /dev/hda
Resolve invalid VolumeIDs
Resolve duplicate VolumeIDs
0300 4FE48BB5 /dev/hda
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = 1
device codes (canonical) = 1
Device 0x0300: BIOS drive 0x80, 255 heads, 7297 cylinders,
63 sectors. Partition offset: 0 sectors.
Using Volume ID 4FE48BB5 on bios 80
Device 0x0308: BIOS drive 0x80, 255 heads, 7297 cylinders,
63 sectors. Partition offset: 17976798 sectors.
Using Volume ID 4FE48BB5 on bios 80
mode = 0x03, columns = 80, rows = 25, page = 0
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 18 sectors (0x3400 dataend).
bios_boot = 0x80 bios_map = 0x80 map==boot = 0 map S/N: 4FE48BB5
BIOS data check was okay on the last boot
Boot image: /vmlinuz -> /boot/-2.6
Fatal: open /vmlinuz: No such file or directory
Removed temporary file /boot/map~
看出其中
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.01.03 (2005-06-13)(compat) and kernel driver
在debian的Bug#315161亦有出現類似的錯誤
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315161
想知道是否須等待 libdevmapper 1.01更新後,改寫lilo才能生效?(Bug report說可降級至
1.01.00-4)
幸好現在還能用2.6.11-k7啟動。