#Stuck on grub command prompt after following arch linux installation perfectly
491 messages · Page 1 of 1 (latest)
@craggy charm photo please
Do you think i could fix whatever the problem is from here
Well, im pretty sure you cant even get into tty yet, so im not sure how to even diagnose this
What could I have messed up to get here
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
Maybe someone who had to do a bit more troubleshooting than me can tell what how this issue came to be
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
you configured grub?
@craggy charm you need to chroot into your partition
How can I do that
Im not sure if im "allowed" to recomment arch-chroot
what's wrong with that?
well, in my eyes nothing. i got banned from another server for recommending archinstall once, soooooo
do you have usb install still?
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
the amount of times ventoy saved my ass..
Ok so all my progress is gone i think
i have no clue. I tried clicking boot existing OS and nothing happens
just boot from usb media
so should i try redownloading it for the millionth time
If i do wont i lose everything i just did
uhm? nope
unless you do something that im not thinking of i mean
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
That might've broke it then, if you basically overwrote the install?
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😭
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
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
what does "through UEFI" mean?
like i booted it through UEFI
i dont think it should make a difference
Ok hopefully youre right
lemme do what you said and ill get back to you
wait all my partitions are unmounted
yes
that's why i said you need to run this first
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
no
like cause i was still doing things from before sorry
did you mount root beforehand?
no worries
yes
can you do fdisk -l and send a pic?
it sats it doesnt exist btw
it doesnt exist because you didnt chroot yet
/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```
should i like reformat them
p1 is boot for me
could that be it
you see how its different?
yes
ok. i format it to fat32 right
wait hold on i mightve messed something up
it says /mnt/boot/efi does not exist
should i make the directory
wait im really lost now
and have the whole things come out to be:
mount --mkdir /dev/sdb1 /mnt/boot/efi
what happens if you run
mount /dev/sdb1 /mnt/boot/efi
it says it doesnt exist
no no, you're not making a directory
ok
what doesnt exist?
the exact error message is :
mount: /mnt/boot/efi: mount point does not exist.
i tried that and it still shows as a linux filesystem
I think its because of the BIOS thing but i have no clue
do you get an error msg if you go mount /dev/sdb1 /mnt/boot?
no
ok i did
do mount /dev/sdb3 /mnt
done
what happens when you run arch-chroot /mnt
Alright now what
do cd
ok
grub-mkconfig > /boot/grub/grub.cfg
Ok
gimme the response
it says it added a boot menu entry for uefi firmware settings
and it hasnt added anything else
sure
whats the response of systemctl status systemd-resolved
are you conected with ethernet?
oh shit i didnt connect
lol
run it
yea nothing happens
did you download grub efibootmgr?
i feel like something missed during install or grub config or something
run grub-install --target=x86_64-efi --efi-directory=/boot/efi
It says it doesnt look like an efi partition
1min let me check
Alright
yea but the partition itself doesnt look like a boot partition at all
thats what i meant
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
i think you did the steps out of order
yea lol xD
that's why grub wasnt seeing anything imo
shoot
lets see, not sure yet
grub-mkconfig > /boot/grub/grub.cfg
Oh wait it redid it for some reason
it says fsconfig system call failed
and that it cant open blockdev
after you did mkconfig?
no the mounting
umount /dev/sdb1
it says its not mounted
and it doesnt wanna mount it either?
yea
install nfs-utils
it says could not lock database: read only file system
whats the response of lsblk -f
it shows all my other partitions mounted but sdb1
ok
try to mount now xD
i downloaded the nfs-utils
did you exit tho?
yes
ok
reboot
the error is mount point does not exist
huh??
im just gonna create the /boot directory in /mnt cause thats what it says to do in the actual installation guide
yeye do it
just mkdir
mounted?
It said it added a boot menu entry for UEFI firmware settings again
did u make fstab?
i did when i installed it originally. Should i do it again
trype nano /etc/fstab
do pacman -Syu
it failed
wait, you deleted /boot?
what did it say
Failed to syncronize all databases
no
connected to internet?
god damnit
you -Syu'd?
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
are you not dual booting are you?
i just control c and i tried it again and it says failed to synchronize all databases
no
pacman-mirrors -f
pacman -Syy
then try pacman -Syu again
it says command not found
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
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
wait
are you in arch-chroot or no?
yep
okay
lets try this
grub-install --target=i386-pc /dev/sd1
maybe we got the wrong one
filesystem fat doesnt support embedding
are you mbr or gpt, do you know?
how can i check
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
i can lead you thru the archinstall if you wanna do it now
no worries man, i can never repay with how many times i was the one getting helped 😄
yea if you can thank you
boglui received a thank you cookie!
alrighty
@craggy charm what de/wm are you going to pick?
just exit arch-chroot
i did
how do you want ur "desktop" to look like, there's options like windows like, minimalist, lighter on the hw etc, you'll get the hang of it
pacman -S archinstall
i got the no servers configured error
i think u need to connect to wifi again cuz u exited chroot
ok
and now you get basically kind of a terminal looking GUI
Yea
what is the bootloader
thats grub/systemd
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?
id leave it on grub
yes
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
How do i make myself a superuser
go to specify user account and make one
then you get the option promote/demote user
thats good
can u send a pic of what u see
it keeps saying the username i entered is invalid
It cant have spaces
i had a capital at the beginning
that too xD
ok do i need anything else like additional packages or can i just set that up at another time
as you get into terminal more and more you will stop naming folders and files with capital letters, it can be a pain in the ass xD
uhm, you set the drivers, root password, bootloader, disk config
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
how do i set the drivers
not really, you can do that afterwards
did it not ask you that when you chose DE?
no
it should've
click on profile
after you choose DE it should give you something like this
if u have Nvidia GPU choose proprietary
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
ok
if you're done u can just click install
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
So it says it could not strap in packages
did you configure network?
its fine we will just install that afterwards
it just seems like the drivers for the graphics card though
no big deal
yea its okay
it also starts with /usr/bin/pacstrap, /etc/pacman.conf
that they could not strap in those packages either
or /mnt/archinstall
no its asking if i wanna retry downloading them
should i just say no cause it fails every time
just say no
and stopped?
yep
do it again but set up network
it says at the top there were conflicts with the nvidia modules
should i try downloading it without them
ok
you can
ok
worst case we can fix it in tty afterwards
how do i set up network
i supose, never used wifi on setup 😄
ok im trying the download again
Its asking if i want to chroot into the new installation
no need
ok so just click no
could be nvidia drivers or just until you get into the actual DE
I cant get past the login screen
try to login on the other monitor
my password isnt working
does it say wrong password?
no it just goes black and restarts
what do i do
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
how do i change parameters
when u get to grub press E
send me a picture
no thats not it
the command line?
it should say kernel parameters or something
let me restart pc to check what button it is
it says e to edit commands before booting or c for a command-line
it should be e then
yea and that sends me to what i sent in the photo
Yes
Add what i sent at the end if that line
what did you add
nvidia-drm.modeset=1
ok i did
see if u can log in now
okay
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
sure no worries, we are basically done, most likely either DE or GPU drivers, so whenever you are on tomorrow just hit me up
Alright thank you so much again
no worries man! Good night 🫡
Hey man. Im ready whenever you are
Im also gonna try and find a fix. If it just doesnt work i might try downloading arch with something other than hyprland
Yo man
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
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
What’s the response of systemctl status networkmanager
it says it could not be found
could not be found
failed to stop this one
failed to start this one
it says the unit wasnt loaded for both
im redownloading it again
The whole thing. Im gonna just download the network manager through the installer
or try to
I am so happy to say that everything works perfectly now
... solved
#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
@craggy charm
Finally
Congrats
Now you need to neofetch and flex on all the debian pugs
Lol. You've been such a big help can i send 5 bucks your way through venmo so you can get yourself a coffee