fbpx
14.9 C
Juja
Monday, July 26, 2021

How to perform a GRUB Bootloader rescue

Must read

What You Need To Know About Gen Z..

I recently discovered that I spend around 5 hours of my day watching Tiktok videos. They are so addictive and interesting, with...

UPDATED: Street Phrases You Must Know as a Kenyan.

As we all know Kenya's recognised official languages are Swahili and English but there is the ever-evolving and very diverse street lingo;...

How to remove FRP via ADB (android debug bridge)

Welcome back to our ADB Series, Today's tutorial is all about how to get rid of the Google's Android Security feature...

WhatsApp group chat links Being indexed by google

WhatsApp group chats invitations are being indexed by Google, making the invite links including links to private group chats discoverable and available to anyone...

Top Skills That Will Be In Demand After Corona

With COVID-19 new infections curve flattening in most parts of the world, the world is set to get to normalcy in three...
Koimet
int0x80 Tech Hobbyist,Sudoku Addict Always Infosec Game mode

So first things first, What the hell is that on my screen?
Well worry not a grub bootloader rescue is a normal thing for people who have Dual Booted their machines with a Linux Distribution this may vary from Ubuntu to Kali Linux to Parrot OS (Formerly ParrotSec) and other Variants

what causes the grub bootloader error?

A grub bootloader error or a grub rescue may be caused by either kernel bugs or when one Operating system has crashed, hence crashing the bootloader,
This is common when you, for example, delete a Partition previously occupied by the other Operating system,
or Just corrupted system files.

How Do I Fix the problem?

To fix the problem you will need to have a bootable version of the Operating system in question and later live boot to access the Files on the Computer/ Laptop.

Here’s what to do if you encounter the above error ….just use a live boot of the os in question

So here is what to do after live boot:

STEP ONE : Open gparted (a disk manager software installed by default in the mentioned OS’s) and look for the EXT4 partition thats where the Linux installation is located

You just need the Mount point
Either /dev/sda or /dev/sdb note the name

if found it,

STEP TWO :
Open a Terminal window
and key in
sudo mount /dev/sda/mnt
….
STEP 3: Now bind the directories that grub needs to access other operating systems

Windows included
….
sudo mount --bind /dev/ mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

……

Then
sudo chroot /mnt
….
STEP 4: reinstall grub,check and update
….
grub install /dev/sda
grub install --recheck /dev/sda

update grub

….
Grub will now be reinstalled successfully

STEP 5:
now key in the following command
exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts

……..
Share the love join our Telegram channels
TweaksRepublic
&
Official Jujamaica

Related articles

- Advertisement -

Latest articles

TAKEN! LITERALLY FOR GRANTED

Karis’ phone vibrates. It’s a Whatsapp message from George. It is tax season and everyone is filing their tax returns. George is...

CHARACTISTICS OF A HERO

When we talk about a hero first thing that comes to mind is comical stories.However this are people like us and amongst...

WHAT IS PERSONAL BRANDING?

It's the combination of skill sets and experience that make you who you are. This has proven...

Effects Of Excessive Borrowing On SME’s in Africa

Most Countries run on Budgets and for this budgets to be funded external borrowing is often required especially in Third World Countries.A...

Happy Birthday 🎉

Inside the cocoon, not even knowing it's high time I should vacate. Plans made and all the resources availed for me to...

WHY VIOLENT VIDEO GAMES ARE DANGEROUS!

Sometimes its rather easy to ignore the tiny concepts that build up the big battle we seem to be in a rush...