You are not logged in.

#1 2017-06-12 03:21:24

Zhme
Member
Registered: 2017-06-11
Posts: 80

Failed to configure grub for UEFI bootloader

I have followed the arch wiki as well as possible and have had no problems with most of the process until the Bootloader comes into play.  I have my first partition formatted to fat32 and the flag set to boot, esp (using parted).  I used the grub-install command with no errors and when I reboot without my live USB my computer enters a GNU Grub shell environment.  I have tried loading the OS by setting the root and chainloading to my efi file but that just returns me to the grub shell again.

If anyone needs to see an output from my bash shell to help me determine the cause I am not sure how to do so.  Im writing this post from my phone.  I could use elinks from my laptop to access the forums but I would need explanation of how to copy output from the shell to the next page.

Offline

#2 2017-06-12 03:31:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Failed to configure grub for UEFI bootloader

Zhme wrote:

I would need explanation of how to copy output from the shell to the next page.

https://wiki.archlinux.org/index.php/Li … in_clients


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-06-12 06:45:29

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

Thank you for the response I will look into those pastebin style links to share my output.  Is there any command output you would recommend that I post to help me fix my Bootloader issue?

Offline

#4 2017-06-12 07:53:39

Genis
Member
Registered: 2017-01-09
Posts: 31

Re: Failed to configure grub for UEFI bootloader

Usually giving the output of journalctl -xb is a good way to start. It gives you a log of important events from boot on. Give it a look at the arch wiki systemd page

Offline

#5 2017-06-12 14:19:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Failed to configure grub for UEFI bootloader

It sounds like you missed out the step of actually configuring grub...

https://wiki.archlinux.org/index.php/GR … ation_file


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-06-12 14:55:49

varun
Member
Registered: 2014-07-14
Posts: 25

Re: Failed to configure grub for UEFI bootloader

Incase your uefi shell directly allows multiple entries (most do), you won't need grub and may consider skipping it.

https://wiki.archlinux.org/index.php/EFISTUB
1. copy boot files to ESP/EFI partition
2. setup mkinitcpio hook to sync these files with ESP whenever kernel is updated
3. Use efibootmgr to add entry in UEFI boot menu that points directly to vmlinuz-linux. (double check paths)

Offline

#7 2017-06-12 23:29:53

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

I did use the grub-mkconfig command after installing grub.  And Im assuming that the journalctl command should be issued from the chrooted to mount state, yes? If I can boot without grub I may give that a shot after work.  How do you cp from one partition to another?

Offline

#8 2017-06-12 23:45:25

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

The output of the journal is unlikely to be relevant as it only records activity once local filesystems have been mounted and it can write to /var.
Assuming you mount the ESP on /mnt from the live media please post the output of (using a pastebin client if needed)

# ls -laR /mnt
#blkid

also the contents of the systems /boot/grub/grub.cfg (so it would be /mnt/grub/grub.cfg assuming you used the ESP as /boot)

Offline

#9 2017-06-13 06:34:16

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

I feel that my partition setup should be shown.  Boot is set to the first partition, root to second partition and home data is sda3.  Including a swap partition.

https://pastebin.com/0kky52T8

Here is the output of ls- laR /mnt.

https://pastebin.com/iiCAJbhQ

I couldn't install pastebinit into my live root shell because the partition had no room supposedly.  So I had to do so from within chrooted mnt.  I exited chroot and did the ls command from root and saved the file to my home directory and used cat | pastebinit.... Although the pastebin file seems to be lacking some bulk.

Offline

#10 2017-06-13 07:17:57

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

The tip box on the wiki page for pastebin clients included instructions without having to install any software.
If you prefer working from inside the chroot the commands need to be adjusted

$ ls -laR /boot
$ cat /boot/grub/grub.cfg

Offline

#11 2017-06-14 19:47:18

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

Im aware of the change in path when working from inside the chroot.  I tried using the command from the tip box with curl but there were errors so I felt that using a downloaded client would suffice.  From the lack of response I imagine the ls command I uploaded to pastebin using pastebinit was sufficient to see the problem but ill go ahead and post my grub config.  I apologize for the slow responses I work alot during the week, I have today off though!

