Hetzner Rescue with Ubuntu Software Raid

Activation of rescue system

Fix grub2

  • blkid
    • assumes boot partition is md1 and root is md2
  • mount /dev/md2 /mnt;mount /dev/md1 /mnt/boot;mount -t dev -o bind /dev /mnt/dev;mount -t proc -o bind /proc /mnt/proc;mount -t sys -o bind /sys /mnt/sys;chroot /mnt
  • Or separate commands:
    • mount /dev/md2 /mnt
    • mount /dev/md1 /mnt/boot
    • mount -t dev -o bind /dev /mnt/dev
    • mount -t proc -o bind /proc /mnt/proc
    • mount -t sys -o bind /sys /mnt/sys
    • chroot /mnt
  • vi /etc/default/grub
    • Fix settings e.g.
      GRUB_RECORDFAIL_TIMEOUT=5
  • update-grub
  • exit
  • reboot

Resources

https://wiki.hetzner.de/index.php/Hetzner_Rescue-System/en

https://michaelfranzl.com/2014/01/29/remote-server-hetzner-rebooting/