Ubuntu 16.04 引导修复(Boot Repair)----lianwang----anzhuang windows hou(双系统修复一)
分类:
版权声明:本文为博主原创文章,未经博主允许不得转载。
这几天不是我闲着没事做,实在是电脑故意跟我过不去,一不小心,Windows就再也无法打开了,然后的然后,你们都知道就是重装系统喽。但是重装系统后,会发现原来的Ubuntu引导不见了,开机直接进入Windows界面,弱前几天刚刚把Ubuntu重装一遍,所以不想再装了,于是上网找了一些很好用的办法。顺便把以前装ubuntu后,Windows引导修复的问题也一块解决了。
第一步:
还是需要进入Ubuntu界面,但是并不需要安装(如果直接安装的话,以前在Ubuntu里面的文件可全部都没有了,所以万不得已,千
万别这样做)。
如何进入Ubuntu界面呢,相信装过Ubuntu的你们应该都会,在这里我只说其中一个办法:
用软碟通UltraISO准备好Ubuntu U盘启动(最好和原来一样的系统)。
第二步:
进入试用的Ubuntu界面,并连接好网络(因为后续工作需要用到网络)。
第三步:
打开终端,终端快捷键是Ctrl+Alt+T,输入:
- sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
然后一直跟着提示操作即可。
第四步:
在终端再次输入:
- sudo apt-get install -y boot-repair && boot-repair
等一会,会出现如下的界面:
就会出现这个,点击Recommended repair,过几分钟重启就行了。
第五步:
如果有些人不小心点击了Create a BootInfo summary的话,那你的开机启动界面将会出来一大堆你以前没见过的东西。
那样的话,你可以输入名令:cd /boot/grub
接着输入sudo gedit grub.cfg,打开grub.cfg文件后,通过搜索找到windows,然后把下面这些删去就和原来一样了。
- ### BEGIN /etc/grub.d/25_custom ###
- menuentry "efi/EFI/Boot/bootx64.efi" {
- search --fs-uuid --no-floppy --set=root d000ed6a-5303-40aa-a517-af50e807c0e9
- chainloader (${root})/efi/EFI/Boot/bootx64.efi
- }
- menuentry "efi/EFI/ubuntu/MokManager.efi" {
- search --fs-uuid --no-floppy --set=root d000ed6a-5303-40aa-a517-af50e807c0e9
- chainloader (${root})/efi/EFI/ubuntu/MokManager.efi
- }
- menuentry "Windows UEFI recovery bootmgfw.efi" {
- search --fs-uuid --no-floppy --set=root A603-846C
- chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
- }
- menuentry "Windows Boot UEFI recovery" {
- search --fs-uuid --no-floppy --set=root A603-846C
- chainloader (${root})/EFI/Boot/bkpbootx64.efi
- }
- menuentry "EFI/ubuntu/MokManager.efi sda2" {
- search --fs-uuid --no-floppy --set=root A603-846C
- chainloader (${root})/EFI/ubuntu/MokManager.efi
- }
- menuentry "Windows UEFI recovery LrsBootmgr.efi" {
- search --fs-uuid --no-floppy --set=root 7607-5674
- chainloader (${root})/efi/Microsoft/Boot/LrsBootmgr.efi
- }
- menuentry "Windows Boot UEFI recovery bkpbootx64.efi" {
- search --fs-uuid --no-floppy --set=root 7607-5674
- chainloader (${root})/efi/Boot/bkpbootx64.efi
- }
- ### END /etc/grub.d/25_custom ###
_________________________________________________________________________________________________________________________________________________
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采
每一个不曾起舞的日子,都是对生命的辜负。
But it is the same with man as with the tree. The more he seeks to rise into the height and light, the more vigorously do his roots struggle earthward, downward, into the dark, the deep - into evil.
其实人跟树是一样的,越是向往高处的阳光,它的根就越要伸向黑暗的地底。----尼采