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)

#eg if your root is /dev/sda2 then change it below
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 Upgrade Debian 8,9,10 to Debian 12 Bookworm
  • Linux dhcp dhclient Mint Redhat Ubuntu Debian How To Use Local Domain DNS Server Instead of ISPs
  • Docker dockerd swarm high CPU usage cause solution
  • Docker Minimum Requirements/How Efficient is Docker? How Much Memory Does Dockerd Use?
  • qemu-nbd: Failed to set NBD socket solution qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read
  • apache2 httpd apache server will not start [pid 22449:tid 139972160445760] AH00052: child pid 23248 exit signal Aborted (6) solution Mint Debian Ubuntu Redhat
  • How to use the FTDI USB serial cable to RJ45 adapter to connect to the console on Cisco/Juniper Switch Router Firewall in Linux Ubuntu Debian Redhat
  • How To Setup Python3 in Ubuntu Docker Image for AI Deep Learning
  • How to Configure NVIDIA GPUs with Docker on Ubuntu: A Comprehensive Guide for AI Deep Learning CUDA Solution
  • Linux Ubuntu Mint how to check nameservers when /etc/resolv.conf disabled solution
  • Docker cannot work on other overlayfs filesystems such as ecryptfs won't start overlayfs: filesystem on '/home/docker/overlay2/check-overlayfs-support130645871/upper' not supported as upperdir
  • Linux How To Access Original Contents of Directory Mounted Debian Mint CentOS Redhat Solution
  • ecryptfs how to manually encrypt your existing home directory or other directory
  • How to Reset CIPC Cisco IP Communicator for CME CUCM CallManager
  • Internet Explorer Cannot Download File "Your security settings do not allow for this file to be downloaded." Security Settings Solution
  • Linux How To Upgrade To The Latest Kernel Debian Mint Ubuntu
  • Firefox how to restore and backup saved passwords and history which files/location
  • Linux How To echo as root solution to use tee permission denied solution Ubuntu Debian Mint Redhat CentOS
  • Linux how to keep command line bash process running if you are disconnected or need to logout of SSH remotely
  • Linux swapping too much? How to check the swappiness and stop swapping