Grub Boot Loader (BETA)
IPCop, SME and Suse use Grub as the bootloader. Older Linux operating systems often use lilo.
Documentation
http://www.gnu.org/software/grub/manual/grub.html
Creating a GRUB Boot Floppy
To create a GRUB boot floppy, you need to take the files stage1 and stage2 from the image directory, and write them to the first and the second block of the floppy disk, respectively. These files may be located in /boot/grub.
On Linux, enter the following commands as root:
cd /boot/grub
dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in 1+0 records out
dd if=stage2 of=/dev/fd0 bs=512 seek=1
274+1 records in
274+1 records out
Installing GRUB using grub-install
If Grub misidentifies the hard drives, you will need to edit /boot/grub/device.map.
The usage of grub-install is basically very simple. You only need to specify one argument to the program, namely, where to install the boot loader. The argument can be either a device file (like /dev/hda) or a partition specified in GRUB's notation. For example, under Linux the following will install GRUB into the MBR of the first IDE disk:
grub-install --root-directory=/boot /dev/hda
Booting Linux with GRUB
1. Set GRUB's root device to the same drive as GNU/Linux's. Probably the command find /vmlinuz or similar can help you. Type 'grub <enter>' to get the grub> prompt. Many commands are then available. The following example uses the first partition on the first hard drive (/boot). IDE drives are usually lower numbers than SCSI disks.
grub> root (hd0,0)
2. Load the kernel:
grub> kernel /vmlinuz root=/dev/hda1
If you need to specify some kernel parameters, just append them to the command. For example, to set vga to ext, do this:
grub> kernel /vmlinuz root=/dev/hda1 vga=ext
3. If you use an initrd, execute the command initrd after kernel:
grub> initrd /initrd
4. Finally, run the command boot
Grub Configuration File
/boot/grub/menu.lst or /boot/grub/grub.conf
This file generates the Grub boot menu.
The grub.conf from an IPCop:
timeout 5
default saved
foreground = 16064e
background = ffffff
splashimage (hd0,0)/grub/ipcop.xpm.gz
title IPCop
root (hd0,0)
kernel /vmlinuz root=/dev/hda4 panic=10 acpi=off ro
savedefault
title IPCop SMP
root (hd0,0)
kernel /vmlinuz-smp root=/dev/hda4 panic=10 acpi=off ro
savedefault
title IPCop (ACPI enabled)
root (hd0,0)
kernel /vmlinuz root=/dev/hda4 panic=10 ro
savedefault
title IPCop SMP (ACPI HT enabled)
root (hd0,0)
kernel /vmlinuz-smp root=/dev/hda4 panic=10 acpi=ht ro
savedefault
title IPCop old (2.4.27)
root (hd0,0)
kernel /vmlinuz-2.4.27 root=/dev/hda4 panic=10 acpi=off ro
savedefault
| < Prev | Next > |
|---|





