You are not logged in.

#1 2021-01-19 15:38:00

TheCisconian
Member
From: Greece
Registered: 2021-01-18
Posts: 4

Stuck on grub> after install

Installing on a UEFI system.
Followed the wiki very closely
Here is the troubleshooting i've made so far : checked the fstab file and saw that it was missing my EFI partition. Remounted everything and ran the command again. Fstab look fine after that.
Made sure grub.cfg exists


Installation steps :
1) ls /sys/firmware/efi/efivars (made sure UEFI was working and it was)
2) timedatectl set-ntp true
3) fdisk /dev/sda
  a) Made SDA1 and changed the type to EFI(500M)
  b) Made SDA2 and changed the type to Swap(2g)
  c) Made SDA3
4)mkfs.fat -F 32 /dev/sda1
5)mkfs.ext4 /dev/sda3
6)mkswap /dev/sda2
7)mkdir /mnt/boot
8)mount /dev/sda3 /mnt
9)mount /dev/sda1 /mnt/boot
10)swapon /dev/sda2
11)pacstrap /mnt base linux linux-firmware networkmanager vim
12)genfstab -U /mnt >> /mnt/etc/fstab
13)arch-chroot /mnt
14)set the timezone
15)hwclock --systohc
16-19) did all the locale stuff
20)mkinitcpio -P
21)passwd
22)pacman -S grub bootmgr
23)I also installed some filesystem utils for FAT32 and EXT4 at this point
24)mount /dev/sda1 /boot
25)grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB
26)grub-mkconfig -o /boot/grub/grub.cfg
27)i think that's all i did and then rebooted.

Offline

#2 2021-01-19 16:25:22

TheCisconian
Member
From: Greece
Registered: 2021-01-18
Posts: 4

Re: Stuck on grub> after install

i posted a stupid reply. ignore this message
I'm still having the problem though

Last edited by TheCisconian (2021-01-19 16:27:47)

Offline

#3 2021-01-19 17:00:37

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,733
Website

Re: Stuck on grub> after install

TheCisconian wrote:

7)mkdir /mnt/boot
8)mount /dev/sda3 /mnt
9)mount /dev/sda1 /mnt/boot

You should have created /mnt/boot after mounting /dev/sda3 rather than before. I'm surprised the second mount command worked because /mnt/boot wouldn't exist unless /boot was already present on /dev/sda3.

TheCisconian wrote:

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

Was that the actual command that you used? You should have replaced esp with the mountpoint for the ESP, which should have been /boot for you.

If you did that then please post the output of

# parted --list
# efibootmgr -v

^ Those commands can be run from any live system with a graphical desktop for ease of posting (or see the pastebin client list on the Applications page in the ArchWIki for a command line method to share the output).

You can also use the set command from the "grub>" prompt to see where it's looking for the configuration file. And check grub.cfg to confirm that it contains some menuentry stanzas.

EDIT: if the second mount command failed then the pactrap command installed the kernel to /boot on the root partition, which was subsequently covered up by the third mount command you ran from inside the chroot. If that happened then there would have been no kernel images visible to GRUB so grub.cfg would contain no menuentry stanzas and you would be left at the "grub>" prompt.

Last edited by Head_on_a_Stick (2021-01-19 17:23:45)

Offline

#4 2021-01-19 17:15:45

TheCisconian
Member
From: Greece
Registered: 2021-01-18
Posts: 4

Re: Stuck on grub> after install

Thanks for the reply.
I actually ran the installation from the beginning and everything worked fine and i'm booted in ! (i'm so proud lol)
I believe the culprit was me messing up and creating /mnt/boot before mounting /sda3 cause i also noticed the efi partition was unmounting whenever i chrooted

Thanks for your help !

Offline

Board footer

Powered by FluxBB