Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
grub [2011/01/02 12:46] 188.22.53.91 |
grub [2015/06/24 08:14] (aktuell) admin |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ===== GRUB - Grand Unified Bootloader ===== | + | ==== Bootloader Grub neu installieren ==== |
| + | |||
| + | Computer von Installations DVD, Knoppix oder Rescue CD Starten | ||
| + | |||
| + | bei HP-Server broken_modules=ahci als Bootparameter angeben | ||
| + | |||
| + | Rescue booten | ||
| + | |||
| + | mkdir /c | ||
| + | mount /dev/sda2 /c | ||
| + | mount --bind /dev /c/dev | ||
| + | mount --bind /proc /c/proc | ||
| + | mount --bind /sys /c/sys | ||
| + | |||
| + | chroot /c /bin/bash | ||
| + | |||
| + | grub-install.unsupported --recheck /dev/sda | ||
| + | |||
| + | exit | ||
| + | |||
| + | reboot | ||
| + | |||
| + | |||
| + | ====== GRUB - Grand Unified Bootloader ====== | ||
| + | |||
| + | ===== GRUB2 ===== | ||
| + | |||
| + | ==== Submenü automatisch auswählen ==== | ||
| + | |||
| + | vi /boot/grub/grub.cfg | ||
| + | set default="1>1" <- wählt im 2. Hauptmenü den 2. Untermenüpunkt aus | ||
| + | |||
| + | |||
| + | http://doc.opensuse.org/documentation/html/openSUSE/opensuse-reference/grub2.html\\ | ||
| + | http://www.supergrubdisk.org/wiki/SuperGRUB2Disk | ||
| + | |||
| + | Konfigurieren mit \\ | ||
| + | |||
| + | yast2 bootloader | ||
| + | |||
| + | /boot/grub2/device.map | ||
| + | /etc/default/grub | ||
| + | /etc/default/grub_installdevice | ||
| *[[http://www.geo.uni-bonn.de/members/kuepper/linux/boot.txt|GRUB]] | *[[http://www.geo.uni-bonn.de/members/kuepper/linux/boot.txt|GRUB]] | ||
| Zeile 5: | Zeile 47: | ||
| *MBR neu schreiben (z.B. /dev/sda ): | *MBR neu schreiben (z.B. /dev/sda ): | ||
| - | grub-install /dev/sda | + | *grub-install /dev/sda |
| - | + | ||
| - | grub-install --root-directory=/d/boot /dev/hdb | + | |
| + | *grub-install --root-directory=/mnt/sda7/boot /dev/sda | ||
| + | | ||
| + | *grub-install --recheck --root-directory=/mnt/sda7/boot /dev/sda (wenn /dev/sdX does not have any corresponding BIOS drive) | ||
| + | | ||
| + | | ||
| *menu.lst automatisch generieren lassen: | *menu.lst automatisch generieren lassen: | ||
| Zeile 49: | Zeile 94: | ||
| chainloader +1\\ | chainloader +1\\ | ||
| boot | boot | ||
| + | |||
| + | === Recover root password === | ||
| + | |||
| + | init=/bin/sh | ||