Created
June 21, 2022 10:11
-
-
Save xiaoysh8/c4aba7f53efce6cc2e94240c8c41c8f3 to your computer and use it in GitHub Desktop.
ubuntu 引导项修复
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu 引导项修复 | |
最近ubuntu+win10双系统重装了windows系统,ubuntu引导项丢失了,记录下修复方法: | |
1、制作一个同版本的ubuntu启动盘,选 try ubuntu; | |
2、打开终端,添加 boot-repair 源(需连网) | |
sudo add-apt-repository ppa:yannubuntu/boot-repair | |
sudo apt-get update | |
3、安装boot-repair | |
sudo apt-get install -y boot-repair | |
4、修复引导项 | |
sudo boot-repair | |
中间弹出一些对话框: | |
a、Is sdc(*) a removable disk? 其中*表示安装ubuntu的磁盘 | |
我的不是移动硬盘,选 no | |
b、Legacy Windows detected the boot of your pc is in EFI mode, you may want ... | |
我没管,继续修复 | |
c、upload the report to a pastebin? | |
我选的 no | |
最后弹出一个对话框,提示: | |
-------------------------------------------- | |
Boot successfully repaired. | |
... | |
-------------------------------------------- | |
说明修复成功。 | |
5、重启,进入bios,选择安装ubuntu的磁盘(不是u盘)作为启动盘(本人windows和ubuntu在不同disk) | |
6、进入ubuntu后,更新一下grub,重启 | |
sudo update-grub | |
reboot | |
就恢复到含有ubuntu和windows启动选项的启动界面了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment