Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub: how to install new version of stage 1
Date: Sat, 30 May 2009 21:13:44
Message-Id: 4A21A17D.9070708@gmail.com
In Reply to: [gentoo-user] grub: how to install new version of stage 1 by "John P. Burkett"
1 John P. Burkett wrote:
2 > On a x86 machine I did "emerge -D -uav world" and got a response that
3 > read in part as follows:
4 > * Messages for package sys-boot/grub-0.97-r9:
5 > *
6 > * To avoid automounting and autoinstalling with /boot,
7 > * just export the DONT_MOUNT_BOOT variable.
8 > *
9 > * *** IMPORTANT NOTE: you must run grub and install
10 > * the new version's stage1 to your MBR. Until you do,
11 > * stage1 and stage2 will still be the old version, but
12 > * later stages will be the new version, which could
13 > * cause problems such as an unbootable system.
14 > * This means you must use either grub-install or perform
15 > * root/setup manually! For more help, see the handbook:
16 > *
17 > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#grub-install-auto
18 > * To interactively install grub files to another device such as a USB
19 > * stick, just run the following and specify the directory as prompted:
20 > * emerge --config =grub-0.97-r9
21 > * Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell
22 > * grub where to install in a non-interactive way.
23 >
24 > After reading
25 > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#grub-install-auto
26 > I did "grep -v rootfs /proc/mounts > /etc/mtab". That seems to have
27 > produced the needed /etc/mtab file. Now I'm confused by the part of the
28 > manual with code listings 2.6 and
29 > 2.7 and the associated commentary.
30 > The manual suggests doing "grub-install --no-floppy /dev/sda"
31 > but later says "If your system does not have any floppy drives, add the
32 > --no-floppy option to the above command to prevent grub from probing the
33 > (non-existing) floppy drives." My machine has a floppy drive. Should I
34 > omit the --no-floppy option and just do "grub-install /dev/sda" ?
35 >
36 > -John
37 >
38 >
39 >
40
41 I got something similar once before. All I did was run grub, then while
42 inside grub, run root and setup. Basically like I did when i first
43 installed Linux. It has worked so far so I guess that was all that it
44 needed was to update the files in /boot for when it first loads after
45 the BIOS.
46
47 Hope that helps.
48
49 Dale
50
51 :-) :-)