From Wiki [en] OpenMandriva
Jump to: navigation, search
This article has been proposed for deletion


In contrast to LILO

can GRUB divers Filesystems direct read.

how set up

Create a bootdisk!
Exemple, where you the currently boot sector on a floppy write with:

dd if=/dev/hda of=/dev/fd0 bs=512 count=1,

test this Disk !

Install GRUB (with familiar tools of your distribution (apt, yast, ...)),
still, this step does not change the boot sector.

Edit the file /boot/grub/menu.lst.Note, that the hard disks and
partitions are numbered (starting at 0 with count).
Rows, the with # begin comments are (in other words, what is behind it
is commented out or not read from the system). The following example
contains comments that should really even explain the menu.lst:

menu.lst Beispiel 1

menu.lst Beispiel 2

Install now GRUB to the boot sector (you've tested your boot floppy?),
call to do this as root, grub and give appears GRUB console:

grub> find /boot/grub/stage1

The output (I hd0, 9) the Festplattenpartion should now be on the

/boot/grub be. Tell GRUB now:

grub> root (hd0,9)

where its files are.

Now you can GRUB with:

grub> setup (hd0)

in the boot sector of the first hard drive install and GRUB with:

grub> quit

exit and reboot.


By means of mapping you can swap the disks before you start an operating system (the second is the first and vice versa). It is necessary for example for Windows, because it wants to be seemingly always on the first disk (I (Tomix) have no experience with it).

If Windows is for example on the second disk on the first partion the entry looks like this :

title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

siehe dazu auch: Lilo-Mapping

Tastatur-Mapping oder wie bekomme ich eine deutsche Tastatur im GRUB

Because the GRUB uses the English keyboard it is sometimes quite annoying if you
attempts to change boot parameters and keys not found ;)

Just at the beginning of the /boot/grub/menu.lst Enter the following:

# setkey verändert die Tastaturbelegung auf die deutsche Tastatur
setkey  y z
setkey  z y
setkey  Y Z
setkey  Z Y
setkey  equal parenright
setkey  parenright parenleft
setkey  parenleft asterisk
setkey  doublequote at
setkey  plus bracketright
setkey  minus slash
setkey  slash ampersand
setkey  ampersand percent
setkey  percent caret
setkey  underscore question
setkey  question underscore
setkey  semicolon less
setkey  less numbersign
setkey  numbersign backslash
setkey  colon greater
setkey  greater bar
setkey  asterisk braceright

Tastaturbelegung im GRUB Then comes to the rest who menu.lst from now then the German
Keyboard layout in the GRUB ;)

CD-ROM booting

To grub out from a CD-ROM to be able to boot it takes two small detours
via memdisk and sbm.

The entry looks like this:

title Boot "El Torito" CD mit Hilfe von memdisk und smart boot manager
lock # dieser Eintrag kann nur mit vorheriger Passwort eingabe gebootet werden
root (hd0,2) # Harddisk und Partion auf der die Daten liegen
kernel /boot/boot_cdrom/memdisk.bin # Pfad
initrd /boot/boot_cdrom/sbootmgr.dsk # Pfad

The two files can be downloaded here:

from Bernhard Treutwein :)

(Nach der Seite: )

Vergleich Lilo GRUB

  • Hard drives and partitions with GRUB counted through and are shown in brackets: (hd0,0) = hda1
  • GRUB can directly read file systems must be adapted after installing a new kernel of a new OS just the menu.lst no call by GRUB as LILO is necessary

Links zu weiteren Beschreibungen beim über Grub

Letzte Änderung: 21.4.2007 07:54:11 - Autor: Tomix