You are not logged in.

#1 2021-08-21 01:58:25

rodprice
Member
Registered: 2009-07-03
Posts: 5

Goes directly to the Grub prompt upon boot

After putting in a new SSD drive in my machine, I find that when I boot the machine, it goes directly to the Grub command line (not Grub rescue). Then I can enter the following into Grub and Linux boots correctly:

    set prefix=(hd0,1)/grub
    set root=(hd0,1)
    insmod normal
    insmod linux
    normal

I've tried re-running grub-mkconfig as follows:

$ sudo grub-mkconfig -o /boot/grub/grub.cfg 
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi
Found Antergos Linux on /dev/sdb1
Adding boot menu entry for UEFI Firmware Settings ...
done

It seems to find everything correctly, but restarting stills brings me to the Grub command line.

Why don't I get the usual Grub menu?  Thanks.

Last edited by rodprice (2021-08-21 18:20:25)

Offline

#2 2021-08-21 02:26:13

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: Goes directly to the Grub prompt upon boot

Found Antergos Linux on /dev/sdb1

Please note, these forums usually frown upon asking support for Arch derivatives...

I believe you should reinstall grub. You're regenerating the config, but you didn't install it onto your new disk. Look up GRUB in the wiki.

Offline

#3 2021-08-21 02:33:56

rodprice
Member
Registered: 2009-07-03
Posts: 5

Re: Goes directly to the Grub prompt upon boot

The Antergos disk is the old disk that I keep around for backup. The new installation is pure Arch Linux. And perhaps I should have said that the new disk is the Windows disk, not the Arch Linux disk. I didn't make any changes to the Arch Linux disk. So the grub installation on the Arch Linux disk should be fine.

Here's the results of df:

$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
dev              8156212        0   8156212   0% /dev
run              8164120     1432   8162688   1% /run
/dev/sda2      229184876 69585260 147887976  32% /
tmpfs            8164120        0   8164120   0% /dev/shm
tmpfs            8164120        8   8164112   1% /tmp
/dev/sdb1      109796904 56997048  51662652  53% /mnt/antergos
/dev/nvme0n1p4 976131728 99716276 876415452  11% /mnt/windows
/dev/sda1         523248    62992    460256  13% /boot
tmpfs            1632824      124   1632700   1% /run/user/1000

Last edited by rodprice (2021-08-21 17:57:18)

Offline

#4 2021-08-21 07:07:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,344

Re: Goes directly to the Grub prompt upon boot

Please use code tags for shell IO and file contents, https://bbs.archlinux.org/help.php#bbcode
Are you maybe booting from the root partition (umount /boot and see whether there're still files in /boot - that's usually a bad sign)

Offline

#5 2021-08-21 18:37:06

rodprice
Member
Registered: 2009-07-03
Posts: 5

Re: Goes directly to the Grub prompt upon boot

Sorry for the messy formatting - I've fixed it. When I

umount /boot

then

ls -al /boot

I find that /boot is empty.

Offline

#6 2021-08-21 21:06:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,344

Re: Goes directly to the Grub prompt upon boot

'key… so if that's not it
1. What are "echo $prefix; echo $root" before you set the values?
2. Also post the generated grub.cfg

Offline

Board footer

Powered by FluxBB