我的 MacBook Pro 上有三重启动 Ubuntu14.10/MacOSX/Windows 8。
但是,Windows 没有出现在 grub 中,只有 MacOS 和 Ubuntu 出现。
我尝试了其他类似问题中的一些方法,但都不起作用,例如运行update-grub
或Boot Repair
。以下是一些可能有用的程序输出:
磁盘管理
sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 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
Disk identifier: 0x2f014951
Device Boot Start End Blocks Id System
/dev/sda1 1 409639 204819+ ee GPT
/dev/sda2 409640 49237767 24414064 af HFS / HFS+
/dev/sda3 49500160 322936831 136718336 7 HPFS/NTFS/exFAT
/dev/sda4 * 322936832 500117503 88590336 83 Linux
我猜 /dev/sda3 可能是 Windows!?
更新 grub
sudo update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-34-generic
Found initrd image: /boot/initrd.img-3.13.0-34-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found linux image: /boot/vmlinuz-3.5.0-45-generic
Found initrd image: /boot/initrd.img-3.5.0-45-generic
Found linux image: /boot/vmlinuz-3.5.0-36-generic
Found initrd image: /boot/initrd.img-3.5.0-36-generic
Found linux image: /boot/vmlinuz-3.5.0-28-generic
Found initrd image: /boot/initrd.img-3.5.0-28-generic
Found linux image: /boot/vmlinuz-3.5.0-27-generic
Found initrd image: /boot/initrd.img-3.5.0-27-generic
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found Mac OS X on /dev/sda2
done
操作系统探测器
sudo os-prober
/dev/sda2:Mac OS X:MacOSX:macosx
答案1
尝试更新存储库,希望这能帮助您在 Windows 8 中使用 GRUB。请尝试以下命令,
sudo add-apt-repository ppa:yannubuntu/boot-repair &&
sudo apt-get update &&
sudo apt-get install -y boot-repair &&
boot-repair