Gentoo Archives: gentoo-user

From: Alecks Gates <alecks.g@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub2 first installation
Date: Sun, 29 Jul 2012 06:58:17
Message-Id: CAKkyAYa=kEjgN1fm8nfOuntQTs2NV6UotCy_R4AF184DVZ_3Xg@mail.gmail.com
In Reply to: [gentoo-user] grub2 first installation by Adam Carter
1 On Sun, Jul 29, 2012 at 1:28 AM, Adam Carter <adamcarter3@×××××.com> wrote:
2 > I've installed grub2 on a single disk system, using
3 > http://en.gentoo-wiki.com/wiki/Grub2 as a guide. However, when i start
4 > the system it drops straight to the grub2 command prompt. The system
5 > has /boot is ext2 on sda1, and / is ext4 on sda3. The grub.cfg seems
6 > ok to me assuming the --set=root is for a temporary root (since from
7 > grub's perspective, /boot is /) before the OS loads from the real
8 > root.
9 >
10 > ### BEGIN /etc/grub.d/10_linux ###
11 > menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class
12 > gnu --class os $menuentry_id_option 'gnulinux-simple-<root's UUID>' {
13 > load_video
14 > insmod gzio
15 > insmod part_msdos
16 > insmod ext2
17 > set root='hd0,msdos1'
18 > if [ x$feature_platform_search_hint = xy ]; then
19 > search --no-floppy --fs-uuid --set=root
20 > --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1
21 > --hint-baremetal=ahci0,msdos1 <boot's UUID>
22 > else
23 > search --no-floppy --fs-uuid --set=root <boot's UUID>
24 > fi
25 > echo 'Loading Linux 3.5.0-gentoo ...'
26 > linux /vmlinuz-3.5.0-gentoo root=/dev/sda3 ro
27 > }
28 >
29 > I would have expected it to at least display the menu for a while then
30 > die when i select a menu item rather than drop to the command prompt
31 > straight away.
32 >
33 > Have I made some newbie error?
34 >
35
36 Does it not display any errors? This menu entry looks good to me
37 (only difference here is kernel version, UUIDs and root partition).
38 Sounds like it may not be installed correctly... just to confirm here
39 are the few things you should have to do:
40
41 1. Edit "/etc/default/grub" Perhaps disable quiet stuff and any
42 graphical settings just for now.
43 2. Run "grub2-mkconfig -o /boot/grub2/grub.cfg"
44 3. Run "grub2-install --no-floppy /dev/sda"
45
46 If you have another hard drive it's possible the order is different
47 from when you installed grub, but this would give an error

Replies

Subject Author
Re: [gentoo-user] grub2 first installation Adam Carter <adamcarter3@×××××.com>