从 19.04 升级到 Ubuntu 19.10 — 系统不再启动(启动修复也不起作用)

从 19.04 升级到 Ubuntu 19.10 — 系统不再启动(启动修复也不起作用)

正如标题所说,我do-release-upgrade今天做了,现在有问题。我让这台电脑使用 win10 磁盘双启动,现在 Kubuntu 19.10 安装无法启动。磁盘有 FDE,即使我已经安装并解密了我的 Ubuntu 磁盘,也无法boot-repair修复它,抛出错误Please use this software in a live-session (live-CD or live-USB). This will enable this feature.

这是的输出fdisk -l

Disk /dev/loop0: 1.68 GiB, 1791954944 bytes, 3499912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1CH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 90AA474C-403B-48D8-A51F-EA67103A29E9

Device       Start        End    Sectors   Size Type
/dev/sda1     2048    1023999    1021952   499M Windows recovery environment
/dev/sda2  1024000    1228799     204800   100M EFI System
/dev/sda3  1228800    1261567      32768    16M Microsoft reserved
/dev/sda4  1261568 1953523711 1952262144 930.9G Microsoft basic data


Disk /dev/sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM006-2DM1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xab30ec36

Device     Boot   Start        End    Sectors  Size Id Type
/dev/sdb1  *       2048    1499135    1497088  731M 83 Linux
/dev/sdb2       1501182 3907028991 3905527810  1.8T  5 Extended
/dev/sdb5       1501184 3907028991 3905527808  1.8T 83 Linux

Partition 2 does not start on physical sector boundary.


Disk /dev/sdc: 28.96 GiB, 31071404032 bytes, 60686336 sectors
Disk model: USB 3.0 FD      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x48e7426f

Device     Boot Start      End  Sectors Size Id Type
/dev/sdc1  *     2048 60686335 60684288  29G  c W95 FAT32 (LBA)


Disk /dev/mapper/luks-d5504240-d15c-4453-8767-9beb20b9d785: 1.84 TiB, 1999628140544 bytes, 3905523712 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/kubuntu--vg-root: 1.84 TiB, 1998602633216 bytes, 3903520768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/kubuntu--vg-swap_1: 976 MiB, 1023410176 bytes, 1998848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

在解密之前,我尝试运行了boot-repair一次,结果情况更加糟糕。在第一次尝试之前,我得到了通常的 grub-rescue 命令,但现在根本没有检测到操作系统(尽管我的所有文件都在那里,我可以通过 live-usb 确认)。我现在真的不知道该怎么办。我真的宁愿不是如果可能的话,重新安装。

编辑:这是启动报告来自boot-repairhttps://paste.ubuntu.com/p/KSyx5WQtTv/

看来,如果我能够在实时会话中打开此磁盘,就应该能够解决问题,因为我能够/boot在 sdb 中看到该目录。

答案1

就像它所说的那样,引导修复旨在从 LiveCD 运行。制作 LiveCD 或 Live-USB 并使用它。或者手动修复引导,详见这个相关问题。例如通过 Grub 救援启动。(输入ls以获取分区列表。然后ls在每个分区上找到一个带有 ext2 的分区)。

set root=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal

然后按照上面链接中更详细的说明来发现并输入你的特定设置的详细信息,可能只是

update-grub /dev/hdb
grub-install

(我放置了 /dev/hdb 而不是通常的 /dev/hda,假设您的输出fdisk -l显示了放置 /boot 的正确位置。或者您想要放置 Grub 引导加载程序的任何位置)

答案2

我能够按照此处给出的解决方案解决问题:https://askubuntu.com/a/844231/591650

相关内容