Arch Linux – Arch Linux Boots into Grub Command Line

arch linuxbootgrubuefivirtualbox

I'm trying to install Arch Linux over virtual box guest machine in a UEFI mode.
I've followed beginner's guide to install base system, generate fstab and etc and my system now boots into grub command prompt.

I had used GPT partition table to create two partitions.

/dev/sda1 – 500Mb fat32 UEFI system partition; /dev/sda2 – 7.5Gb ext4 mounted as /; /etc/fstab generated with command genfstab -U -p /mnt >> /mnt/etc/fstab
and contains:

# /dev/sda2
UUID=ce8f33a9-4bb8-42b8-b082-c2ada96cc2bb    /      ext4    rw,relatime,data-ordered    0 1
# /dev/sda1
UUID=3D70-B6C5                               /boot  vfat    rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,error=remount-ro    0 2

grub installed with commands:

\# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
\# mkdir /boot/EFI/boot
\# cp /boot/EFI/arch_grub/grubx64.efi /boot/EFI/boot/bootx64.efi

(without mkdir and cp it won't boot at all)

grub config generated with grub-mkconfig -o /boot/grub/grub.cfg and its contents are quite hard to get and post here; if it's necessary, I'll try.

And after reboot system boots into grub> command prompt and nothing helps.

Unlike this question: UEFI install (14.04) boots to GRUB command prompt, no GUI in my case command configfile (hd1,1)/boot/grub/grub.cfg does not make anything except clears the screen.

I can "boot" to installed system via chroot from installing cd environment, but no way other that that.

How can I fix it?

Best Answer

I found a case when I tried to use gummiboot instead of grub. Gummiboot reported an error: that it can't find kernel images. It looks like I mounted /boot and configured fstab after I installed the base system with pacstrap -i. So kernel images that were placed in a /boot directory were lost after mounting, and thus the system could not boot. I wonder what happened with them? Are they were still on hard drive, but were just shadowed with mounted partition?

Anyway, I just reinstalled everything again with carefully following instructions on the Arch wiki and it works now.

Related Question