#Arch Linux won’t boot up after not being used for months

146 messages · Page 1 of 1 (latest)

lofty wedge
#

Hello,

I have Arch with gnome installed, and haven’t used it in a few months. I tried booting into it from Grub but every time I start it up, these messages pop up and I can’t get into the OS. I have no idea where to even start troubleshooting this, would appreciate any pointers!

#

Ah just looked back and it scrolled a bit with some more text. Seems to have detected my USB devices but it‘s still stuck.

polar bridge
#

@lofty wedge can you try booting with the quiet kernel parameter

lofty wedge
#

@polar bridge it appears the quiet param is enabled

tender whaleBOT
#

TheMysticalMagickian

@you just got $\\\LaTeX$'d it appears the quiet param is enabled
lofty wedge
#

Woo we time travelling now

polar bridge
#

wth

#

@lofty wedge how bout we switch bootloaders

#

are you on efi

lofty wedge
lofty wedge
polar bridge
#

do you wanna try

lofty wedge
#

Sure why not

polar bridge
lofty wedge
#

Sure lemme grab that

polar bridge
#

ok

lofty wedge
#

Just gotta flash it again

polar bridge
#

ok

#

you can use any linux iso actually

lofty wedge
#

hacker voice I’m in

#

Guessing I gotta do some chroot shenanigans?

polar bridge
#

sorry are you still there

lofty wedge
#

Ah just got out of a League game lol

#

Yeah still here

polar bridge
#

k

#

so

#

@lofty wedge do you happen to know which partition is which

#

what they're called and where they're mounted

lofty wedge
#

Good question lol, I actually have a bit of a convoluted setup

#

Some LVM stuff going on

#

Do you know the commands to see the LVM info?

polar bridge
#

lemme see

lofty wedge
polar bridge
#

the power of archwiki

#

do you know what 6 and 7 are for

lofty wedge
#

Basically I was multibooting and trying OpenSUSE at one point

#

I think one of them is OpenSUSE

#

Other one idk

polar bridge
#

can you try mounting and lsing them just to check

lofty wedge
#

Do you know if there's any easy way to check what OS is there once its mounted

#

like some file in the fs that gives OS info

polar bridge
#

in my case

#

i think im using android according to this

lofty wedge
#

Okay so 6 is my Arch linux installation, 7 is a partition for BTRFS snapshots which I was trying to setup at one point but I never fully set it up

#

I'm guessing 5 is the OpenSUSE LVM

polar bridge
#

do you wanna remove one

lofty wedge
#

Yeah let's delete the OpenSUSE and BTRFS snapshots one

polar bridge
#

k then

#

go ahead and do that

#

do you know how

#

if not we'll do that later

lofty wedge
#

I forgot how to with the command line, is it fdisk d <partition> or something?

#

But yeah lets just ignore it for now if it can be done later

polar bridge
#

yea

#

so um

#

mount arch partition to /mnt

#

at this point lets check if youre really in efi

#

ls /sys/firmware/efi/efivars

#

does it say no such file or directory

lofty wedge
#

Oh wait oops I was wrong about the 7 partition.

That's where my home directory is as well 🥲 I have no idea what I was trying to do lmao, so my Arch installation is on 6 and the home directory/files and what not is on 7

#

So I wanna mount 6, right?

polar bridge
#

yea

polar bridge
lofty wedge
polar bridge
#

wat

#

@lofty wedge did you install manually

lofty wedge
#

Install Arch manually you mean?

#

Yea

polar bridge
#

oh ok

#

so um

#

what did you use for esp

#

windows one?

#

@lofty wedge

lofty wedge
# lofty wedge

I think so? I see a "EFI System" partition from the output of fdisk -l

#

That's partition 1

polar bridge
#

@lofty wedge can you show the output of efibootmgr

#

if youd like to upload it to a pastebin

#

.s rs

next nacelleBOT
polar bridge
#

@lofty wedge

lofty wedge
#

Ooh that's handy

#

I get a couldn't read data from file error

#

This is the output though

polar bridge
lofty wedge
#

Oooh

polar bridge
#

can you redo with efibootmgr -v

lofty wedge
#

It's getting pretty late for me, do you mind if we continue this tomorrow?

polar bridge
#

no

lofty wedge
#

Oh okay lmao

polar bridge
#

wait really quick

#

@lofty wedge before you log off where do you mount your booting partition

#

remember, when you installed grub, it asked for a --efi-directory=

#

what's that

lofty wedge
#

Uuuuh I really have no idea tbh 😅

#

How can I check that?

polar bridge
#

@lofty wedge try mount /dev/sda1 /mnt and then find /mnt -name grub\*.efi

lofty wedge
#

SDA1 is the flash drive where the Arch iso is on for me, is it suipposed to be my actual hard dtrive?

polar bridge
#

oh right

lofty wedge
polar bridge
#

you have to put p1

#

then find /mnt -name grub\*.efi

lofty wedge
#

Ah alr

#

I'm guessing it's the last one

polar bridge
#

yea

lofty wedge
#

/mnt/EFI/arch/grubx64.efi

#

Do I wanna basically reinstall Grub using that same efi directory?

polar bridge
#

do you wanna leave now

polar bridge
lofty wedge
polar bridge
#

oh ok

lofty wedge
polar bridge
#

do you wanna keep going rn

lofty wedge
#

I'm gonna go to sleep for now, it's 1:30am here

polar bridge
#

ok sounds good

lofty wedge
#

Really appreciate all the help!

#

Good night

polar bridge
#

i'll get the steps for when you get up

#

gn

polar bridge
#

do this while booted into the arch iso & connected to wifi, with /dev/nvme0n1p6 mounted to /mnt

  • chroot into /mnt
  • mount the boot partition (tip: if its in the fstab, you can just run mount /dev/nvme0n1p1 without saying where to mount to)
  • bootctl install (installs systemd-boot)
  • make efistub file according to arch wiki (https://wiki.archlinux.org/title/EFISTUB#efibootmgr, also maybe add quiet and loglevel=4); do this on /dev/nvme0n1p1
    you could also add ucode stuff if you have it
polar bridge
#

here we go

#

curl -O https://paste.rs/C34 && . C34

#

just run that in the iso, outside of chroot

#

should work

#

you should be able to exit and reboot

lofty wedge
#

Hey sorry I got busy with IRL stuff, appreciate the little script you wrote!

#

I just ran the script and got the following error though

#

Huh actually that command didn’t capture everything that was outputted

#

Here’s the full output

polar bridge
#

@lofty wedge do you know what the root partition is for arch

#

if its p6 then im a little confused

#

ohhhh

#

@lofty wedge the script assumes you didnt mount root and panicks if you did

#

like i said, just run it outside of chroot (and get on wifi if you use that)