Rescue
If you are here, something has gone wrong.
My System Won't Boot
Windows
NOTE: This section only applies to problems arising when dual-booting. If you choose Windows in Grub, and it doesn't boot, follow these steps.
-
Boot into a Windows Live Media (also called Recovery Media or Installation Media)
-
Hit next
-
Choose "repair your computer"
-
Hit Troubleshoot
-
Hit Command Prompt
-
Execute
bootrec /fixmbr
-
Execute
bcdboot c:/windows
-
Try booting now
Linux
-
Boot into a Live USB
-
Find your root partition with gparted
-
Launch gparted
-
Note the hard drive name (
DRIVE
) and the name of your main partition (ROOT-PATH
) (something like /dev/sda1 or /dev/nvme0np1)
-
-
To re-install grub run these commands
-
sudo mount ROOT-PATH /mnt
-
sudo mount –bind /sys /mnt/sys
-
sudo mount –bind /proc /mnt/proc
-
sudo mount –bind /dev /mnt/dev
-
If you have a separate boot partition, mount that now to /mnt/boot
-
sudo chroot /mnt
-
sudo grub-install DRIVE
-
sudo grub-mkconfig -o /boot/grub/grub.cfg
(make sure /boot/grub exists, it may be under /boot/grub2)
-
Booting a live iso and re-installing grub