Getting Started

If you were like me and accidentally installed the Grub 1.91/development version and decided stay with it (for fun), then you may be a little confused on how to get started especially if grub-install fails.

Installation

In my case, after getting the proper files in /boot/grub from /usr/local/share/grub/i386-pc I looked through the grub-install script and determined the commands that would work:

grub-probefs --device-map=/boot/grub/device.map /boot/grub # this will print out the module(s) you will need for grub-mkimage, in my case it prints out ext2

grub-mkimage --output=/boot/grub/core.img ext2 _chain pc # _chain and pc appear to be required so don't leave those out

grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map /dev/hda

Booting up

Now when you reboots you will need to type something like this to get in:

linux /boot/vmlinuz root=/dev/hda1 noinitrd ro boot

LZO

And don't forget you may need to install LZO if configure fails: http://www.oberhumer.com/opensource/lzo/download/LZO-v1/lzo-1.08.tar.gz

Making a configfile

To make grub2 a bit more userfriendly you will have to create the file /boot/grub/grub.cfg. For details, see grub.cfg.


CategoryDocumentation

GrubWiki: GettingStarted (last edited 2008-05-16 19:27:31 by VesaJääskeläinen)