You are not logged in.

#1 2022-04-27 21:46:06

Trogle
Member
Registered: 2022-04-27
Posts: 17

Struggling to boot system with Grub, just get grub command prompt

Hi,
I'm installing Arch for the first time, as the only OS on an SSD (there's lots of other disks in RAID arrays on the system, but don't need to worry about them). The system is a very new x570 AMD motherboard, so it's full UEFI.

The partition structure on the disk looks like this (from outside the arch-chroot);

root@archiso ~ # fdisk -l /dev/sdb
Disk /dev/sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 850 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 01039306-DADA-4532-9766-77C25137555F

Device         Start       End   Sectors  Size Type
/dev/sdb1       2048    821247    819200  400M EFI System
/dev/sdb2     821248 210536447 209715200  100G Linux root (x86-64)
/dev/sdb3  210536448 298616831  88080384   42G Linux swap

I entered the chroot using;

root@archiso ~ # mount /dev/sdb2 /mnt
root@archiso ~ # mount /dev/sdb1 /mnt/boot
root@archiso ~ # swapon /dev/sdb3
root@archiso ~ # arch-chroot /mnt

I did the installation using

pacman -S efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

grub-mkconfig -o /boot/grub/grub.conf

and that's produced the file structure seen below.The problem is, when I reboot, I just get the grub commandline. No other drives have ever had a boot partition, so it should be just this one.

If anyone has any suggestions, I would be incredibly grateful, this is my first Arch install, moving over from Debian. If you need any more information, please ask!

[root@archiso /]# ls -l /boot
total 52300
drwxr-xr-x 3 root root     4096 Apr 24 23:03 EFI
-rwxr-xr-x 1 root root    51200 Apr 12 07:14 amd-ucode.img
drwxr-xr-x 6 root root     4096 Apr 27 22:06 grub
-rwxr-xr-x 1 root root 34182765 Apr 24 23:24 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root  8844835 Apr 24 23:24 initramfs-linux.img
-rwxr-xr-x 1 root root 10458688 Apr 24 22:25 vmlinuz-linux

[root@archiso /]# ls -l /boot/EFI/GRUB
total 140
-rwxr-xr-x 1 root root 143360 Apr 24 23:05 grubx64.efi

[root@archiso /]# ls -l /boot/grub    
total 68
drwxr-xr-x 2 root root  4096 Apr 24 23:03 fonts
-rwxr-xr-x 1 root root  5169 Apr 27 22:06 grub.conf
-rwxr-xr-x 1 root root  1024 Apr 24 23:03 grubenv
drwxr-xr-x 2 root root  8192 Apr 24 23:05 locale
drwxr-xr-x 3 root root  4096 Apr 24 23:03 themes
drwxr-xr-x 2 root root 40960 Apr 24 23:05 x86_64-efi

Offline

#2 2022-04-28 02:41:42

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: Struggling to boot system with Grub, just get grub command prompt

Offline

#3 2022-04-28 03:03:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,539

Re: Struggling to boot system with Grub, just get grub command prompt

Check your filename. grub.conf is not a thing.

Offline

#4 2022-04-28 21:24:23

Trogle
Member
Registered: 2022-04-27
Posts: 17

Re: Struggling to boot system with Grub, just get grub command prompt

Oh, that's so annoying, yes creating the right file, grub.cfg did the trick!

Offline

#5 2022-04-28 23:02:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,616

Re: Struggling to boot system with Grub, just get grub command prompt

Great please mark as [SOLVED] by editing the title in your first post (might have to shorten it a little)

Offline

Board footer

Powered by FluxBB