grubconfig v1.28 Kent Robotti <[email protected]> 3-24-2006
The script `grubconfig' helps you install the GRUB bootloader on
your Linux system.
It requires the `bash' shell and the `dialog' program to run.
It supports IDE and SCSI devices and has no support for RAID devices.
These are the options you can use at the GRUB expert install menu:
1. Start GRUB configuration with a new GRUB header.
This is the first step to create a new configuration
file, /boot/grub/menu.lst or grub.conf, with no OS's
entered into it (yet).
You will be asked where you want to install GRUB. This
can be to your Master Boot Record, a Linux partition's
superblock (for OS/2's Boot Manager etc. to boot), or to
a 1.44 MB formatted floppy disk.
Try installing to a floppy disk first, if it works
on the floppy it will probably work on the MBR, or
superblock.
Once you've started a new /boot/grub/menu.lst or grub.conf,
you must add at least one OS to it before you can install GRUB.
Next you'll want to add at least one Linux partition, the
one that will hold the GRUB files in /boot/grub.
You then may want to add OTHER partitions, if you have any.
2. Menu choices to add Linux and OTHER DOS/WIN/BSD/OS2/HURD/QNX/PLAN9/
BEOS/Minix to the /boot/grub/menu.lst or grub.conf config file.
These all pretty much work the same way. You'll be asked
which partitions you want to include in the grub menu, and
you'll also be asked to assign a label to each partition.
The label can be any name such as Redhat Linux,
Slackware Linux, or WinXP etc.
3. Install GRUB
Once you've looked at your new config file and are
satisfied with the way it looks, pick this option to
install GRUB and exit the GRUB installation menu.
Other options:
-- View your current /boot/grub/menu.lst or grub.conf file
If you haven't begun building a new menu.lst or grub.conf, this
option will let you take a look at the existing one in /boot/grub
on your root Linux partition.
If you have begun constructing a new menu.lst or grub.conf, this
option will let you view the progress on that.
-- Skip GRUB installation or exit this menu
This option skips GRUB installation. Use this if you don't
want to install GRUB, or if you've already installed it and
want to exit.
-- Help - Read this GRUB BootLoader HELP file
-----------
Other GRUB information:
GRUB on the Master Boot Record can be removed easily.
DOS/Win9x fdisk has a 'fdisk /mbr' option that restores the original
master boot record. You can also restore your original boot sector
from the copy 'grubconfig' makes in /boot/grub/mbr.device.number.
This is probably the best way to go about it.
# dd if=/boot/grub/mbr.device.number of=/dev/device bs=512 count=1
If you want to make any changes you don't need to run grubconfig
again, you can just edit /boot/grub/menu.lst by hand.
--- end of GRUB help
grubconfig is based on liloconfig by Patrick Volkerding from the
Slackware Linux distribution.