Skip to content

Instantly share code, notes, and snippets.

@keopx
Created December 23, 2014 15:31
Show Gist options
  • Save keopx/c6867b0aafd0aa769e1e to your computer and use it in GitHub Desktop.
Save keopx/c6867b0aafd0aa769e1e to your computer and use it in GitHub Desktop.
Recover kernel on boot system with raid and LVM
mount /dev/mapper/vg0-root /mnt
mount /dev/md0 /mnt/boot
mount /dev/mapper/vg0-var /mnt/var
mount /dev/mapper/vg0-data /mnt/data
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
apt-get install --reinstall grub-pc
dpkg-reconfigure grub-pc
grub-install /dev/sdb
grub-install /dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment