重新安装grub


将grub安装在第一个盘,同时指定boot目录,如果有独立的boot分区,可以不指定.

sudo grub-install --boot-directory=/boot /dev/sda




# 更新配置信息,重新生成grub.cfg.

# sudo update-grub           





设置grub的显示模式:

当分辨率不支持的情况下,会显示如下提示:

error “cannot display this video mode” [closed]


处理方法是:

I waited for 10 - 20 seconds on that "cannot display this video mode" screen and then Ubuntu 12.04 desktop came up. this is because the default OS will be selected for booting after timeout if we do not disturb anything. (hands away from keyboard)

After logging in, I edited /etc/default/grub

In terminal:

sudo gedit /etc/default/grub

Uncomment the line (removed the #) for GRUB_GFXMODE=640x480 and save the file.

Again in terminal, I ran update-grub:

sudo update-grub

rebooted then and I could see grub!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值