zoudanse 发表于 2004-3-7 18:54:05

如果"修复red hat 9.0的Lilo"的疑惑??

我按照论坛上的方法去修复,可是行不同
我先
mkdir /mnt/root
mount /dev/hdaX /mnt/root
chroot /mnt/root

之后以下一步就没有用了
cd /sbin/lilo       "( 系统打出找不到文件的提示,可是 sbin下又有这个文件)

exit
umount /mnt/root

以上就是就是cd/sbin/lilo 这一步不成功,不知道那里有错误
重启后还是没有效果

greensun 发表于 2004-3-7 19:15:42

因为你安装系统时是用grub的,所以你要用grub去弄你的启动引导。
如果装的时候选的是 lilo,在提示符下打lilo是有反应的。

# lilo
Added 2.6.2 *
Added 2.6.0
Added linux
Added DOS
#

象这样就正常了,表明lilo已经写入 MBR了。

具体的可以在 /etc/lilo.conf看到,用文本查看器可看到,要编辑可以用VI和XEmacs(最好在X-Windows下进行)。具体内容请看我的图片。

要是想用lilo的话也可以拿安装盘修复安装一下。修复如果不添加什么程序是很快的。记得引导选lilo哦。

greensun 发表于 2004-3-7 22:21:26

下面我的截图。

zoudanse 发表于 2004-3-8 11:02:39

原来我安装系统时的是grub的,那么请问如果修复引导菜单呢?我的电脑没有光驱,用发行光盘怎样??

cobranail 发表于 2004-3-8 11:22:01

原来我安装系统时的是grub的,那么请问如果修复引导菜单呢?我的电脑没有光驱,用发行光盘怎样??
grub-install /dev/hda(注意没有X)

zoudanse 发表于 2004-3-8 11:41:29

我试了
grub-install /dev/hda
可是没有用 只显示 command not found

Bluedata 发表于 2004-3-8 11:42:22

# /sbin/grub-install /dev/hda

zoudanse 发表于 2004-3-8 18:15:47

组长,不行呀,我用了
# /sbin/grub-install /dev/hda
后,虽然没有错误的提示,可是重启后还是老样子,为什么会这样??

zoudanse 发表于 2004-3-8 18:47:09

我用论坛上的方法
1 mkdir /mnt/root
2 mount /dev/hda /mnt/root
3 chroot /mnt/root
3 /sbin/grub-install /dev/hda
当做完第三步是显示以下信息
probing devices to geusee BIOS drives take a long time
等待了一段时间后又显示
The file /boot/grub/stage1 not read correctly
请问是什么原因呀??

zoudanse 发表于 2004-3-8 18:57:32

Bluedata,
我用论坛上的方法
1 mkdir /mnt/root
2 mount /dev/hda /mnt/root
3 chroot /mnt/root
3 /sbin/grub-install /dev/hda
当做完第三步是显示以下信息
probing devices to geusee BIOS drives take a long time
等待了一段时间后又显示
The file /boot/grub/stage1 not read correctly
请问是什么原因呀??
页: [1]
查看完整版本: 如果"修复red hat 9.0的Lilo"的疑惑??