我无法按自己想要的方式设置 (Win10/Ubuntu 15.10) 双启动。我有以下驱动器:
- 500GB SSD - Windows(
/dev/sdb
,BIOS 中默认启动) - 250GB SSD - Ubuntu(
/dev/sda
,此处安装了 GRUB) - 1TB HDD - 数据,共享
理想情况下,我可以将 Ubuntu 驱动器设置为默认启动驱动器,并让 GRUB 具有一个条目,以便 Windows 根据需要从那里启动。我希望尽可能少地弄乱 Windows 驱动器,因为我总是以某种奇怪的方式自食其果,需要重新安装。但是,我似乎无法让 Ubuntu/GRUB 识别驱动器上的 Windows /dev/sdb
。输出sudo fdisk -l
给出:
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 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
Disklabel type: dos
Disk identifier: 0x72af2e5d
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 976895 974848 476M 83 Linux
/dev/sda2 978942 500117503 499138562 238G 5 Extended
/dev/sda5 978944 49805311 48826368 23.3G 83 Linux
/dev/sda6 49807360 469727231 419919872 200.2G 83 Linux
/dev/sda7 469729280 500117503 30388224 14.5G 82 Linux swap / Solaris
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: gpt
Disk identifier: 4CF7AF69-3795-45AE-96B5-E4AFBBDBDF08
Device Start End Sectors Size Type
/dev/sdb1 2048 616447 614400 300M Windows recovery environment
/dev/sdb2 616448 821247 204800 100M EFI System
/dev/sdb3 821248 1083391 262144 128M Microsoft reserved
/dev/sdb4 1083392 975851519 974768128 464.8G Microsoft basic data
/dev/sdb5 975851520 976773119 921600 450M Windows recovery environment
当我运行时sudo grub-install /dev/sdb
,我得到:
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: error: embedding is not possible, but this is required for cross-disk install.
运行sudo update-grub
只会给出:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.2.0-18-generic
Found initrd image: /boot/initrd.img-4.2.0-18-generic
Found linux image: /boot/vmlinuz-4.2.0-16-generic
Found initrd image: /boot/initrd.img-4.2.0-16-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
运行os-prober
不返回任何内容。 的摘要结果boot-repair
位于http://paste.ubuntu.com/13323193/(太长,不适合粘贴在这里)
我缺少什么才能将 Windows 添加到 GRUB 列表?
答案1
在 UEFI 而不是传统 BIOS 中安装 Ubuntu 可以正确地为 Windows 添加 GRUB 条目。