Debian GNU/Linux Anwenderhandbuch | ||
---|---|---|
Zurück | Nach vorne |
image=/boot/vmlinuz.neu label=neu append='mcd=0x320,11' read-only |
GRUB (GRand Unified Bootloader) ist ein weiterer Bootloader, dessen Aufgabe es ist nach dem einschalten des Rechners die weitere Kontrolle an das Betriebssystem (also den Kernel) zu übergeben. Das Betriebsystem initialisiert dann über die geeigneten Treiber alle weitere Hardware im System. GRUB ist in der Lage viele verschiedene Betriebssysteme zu laden. Wird ein Betriebssystem nicht direkt von GRUB unterstützt, so kann dieses dennoch von GRUB über einen sogenannten „Chain-Bootloader“ geladen werden. Für die wichtigsten Betriebssysteme sind diese bereits im GRUB Paket enthalten.
Einer der größten Vorteile von GRUB ist, das GRUB in der Lage ist auf das Dateisystem direkt zuzugreifen. Das bedeutet das GRUB nicht wissen muß wo genau der zu ladende Kernel auf der Festplatte liegt. Sie können also jederzeit einen neuen Kernel erzeugen und müssen hinterher nicht nochmal GRUB im MBR der Festplatte installieren. Es ist ebenfalls nicht notwendig alle Kernelversionen die sich auf der Festplatte befinden in die Konfigurationsdatei einzutragen. Sie können mit GRUB jederzeit auf jeden Kernel auf Ihrer Festplatte zugreifen, wenn auch mit ein wenig Tipparbeit.
debian:~# grub-install install_device not specified. Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory. --grub-shell=FILE use FILE as the grub shell. --force-lba force GRUB to use LBA mode even for a buggy BIOS. --recheck probe a device map even if it already exists. INSTALL_DEVICE can be a GRUB device name or a system device filename. Reports bugs to <bug-grub@gnu.org>. |
surimi:/home/fr# grub-install /dev/hda Installation finished. No error reported. This is the contents of the device map /boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (fd0) /dev/fd0 (hd0) /dev/hda (hd1) /dev/hdb |
wasabi:~# update-grub Searching for GRUB installation directory ... found: /boot/grub . Testing for an existing GRUB menu.list file... Could not find /boot/grub/menu.lst file. Would you like one generated for you? (y/N) y Updating /boot/grub/menu.lst ... done Please note that configuration parameters for GRUB are stored in /boot/grub/menu.lst . You must edit this file in order to set the options which GRUB passes to the kernel, as well as the drive which GRUB looks in to for the kernel. Everything on the line after "kopt=" is passed to the kernel as parameters, and "groot=" must be set to the partition(in GRUB terms, such as "(hd0,0)") which GRUB will load the kernel from. After you have edited /boot/grub/menu.lst , please re-run 'update-grub'. |
# kopt=root=/dev/hda1 ro |
# kopt=root=/dev/hda1 ro apm=on ide2=0x180,0x386 |
debian:~# cp /usr/share/doc/grub/examples/menu.lst /boot/grub/ |
timeout 10 default 0 # For booting Linux title Debian GNU/Linux root (hd0,0) kernel /vmlinuz root=/dev/hda1 |
title GNU/Linux 2.4.6 SMP root (hd0,6) kernel /vmlinuz-2.4.6-686-smp root=/dev/hda1 read-only initrd /initrd-2.4.6-686-smp |
Weitere Informationen zu GRUB finden Sie auf Ihrem System unter file:///usr/share/doc/grub/ und auf der Webseite des Projektes unter http://www.gnu.org/software/grub/grub.en.html.
Zurück | Zum Anfang | Nach vorne |
„Geräderte“ Mäuse | Init Scripte |