Repairing the GRUB bootloader
Guide to repair the GRUB bootloader on an instance
Guide to repair the GRUB bootloader on an instance
Last updated 23rd November 2020
In some cases you might need to repair the GRUB bootloader. This guide will show you how to easily repair the bootloader and successfully reboot your instance.
Connect to the instance, either via VNC in the OVHcloud Control Panel or via SSH.
Type the following commands to mount the remote file system and start GRUB repairs:
mount /dev/sdb1 /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
For GRUB installs:
grub-install /dev/sdb
update-grub
For GRUB2 installs:
grub2-install /dev/sdb
grub2-mkconfig -o /boot/grub2/grub.cfg
You can now leave the rescue mode and boot normally (see Putting an instance in rescue mode).
Join our community of users on https://community.ovh.com/en/.
Please feel free to give any suggestions in order to improve this documentation.
Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.
Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.
Thank you. Your feedback has been received.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community