Skip to content

Instantly share code, notes, and snippets.

@janisblaus
Created February 25, 2021 20:25
Show Gist options
  • Save janisblaus/fd13210dc2d61bf53e432010ce37c329 to your computer and use it in GitHub Desktop.
Save janisblaus/fd13210dc2d61bf53e432010ce37c329 to your computer and use it in GitHub Desktop.
Fix Grub ♥ on OVH nvme disks, software RAID | Centos
mount /dev/md2 /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub2-install /dev/nvme1n1
grub2-install /dev/nvme0n1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment