Linux can't boot/grub boot loader screen with no options solution

Usually if you get the grub boot loader and it doesn't show any boot options, it's because grub was not installed correctly and/or the partition that it is supposed to be on has changed or does not exist.  It can also happen if you install Linux to one drive, but the boot loader to another by accident, whether EFI or MBR/Legacy mode.

You can normally fix your booting/bootloader/MBR/EFI it by chrooting into your root partition:


#become root

sudo su

#make a directory called target where we will mount your root partition
mkdir /target

#mount /dev/sda3 to target (change to match your root partition)
mount /dev/sda3 /target

#if you are using EFI mount your EFI partition to /target/boot/efi (assume here it is /dev/sda1)
mount /dev/sda1 /target/boot/efi

#we need to mount dev proc and sys for the chroot to work like it was booted normally so we can fix it

for mount in dev proc sys; do
  mount -o bind /$mount /target/$mount
done

#now chroot
chroot /target

#run grub install on the drive that you installed Linux to
grub-install /dev/sda

#for EFI mode you can set the --bootloader-id like this:

--bootloader-id realtechtalk.com

Then in your EFI BIOS it will show as "realtechtalk.com".  You can change to what's suitable for you, otherwise it's the OS default (eg. Mint and Ubuntu will present the name Ubuntu).

For the bootloader-id to work you need to do a normal grub-install first which creates the OS defaut, at least in Ubuntu based.  For Debian based you need to specify --bootloader-id debian and then do secondary grub-install with your desired bootloaderid.

Read more grub bootloader-id issues on this here on Step 5 of this convert GRUB MBR to EFI guide

It may be a good idea to run update-grub after all of this.

Fix Your EFI Mount Location

If you are using EFI and you are fixing things because the wrong drive or partition received the GRUB bootloader, you'll need to update /etc/fstab to fix the mount for /boot/efi.

#fix your /boot/efi mount

Do a blkid to find the UUID of your EFI partition

blkid /dev/sda1

/dev/sda1: UUID="21F4-BED9" TYPE="vfat" PARTUUID="ffaee6e2-01"

Update UUID= in /etc/fstab 

In our example above the UUID is 21F4-BED9

Edit /etc/fstab by updating the UUID to the correct value for /boot/efi

With the update

Be sure to save the file and then type "mount -a" to make sure everything can mount OK and that there are no errors in fstab.

 


Tags:

linux, grub, loader, solutionusually, doesn, installed, correctly, partition, install, efi, mbr, legacy, mode, chrooting, sudo, su, directory, mount, mkdir, dev, sda, proc, sys, chroot, booted, bind,

Latest Articles

  • How to install Windows or other OS and then bring to another computer by using a physical drive and Virtual Machine with QEMU
  • PXE-E23 Error BOOTx64.EFI GRUB booting is 0 bytes tftp pxe dhcp solution NBP filesize is 0 Bytes
  • vagrant install on Debian Mint Ubuntu Linux RHEL Quick Setup Guide Tutorial
  • RHEL 8 CentOS 8, Alma Linux 8, Rocky Linux 8 System Not Booting with RAID or on other servers/computers Solution for dracut and initramfs missing kernel modules
  • How to Upgrade to Debian 11 from Version 8,9,10
  • Ubuntu Linux Mint Debian Redhat Cannot View Files on Android iPhone USB File Transfer Not Working Solution
  • Virtualbox Best Networking Mode In Lab/Work Environment without using NAT Network or Bridged
  • debootstrap how to install Ubuntu, Mint, Debian install
  • Linux grub not using UUID for the root device instead it uses /dev/sda1 or other device name solution
  • How To Restore Partition Table on Running Linux Mint Ubuntu Debian Machine
  • Debian Ubuntu apt install stop daemon questions/accept the default action without prompting
  • iptables NAT how to enable PPTP in newer Debian/Ubuntu/Mint Kernels Linux
  • Grandstream Phone Vulnerability Security Issue Remote Backdoor Connection to 207.246.119.209:3478
  • Linux How to Check Which NIC is Onboard eth0 or eth1 Ubuntu Centos Debian Mint
  • VboxManage VirtualBox NAT Network Issues Managment Troubleshooting
  • Dell PowerEdge Server iDRAC Remote KVM/IP Default Username, Password Reset and Login Information Solution
  • Nvidia Tesla GPUs K40/K80/M40/P40/P100/V100 at home/desktop hacking, cooling, powering, cable solutions Tutorial AIO Solutions
  • Stop ls in Linux Debian Mint CentOS Ubuntu from applying quotes around filenames and directory names
  • Thunderbird Attachment Download Error Corrupt Wrong filesize of 29 or 27 bytes Solution
  • Generic IP Camera LAN Default IP Settings DVR