#Stuck on grub command prompt after following arch linux installation perfectly

491 messages · Page 1 of 1 (latest)

craggy charm
#

Can someone help. I installed everything without error and the process went smoothly. I just cant boot anywhere and only gives me the option to go to the grub command prompt or to go back to UEFI firmware settings

plucky rivet
#

@craggy charm photo please

craggy charm
#

The highlighted text reads *UEFI Firmware Settings

iron sparrow
craggy charm
#

Do you think i could fix whatever the problem is from here

iron sparrow
#

Well, im pretty sure you cant even get into tty yet, so im not sure how to even diagnose this

craggy charm
#

What could I have messed up to get here

iron sparrow
#

did you, mayhaps, lets say, forget to set the / directory?

#

to be fair im just guessing, never had an issue of grub now showing me basically anything

craggy charm
#

Yea

#

I mounted my /dev/sdb3 drive to it

iron sparrow
#

Maybe someone who had to do a bit more troubleshooting than me can tell what how this issue came to be

craggy charm
#

And formatted it to ext4

#

Yea cause I was just using the guide off the arch linux website to download it and the only thing I did by myself was download grub but even then there were guides on the arch linux website

iron sparrow
#

oh

#

It could be just that grub doesnt know where to lead to boot then

craggy charm
#

It does

#

Part of the guide

iron sparrow
#

you configured grub?

craggy charm
#

Yea

#

It was the last step I followed

plucky rivet
#

@craggy charm you need to chroot into your partition

craggy charm
#

How can I do that

iron sparrow
#

Im not sure if im "allowed" to recomment arch-chroot

plucky rivet
iron sparrow
#

well, in my eyes nothing. i got banned from another server for recommending archinstall once, soooooo

iron sparrow
craggy charm
#

I mean yea but it was a GPT UEFI bootable USB and when i tried to boot into it it didnt appear. Rn im downloading just a regular MBR bootable and turning Compatability Mode on

iron sparrow
#

the amount of times ventoy saved my ass..

craggy charm
#

Ok so all my progress is gone i think

#

i have no clue. I tried clicking boot existing OS and nothing happens

iron sparrow
craggy charm
#

so should i try redownloading it for the millionth time

craggy charm
iron sparrow
#

unless you do something that im not thinking of i mean

craggy charm
#

Ok then i am just a bit dumb cause i might have reinstalled the same thing over and over ok

#

Alr so do i click the Arch linux install medium

iron sparrow
craggy charm
#

well everytime i did i would delete all partitions from my drives and start all over again

#

like i would go all the way back to square 1

#

I really dont know what im doing im just trying to learn😭

iron sparrow
#

when you get to tty, type
fdisk -l mount **YOUR ROOT** /mnt mount **BOOT** /mnt/boot arch-chroot /mnt

#

after that first id check
cd /boot/grub if grub.cfg is there

craggy charm
#

ok before i go into this

#

i downloaded the whole thing through UEFI but on this arch linux install medium it says it will be through bios

#

will that effect anything

iron sparrow
craggy charm
#

like i booted it through UEFI

iron sparrow
#

i dont think it should make a difference

craggy charm
#

Ok hopefully youre right

#

lemme do what you said and ill get back to you

#

wait all my partitions are unmounted

iron sparrow
#

yes

iron sparrow
#

you have only your USB mounted

#

before arch-chroot you need to mount root and boot first

#

tbh, it doesnt really matter if grub.cfg is there or no

#

i'd say run grub-mkconfig > /boot/grub/grub.cfg and see what it throws at you

craggy charm
#

ok

#

I just ran arch-chroot /mnt and it says the mount point does not exist

iron sparrow
#

no

craggy charm
#

like cause i was still doing things from before sorry

iron sparrow
#

did you mount root beforehand?

iron sparrow
craggy charm
iron sparrow
#

you need to run mount **UR ROOT** /mnt

#

u did that? with boot also?

craggy charm
#

yes

#

i could take a pictire

iron sparrow
#

can you do fdisk -l and send a pic?

iron sparrow
craggy charm
iron sparrow
#

eeeeeeeeeeehm

#

are you sure... you set up boot...?

