Are you facing any of the following Problems-
1. Seeing nothing but the grub rescue prompt.
2. Grub Menu not detecting Windows Os.
3. There is no Grub Menu directly Windows OS starting.
If you are facing any of stated problem then this post is for you. Did Windows mess up your Master Boot Record? Doing Partitioning for resizing or dual booting Ubuntu/Kali, GRUB 2 got you down? Let’s get started, resolving the problem of Grub rescue using Ubuntu / Kali Linux live C.D.
How this Problem arises ?
Let’s Resolve it out !!
Well the solution is pretty simple, all you need is ISO file of any Debian based O.S like Ubuntu, Elementary OS, Kali Linux & need to follow step by step instructions given below:
Steps to Follow :
1) Download Win 32 disk imager and make bootable pendrive of Ubuntu/Kali Linux
– Make a bootable USB of previously installed Linux using its ISO image
2) Now select Live CD, Open Terminal & type the following commands :
root@kali:~# blkid #use this command for checking name of ext4 partition in which previous linux installed
root@kali:~# sudo mount /dev/sdaX /mnt replace X with your drive number on which Ubuntu | Kali (Linux OS) Installed
Installing grub needs access of some directories, so we need to bind them one by one using command line for detecting previously installed operating system.
root@kali:~# 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
root@kali:~# sudo chroot /mnt #here symbol changes from root@kali:~# to root@kali:/# which means we have change our apparent root user.
Now, we came to our main part where we need to install, check and update grub .
root@kali:/# grub-install /dev/sda root@kali:/# grub-install --recheck /dev/sda root@kali:/# update-grub
so, here we are ended with installing checking and updating grub. Now it’s time to exit all mount directories using umount command.
root@kali:~# exit && > sudo umount /mnt/sys && > sudo umount /mnt/proc && > sudo umount /mnt/dev/pts && > sudo umount /mnt/dev && > sudo umount /mnt