Windows 安装后 LUKS 分区消失

Windows 安装后 LUKS 分区消失

我有一个 NVMe 驱动器,其中一个分区带有 LUKS 加密的 Linux Mint 19,另一个分区带有 Windows 10。两者都能够启动(我有 grub,我可以选择 Linux 或 Windows 来启动)。然后我在第二个分区上重新安装了 Windows 10,但这次我删除了 Windows 安装程序中的 Win10 分区并创建了一个新分区。此时我认为它创建了其他分区(我不确定,可能用于 UEFI 启动或恢复)。之后我能够启动 Windows,我想我可以修复 grub,应该能够启动两个系统。

现在,当我加载 grub 时,我有相同的旧启动选项,但是当我尝试启动 LUKS 加密的 Linux 时,我收到错误Encrypted LVM Boot fail (lvmetad not active)volume group mint-vg not found

当我从实时 USB-Linux 启动时:

root@mint:~# blkid
/dev/sda1: UUID="2020-06-24-19-01-47-00" LABEL="Linux Mint 20 Cinnamon 64-bit" TYPE="iso9660" PTUUID="4089a39b" PTTYPE="dos" PARTUUID="4089a39b-01"
/dev/loop0: TYPE="squashfs"
/dev/sda2: SEC_TYPE="msdos" UUID="1AC3-20ED" TYPE="vfat" PARTUUID="4089a39b-02"
/dev/sda3: LABEL="writable" UUID="7ea65c25-2113-4a05-af9f-a107e6a95879" TYPE="ext4" PARTUUID="4089a39b-03"
root@mint:~# ls -lh /dev/mapper/
total 0
crw------- 1 root root 10, 236 Apr  2 21:03 control
root@mint:~# ls -lh /dev/mapper/control 
crw------- 1 root root 10, 236 Apr  2 21:03 /dev/mapper/control
root@mint:~# /sbin/cryptsetup luksOpen /dev/sda3 crypt
Device /dev/sda3 is not a valid LUKS device.

现在有东西丢失了吗?我听说过一些 LUKS 加密标头,它们现在被删除了吗?有什么方法可以恢复它吗?

更新:

sudo fdisk -l
Disk /dev/loop0: 1.75 GiB, 1863593984 bytes, 3639832 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: 28.92 GiB, 31029460992 bytes, 60604416 sectors
Disk model: DataTraveler 3.0
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: 0x4089a39b

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sda1  *          0  3876543  3876544  1.9G  0 Empty
/dev/sda2           648     8583     7936  3.9M ef EFI (FAT-12/16/32)
/dev/sda3       3878912 60604415 56725504 27.1G 83 Linux

从实时系统启动时,它无法识别我的 NVMe 驱动器。

root@mint:~# lshw -class storage -class disk
  *-usb                     
       description: Mass storage device
       product: DataTraveler 3.0
       vendor: Kingston
       physical id: 1
       bus info: usb@2:1.1
       logical name: scsi16
       version: 1.10
       serial: 80C5F289B108E2C1986B01EA
       capabilities: usb-3.20 scsi emulated scsi-host
       configuration: driver=usb-storage maxpower=504mA speed=5000Mbit/s
     *-disk
          description: SCSI Disk
          product: DataTraveler 3.0
          vendor: Kingston
          physical id: 0.0.0
          bus info: scsi@16:0.0.0
          logical name: /dev/sda
          version: PMAP
          serial: 8E02CC51F928
          size: 28GiB (31GB)
          capabilities: removable
          configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
        *-medium
             physical id: 0
             logical name: /dev/sda
             size: 28GiB (31GB)
             capabilities: partitioned partitioned:dos
             configuration: signature=4089a39b
  *-raid
       description: RAID bus controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 17
       bus info: pci@0000:00:17.0
       version: 00
       width: 32 bits
       clock: 66MHz
       capabilities: raid msix pm bus_master cap_list
       configuration: driver=ahci latency=0
       resources: irq:16 memory:b4200000-b4207fff memory:b4209000-b42090ff ioport:4080(size=8) ioport:4088(size=4) ioport:4060(size=32) memory:b4100000-b417ffff

(我没有使用 RAID)

更新:我忘了提到系统在重启后进行了固件/BIOS 更新。

答案1

我必须在 BIOS 设置中将 SATA 切换为 AHCI 模式,因为安装或固件更新会将其切换为 RAID 模式。之后一切都按预期运行。

相关内容