I accidentally broke my grub
Hi, I have Ubuntu 18.04 LTS. Today, whilst doing a normal folder deletion, I somehow broke my grub install. Upon trying to boot, all I can see is
grub>
I can't enter into my files and can't access the website on it. And also tried to backup my files on rescue mode but still I was unable to get those file back.
Is my files gone? or there is any hope to getting it back?
Please Help!!
1 Reply
It sounds like your getting stuck in the GRUB Rescue Command Line Interface. This may be good news, as it means that you can still run some commands to hopefully get your Linode booted.
Doing some Googling, I found this guide that walks you through commands that you can run in the GRUB Rescue Command Line to get your server booted up:
https://linuxhint.com/grub_rescue_ubuntu_1804/
This post provides similar instructions, but is more direct:
https://askubuntu.com/questions/732060/im-stuck-at-grub-menu-and-cant-boot-to-ubuntu
There's another Community post that outlines one possible option, where by spinning up a new Linode, you could clone the Linode that's having problems booting. Then, by creating another disk to boot from, with TestDisk installed, you can try to get the data off of the cloned disk from the problematic Linode:
If you boot your Linode into Rescue Mode and run a fsck (filesystem check), you may be able to utilize the lost+found directory to find if any of the files that were removed can be restored:
https://troubleshooter.xyz/wiki/how-to-restore-files-from-lostfound/
The unfortunate truth here is that without a backup, files deleted on a Linux machine is most likely lost irrevocably.