我刚刚在我的额外 SSD 上安装了 Fedora 38,但安装后,我无法启动 Windows 10。甚至 Windows 启动管理器选项也从 BIOS 中消失了。
lsblk --fs
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
zram0 [SWAP]
nvme1n1
├─nvme1n1p1 vfat FAT32 B0AA-387C 581.4M 3% /boot/efi
├─nvme1n1p2 ext4 1.0 78b3793a-1f30-4853-82d3-40407562bf2d 725.4M 19% /boot
└─nvme1n1p3 btrfs fedora_localhost-live 31d7451f-1ce2-4e49-ba3e-0057b0fb35a9 458.7G 1% /var/lib/docker/btrfs
/home
/
nvme0n1
├─nvme0n1p1
├─nvme0n1p2 ntfs FCF8DFD1F8DF87F2 173.7G 63% /run/media/ggfan/FCF8DFD1F8DF87F2
└─nvme0n1p3 ntfs EEA427AEA427786B
我找到了一些关于如何手动将其添加到 grub 的帖子,但我甚至无法获取 UUID。
fdisk -l
Disk /dev/nvme1n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WDS500G2B0C-00PXH0
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: 7786EC75-6248-4107-BA9B-8C9292F47CC3
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 1230847 1228800 600M EFI System
/dev/nvme1n1p2 1230848 3327999 2097152 1G Linux filesystem
/dev/nvme1n1p3 3328000 976773119 973445120 464.2G Linux filesystem
Disk /dev/nvme0n1: 465.76 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: 3ACA63D9-7717-437D-8BE1-6E9B5237F430
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 34815 32768 16M Microsoft reserved
/dev/nvme0n1p2 34816 975589115 975554300 465.2G Microsoft basic data
/dev/nvme0n1p3 975589376 976771071 1181696 577M Windows recovery environment
Disk /dev/zram0: 8 GiB, 8589934592 bytes, 2097152 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
os-prober 也无法检测到窗口:
root@fedora ~]# os-prober
/dev/nvme1n1p3:Alpine Linux v3.16:Alpine:linux:btrfs:UUID=31d7451f-1ce2-4e49-ba3e-0057b0fb35a9:subvol=root/var/lib/docker/btrfs/subvolumes/8b4f9bbe1c7d0f91cbe8165298a5cc5adec61af301ca6d4ce85a816feab74105
答案1
由于缺少 EFI 分区,因此我使用 Windows 安装媒体重新创建了它。
当出现选择语言向导时按下shift + f10
,输入命令提示符然后:
diskpart
list disk
// choose disk carefully
select disk 0
list partition
// choose partition carefully
select partition 2
// shrink another partition to give ESP sapce
shrink desired =600
// now create the ESP
create partition efi
// format it as FAT32
format fs=fat32 quick
assign letter=Y
exit
// fill ESP with EFI files...
bcdboot c:windows /s Y: