public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: walt <w41ter@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] [cookbook] grub2 for idiots like me
Date: Sun, 23 Jan 2011 14:28:15 -0800	[thread overview]
Message-ID: <ihia20$3cg$1@dough.gmane.org> (raw)

Okay, I genuinely have grub2 installed and doing exactly what it's
supposed to do:  boot your machine using only partition LABELS, not
device names/numbers.

Below are a series of steps that *any* gentoo fan should recognize and
be comfortable with.

If you are not familiar with any of these steps, you really *should*
become familiar with them.

If you don't *want* to become familiar with them, have you tried ubuntu?

First, skip grub-1.98 and go for grub-1.99-rc1 because it's much better.

Yes, you could unmask sys-boot/grub-9999, but that's way more trouble
than it's worth.  Learn to do it the way it's meant to be done and you
will be pleased with your new skills :)

You need to get the source tarball first.  Many different ways to do
that, but my brain-dead way is to use firefox and enter this URL:

ftp://alpha.gnu.org/gnu/grub/

Click on the file grub-1.99~rc1.tar.gz to start downloading it. If you
don't know where firefox is saving the file, shame on you.

You should become familiar with building software in your own home
directory.  At work or school you may not have root privileges, so
be brave now and learn how easy it is:

$ cd
$ mkdir src
$ cd src
$ tar -xvzf <wherever>/grub-1.99~rc1.tar.gz <lots of screen output>
$ cd grub-1.99~rc1

Many projects will include the 'configure' file as part of the tarball,
but grub2 does not.  Lots of files like configure.ac, config.in, etc,
but you won't find 'configure' this time.

So, you need to create a brand new 'configure' by running the autogen.sh
script that the grub2 devs include for that purpose.  (You may need to
emerge sys-devel/autogen if you don't already have it.)

$ ./autogen.sh  (tons of screen output>
$ mkdir build
$ cd build
$ ../configure --prefix=$HOME  <the default is /usr/local, but you are
                                 not root, so you can't install anything
                                 in /usr/local>
$ make all install  <compile and install grub2 in your home dir>

This step, if it works, will install grub stuff in ~/sbin ~/bin ~/etc
~/share and ~/lib/grub.  The directories should be created if they
don't already exist, I think.

Up to now your system files have not been touched because you are not
root and therefore you are not able to break your system.

I'm taking a break now to answer any questions about problems you may
encounter, and because I've had enough beer for today already.

All of this should be old material for gentooers.  If it's new to you,
then please try the steps above just to learn the basics of building
(any) linux software.  Even if you fail you will learn in the process.





             reply	other threads:[~2011-01-23 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 22:28 walt [this message]
2011-01-24 17:00 ` [gentoo-user] Re: [cookbook] grub2 for idiots like me PART 2 walt
2011-01-25 23:41   ` [gentoo-user] [cookbook] Mounting root partition by UUID (no initrd needed) walt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ihia20$3cg$1@dough.gmane.org' \
    --to=w41ter@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox