You are not logged in.
Pages: 1
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
normalI'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 ...
doneIt 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
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
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/1000Last edited by rodprice (2021-08-21 17:57:18)
Offline
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
Sorry for the messy formatting - I've fixed it. When I
umount /bootthen
ls -al /bootI find that /boot is empty.
Offline
'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
Pages: 1