Errors :-
1- Dual Boot (Linux,Windows10) Boot option menu missing Linux entry.
2- If Operating System missing or corrupt or crash
3- Showing Black screen with command prompt grub:
4- Missing VMLINUZ file form boot folder.
5- Missing Linux Kernel Headers.
6- How to Rescue a Non-Booting GRUB-2.
COMMON REASON:- Because Linux Kernel Headers files are missing.
Solutions :-
1- Boot with live Linux OS CD/USB.
2- Select Try Ubuntu without installing.
3- Open terminal after booting complected run this commands.
sudo fdisk -l also use sudo lsblk -l (Both command provide disk detail. For checking your Linux disk and EFI partition detail list)
After find your installed Linux partition and EFI partition run next command for mounting your installed disk and partition for repairing your grub.
sudo mount /dev/sda4 /mnt (Here sda4 is my Linux partition)
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
4- After success this full process without any error run this command
apt-get install --reinstall linux-image-generic
(This process require some time with internet connection.)
5- Reboot the system and remove the CD/USB
6- Select 'C' for command line.
1- Dual Boot (Linux,Windows10) Boot option menu missing Linux entry.
2- If Operating System missing or corrupt or crash
3- Showing Black screen with command prompt grub:
4- Missing VMLINUZ file form boot folder.
5- Missing Linux Kernel Headers.
6- How to Rescue a Non-Booting GRUB-2.
Solutions :-
1- Boot with live Linux OS CD/USB.
2- Select Try Ubuntu without installing.
3- Open terminal after booting complected run this commands.
sudo fdisk -l also use sudo lsblk -l (Both command provide disk detail. For checking your Linux disk and EFI partition detail list)
After find your installed Linux partition and EFI partition run next command for mounting your installed disk and partition for repairing your grub.
sudo mount /dev/sda4 /mnt (Here sda4 is my Linux partition)
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
4- After success this full process without any error run this command
apt-get install --reinstall linux-image-generic
(This process require some time with internet connection.)
5- Reboot the system and remove the CD/USB
6- Select 'C' for command line.
7- This type of window (command-line) open on your screen.
Run this command step by step on command prompt.
ls (For know about your drive and partition)
ls (hd0,gpt4) (hd0 is my hard disk and gpt4 is my Linux partition after run ls)
set root=(hd0,gpt4)
linux /boot/vmlinuz-5.4.0-33-generic root=/dev/sda4
(use tab for your vmlinuz version which found in /boot directory replace with your version.)
initrd /boot/initrd.img-5.4.0-33--generic
(use tab for your initrd version which found in /boot directory replace with your version.)
boot
8- Finished. After boot command your computer will boot with Linux. after booting and login please update your grub with this command.
sudo update-grub
ls (For know about your drive and partition)
ls (hd0,gpt4) (hd0 is my hard disk and gpt4 is my Linux partition after run ls)
set root=(hd0,gpt4)
linux /boot/vmlinuz-5.4.0-33-generic root=/dev/sda4
(use tab for your vmlinuz version which found in /boot directory replace with your version.)
initrd /boot/initrd.img-5.4.0-33--generic
(use tab for your initrd version which found in /boot directory replace with your version.)
boot
8- Finished. After boot command your computer will boot with Linux. after booting and login please update your grub with this command.
sudo update-grub
No comments:
Post a Comment