l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 31 22:36

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Re: grub
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Re: grub

On Mon, Dec 31, 2001 at 01:24:13PM -0800, Matt Roper wrote:
>  * Install the grub package ("apt-get install grub").
>  * As root, use grub-install to put the grub code into the MBR
>    ("grub-install /dev/hda").

I add --root-directory=/ to the command above; probably not needed but I am
superstitious ;-).

>  * Run "update-grub" to generate an initial grub config file; this
>    script will automatically add menu entries for all kernels that you
>    have installed.

Alternately, copy the example menu.lst packaged with grub-doc. The example
file is heavily commented and should be easy for anyone familiar with
conffiles to customize. The format is vaguely similar to lilo.conf.

Note that you do not need to re-run grub or any other program after you edit

>  * By default, grub will assume that linux is on /dev/hda1 (which is
>    expressed (hd0,0) in grub notation); if this isn't correct for your

Note that (1) partition numbers start at zero and (2) SCSI and IDE disks are
both 'hd'. Consult /boot/grub/device.map after installing grub to see
translations from linux to grub notation.

> If you like to keep a menu entry for every single kernel you have
> installed, then you should run the update-grub script every time you
> install a new kernel version.  You can have this done automatically by
> adding the following lines to your /etc/kernel-img.conf file (create the
> file if it doesn't exist):

This will only work if you build new kernels using kernel-package. Shame on
you if you use Debian and install kernels manually ;-).

Other niceness: GRUB actually understands filesystems. Regular ext2 is
supported, and also reiser, xfs, jfs, fat, and others. Unless you use
something obscure, you are covered.

Grub does not deal well with symlinks across filesystems, though, since it
runs before extra filesystems are mounted. For example, a symlink /vmlinuz to
/boot/vmlinuz-2.2.19 will not work if boot is a separate filesystem. Not a
big deal if your machine's BIOS supports large disks, but otherwise you will
need to reference all configured kernels as (grub device name)/filename
(e.g., (hd0,0)/vmlinuz-2.2.19) instead of by Linux name (e.g., /boot/...).

Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

Attachment: pgp00014.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.