返回列表 发帖

安装linux或windows后,不出现boot loader启动菜单,如何修复?

更多的精彩FAQ:
http://www.linuxeden.com/forum/showthread.php?t=106613


这一般是由于安装时没有把boot loader安装在mbr或mbr被覆盖引起的(windows的任何分区操作都会覆盖mbr)。

可以使用其他linux LiveCD(如Knoppix和RedHat安装盘的rescue模式)启动,加载系统所在的分区:
  1. mount /dev/hda2 /mnt &&
  2. chroot /mnt
复制代码


对于grub:
  1. grub-install /dev/hda
复制代码


如果得到以下类似结果,说明安装成功:
  1. Installation finished. No error reported.
  2. This is the contents of the device map /boot/grub/device.map.
  3. Check if this is correct or not. If any of the lines is incorrect,
  4. fix it and re-run the script 'grub-install'.

  5. (fd0)   /dev/fd0
  6. (hd0)   /dev/fda
复制代码


对于lilo:
  1. lilo
复制代码


如果得到以下类似结果,说明安装成功:
  1. Added linux *
复制代码


典型的破坏、恢复lilo实例

1. linux可正常启动
http://www.linuxeden.com/forum/attachment.php?attachmentid=536

2. 使用win98 fdisk破坏
(windows的任何分区操作都可达到同样目的)
http://www.linuxeden.com/forum/attachment.php?attachmentid=537

3. lilo已不能启动
http://www.linuxeden.com/forum/attachment.php?attachmentid=538

4. 使用任意一张可启动的linux cd启动
http://www.linuxeden.com/forum/attachment.php?attachmentid=539

5. mount / 所在的分区,chroot,重新安装boot loader

对于lilo:
  1. mount /dev/hda2 /mnt
  2. chroot /mnt
  3. lilo
复制代码

http://www.linuxeden.com/forum/attachment.php?attachmentid=540

对于grub:
  1. mount /dev/hda2 /mnt
  2. chroot /mnt
  3. grub-install /dev/hda
复制代码

http://www.linuxeden.com/forum/attachment.php?attachmentid=542

6. 重新启动后,lilo已恢复
http://www.linuxeden.com/forum/attachment.php?attachmentid=541





更多的精彩FAQ:
http://www.linuxeden.com/forum/showthread.php?t=106613


.
附件: 您需要登录才可以下载或查看附件。没有帐号?注册新用户
15 is too short

附图
................
附件: 您需要登录才可以下载或查看附件。没有帐号?注册新用户
15 is too short

TOP

附图
......
附件: 您需要登录才可以下载或查看附件。没有帐号?注册新用户
15 is too short

TOP

我的OKI5320在linux下如何驱动?

TOP

[QUOTE=ServerOnly]
对于grub:
  1. mount /dev/hda2 /mnt
  2. chroot /mnt
  3. grub-install /dev/hda
复制代码
.[/QUOTE]
里面的hda2是否指的是安装linux所在的硬盘分区?

TOP

我要oki5320驱动

TOP

请问only


这段代码我已经看到,但是启动的时候还是没有LINUX选项,直接就进入WINDOWS了
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script 'grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/fda

为什么呀?

TOP

晕.........

不知道什么时候好了
可以看到2个启动选项了

但是原理不明白,大家解释下好吗?

TOP

楼上的问题已在另贴中回答。

TOP

谢谢,我刚出现这个问题

TOP

返回列表