Gentoo Archives: gentoo-user

From: Hinnerk van Bruinehsen <h.v.bruinehsen@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub2 first installation
Date: Sun, 29 Jul 2012 09:20:53
Message-Id: 50150018.7030908@fu-berlin.de
In Reply to: Re: [gentoo-user] grub2 first installation by Adam Carter
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 29.07.2012 09:13, Adam Carter wrote:
5 >> Does it not display any errors?
6 >
7 > No - no errors, straight to the grub2 command line.
8 >
9 >> This menu entry looks good to me (only difference here is kernel
10 >> version, UUIDs and root partition). Sounds like it may not be
11 >> installed correctly... just to confirm here are the few things
12 >> you should have to do:
13 >>
14 >> 1. Edit "/etc/default/grub" Perhaps disable quiet stuff and any
15 >> graphical settings just for now. 2. Run "grub2-mkconfig -o
16 >> /boot/grub2/grub.cfg" 3. Run "grub2-install --no-floppy
17 >> /dev/sda"
18 >
19 > Yes that's what i did. No changes to default/grub though.
20 >
21 >> If you have another hard drive it's possible the order is
22 >> different from when you installed grub, but this would give an
23 >> error
24 >
25 > Its a single disk system, and grub1 was fine before i installed
26 > grub2.
27 >
28 > I am assuming that if i don't need an initrd in grub1 i likewise
29 > don't need one in grub2.
30 >
31
32 It hasn't got anything to do with initrd or stuff like that. The grub
33 menu comes way before that.
34
35 To show the menu there are 2 things that really matter:
36
37 - - there must exist a file /boot/grub2/grub.cfg . The important thing
38 here is the "2": Since Gentoo supports slotted installs of both grub2
39 and grub legacy it has a different path for grub2. Afaik that's a
40 fairly uncommon way of doing it (ubuntu and the like use
41 /boot/grub/grub.cfg).
42 If you installed grub 2 via portage you should make sure that the path
43 contains the 2 - if not you could try ist without it.
44
45 - - the file has to be "sane" - the one you posted earlier looks fine,
46 though. You could try to generate a new one via "grub2-mkconfig -o
47 /boot/grub2/grub.cfg" nonetheless.
48
49 WKR
50 Hinnerk
51
52 -----BEGIN PGP SIGNATURE-----
53 Version: GnuPG v2.0.19 (GNU/Linux)
54 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
55
56 iQEcBAEBAgAGBQJQFQAXAAoJEJwwOFaNFkYcuvcH/iIE9vY4v78Is75dCqfD4iAq
57 EsTersiQvujv9u4Bfjwad/pzoRrgoxgEM74iusNp8VNWKFMPoBNQetG8twoxtnNk
58 zVgl5jmkkFgRNcscA5DmaFdv+0q3sVBU2EwDuPV5NODemkH9aW4NQEG5V5bUnsfx
59 OzQ4tS2Ei17WYm6QOBJWMJmO1v7g2l9FnxjIm3c94C1hdOEceRG0yVaJ/rfrYBJE
60 xr66sbEBsD5VdgY2EM+iVeXn18czO6tSdhhk72voWFGN2CLoAAKj1nMNKB5qfI5b
61 nFblgqfan1ye9RK6ojS5AJBqbLtP944A3Y3ysEx27KUDZ6TmFjR6b1cx/5f4RZw=
62 =JjEt
63 -----END PGP SIGNATURE-----