我有 Ubuntu 14.04,然后不知道什么时候升级到 15.10。然后就卡在升级 16.10,但是升级的试用结果非常糟糕。我的 Ubuntu 无法启动。然后(因为那时我急需)我重新安装了另一个 Ubuntu 14.04(旧但仍然是 LTS),并成功保存。但不小心删除了我的启动 EFI 分区。所以 windows 启动没了(我替换了它。。TT)。
问题并不远:
使用 Ubuntu 从双启动中恢复 Windows 10 EFI 启动
但我不知道,如何检查我的主要问题出在哪里..
我也尝试了其他一些解决方案。
编辑添加自定义菜单
sudo gedit /etc/grub.d/40_custom menuentry "WINDOWS10 (on /dev/sda4)" --class windows --class os { insmod part_msdos insmod ntfs set root='(/dev/sda,msdos1)' search --no-floppy --fs-uuid --set=root 9E1EA0371EA009FB drivemap -s (hd0) ${root} chainloader +1 }
卡住:
无法知道 msdos1 列表等强制添加引导加载
sudo grub-install --root-directory=/mnt --boot-directory=/mnt/boot /dev/sda4
错误:
grub-install:错误:找不到 EFI 目录。默认重新检查
sudo 更新 grub
卡住:
假:不执行任何操作(检查底部的附加信息)重新检查 UUID:
使用 Gparted 进行检查并进行启动修复
仍然卡住,并且说有些点不能自动修复,我没明白这一点。
使用启动信息脚本重新检查:
sda1:______________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/MokManager.efi /efi/ubuntu/shimx64.efi
sda3:______________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sda4:______________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Windows/System32/winload.exe
sda5:______________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6:________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 15.10
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/extlinux/extlinux.conf
sda7: ______________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda8:______________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.5 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
============================= 驱动器/分区信息: ==============================
驱动器:sda ___________________________________________________________________________________
磁盘 /dev/sda:500.1 GB,500107862016 字节 255 个磁头,63 个扇区/磁道,60801 个柱面,共计 976773168 个扇区 单位 = 1 * 512 的扇区 = 512 字节 扇区大小(逻辑/物理):512 字节 / 4096 字节
分区引导起始扇区结束扇区扇区数ID系统
/dev/sda1 1 976,773,167 976,773,167 ee GPT
检测到 GUID 分区表。
Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 1,128,447 1,126,400 EFI System partition
/dev/sda3 1,128,448 1,161,215 32,768 Microsoft Reserved Partition (Windows)
/dev/sda4 1,161,216 219,013,119 217,851,904 Data partition (Windows/Linux)
/dev/sda5 219,013,120 239,493,119 20,480,000 Data partition (Windows/Linux)
/dev/sda6 239,493,120 435,382,271 195,889,152 Data partition (Windows/Linux)
/dev/sda7 468,869,120 976,773,119 507,904,000 Data partition (Windows/Linux)
/dev/sda8 435,382,272 468,869,119 33,486,848 Data partition (Linux)
“blkid” 输出:________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 BAEE-D94B vfat MBR ESP
/dev/sda4 9E1EA0371EA009FB ntfs System
/dev/sda5 f1ce1224-1c07-4b55-8d0e-819ec92966fa swap
/dev/sda6 f89ba19a-53e9-4bb8-b1f3-e98eb3df61db ext3
/dev/sda7 70A6363BA63601E0 ntfs data
/dev/sda8 e3da3fc1-3cfd-49e0-9883-ab4b9f1f56d5 ext4
=================================== 挂载点: ===================================
Device Mount_Point Type Options
/dev/sda1 /boot/efi vfat (rw)
/dev/sda4 /media/reigin/System fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda6 /media/reigin/f89ba19a-53e9-4bb8-b1f3-e98eb3df61db ext3 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda7 /media/reigin/data fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda8 / ext4 (rw,errors=remount-ro)
附加信息 :
reigin@reigin-K43SA:~/Downloads$ sudo update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
Found Ubuntu 15.10 (15.10) on /dev/sda6
done
我仍在学习如何使用 Ubuntu,如果有人能帮助我我将非常高兴。谢谢。