• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

GitopsCentral

  • Home
  • Courses
  • Roadmap
  • About
  • Log In
  • Sign Up

how to reinstall grub on kali linux

January 15, 2018 by shaik zillani

In this blog post I will show you how to reinstall grub on kali linux.

GRUB (Grand Unified Bootloader)

GRUB provides a choice to select OS from a multi-booted operating systems or select a specific kernel configuration available on a particular operating system’s partitions. Some times if bootloader fails, user will not have a choice of selecting the OS & therefore be booted to regular default operating system ex, windows or mac.
more about bootloaders here

Steps to reinstall GRUB

Live boot kali using bootable usb

fdisk -l

Select your disk, in mycase it was sda6

mount /dev/sda6 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

mount EFI directory

sudo mount /dev/sda1 /mnt/boot/efi

chroot /mnt
grub-install /dev/sda
update-grub
exit

umount /mnt/dev/pts
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

Finally, restart your system and you should have your boot-menu back !

Also, please do check my other blog posts on goacademy

linux bootloader,  debian,  grub,  kali,  linux

Primary Sidebar

en English
ar Arabiczh-CN Chinese (Simplified)nl Dutchen Englishfr Frenchde Germanhi Hindiid Indonesianit Italianja Japanesems Malaypt Portugueseru Russianes Spanishte Telugu

Course Tags

concurrency free go golang

Recent Posts

  • Roadmap to Mastery
  • Increase SSH connection timeout
  • Check Certificate expiry in Kubernetes
  • space invaders in golang
  • creating kubernetes cluster using eksctl
  • Facebook
  • GitHub
  • YouTube

Contact

Navigation

  • goacademy pro

Footer

  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter

info@gitopscentral.com


+91 8341443220

© Copyright 2016-2024 gitopscentral · All Rights Reserved ·