====== Grub ====== GNU GRUB boot loader ===== Konfiguration erstellen ===== GRUB_CMDLINE_LINUX_DEFAULT="crypt_root=UUID=714e41a9-bb1a-483b-9012-235352e64861 real_root=/dev/mapper/Milliways-Wurzel dolvm root_trim=yes net.ifnames=0 gk.preserverun.disabled=> ===== Konfiguration in /boot schreiben ===== # grub-mkconfig -o /boot/grub/grub.cfg ===== Grub (neu) installieren ===== Legacy: # grub-install --target=i386-pc /dev/[sh]da EFI: # grub-install --target=x86_64-efi --efi-directory=/boot/ ===== Aus einem anderen System heraus installieren ===== * Zunächst die Bootpartition einhängen: # mkdir /mnt/boot # mount /dev/[hs]da[1-9] /mnt/boot * Dann installieren: # grub-install --root-directory=/mnt/ /dev/[hs]da ===== Grub aus MBR sichern ===== * Den MBR inklusive Partitionstabelle sichern: # dd if=/dev/sda of=MBR.hda.Datum bs=512 count=1 * Nur den Bootloader: # dd if=/dev/sda of=MBR.hda.Datum bs=440 count=1 ===== Beispiel-Eintrag ===== Hier für ein verschlüsseltes System mit einer Volume-Group Merkur auf /dev/sda7 und aktiviertem Modesetting für das "radeon"-Modul: title Gentoo: root title Gentoo Linux, genkernel-x86_64-2.6.38-rc8-mh-radeon-1 root (hd0,1) kernel /kernel-genkernel-x86_64-2.6.38-rc8-mh-radeon-1 crypt_root=/dev/sda4 real_root=/dev/mapper/Merkur-Wurzel dolvm ro radeon.modeset=1 initrd /initramfs-genkernel-x86_64-2.6.38-rc8-mh-radeon-1