|
|
| (48 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Installation= | | =Allgemein= |
| | | *[[Grub2 Bios Systemstart]] |
| Grub wird in den MBR der angeben Festplatte geschrieben: (BSP)
| | *[[Grub2 Uefi Systemstart]] |
| grub-install /dev/sda [Achtung, Bootreihenfolge im BIOS/UEFI beachten!]
| | *[[Grub2 Installation]] |
|
| |
| oder auf einer Partition: (BSP)
| |
| grub-install --force /dev/sda3
| |
|
| |
|
| =Konfigurationsdateien= | | =Konfigurationsdateien= |
| ==/boot/grub/grub.cfg==
| | *[[/boot/grub/grub.cfg]] |
| | | *[[/etc/default/grub]] |
| vi /boot/grub/grub.cfg
| | *[[Grub2 Reparatur]] |
| | | *[[Shellbefehle]] |
| Um die Reihenfolge zu ändern, müssen dor tide "Menuentry's" geändert werden:
| | *[[grub-befehle]] |
| Grub wird es von oben nach unten anzeigen.
| |
| Beispiel: Im Moment ist der Booteintrag mit der "Wiederherstellungskonsole" an zweiter Stelle. Deshalb wird dieser Eintrag ausgeschnitten und über den ersten eingefügt.
| |
| | |
| <pre>
| |
| menuentry 'Ubuntu, mit Linux 3.5.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-36-generic-advanced-3daa1a20-ab97-4eb8-84e3-137a1743bafd' {
| |
| recordfail
| |
| gfxmode $linux_gfx_mode
| |
| insmod gzio
| |
| insmod part_msdos
| |
| insmod ext2
| |
| set root='hd0,msdos1'
| |
| if [ x$feature_platform_search_hint = xy ]; then
| |
| search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| else
| |
| search --no-floppy --fs-uuid --set=root 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| fi
| |
| echo 'Linux 3.5.0-36-generic wird geladen …'
| |
| linux /boot/vmlinuz-3.5.0-36-generic root=UUID=3daa1a20-ab97-4eb8-84e3-137a1743bafd ro
| |
| echo 'Initiale Ramdisk wird geladen …'
| |
| initrd /boot/initrd.img-3.5.0-36-generic
| |
| }
| |
| menuentry 'Ubuntu, mit Linux 3.5.0-36-generic (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-36-generic-recovery-3daa1a20-ab97-4eb8-84e3-137a1743bafd' {
| |
| recordfail
| |
| insmod gzio
| |
| insmod part_msdos
| |
| insmod ext2
| |
| set root='hd0,msdos1'
| |
| if [ x$feature_platform_search_hint = xy ]; then
| |
| search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| else
| |
| search --no-floppy --fs-uuid --set=root 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| fi
| |
| echo 'Linux 3.5.0-36-generic wird geladen …'
| |
| linux /boot/vmlinuz-3.5.0-36-generic root=UUID=3daa1a20-ab97-4eb8-84e3-137a1743bafd ro recovery nomodeset
| |
| echo 'Initiale Ramdisk wird geladen …'
| |
| initrd /boot/initrd.img-3.5.0-36-generic
| |
| }
| |
| </pre>
| |
|
| |
|
| nun ändern in:
| | =How to's= |
| | *[[Linux boot hacking]] |
| | *[[Sytem aus Rescue Shell Booten]] |
| | *[[Grub2 chroot]] |
| | *[[Grub2 serielle Konsole]] |
| | *[[Grub2 Password]] |
| | *[[Grub2 Menu erscheint nicht]] |
| | =Desaster Recovery= |
| | *[[grub2 /boot/grub/grub.cfg fehlt]] |
| | *[[Linux boot hacking]] |
| | *[[Grub2 reinstall]] |
|
| |
|
| <pre>
| | =Aufgaben= |
| menuentry 'Ubuntu, mit Linux 3.5.0-36-generic (Wiederherstellungsmodus)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-36-generic-recovery-3daa1a20-ab97-4eb8-84e3-137a1743bafd' {
| | [[Aufgaben Booten]] |
| recordfail
| |
| insmod gzio
| |
| insmod part_msdos
| |
| insmod ext2
| |
| set root='hd0,msdos1'
| |
| if [ x$feature_platform_search_hint = xy ]; then
| |
| search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| else
| |
| search --no-floppy --fs-uuid --set=root 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| fi
| |
| echo 'Linux 3.5.0-36-generic wird geladen …'
| |
| linux /boot/vmlinuz-3.5.0-36-generic root=UUID=3daa1a20-ab97-4eb8-84e3-137a1743bafd ro recovery nomodeset
| |
| echo 'Initiale Ramdisk wird geladen …'
| |
| initrd /boot/initrd.img-3.5.0-36-generic
| |
| }
| |
| menuentry 'Ubuntu, mit Linux 3.5.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-36-generic-advanced-3daa1a20-ab97-4eb8-84e3-137a1743bafd' {
| |
| recordfail
| |
| gfxmode $linux_gfx_mode
| |
| insmod gzio
| |
| insmod part_msdos
| |
| insmod ext2
| |
| set root='hd0,msdos1'
| |
| if [ x$feature_platform_search_hint = xy ]; then
| |
| search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| else
| |
| search --no-floppy --fs-uuid --set=root 3daa1a20-ab97-4eb8-84e3-137a1743bafd
| |
| fi
| |
| echo 'Linux 3.5.0-36-generic wird geladen …'
| |
| linux /boot/vmlinuz-3.5.0-36-generic root=UUID=3daa1a20-ab97-4eb8-84e3-137a1743bafd ro
| |
| echo 'Initiale Ramdisk wird geladen …'
| |
| initrd /boot/initrd.img-3.5.0-36-generic
| |
| }
| |
| </pre>
| |
|
| |
|
| ==/etc/default/grub== | | =Links= |
| ==/etc/grub.d/==
| | *http://www.it-muecke.de/grub-rescue |