我有一台 HP Pavilion power 15-cb030nl,安裝了 Debian 10 buster。
幾個月前,我用更大的 SSD 更換了 SSD,並使用 clonezilla 克隆了整個系統(上面有 debian 9)。
今天早上,我使用外部轉接器透過 USB 連接了舊 SSD(安裝了 debian 9 的 SSD)。啟動筆記型電腦,出現以下錯誤:
Boot Device Not Found
Please install an operating system on your hard disk
Error codes:
Hard Disk - (3F0)
F2 System diagnostics
即使移除了外部 SSD,黑畫面仍然出現。
我很難說由於某種原因 grub 檔案丟失或損壞,所以我嘗試了 Ubuntu live USB 版本並重新安裝了 grub(透過我的 debian 上的 chroot),所以 grub 出現了,但它是空的!
請注意,我可以在 ubuntu live 上使用 debian 10 讀取 SSD,因此我不認為 SSD 已損壞或物理連接不良。
這就是我所看到的fdisk -l
Disk /dev/loop0: 1.9 GiB, 2027323392 bytes, 3959616 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/loop1: 89.3 MiB, 93581312 bytes, 182776 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/loop2: 53.7 MiB, 56315904 bytes, 109992 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/loop3: 151 MiB, 158343168 bytes, 309264 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/loop4: 4 MiB, 4218880 bytes, 8240 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/loop5: 14.8 MiB, 15462400 bytes, 30200 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/loop6: 1008 KiB, 1032192 bytes, 2016 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/loop7: 3.7 MiB, 3821568 bytes, 7464 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/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO 500GB
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: gpt
Disk identifier: 9484CCFA-0E07-4985-848D-56A9404D460F
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 6049666 4999043 2.4G Linux filesystem
/dev/nvme0n1p3 6049667 976773134 970723468 462.9G Linux LVM
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM049-2GH1
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: 34F9309F-9994-49CA-93BE-1BCF2C285E39
Device Start End Sectors Size Type
/dev/sda1 2048 1919397887 1919395840 915.2G Microsoft basic data
/dev/sda2 1919397888 1953523711 34125824 16.3G Microsoft basic data
Disk /dev/sdb: 7.2 GiB, 7736072192 bytes, 15109516 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: 0x46f8e7bf
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 4095999 4096000 2G 0 Empty
/dev/sdb2 4066772 4074259 7488 3.7M ef EFI (FAT-12/16/32)
Disk /dev/mapper/naptor--vg-root: 447 GiB, 479945818112 bytes, 937394176 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/mapper/naptor--vg-swap_1: 15.9 GiB, 17062428672 bytes, 33325056 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/loop8: 35.3 MiB, 37027840 bytes, 72320 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
如您所見,給我帶來問題的 SSD 是:/dev/nvme0n1
我嘗試的另一件事是使用 Super grub 來恢復 grub,但奇怪的是它沒有看作業系統也可以。這是我從 super grub live 得到的截圖:
https://i.stack.imgur.com/460FI.jpg [請看圖片,因為我沒有足夠的聲譽,所以無法將其發佈在這裡]
我試過開機修復但在嘗試重新安裝 grub 時會卡住。這是啟動修復資訊日誌:http://paste.ubuntu.com/p/nnFNJ3pKTK/
我還在 BIOS 中啟用了傳統支援(而不是使用 UEFI),但它是完全相同的。
實際上我不知道外部 SSD 是否破壞了所有內容,或者發生了其他事情(也許是 debian 中的更新?不這麼認為..)。
然而,在我看來,目前這與 grub 無關,但我真的沒有更多的想法。
編輯: efibootmgr -v
$ efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 2001,0001,3001,0000,2002,2004
Boot0000* EFI Hard Drive (Samsung SSD 970 EVO 500GB) PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-5B-81-B0-FE-44)/HD(1,GPT,ace2a167-78a7-4446-95bc-efc429f8383c,0x800,0x100000)RC
Boot0001* grub HD(1,GPT,ace2a167-78a7-4446-95bc-efc429f8383c,0x800,0x100000)/File(\EFI\grub\shimx64.efi)
Boot0002* USB Hard Drive (UEFI) - KingstonDataTraveler 3.0 (KingstonDataTraveler 3.0) PciRoot(0x0)/Pci(0x14,0x0)/USB(16,0)/HD(1,MBR,0x46f8e7bf,0x3e0dd4,0x1d40)RC
Boot2001* EFI USB Device RC
Boot3001* Internal Hard Disk or Solid State Disk RC