Grub doesn't find Window7
Kevin O'Gorman
kogorman at gmail.com
Fri Jul 17 18:17:47 UTC 2015
It seems you're trying to install GRUB on a disk with a GPT partition
table. Such a setup does not support GRUB in the same way as an MBR
formatted disk. You have to provide GRUB with a special partition to house
its boot code. It can be small. I always place it first. Here's what
gdisk(1) says about my boot disk (first 2 lines only)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02
2 4096 67112959 32.0 GiB 8300
That first one, and its EF02 code are what GRUB needs. Note that the
partition is "small" being just 1 MB, about the minimum for modern
partitions.
If you have such a partition on the drive, GRUB will see it and use it for
its boot loader phase.
On Fri, Jul 17, 2015 at 10:09 AM, R Kimber <richardkimber at btinternet.com>
wrote:
> I'm running a dual boot PC with Windows7
>
> I've been forced to reinstall my 15.04, and did so from the live disk
> (previously it had been upgraded via apt from 14.10.
>
> However, the grub menu no longer includes Windows7. In the re-installation
> I (perhaps mistakenly) put grub on the main Ubuntu disk (sdb) rather than
> the Windows disk (sda). So I tried to re-install grub using
>
> sudo grub-install /dev/sda
>
> But this gives:-
>
> 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.
>
> Which I don't understand. Why i386-pc?
>
> I have tried the "boot-repair" disk, but it won't work - it complains about
> the PC being booted in legacy mode and I need to boot it in EFI mode.
> However, the bios (Gigabyte UEFI DualBios, latest version) doesn't seem to
> have a way of forcing the PC to boot in EFI mode - at least I cannot see
> it.
>
> I am able to boot windows if I select the disk with the Windows Boot
> Manager directly from the bios, by over-riding the normal boot sequence, so
> both Ubuntu and Windows installations are working OK and their respective
> boot arrangements seem to be OK. I just need to get grub to boot windows
> from its menu.
>
> I'd be very grateful for suggestions as to how to proceeed.
>
> - Richard.
> --
> Richard Kimber
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Kevin O'Gorman
#define QUESTION ((bb) || (!bb)) /* Shakespeare */
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150717/10b8941f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 441 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150717/10b8941f/attachment.gif>
More information about the ubuntu-users
mailing list