您的位置:首页 > 其它

重装windows后找回ubuntu的方法

2007-04-17 08:03 281 查看
重装windows后会发现重启动没有grub的选择项,无法进入ubuntu。这时需要重新安装grub.一个简单的办法就是利用安装光盘或者硬盘安装时的ISO文件。
进入liveCD,在终端中输入sudo grub,会有如下提示符:grub>.
输入root (hdx, .在这里,x是指第几块硬盘,从0开始算。大部分人都只有一块硬盘,所以写root (hd0,即可。
点Tab键,一下或者两次。这时会给出类似下面的提示:
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type is fat, partition type 0xb
Partition num: 7, Filesystem type unknown, partition type 0x82

grub> root (hd0,

自己查看逻辑盘符,输入,我输入的是root (hd0,2)。回车。
再输入setup (hd0)命令。这里也是指第几块硬盘。

然后就OK啦。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: