Repair Grub via Kali Linux live USB

It is up to you which you want to choose but if you are Linux familiar then go for this method.

Requirements

1. A Kali Linux ISO image. You can download here:

Download Kali Linux

2. You need to create a Kali Linux pre-installed live CD or Live USB. You can click following link for more help to create live USB or CD-DVD.

Procedure to repair Grub of Kali Linux

Step 1. Boot your live USB via pressing boot menu button on initial stage of booting your system. Select “Live” option.

Step 2. Boot into Live Kali Linux, get the Terminal open. Type the following commands:

mount /dev/sda3 /mnt
mount –bind /dev /mnt/dev
mount –bind /dev/pts /mnt/dev/pts
mount –bind /proc /mnt/proc
mount –bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
exit
umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

Step 3. Now reboot the system, you will see your boot-menu showing Window and Kali Linux both simultaneously.

Most of the time Kali Linux grub is repaired by above steps but exceptionally you may not, so you have to do more commanding.

Step 4. Boot the Live Kali Linux again, open the terminal type the following commands:

apt-get install os-prober
os-prober
update-grub

Comments

Popular posts from this blog

textcolor in c

wherex in c

traffic light program in c, traffic light simulation