发新话题
打印

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

安装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模式)启动,加载系统所在的分区:
复制内容到剪贴板
代码:
mount /dev/hda2 /mnt &&
chroot /mnt
对于grub:
复制内容到剪贴板
代码:
grub-install /dev/hda
如果得到以下类似结果,说明安装成功:
复制内容到剪贴板
代码:
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
对于lilo:
复制内容到剪贴板
代码:
lilo
如果得到以下类似结果,说明安装成功:
复制内容到剪贴板
代码:
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:
复制内容到剪贴板
代码:
mount /dev/hda2 /mnt
chroot /mnt
lilo
http://www.linuxeden.com/forum/attachment.php?attachmentid=540

对于grub:
复制内容到剪贴板
代码:
mount /dev/hda2 /mnt
chroot /mnt
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

TOP

附图
................      
附件: 您所在的用户组无法下载或查看附件
15 is too short

TOP

附图
......      
附件: 您所在的用户组无法下载或查看附件
15 is too short

TOP

我的OKI5320在linux下如何驱动?      

TOP

[QUOTE=ServerOnly]
对于grub:
复制内容到剪贴板
代码:
mount /dev/hda2 /mnt
chroot /mnt
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

发新话题