
我無法按照我想要的方式設定我的 (Win10/Ubuntu 15.10) 雙啟動。我有以下驅動器:
- 500GB SSD - Windows(
/dev/sdb
BIOS 中預設啟動) - 250GB SSD - Ubuntu(
/dev/sda
這裡安裝了 GRUB) - 1TB HDD - 數據,共享
理想情況下,我可以將 Ubuntu 驅動器設定為預設啟動驅動器,如果需要的話,可以讓 GRUB 與 Windows 條目一起啟動。我想盡可能少地干擾 Windows 驅動器,因為我總是以某種奇怪的方式搬起石頭砸自己的腳,需要重新安裝。但是,我似乎無法讓 Ubuntu/GRUB 識別/dev/sdb
磁碟機上的 Windows。的輸出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 條目。