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

  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • 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 17 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