作者:multiple1902
引言:Ubuntu是一个适合多种用途的Linux发行版本。这篇文章以简单的语言叙述了部署了Ubuntu操作系统后再安装Windows XP导致Ubuntu系统引导菜单丢失的解决方法。
关键词: Ubuntu 引导菜单 GRUB 虚拟机
Abstract: Ubuntu is a Linux-based computer operating system for multiple uses. This thesis presents a means to eliminate the state, in which installing Microsoft Windows XP after Ubuntu being distributed possibly leads to missing of the booting menu of Ubuntu, calling menu.lst.
Keywords: Ubuntu, Boot Menu, GRUB, Virtural machine
目录
一、系统环境简介
二、引导菜单丢失
三、解决方法
一、系统环境简介
笔者安装的是2009年4月发行的Ubuntu 9.04版本,开发代号为the Jaunty Jackalope。安装方式为在Windows XP环境下使用VMWare Workstation创建虚拟机,并使用物理硬盘及Ubuntu 9.04 Desktop安装光盘安装在第一快硬盘(160GB)的(hd0,8)分区上,分区格式为ext3。系统分区表挂载Windows XP的ntldr实现引导,并使用linux.lnx文件从Windows XP引导菜单跳转到GRUB引导菜单。以上配置好后可以正常运行。
二、引导菜单丢失
从Windows XP引导菜单中选择ubuntu启动项启动后进入GRUB的引导界面,此时出错,出错提示为:
grub loading, please wait.......
error 17
引导程序无法继续。进入Windows XP后检查主引导分区,发现可能有文件丢失。
三、解决方法
进入Windows XP系统,安装VMWare Workstation,新建虚拟机,设置其硬盘为使用物理硬盘,且光驱载入Ubuntu 9.04 Desktop安装光盘。从光盘引导进入LiveCD的界面,并启动LiveCD模式。打开终端,并运行“sudo grub”。
进入grub命令后,输入“find /boot/grub/stage1”以查找Ubuntu系统所安装在的分区,笔者这里返回的是(hd0,8),接下来依次输入并运行“root (hd0,8)”、“setup (hd0)”后退出终端,值得注意的是,这里的hd0和8要按照find命令返回的结果适当修改。
此时启动分区中的grub和其引导菜单已经修复完成,且系统分区表(MBR)指向的是GRUB引导菜单。如需要用Windows XP引导菜单,使用Windows XP安装盘修复即可。
版权声明:
