Skip to content

Instantly share code, notes, and snippets.

@mattwynne
Created February 2, 2020 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwynne/4f6147d88f9f167dfe6cd51b85edf539 to your computer and use it in GitHub Desktop.
Save mattwynne/4f6147d88f9f167dfe6cd51b85edf539 to your computer and use it in GitHub Desktop.
Rescure core server if it won't boot
# From a Live CD / USB
sudo apt-get update && sudo apt-get install mdadm && sudo mdadm --assemble --scan
mkdir /mnt
sudo mount /dev/md2 /mnt
sudo mount /dev/md0 /mnt/boot
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment