You are not logged in.

#1 2018-11-07 01:31:41

IONStep
Member
Registered: 2018-11-07
Posts: 2

UEFI + GRUB installation lands me at GRUB prompt after reboot

Hello,

I am new to Arch and am trying to install it on my HP Omen laptop using LVM on LUKS as per the Wiki: https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS

I followed all the documentation carefully and everything seemed to go well, however when I rebooted, I just got dumped at a GRUB prompt:

GNU GRUB version 2.02
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else, TAB lists possible device or file completions.
grub>

I am booted in EFI mode:

ls -l /sys/firmware/efi | wc -l
118

I have the following partitions set up:

/dev/sda1 - UEFI partition
/dev/sda2\
/dev/sda3 \_ Windows partitions
/dev/sda4 /
/dev/sda5/
/dev/sda6 - /boot (unencrypted)
/dev/sda7 - Encrypted LUKS partition with /, /home and swap LVMs

I added the following hooks to /etc/mkinitcpio.conf and then rebuilt the initramfs image:

HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt sd-lvm2 filesystems fsck)

I added the following to /etc/default/grub:

GRUB_CMDLINE_LINUX="rd.luks.name=[UUID]=cryptlvm root=/dev/ubu/root"

I installed the GRUB as follows:

mkdir /efi
mount /dev/sda1 /efi
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Does anyone know what's going wrong here? Please let me know if you need any further information.

Thank you.

Offline

#2 2018-11-08 14:36:17

jaqu3
Member
Registered: 2018-11-07
Posts: 2

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

Hi!
When I installed Arch and Windows. I chose "/boot/efi", because there are windows files and it works for me wink

Offline

#3 2018-11-12 21:46:21

IONStep
Member
Registered: 2018-11-07
Posts: 2

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

Thanks jaqu3, I gave that a try (and just about every other combination of bootloader configuration i could think of) but it still isn't working.

Does anyone know how I can get any useful debugging info or anything that will explain why I'm being dumped at the Grub prompt?

Offline

#4 2018-11-13 15:15:49

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 421

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

I really dislike "24 Questions" and should not encourage it by replying, but did you flag the partition as boot, esp?


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#5 2018-11-15 17:17:48

catzero
Member
Registered: 2018-10-31
Posts: 4

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

You need to run

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

before

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

[Edit: I am wrong on this, of course, as pointed out next reply. grub.cfg is read at boot]

Last edited by catzero (2018-11-15 17:46:52)

Offline

#6 2018-11-15 17:23:46

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

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

catzero wrote:

You need to run

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

before

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

No you don't. It makes no difference in which order you install and configure .


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

#7 2018-12-27 06:28:20

chrisdb
Member
From: Belgium
Registered: 2018-05-16
Posts: 155

Re: UEFI + GRUB installation lands me at GRUB prompt after reboot

IONStep wrote:

Hello,

I am new to Arch and am trying to install it on my HP Omen laptop using LVM on LUKS as per the Wiki: https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS

I followed all the documentation carefully and everything seemed to go well, however when I rebooted, I just got dumped at a GRUB prompt:

GNU GRUB version 2.02
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else, TAB lists possible device or file completions.
grub>

I am booted in EFI mode:

ls -l /sys/firmware/efi | wc -l
118

I have the following partitions set up:

/dev/sda1 - UEFI partition
/dev/sda2\
/dev/sda3 \_ Windows partitions
/dev/sda4 /
/dev/sda5/
/dev/sda6 - /boot (unencrypted)
/dev/sda7 - Encrypted LUKS partition with /, /home and swap LVMs

I added the following hooks to /etc/mkinitcpio.conf and then rebuilt the initramfs image:

HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt sd-lvm2 filesystems fsck)

I added the following to /etc/default/grub:

GRUB_CMDLINE_LINUX="rd.luks.name=[UUID]=cryptlvm root=/dev/ubu/root"

I installed the GRUB as follows:

mkdir /efi
mount /dev/sda1 /efi
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg

Does anyone know what's going wrong here? Please let me know if you need any further information.

Thank you.

It's not mentioned in your post, but did you mount the boot partition before installing/configuring grub


Failure is success in progress.
A.E.

Offline

Board footer

Powered by FluxBB