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

  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups
  • How to install gns3 on Linux Ubuntu Mint
  • How to convert audio for Asterisk .wav format
  • Using Cisco CME Router with Asterisk as a dial-peer
  • Cisco CME How To Configure SIP Trunk VOIP
  • Virtualbox host Only Network Error Failed to save host network interface parameter - Cannot change gateway IP of host only network
  • Cisco CME and C7200 Router Testing and Learning Environment on Ubuntu 20+ Setup Tutorial Guide
  • Abusive IP ranges blacklist
  • How to Install Any OS on a Physical Drive from Windows Using VMware Workstation (Linux, Windows, BSD)
  • CDN Cloudflare how to set and preserve the real IP of the client without modifying application code on Apache
  • CentOS 7 fix Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was 14: curl#6 -
  • Ubuntu Debian How To Install Recommended Packages Automatically
  • How to set Linux Ubuntu Redhat Debian Command Line http https socks proxy for yum apt