craggy charm
#

its in the thing above

#

in sdb1

iron sparrow
#
/dev/nvme0n1p1      4096   2052095   2048000  1000M EFI System
/dev/nvme0n1p2   2052096 446193663 444141568 211.8G Linux filesystem
/dev/nvme0n1p3 446193664 976773119 530579456   253G Linux filesystem```
craggy charm
#

should i like reformat them

iron sparrow
craggy charm
#

could that be it

iron sparrow
#

you see how its different?

iron sparrow
craggy charm
#

ok. i format it to fat32 right

iron sparrow
#

yep

#

mount it on /boot/efi (same as /boot, habit)

craggy charm
#

It still doesnt want to show up as EFI system

#

it still shows as a linux filesystem

iron sparrow
#

does arch-chroot work if you bind it to /mnt/boot/efi
and root to /mnt

#

?

craggy charm
#

wait hold on i mightve messed something up

#

it says /mnt/boot/efi does not exist

#

should i make the directory

iron sparrow
#

wait im really lost now

craggy charm
#

and have the whole things come out to be:
mount --mkdir /dev/sdb1 /mnt/boot/efi

iron sparrow
#

what happens if you run
mount /dev/sdb1 /mnt/boot/efi

craggy charm
#

it says it doesnt exist

iron sparrow
craggy charm
#

ok

iron sparrow
#

what doesnt exist?

craggy charm
#

the exact error message is :
mount: /mnt/boot/efi: mount point does not exist.

iron sparrow
#

what if you just go /mnt/boot

#

and not efi

#

maybe im acoustic

craggy charm
#

i tried that and it still shows as a linux filesystem

#

I think its because of the BIOS thing but i have no clue

iron sparrow
#

do you get an error msg if you go mount /dev/sdb1 /mnt/boot?

craggy charm
#

no

iron sparrow
#

okay

#

do that

craggy charm
#

ok i did

iron sparrow
#

whats ur root?

#

sdb3?

craggy charm
#

yes

iron sparrow
#

do mount /dev/sdb3 /mnt

craggy charm
#

the tutorial also told me to create /mnt/boot

#

idk if that changes anything

craggy charm
iron sparrow
craggy charm
#

oh it works now

#

idk what was different

craggy charm
#

Alright now what

iron sparrow
#

just for my sanity, do this

#

cd /boot/grub

#

ls

#

and send a picture

craggy charm
iron sparrow
#

do cd

craggy charm
#

ok

iron sparrow
#

grub-mkconfig > /boot/grub/grub.cfg

craggy charm
#

Ok

iron sparrow
#

gimme the response

craggy charm
#

it says it added a boot menu entry for uefi firmware settings

#

and it hasnt added anything else

iron sparrow
#

run os-prober

craggy charm
#

it says command not found

#

should i just download it

iron sparrow
#

sure

craggy charm
iron sparrow
#

whats the response of systemctl status systemd-resolved

#

are you conected with ethernet?

craggy charm
#

oh shit i didnt connect

iron sparrow
#

lol

craggy charm
#

Jesus christ

#

ok i have os prober now

iron sparrow
#

run it

craggy charm
#

it didnt do anything

#

i type it in like os-prober right

iron sparrow
#

os-prober

#

yes

craggy charm
#

yea nothing happens

iron sparrow
#

did you download grub efibootmgr?

craggy charm
#

just did

#

still nothing

iron sparrow
#

nano /etc/fstab

#

what does it say

craggy charm
iron sparrow
#

i feel like something missed during install or grub config or something

#

run grub-install --target=x86_64-efi --efi-directory=/boot/efi

craggy charm
#

It says it doesnt look like an efi partition

iron sparrow
#

yea that was my point

#

your boot doesnt look like boot

craggy charm
#

yea

#

idk how to change it

#

im mounting it to boot

iron sparrow
#

1min let me check

craggy charm
#

Alright

iron sparrow
#

yea but the partition itself doesnt look like a boot partition at all

iron sparrow
craggy charm
#

how do i make it a boot partition in the first place

#

cause i just fdisk and made a new partition

#

wait i think i just figured it out

iron sparrow
#

i think you did the steps out of order

craggy charm
#

mightve

#

but i also found out i was suppose to change the type

#

im gonna try it rn

iron sparrow
#

that's why grub wasnt seeing anything imo

craggy charm
#

shoot

iron sparrow
#

lets see, not sure yet

craggy charm
#

Yes

#

yes

#

i did it

#

it shows as a efi system

#

now what do i do

iron sparrow
#

ayyyy

#

mount /dev/sdb1 /mnt/boot

craggy charm
#

already did i

#

it

iron sparrow
#

grub-mkconfig > /boot/grub/grub.cfg

craggy charm
#

Oh wait it redid it for some reason

#

it says fsconfig system call failed

#

and that it cant open blockdev

iron sparrow
#

after you did mkconfig?

craggy charm
#

no the mounting

iron sparrow
#

umount /dev/sdb1

craggy charm
#

it says its not mounted

iron sparrow
#

and it doesnt wanna mount it either?

craggy charm
#

yea

iron sparrow
#

install nfs-utils

craggy charm
#

it says could not lock database: read only file system

iron sparrow
#

whats the response of lsblk -f

craggy charm
#

it shows all my other partitions mounted but sdb1

iron sparrow
#

oh my god i think im dumb

#

do

#

exit

craggy charm
#

ok

iron sparrow
#

try to mount now xD

craggy charm
#

i downloaded the nfs-utils

iron sparrow
#

can u mount now after u exited

craggy charm
#

and i still get the same error

#

for the mounting

iron sparrow
#

did you exit tho?

craggy charm
#

yes

iron sparrow
#

thats super weird then

#

id say restart, boot from usb and lets do mount again

craggy charm
#

ok

iron sparrow
#

reboot

craggy charm
#

the error is mount point does not exist

iron sparrow
#

huh??

craggy charm
#

im just gonna create the /boot directory in /mnt cause thats what it says to do in the actual installation guide

craggy charm
#

ok

#

Ok it looks good

iron sparrow
#

mounted?

craggy charm
#

Yep

#

and its the EFI system

iron sparrow
#

okay, arch-chroot /mnt

#

grub-mkconfig > /boot/grub/grub.cfg

craggy charm
#

It said it added a boot menu entry for UEFI firmware settings again

iron sparrow
#

did u make fstab?

craggy charm
#

i did when i installed it originally. Should i do it again

iron sparrow
#

trype nano /etc/fstab

craggy charm
iron sparrow
#

do pacman -Syu

craggy charm
#

it failed

iron sparrow
#

wait, you deleted /boot?

iron sparrow
craggy charm
#

Failed to syncronize all databases

craggy charm
iron sparrow
#

connected to internet?

craggy charm
#

god damnit

iron sparrow
craggy charm
#

ok

#

what do i do after

iron sparrow
#

you -Syu'd?

craggy charm
#

its in the process

#

nvm

#

it says errors occured and no packages were upgrades

#

now it says reached target multi-user system and graphical interface

#

and i have lost the ability to type

iron sparrow
#

are you not dual booting are you?

craggy charm
#

i just control c and i tried it again and it says failed to synchronize all databases

craggy charm
iron sparrow
#

pacman -Syy

#

then try pacman -Syu again

craggy charm
iron sparrow
#

my dear lord

#

go pacman -S pacman-mirrorlist

#

nano /etc/pacman.d/mirrorlist

#

uncomment a few and try Syu again

#

im not even sure what im trying to do by updating, just hope it does something

craggy charm
#

no servers configured for repository:core

#

i tried to do pacman -Sy and -Syu

#

and i cant use nano cause i cant download anything

#

should i reboot again

iron sparrow
#

are you in arch-chroot or no?

craggy charm
#

I am now

#

and everything is downloaded

iron sparrow
#

blimey

#

Syu works?

craggy charm
#

yep

iron sparrow
#

okay

#

lets try this

#

grub-install --target=i386-pc /dev/sd1

#

maybe we got the wrong one

craggy charm
#

filesystem fat doesnt support embedding

iron sparrow
#

are you mbr or gpt, do you know?

craggy charm
#

probably mbr now

#

since im using BIOS

#

but when i initially did it it ran with gpt

iron sparrow
#

what do you mean, im confused

#

you cant really hop between them, afaik at least

craggy charm
#

how can i check

iron sparrow
#

you know what i would really advise

#

because god knows what is borked now

#

to wipe everything, use archinstall, and be up and running in 15 mins

craggy charm
#

ok

#

thank you so much for your time regardless

iron sparrow
#

i can lead you thru the archinstall if you wanna do it now

iron sparrow
craggy charm
cinder cryptBOT
#

boglui received a thank you cookie!

iron sparrow
#

alrighty

plucky rivet
#

@craggy charm what de/wm are you going to pick?

iron sparrow
#

just exit arch-chroot

craggy charm
#

I have no clue what that means

#

ok

craggy charm
iron sparrow
iron sparrow
craggy charm
#

i got the no servers configured error

iron sparrow
#

i think u need to connect to wifi again cuz u exited chroot

craggy charm
#

ok

#

ok i installed the archinstall

iron sparrow
#

okay

#

now just type archinstall

craggy charm
#

ok

iron sparrow
#

and now you get basically kind of a terminal looking GUI

craggy charm
#

Yea

iron sparrow
#

okay

#

now, u use space to select and enter to go back xDDD

craggy charm
#

what is the bootloader

iron sparrow
#

thats grub/systemd

craggy charm
#

like how would i make my OS look as clean as possible just from these settings. Ik i have to configure most of it when im actually in the OS but is there anything i can do here?

iron sparrow
#

id leave it on grub

iron sparrow
#

so

#

and you basically select a drive,
bootloader i recommend grub
, swap to true
, hostname to whatever u want
you put ur account to superuser
audio i use pulse
kernel i use default

#

when you click specify profile id there's a few presets, id say just do desktop because you will be the most comfortable with that in the beginning, since im guessing you come from windows

#

you can experiment and try something else afterwards, its really easy to change them, thats what Tofu meant by asking what DE(Desktop Enviroment) you're gonna choose

craggy charm
#

How do i make myself a superuser

iron sparrow
#

go to specify user account and make one

#

then you get the option promote/demote user

craggy charm
#

I dont see that

#

and i made the desktop thing hyprland

iron sparrow
iron sparrow
craggy charm
iron sparrow
#

Right above profile

#

User account

craggy charm
#

ok i clicked it

#

do i put add a user

iron sparrow
#

Yes

#

And when you make one, promote it to a superuser

craggy charm
#

it keeps saying the username i entered is invalid

iron sparrow
#

It cant have spaces

craggy charm
#

i had a capital at the beginning

iron sparrow
#

that too xD

craggy charm
#

ok do i need anything else like additional packages or can i just set that up at another time

iron sparrow
iron sparrow
#

im gonna get crucified if someone sees this, but i recomment KDE for DE

#

looks something like this

#

but i think that would be it more or less

craggy charm
iron sparrow
iron sparrow
craggy charm
#

no

iron sparrow
#

it should've

#

click on profile

#

after you choose DE it should give you something like this

#

if u have Nvidia GPU choose proprietary

craggy charm
#

got it

#

and what is that greeter thing

iron sparrow
#

ehmmmm, that's kind of like a "log in screen" on windows i guess

#

you can also change that on the fly later too

#

i use sddm

craggy charm
#

ok

iron sparrow
#

if you're done u can just click install

craggy charm
#

Ok

#

and do you know how long this usually takes

iron sparrow
#

well it shouldnt take long, since you're not downloading anything now i guess(unless you configured network)

#

but you will need to do that afterwards anyways, so probably better to do it now

craggy charm
#

So it says it could not strap in packages

iron sparrow
#

did you configure network?

craggy charm
#

for xorg-server, xorg-xinit, nvidia-dkms, dkms, --noconfirm

#

i mightve

iron sparrow
craggy charm
#

it just seems like the drivers for the graphics card though

iron sparrow
#

no big deal

craggy charm
#

it also starts with /usr/bin/pacstrap, /etc/pacman.conf

#

that they could not strap in those packages either

iron sparrow
#

its okay

#

its still installing right?

craggy charm
#

or /mnt/archinstall

#

no its asking if i wanna retry downloading them

#

should i just say no cause it fails every time

iron sparrow
#

just say no

craggy charm
#

failed to install packages to new root

#

doesnt work period

iron sparrow
#

and stopped?

craggy charm
#

yep

iron sparrow
#

do it again but set up network

craggy charm
#

it says at the top there were conflicts with the nvidia modules

#

should i try downloading it without them

#

ok

iron sparrow
craggy charm
#

ok

iron sparrow
#

worst case we can fix it in tty afterwards

craggy charm
#

how do i set up network

iron sparrow
#

just select network configuration

craggy charm
#

i selected copy iso network configuration to installation

#

is that fine

iron sparrow
#

i supose, never used wifi on setup 😄

craggy charm
#

ok im trying the download again

#

Its asking if i want to chroot into the new installation

iron sparrow
#

no need

craggy charm
#

ok so just click no

iron sparrow
#

yep

#

then reboot

#

and 🤞 we boot into arch

craggy charm
#

Hopefully

#

ok now only one monitor works

#

oh wait nvm

iron sparrow
#

could be nvidia drivers or just until you get into the actual DE

craggy charm
#

I cant get past the login screen

iron sparrow
#

try to login on the other monitor

craggy charm
#

my password isnt working

iron sparrow
craggy charm
#

no it just goes black and restarts

iron sparrow
#

oh

#

i think i had this issue

craggy charm
#

what do i do

iron sparrow
#

restart, and when u get to grub change kernel parameters

#

i forgot what button, i think E?

#

and then at the end of the line add nvidia-drm.modeset=1

craggy charm
#

how do i change parameters

iron sparrow
craggy charm
#

ok

#

and then at the bottom just type out what you sent

iron sparrow
#

send me a picture

craggy charm
iron sparrow
#

no thats not it

craggy charm
#

the command line?

iron sparrow
#

it should say kernel parameters or something

#

let me restart pc to check what button it is

craggy charm
#

it says e to edit commands before booting or c for a command-line

iron sparrow
craggy charm
#

yea and that sends me to what i sent in the photo

iron sparrow
#

Yea mine is the same i just checked ncm

#

Do you see a line starting with linux?

craggy charm
#

Yes

iron sparrow
#

Add what i sent at the end if that line

craggy charm
#

what did you add

iron sparrow
#

nvidia-drm.modeset=1

craggy charm
#

ok i did

iron sparrow
#

see if u can log in now

craggy charm
#

nope

#

doesnt work

iron sparrow
#

okay

craggy charm
#

alr im gonna call it a night but thank you so much for everything. If you have the chance i can come back to this tomorrow

iron sparrow
craggy charm
#

Alright thank you so much again

iron sparrow
#

no worries man! Good night 🫡

craggy charm
#

Im also gonna try and find a fix. If it just doesnt work i might try downloading arch with something other than hyprland

iron sparrow
#

When you boot, after grub press ctrl+alt+f2
That should get you in a terminal(tty)

#

You should just be able to run pacman -Syu there, and hopefully its going to download nvidia-dkms by itself

craggy charm
#

Ok so i completely scrapped it and downloaded GNOME

#

and now im stuck on failed to synchronize all databases (failed to retrieve some files) after everytime i try to pacman -Syu

#

But I logged in and the network manager is not working so thats what ive been trying to do

iron sparrow
#

What’s the response of systemctl status networkmanager

craggy charm
#

it says it could not be found

iron sparrow
#

Try capital NM

#

NetworkManager

craggy charm
#

could not be found

iron sparrow
#

Do
sudo systemctl stop dhcpcd

#

sudo systemctl start dhcpcd

craggy charm
craggy charm
#

it says the unit wasnt loaded for both

#

im redownloading it again

iron sparrow
#

What

craggy charm
#

The whole thing. Im gonna just download the network manager through the installer

#

or try to

craggy charm
#

I am so happy to say that everything works perfectly now

plucky rivet
#

... solved

cyan loomBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

plucky rivet
#

@craggy charm

iron sparrow
#

Congrats

#

Now you need to neofetch and flex on all the debian pugs

craggy charm