You are not logged in.

#1 2021-05-01 18:18:47

markersniffen
Member
Registered: 2021-05-01
Posts: 2

[SOLVED] New Install boots to GRUB prompt

Hi All,

First time installing Arch, this I've been trying to follow the installation guide and this is my third or fourth attempt:

When I reboot after installing it takes me to the grub> prompt. If I try "boot" It tells me I need to load the kernel.
I did generate the grub config file, which after some research seems to be a regular culprit for this problem.

Here's what I did to get to this point, after booting to a usb drive:

#iwctl
	connect to wifi
#cfdisk /dev/nvme0n1
	- create three partitions:
		/dev/nvme0n1p1 - type EFI, 512M
		/dev/nvme0n1p2 - type Linux, 114GB
		/dev/nvme0n1p3 - type Linux Swap, ~4GB
 	- write

# mkfs.ext4 /dev/nvme0n1p2
# mkswap /dev/nvme0n1p3
# mount /dev/nvme0n1p2 /mnt
# swapon /dev/nvmae0np3
# pacstrap /mnt base linux linux-firmware
# genfstab -U /mnt >> /mnt/etc/fstab
# nano /mnt/etc/fstab
	(shows nvme0n1p2(linux) and nvme0n1p3(swap))

# arch-chroot /mnt
# ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
# hwclock --systohc
# pacman -S nano

edited the locale.gen file
# locale-gen
# nano /etc/hostname
	added hostname
# nano /etc/hosts
	added entries
# passwd
	created password
# pacman -S grub efibootmgr
	installed
# mount /dev/nvme0n1p1 /boot
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
	No error reported
# grub-mkconfig -o /boot/grub/grub.cfg
	done (no errors)
# exit
# reboot

When I got stuck at grub, I tried reinstalling the kernel after remounting everything:

# pacman -Syu linux

...and also regenerated my fstab after seeing that the EFI partition wasn't showing up...not sure if that would affect this.

# genfstab -U /mnt >> /mnt/etc/fstab

This is on an MSI laptop which originally had windows on a fakeRAID which I turned off, and I plan to use the two nvme drives separately. Ideally I would like to install windows an the second drive to have a dual boot setup.
My next step is to read the GRUB and EFI docs again, I don't have my head wrapped around how they actually work and I feel pretty lost.

Thanks in advance!

Last edited by markersniffen (2021-05-01 19:24:55)

Offline

#2 2021-05-01 18:34:04

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,326

Re: [SOLVED] New Install boots to GRUB prompt

You need to mount your boot partition before running pacstrap.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Online

#3 2021-05-01 19:23:46

markersniffen
Member
Registered: 2021-05-01
Posts: 2

Re: [SOLVED] New Install boots to GRUB prompt

Ah, seems obvious now...thanks for the quick reply!

Offline

Board footer

Powered by FluxBB