GRUB2 normale Partitionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Booten mit einem Image

Grafisch oder Konsole

Root-Partition mounten

  • mount /dev/sdXY /mnt
(OPTIONAL)

Nutzt man auf dem System eine separate Boot-Partition, so muss diese ebenfalls vorab eingehängt werden

  • mount /dev/sdXY /mnt/boot

Nutzt man auf seinem Rechner das "(U)EFI"-Bootverfahren, so muss die relevante Bootpartition vorab eingehängt werden mit

  • mount /dev/sdXY /mnt/boot/efi

Vorbereitung und Wechsel in die chroot-Umgebung

  • mount -o bind /dev /mnt/dev
  • mount -o bind /sys /mnt/sys
  • mount -o bind /proc /mnt/proc
  • chroot /mnt /bin/bash

grub installieren

  • grub-install /dev/sdX
(evtl.
grub-install --recheck /dev/sdX)
  • update-grub

Und wieder raus

  • exit

chroot-Umgebung verlassen und neustarten

  • umount /mnt/dev
  • umount /mnt/sys
  • umount /mnt/proc
  • umount /mnt
  • reboot