Again I have been typing this from my phone so please excuse the autocorrections that may appear xD

Last edited by Zhme (2017-06-14 19:49:24)

Offline

#12 2017-06-14 19:56:31

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

.:
total 71
drwx------ 1 root root   140 Jun 13 06:28 .
drwxr-xr-x 1 root root   120 Jun 13 05:42 ..
-rwxr-xr-x 1 root root   787 Mar 25 05:03 .automated_script.sh
-rw-r--r-- 1 root root    21 Feb 14 13:16 .bash_logout
-rw-r--r-- 1 root root    57 Feb 14 13:16 .bash_profile
-rw-r--r-- 1 root root   141 Feb 14 13:16 .bashrc
drwxr-xr-x 2 root root    40 Jun 13 05:43 .cache
-rw-r--r-- 1 root root  8865 Jun  1 15:30 install.txt
-rw------- 1 root root    64 Jun 13 05:45 .wpa_cli_history
-rw-r--r-- 1 root root 35657 Jun 13 05:43 .zcompdump
-rw-r--r-- 1 root root    16 Jun 13 06:12 .zdirs
-rw-r--r-- 1 root root    23 Mar 25 05:03 .zlogin
-rw------- 1 root root  1271 Jun 13 06:28 .zsh_history
-rw-r--r-- 1 root root 10404 May 16 19:45 .zshrc
 
./.cache:
total 0
drwxr-xr-x 2 root root  40 Jun 13 05:43 .
drwx------ 1 root root 140 Jun 13 06:28 ..

This output does not match what I would expect from /boot or from /mnt.  The latter I would expect to be empty.

Offline

#13 2017-06-14 21:55:05

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

Offline

#14 2017-06-14 22:01:03

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

Offline

#15 2017-06-14 22:03:59

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

vmlinuz-linux, initramfs-linux.img and initramfs-linux-fallback.img are missing from /boot reinstall the kernel package after ensuring /boot is mounted.

Offline

#16 2017-06-14 22:08:21

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

At this point I would rm all of my partitions using parted to start fresh is there a neater way of doing this?  I have no problem removing the partitions and reformatting to start from scratch i'm just curious as to whether that would be damaging to my hard disk in the long run.

Offline

#17 2017-06-14 22:16:59

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

Should not be damaging to the harddisk just seems unnecessary to me.  It appears /boot was not mounted before pacstrap was run.
Chrooting in reinstalling the kernel package then possibly rerunning

# grub-mkconfig -o /boot/grub/grub.cfg

should resolve the issue.  If you do reinstall please ensure you follow this step Installation_guide#Mount_the_file_systems with respect to additional filesystems.

Offline

#18 2017-06-14 23:33:12

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

Success! Booted up with the option to load Arch Linux! Thank you to loqs and anyone else who helped me out.  For anyone who has a similar issue my fault was not having my esp (/mnt/boot) mounted before using the pacstrap command to install base.  Having started over with the correct mounted partitions formatted prior to install did the trick.  Also, don't forget the grub-mkconfig!

Last question, kinda funny yet sad.  My hostname file I just put hostname inside... But I can't log in !!

Offline

#19 2017-06-14 23:36:32

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

Offline

#20 2017-06-14 23:45:34

Zhme
Member
Registered: 2017-06-11
Posts: 80

Re: Failed to configure grub for UEFI bootloader

No I set the password but I only worked as root for username

Offline

#21 2017-06-14 23:49:11

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: Failed to configure grub for UEFI bootloader

You can not log in as root with the password you set?
If that is the case ( and I am not misunderstanding you ) chroot in and try setting the password again in case it was mistyped also check the Journal for the reason login was refused.
Edit:
This really should be split into a new thread as it is a separate topic see Code_of_conduct#How_to_post

Choose one topic per thread. Long threads are typically discouraged in the technical issue subforums.

Last edited by loqs (2017-06-14 23:51:20)

Offline

Board footer

Powered by FluxBB