重新安装grub

本文介绍了如何将Grub安装到指定磁盘并设置boot目录,同时提供了调整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!


评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值