LinuxSir.cn,穿越时空的Linuxsir!

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

急救! 在recue環境下沒法運行lilo怎麽辦?

[复制链接]
发表于 2005-2-16 23:47:59 | 显示全部楼层 |阅读模式
在recue環境下, 打lilo -f /mnt/hda5/etc/lilo.conf沒法運行lilo怎麽辦?
发表于 2005-2-17 07:27:42 | 显示全部楼层
I think you need to chroot first.  Try:

#chroot /mnt/hda5 /bin/bash -l
#lilo -C /etc/lilo.conf
#exit
#reboot
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 11:41:37 | 显示全部楼层
謝謝!
現在lilo到是能用了, 機器也可以引導了, 可是啓動内核的時候失敗!

ext2-fs: ide0(3,5): couldn't mount because of unsupported optional features (4)
kernel panic: VFS: unable to mount root fs on 03:05
回复 支持 反对

使用道具 举报

发表于 2005-2-17 12:33:53 | 显示全部楼层
Are you missing something, say initrd?

What system are you running?  Are you compiling your own kernel?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 17:01:39 | 显示全部楼层
我用的是rh7.3, 重新編譯的2.6.10的内核
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 18:32:32 | 显示全部楼层
prompt
timeout=90
default=GNU/Linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
lba32

Image=/boot/vmlinuz-2.4.18-3
root=/dev/hda5
label=GNU/Linux
vga=792
read-only
回复 支持 反对

使用道具 举报

发表于 2005-2-17 21:30:20 | 显示全部楼层
Some questions:

1. It looks it is the details of your lilo.conf, you have not define the details for your 2.6.10 kernel, have you?
2. Can you start your system with the 2.4.18 kernel?  Please note, as for your 2.4.18 kenel, using the "/" in GNU/Linux as your label is not a good idea.
3. Do you have a initrd for your 2.6.10 kernel?
4. How did you compile your own kernel, have you "make install"?  If yes, please list the details of your /boot.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-17 23:24:29 | 显示全部楼层
我用2.4.18可以正常啓動, 2.6.10沒有成功過
如何生成2.6.10的initrd.img?
我make install了.
兄弟怎麽定義内核的細?(details)?
多謝了
回复 支持 反对

使用道具 举报

发表于 2005-2-18 06:36:53 | 显示全部楼层
I am not sure if you have an initrd for your 2.6.10 kernel, if you have "make install", please list your files in /boot for study.

By the way, RH7.x included the buggy and lousy gcc-2.96.x compiler.  You should get rid of it!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-18 11:39:05 | 显示全部楼层
total 14M
-rw-r--r--    1 root     root          512 Feb 16 19:42 boot.0300
-rw-r--r--    1 root     root         5.7k Jun 24  2001 boot.b
-rw-r--r--    1 root     root          612 Jun 24  2001 chain.b
-rw-r--r--    1 root     root          39k Apr 18  2002 config-2.4.18-3
-rw-r--r--    1 root     root         126k Feb 11 18:13 initrd-2.4.18-3.img
-rw-r--r--    1 root     root          473 Feb 11 18:12 kernel.h
-rw-------    1 root     root          24k Feb 17 17:58 map
-rw-r--r--    1 root     root          23k Jun 24  2001 message
lrwxrwxrwx    1 root     root           20 Feb 11 18:12 module-info -> module-info-2.4.18-3
-rw-r--r--    1 root     root          14k Apr 18  2002 module-info-2.4.18-3
-rw-r--r--    1 root     root          640 Jun 24  2001 os2_d.b
lrwxrwxrwx    1 root     root           19 Feb 17 06:02 System.map -> System.map-2.4.18-3
-rw-r--r--    1 root     root         455k Apr 18  2002 System.map-2.4.18-3
-rw-r--r--    1 root     root         967k Feb 16 20:38 System.map-2.6.10
-rwxr-xr-x    1 root     root         2.7M Apr 18  2002 vmlinux-2.4.18-3
-rwxr-xr-x    1 root     root         5.8M Feb 16 20:38 vmlinux-2.6.10
-rw-r--r--    1 root     root        1006k Apr 18  2002 vmlinuz-2.4.18-3
-rw-r--r--    1 root     root         2.2M Feb 16 20:38 vmlinuz-2.6.10
回复 支持 反对

使用道具 举报

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

本版积分规则

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