LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 868|回复: 1

libdevmapper 1.01.03 令kernel不能更新的问题

[复制链接]
发表于 2005-8-15 14:42:20 | 显示全部楼层 |阅读模式
更新了linux-kernel-image到2.6.12-1-k7后,运行lilo -v -v -v后出现下面的错误:

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

在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启动。

不知各位有无遇上同一问题,还是我在哪地方出错?
 楼主| 发表于 2005-8-20 12:08:28 | 显示全部楼层
折腾了个多月,现在才知道不关libdevmapper 1.01的问题。

原来是linux-image-2.6.12-1-k7的早期版本的一个bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320422

the postinst for linux-image-2.6.12 contains an error that creates
symlinks /boot/vmlinuz* and /boot/initrd.img* that point into the void.

$ ll /boot/vmlinuz{,.old} /boot/initrd.img{,.old}
lrwxrwxrwx  1 root root 4 2005-07-26 08:21 /boot/initrd.img -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-22 18:49 /boot/initrd.img.old -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-26 08:21 /boot/vmlinuz -> -2.6
lrwxrwxrwx  1 root root 4 2005-07-22 18:49 /boot/vmlinuz.old -> -2.6

小弟的根目录中的/vmlinuz被错误连结往/boot/vmlinuz-2.6(并不存在),正确应连结往/boot/vmlinuz-2.6-12-1-7,因此运行lilo -v -v -v出现找不到/vmlinuz-2.6,自行修正错误的连结后,问题已解决。

好象最新版本的linux-image-2.6.12-1-k7已改正这错误。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表