Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] MBR + GPT + GRUB
Date: Sat, 21 Jul 2018 18:51:42
Message-Id: 2421682.kqDOQRqe00@dell_xps
In Reply to: Re: [gentoo-user] [OT] MBR + GPT + GRUB by Jack
1 On Saturday, 21 July 2018 19:47:25 BST Jack wrote:
2 > On 2018.07.21 13:46, Mick wrote:
3 > > Hi All,
4 > >
5 > > A slightly off-topic question arising from a different distro, which
6 > > may
7 > > replicate itself on Gentoo.
8 > >
9 > > I installed Mint-Linux, in a VM. The host PC MoBo has a legacy BIOS
10 > > system.
11 > > I used a GPT scheme to create partitions on the virtual disk. The
12 > > first 1M on
13 > > the virtual disk was left empty by gdisk. I thought GRUB can use
14 > > this for its
15 > > core image. Note, I did not create a partition in this 1MB empty
16 > > space at the
17 > > start of the disk.
18 > >
19 > > While running the Mint Installer I got a warning from its partition
20 > > manager
21 > > telling me I had not specified a BIOS_grub partition and the
22 > > installation may
23 > > fail. I ignored the warning and continued with the installation,
24 > > which
25 > > completed successfully.
26 > >
27 > > A few weeks later I ran an update which among other packages updated
28 > > grub2-
29 > > common. An ncurses menu popped up warning me:
30 > >
31 > > "The GRUB boot loaders was previously installed to a disk that is no
32 > > longer
33 > > present, or whose unique identifier has changed for some reason".
34 > >
35 > > It offered to install in /dev/vda, /dev/vda1, or /dev/vda2. I
36 > > selected /dev/
37 > > vda which represents the virtual disk. It failed to install in
38 > > /dev/vda
39 > > because the device did not contain a BIOS_grub partition.
40 > >
41 > > I tried 'grub-install --force' and --boot-directory options, but in
42 > > all cases
43 > > it failed to install. At the end I had to create a new 1M partition
44 > > with
45 > > gdisk and set its type to ef02 (BIOS boot partition), before grub
46 > > would
47 > > install its core image successfully.
48 > >
49 > >
50 > > QUESTIONS:
51 > >
52 > > Why/how the initial installation succeeded without an ef02 partition,
53 > > but a
54 > > grub package update would not proceed without it? Where did the Mint
55 > > installer store the grub core image to be able to continue with the
56 > > installation?
57 >
58 > Are you sure this wasn't fallout from the recent grub problems in the
59 > Mint ISO? (https://blog.linuxmint.com/?p=3620) I thought I got the
60 > link to that on this list, but I can't find the relevant message, so
61 > I'm not sure where I saw it. However, it seems like the issue was that
62 > installing Mint messed up Grub and left the PC unbootable.
63 >
64 > Jack
65
66 Thanks Jack, I posted this blog entry on another thread, but the GRUB problem
67 described there breaks EFI installations when the live session is connected to
68 the Internet. Mine installed fine at the time. So, I don't think the blog
69 entry is related to my case above.
70
71 --
72 Regards,
73 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] [OT] MBR + GPT + GRUB Philip Webb <purslow@××××××××.net>