Recently I rented a OVH dedicated server and was happily using it until WHM prompted me to restart the system " You must reboot the server to apply software updates" to apply the latest patches
After restarting the system, the server did not come back online even after ten minutes.
Logging into the IPMI interface via Java, I found that, to my horror, it had booted to a Minimal BASH-like line editing mode with a
Proceed at your own risk! The information here is accurate to the best of our knowledge. We will not be held responsible if this document causes your computer to explode or burst into flames.
In real serious terms, if any corruption of data, hardware damage or any other kind of damage/losses/etc. arises from the use of this document, we cannot be held responsible for it. If you don't like this, please don't read any further.
I do not claim to be an expert in Linux. That is why I use cPanel to automate the technical stuff. I document in this article of how I fixed my server as I found very few resources dedicated to this problem
If you find an error or have further advice, feel free to correct me in the comments!
Restart your server with OVH Network mode. How to do has already been documented here.
You MUST make sure to type in the correct Root Device. If unsure, see below under "My server did not reboot successfully". In my case, it was not
/dev/sda2. I made this mistake and the server did not boot although I could see there was a long debug error log through the IPMI interface.
Note: If you use a Raid Array, your Root Device should be different. Something like
When you successfully restart, your server should be magically back online as if nothing happened. Yay! If it doesn't, you may want to verify the Root Device. If the IPMI screen shows an error log, it's most probable you had put in a incorrect Root Device. The next section details this
Now is a great time to do those backups if you haven't done so already. You can also delay further rebooting until a less active time. Yes, you'll need to reboot again as you are currently booting from OVH Network mode. I'm not sure what are the repercussions of continuing to use OVH Network mode.
You can access the Rescue Mode to figure out your Root Device.
Follow the official OVH guide here to set the server to boot in Rescue mode (see under "Boot from Rescue mode").
After your server reboots into rescue mode and you have the login creditentials, login to your server and execute
You'll need to figure out which is the hard disk you are booting from. For me, it was
Next you'll need to figure out the partition to boot from. Unfortunately, I do not remember what I did to figure it out so I suggest trying to reboot with OVH Network mode from
X is a number from 1 and
sda is your hard disk.
The problem was most likely caused by a missing
Fire up your SSH or Filezilla and see if such a file is located at
If the file exists, you should STOP following this guide as it does not apply to you. Because the next step we will be regenerating this file and the cause of the whole problem is because this file was missing in the first place.
Simply run the following line to regenerate the grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub.cfg file should now be generated
Go back to your OVH panel and set your boot mode to be from hard disk.
Do a Graceful Restart of the server and cross your fingers
I do not claim credits for the above solution. The following links helped when I experienced this problem
Do you have more to share? Comment below!
Last Updated 23 Sept 2019.
Errors? Omissions? Need Help? Know something? Post your queries in the comments below.