重装windows后找回ubuntu的方法

    重装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啦。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值