#[SOLVED] Can't login on my LUKS LVM Arch Linux system.

1427 messages ยท Page 2 of 2 (latest)

digital tapir
#

This is why you don't run random commands withou researching first

#

That includes what we say too because you should have known you had applied the old snapshot

#

because it's your pc

pliant estuary
#

also

sweet arrow
#

Yeah I got confused with the snapshot but I thought it would only delete those old configs 4 months old

#

loading the liveCD now

#

and do iwctl to connect to my wireless

digital tapir
sweet arrow
#

yeah that's it, I screwed up ๐Ÿ˜ฆ

digital tapir
#

And that is what started your issues

pliant estuary
#

fyi, this is why I use ext4 it's simple

sweet arrow
#

I opted for btrfs mostly for the snapshot recovery stuff iirc. Ended up causing way more trouble than what was worth obviously

#

OK gonna mount now

#

I should mount everything, including boot, right?

digital tapir
#

yup

sweet arrow
#

I always forget the Luks open command, hold on

#

having issues with the mount

#

mount /dev/mapper/arch-root /mnt

#

mount /dev/mapper/arch-home /mnt/home

#

the second command is not working

digital tapir
sweet arrow
#

haven't checked, still trying to mount home

#

yeah, something weird going on with the mount

digital tapir
#

Welll did you check that it exists

sweet arrow
#

says it's a read only filesystem /root.zdirs

#

when I do cd /mnt I can only see a few folders, namely bin lib lib64 and sbin. All red for some reason

sweet arrow
digital tapir
#

the dir

#

what subvol are you mounting now

#

you still didn't set the default subvol ?

sweet arrow
#

I am trying to mount arch-root

digital tapir
#

you're mounting some random subvol

sweet arrow
#

I am still on the liveCD, haven't chrooted or anything

digital tapir
#

you have to specify the subvol since you still haven't fixed that issue

#

You're mounting the default subvol

#

which is something

sweet arrow
#

oh right, because I am using the "old" one from snapshots, is that it?

digital tapir
#

ยฏ_(ใƒ„)_/ยฏ

sweet arrow
#

I'm confused, am I missing something?

#

or did I do some wrong step?

#

I connected wifi through iwctl, made sure it was on, checked with lsblk, open the encrypted media and now trying to mount root but it is the wrong subvolid, is that it?

digital tapir
#

Maybe the * in the snapper list was the snapshot in use or something

#

Did you read the snapper docs

#

Probably you did

sweet arrow
#

Yeah but never saw anything like "number+" and I know snapper-rollback is not to be used but snapper rollback instead. I created 2 configs and deleted one, or I thought I did

#

not since this entire thing started

#

at some point being weeks or months ago then probably

digital tapir
#

Just mount the right subvol and chroot

#

I've sent it earlier

sweet arrow
#

so only the root, no home or anything?

digital tapir
#

.

sweet arrow
#

oh so do that as in mount -o /dev/mapper/arch-root subvol=/ /mnt?

digital tapir
#

-o subvol=/

sweet arrow
#

Also mounted home and boot. Should I mount efi under mnt as well?

#

since the issue is with firmware, it's necessary, right?

#

BIOS, that is

#

hmm says that mountpoint does not exist. I suppose it's because that entry is commented in fstab, right?

pliant estuary
#

congrats, this thread hit 1k+ without a bios update

sweet arrow
#

yeah, I am trying (

#

so should I chroot now?

#

is it properly mounted?

#

ok I think I am chrooted properly

digital tapir
#

yeah

#

now pacman -Syu

sweet arrow
#

ok doing that.

digital tapir
#

The bios update isn't relevant to this issue

sweet arrow
digital tapir
#

you're gonna have lots of those

sweet arrow
#

Should I just click y in all of these?

digital tapir
#

answer yes

#

yes

sweet arrow
#

Yeah just to be sure

#

Just 2

pliant estuary
#

hold on

digital tapir
#

let's see if a 5 and a half months of updates will work

#

Sometimes it breaks

sweet arrow
pliant estuary
#

pacman -Rns electron33

sweet arrow
#

That is to remove electron and respective cache, right?

pliant estuary
#

yes

sweet arrow
#

Yeah I am reading that link now

digital tapir
#

Remember to update/rebuild your aur packages too @sweet arrow

pliant estuary
sweet arrow
#

It seems to be talking about permissions to download the files if I don't have them, is that it?

#

So do pacman -Rns next step, right?

pliant estuary
#

photo please

digital tapir
sweet arrow
#

Just trying to make sure I don't screw up anything

digital tapir
#

That news isn't relevant

#

yes Rns

sweet arrow
#

So clear on the pacman -Rns electron, I'm not gonna do anything wrong?

pliant estuary
#

@sweet arrow electron33 not electron

sweet arrow
#

Yeah that's what I did

pliant estuary
#

remove vesktop

#

then update

sweet arrow
#

So now I am gonna have to delete vesktop and probably discord, right?

pliant estuary
#

just vesktop

sweet arrow
#

Yeah it's just that Discord also has that dependency iirc

#

OK I removed vesktop bin

#

Should I do pacman -Syu again?

pliant estuary
#

yes

sweet arrow
#

Oooh

pliant estuary
#

yes

sweet arrow
#

My internet connection is not very fast so this one will take a while...

#

But it seems like good news if I am following right

pliant estuary
#

yes

sweet arrow
#

Yeah installing 3G, I'll message once it's done

digital tapir
#

When the system is not doing a big jump like this then presumably you have already updated vesktop-bin at some point and thus electron33 is a orphan

sweet arrow
#

Either way not a major issue, worst case scenario, just have to get vesktop again after. If that is the only loss all good

#

And after pacman, I have to do yay -Syu as well? But outside of chroot since doing yay as root is not safez right?

digital tapir
#

su -l yourusername to switch to your user

pliant estuary
sweet arrow
#

Oh that's right

#

Yeah makes sense

#

It finished downloading this month's firmware

#

And after all this, do the fwupdmgr-get updates refresh

#

correct?

digital tapir
#

Dunno if it works in chroot since it didn't work outside

sweet arrow
#

but that was because it was with the wrong subvolid back then, no?

#

and if it's downloading linux-firmware, shouldn't that have BIOS update as well?

sweet arrow
#

at two thirds of the way now

#

so assuming all the updates go well, it's su -l next for the yay updates? Or fwupdmgr first?

pliant estuary
#

@sweet arrow try fwupd

#

then do the yay out of the chroot, in y our booted partition

sweet arrow
#

ok so fwupd in the chroot live CD then reboot to the booted thing

pliant estuary
#

yes

sweet arrow
#

and should boot without issues or needing to change the subvolid this time, if I understood correctly

pliant estuary
#

yes, you are right

digital tapir
#

Fwupd didn't work because it was a partial upgrade

#

So maybe in chroot it'll work because it was a full update

sweet arrow
#

ok just a couple more minutes until pacman finishes

#

and it's fwupdmgr get-updates and then refresh, are those the only 2?

digital tapir
#

Nop

sweet arrow
#

get devices first

digital tapir
#

and then a couple more commands after

sweet arrow
#

finished downloading and verifying, installing now

digital tapir
#

You dont even need to update the bios now because it's not related to the issue

sweet arrow
#

OK so what is the best course of action?

digital tapir
#

regen the grub config

sweet arrow
#

Now, in the liveCD?

digital tapir
#

in the chroot

pliant estuary
#

if using grub

sweet arrow
#

Yeah I have GRUB

digital tapir
#

so we hopefully can get rid of the default snapshot subvol thing

sweet arrow
#

So I should do grub -o ... command now, right?

digital tapir
#

the mkconfig

#

.aw grub

west mossBOT
sweet arrow
#

so not install but skip to the config section

#

yeah this one grub-mkconfig -o /boot/grub/grub.cfg

digital tapir
#

yup

sweet arrow
#

it's what I was thinking of

#

but there's another command after that, right?

digital tapir
#

nope

#

also check if the top entry in the grub menu will boot the snapshot subvol, if it does then find the one which doesn't boot it

#

So you don't have to keep editing it

sweet arrow
#

ok then I am misremembering

#

so do the command first?

#

while chrooted, right?

sweet arrow
#

It still has that 178 snapshot and created more apparently, if I understand it right

digital tapir
#

Hold on, snapshots inside snapshot

#

So you were running 178

#

without doing something to correctly continue from it

#

so there's snapshots in there

#

maybe you could restore one of those

sweet arrow
#

So is that good news?

digital tapir
#

yeah if you know how to restore

#

You gotta read docs for that

sweet arrow
#

Well, would it not be redundant now since I did the pacman Syu?

#

And the home was not affected?

#

Is it the correct GRUB though, is it how it was supposed?

digital tapir
#

Your grub is on the separate partition

sweet arrow
#

Right, on boot

#

So, what do I do now?

digital tapir
#

Can you boot 1696 snapshot

sweet arrow
#

So you want me to leave chroot and try booting normally now, no live CD?

digital tapir
#

yeah

sweet arrow
#

Got rid of my GRUB theme

digital tapir
#

Yeah you hadn't set one in this current gen

#

Can you boot the newer snapshot

sweet arrow
digital tapir
#

Show the snapshots menu

sweet arrow
#

This is the default it has

#

1696 is a couple days old so before bricking this, I guess

#

Should I boot that one?

digital tapir
#

ye

sweet arrow
#

Then I boot on the second option, right?

digital tapir
#

just boot it

sweet arrow
#

Not good

#

And I meant second option because clicking enter on the first was not doing anything

digital tapir
#

I wonder what those snapshots have

sweet arrow
#

So I went with the initramfs fallback img

#

Well, apparently nothing good or are only in read only

#

So should I try booting normally, no snapshot this time? First option?

digital tapir
#

Boot the iso and mount 1696 with it's subvolid

sweet arrow
#

Boot the iso, you mean the liveCD again?

digital tapir
#

yeah

#

or boot in to the system

#

probaly no harm in doing that

sweet arrow
#

Gonna try to boot into the system normally, no snapshots first

digital tapir
#

but maybe you use some weeird stuff

#

idk what snapper-rollback does

#

you need to verify what's in those and then apply it if you want

sweet arrow
#

Gives me some weird no IRQ handler but let's me input password. Should I go for it anyway?

#

No risk in just trying to boot that, right?

#

Yeah same error

#

Says sbin init does not exist

digital tapir
#

mount

sweet arrow
#

In the liveCD?

digital tapir
#

nope

#

but nevermind

#

maybe your mkinitcpio config is now wrong?

sweet arrow
#

Yeah I am turning liveCD again

digital tapir
#

Does the fs have /sbin/init now

sweet arrow
#

It's possible, I should have regenerated that, I think that was that second step that I was thinking about, no?

digital tapir
# sweet arrow

Are you sure you didn't just boot the previous snapshot now

#

because the choice was saved?

sweet arrow
#

Oh it's possible but I don't think so. I checked and said root, did not mention the snapshot in the options

digital tapir
#

How about booting the 184 snapshot

#

or specifying the / subvol

#

or looking in advanced options and booting something from there

sweet arrow
#

I'm on the liveCD now

digital tapir
#

mount 1696 and see what it has

sweet arrow
#

So just mounting arch root as /mnt

#

And not chrooting but only looking at what's inside 1696?

#

This?

digital tapir
#

I suppose the default subvol now the one with all those snaphsots inside it

sweet arrow
#

It's weird... Inside home has another user which I created once when I screwed up something with PAM

#

So I am not sure what I am looking for

digital tapir
#

Maybe you just gotta boot the newest snapshot

#

and the top entry in the grub was booting that now

#

because it was now the default subvol

sweet arrow
#

So it updated automatically?

digital tapir
#

ยฏ_(ใƒ„)_/ยฏ

sweet arrow
#

Should I leave liveCD again?

digital tapir
#

ยฏ_(ใƒ„)_/ยฏ

#

If you don't want to do anything else there

#

just boot then Ig

#

and specify the / subvol if booting the newest subvol does nothing

#

and set it as the default then

sweet arrow
#

I am not sure, shouldn't I try the mkinitcpio thing first?

digital tapir
#

or set it now

sweet arrow
#

How?

digital tapir
#

it was mounted but no sbin

#

you can now change the default to / because you now have free space

#

previously you couldn't

#

I wonder what snapshot this updating was done in lol

sweet arrow
#

So change the default to / while on the liveCD?

#

btrfs subvolume set-default 5 /

#

Is that the command I should do?

digital tapir
#

adjust the path depending on if chrooted or not

sweet arrow
#

So without being chrooted I should do /mnt and chrooted /?

digital tapir
#

yep

sweet arrow
#

But better to be chrooted?

digital tapir
#

Doesn't matter

sweet arrow
#

This?

digital tapir
#

yeah

sweet arrow
#

Does not work

digital tapir
#

also I found this

Grub will look for grub.cfg in the subvolume that you chrooted to and executed grub-install. So to get grub to read the correct grub.cfg in the correct subvolume:

SO INSTALL GRUB AGAIN IF IT DOES NOT WORK
AND DO IT IN THE RIGHT SUBVOL NOT LIKE IT"S NOW

digital tapir
sweet arrow
#

Yeah, grub-install I missed that

sweet arrow
#

OK did that, no error message, what now?

#

I'm sorry, really. I'm just having a difficult time

#

How do I know if it worked?

#

I take it I have to do grub-install now, not chrooted?

#

The generate another GRUB config?

digital tapir
#

and the install is done in chroot

sweet arrow
#

esp? the EFI?

#

yeah can't mount anything under /mnt but I can mount /home

#

and /boot

#

just not under /mnt

digital tapir
#

...

sweet arrow
#

and can't mount the EFI partition

digital tapir
#

the path depends on if chrooted or not

sweet arrow
#

you are right, let me chroot then

digital tapir
#

bruh

sweet arrow
#

sorry, once again, it's just that it's late and I can't think straight. I appreciate your patience ofc

#

Still can't mount efi even chrooted

digital tapir
#

Because your esp isn't mounted there

#

it's /boot/efi like your fstab said

sweet arrow
#

Like this?

digital tapir
#

yep

sweet arrow
#

so do the grub config again now?

digital tapir
#

install and grub config

sweet arrow
#

grub-install

#

grub mkconfig -o...

digital tapir
#

.aw grub

west mossBOT
sweet arrow
#

while chrooted

#

right?

digital tapir
#

yep

sweet arrow
#

no error on the first

digital tapir
#

now boot and use the default grub menu entry

sweet arrow
#

OK so if I am following right, what this now did is, HOPEFULLY, generated a new GRUB entry but this time with the correct, updated mount points

pliant estuary
#

fyi, you can limit how many snapshots are made

sweet arrow
#

Yeah so leave chroot amount and try to boot normally but confirm first in the boot entry what I'm booting into, right?

digital tapir
#

yes

sweet arrow
digital tapir
#

no

pliant estuary
digital tapir
#

You should later look in to the 1696 snapshot or something to see if you can restore your state the one with all your configs

#

or copy your necessary config

sweet arrow
digital tapir
#

and the package list

digital tapir
pliant estuary
sweet arrow
#

OK it logins again

#

On Hyprland uwsm

pliant estuary
#

with wifi?

sweet arrow
#

But with that login, not autologin

#

Let's see

#

Possibly. It recognises the adapter at least

digital tapir
#

lspci -k

#

did the driver load

pliant estuary
digital tapir
#

Aka did you do the update in the correct subvol

sweet arrow
#

Well, the touchpad now works

#

Let me try to connect to a hotspot from my phone

#

Yeah, seems like it

#

Sound works as well

#

What should I do now?

#

Oh right, I should do fwupdmgr update now, right?

#

As well as yay

#

Hypridle.service now runs automatically but still have this error

digital tapir
#

welp now you have a functioning system

sweet arrow
digital tapir
#

You'll need to decide if you want to get back to a state that was not 5 months ago

sweet arrow
#

Yeah, so yay, double meaning right?

sweet arrow
digital tapir
#

Is it?

#

Did grub have the theme?

#

It could be the updated one but not the same as the one new one

#

So 5 months of state lost

sweet arrow
#

Oh yeah, the theme seems to be reset but the rest ought to be updated

#

Or maybe not, you are right... Hour went back to UTC so... Not sure

#

It's just that the home with all the configs and quality of life stuff is the same so not easy to tell right away

sweet arrow
#

So should I do a yay -Syu fwupdmgr and then try to fix the rest step by step later on?

#

There is certainly some oddities still, can't access my WiFi only hotspot, strange

digital tapir
#

Driver?

sweet arrow
#

Doing a yay update now. Then gonna do the fwupdmgr update

digital tapir
#

I prolly just would have backed up my most recent files and then reinstalled

#

Taken a list of my packages and then backed up the etc and then copied what I need from it

sweet arrow
#

Possible but strange that links to the hotspot

digital tapir
#

So you can see ssid

#

And the device

#

So the driver loaded?

#

Did you check

sweet arrow
#

With lspci -k?

digital tapir
#

Yeah

sweet arrow
#

It's either some certificate or my WiFi itself acting up. Or the way it's configured

#

Maybe it's just because it is connecting automatically to the VPN and that is causing issues

#

But seems like a reasonably functional system now, right?

digital tapir
#

Guess so

#

Reinstall the system (dont reformat home, only root) if it doesn't work by tomorrow

#

Check if you can copy your etc and package list from the old but new snapshot

#

You can chroot in to it while in the installed system

#

Just gotta install the install utils

#

Them you can run the pacman command to make a package list

#

It's on the wiki

sweet arrow
#

I am doing the yay now, still

#

then doing the fwupdmgr then I need to rest, honestly haha

#

still need to go through carefully about what changed and if there is stuff missing

#

OK done with yay

#

Also, it was an issue with VPN. It connects automatically to VPN which is not working for some reason, so I disabled that and works now, my WiFi, that is

#

And just did the fwupdmgr get devices get updates and refresh

#

I think it worked fine

#

Just downloading vesktop because it was the only thing I had to uninstall in the liveCD iirc

#

Still gotta figure out the issue with the VPN, Bluetooth and time

pliant estuary
#

@sweet arrow is this solved?

sweet arrow
#

I think so, even though I still need to figure out about the boot and the snapshots

#

Thanks to both of you!

#

You have lots of patience haha

#

also already changed the time back to correct, done the fwupdmgr without issues (I think) WiFi no issues, downloaded another VPN config, no issue, Bluetooth bit weird but probably fixable without much hassle

#

as for the snapshots I have rn:

โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  0 โ”‚ single โ”‚       โ”‚                                  โ”‚ root โ”‚          โ”‚ current               โ”‚
178 โ”‚ single โ”‚       โ”‚ Thu 09 Jan 2025 06:51:01 PM WET  โ”‚ root โ”‚          โ”‚ writable copy of #160 โ”‚
179 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 06:23:43 PM WEST โ”‚ root โ”‚ number   โ”‚ boot                  โ”‚
180 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 07:00:01 PM WEST โ”‚ root โ”‚ timeline โ”‚ timeline              โ”‚
181 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 08:00:01 PM WEST โ”‚ root โ”‚ timeline โ”‚ timeline              โ”‚
182 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 08:29:04 PM WEST โ”‚ root โ”‚ number   โ”‚ boot                  โ”‚
183 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 09:00:07 PM WEST โ”‚ root โ”‚ timeline โ”‚ timeline              โ”‚
184 โ”‚ single โ”‚       โ”‚ Wed 21 May 2025 10:00:09 PM WEST โ”‚ root โ”‚ timeline โ”‚ timeline              โ”‚
185 โ”‚ single โ”‚       โ”‚ Thu 22 May 2025 01:08:25 AM WEST โ”‚ root โ”‚ number   โ”‚ boot                  โ”‚
186 โ”‚ single โ”‚       โ”‚ Thu 22 May 2025 02:00:15 AM WEST โ”‚ root โ”‚ timeline โ”‚ timeline              โ”‚
#

so it is making automatic snapshots as intended but gotta figure that out otherwise I risk getting similar issues in the future, right?

pliant estuary
#

... solved

west mossBOT
#

#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

pliant estuary
#

@sweet arrow

sweet arrow
#

[SOLVED] Can't login on my LUKS LVM Arch Linux system.

digital tapir
#

Remember that

sweet arrow
#

Yeah, I gotta take a careful look at it when I have the right focus

#

Thank you! ๐Ÿ‘

sweet arrow
#

from what I gather from 178, looking through the info, it's a writable copy of 160 which does not exist anymore and is from January. I only seem to have one config list for snaphots, I assume it's still doing the regular autocleanup, making one per boot, regular stuff. I don't see any 1698 folder, it is starting on 178, I assume those are gonna be loaded as snapshots on boot as well. Not sure if there is an issue at this point ๐Ÿ˜•

#

but so far seems to be working as intended

#

the only weird things so far was an app was uninstalled since it was not from pacman nor yay but downloads and such seem to be the same so maybe some temp files deleted? And still can't make the sddm autologin work and haven't tried to make the GRUB themes back, gotta make sure I don't mess anything up in that regard. I assume I don't have to change anything in the PAM

#

Also, I think I figured out how so many space was freed. My Steam games seem to have been uninstalled which would account for the extra 40/50G of space, probably

#

it does seem, however, to be a snapshot from January. I checked and the one game that was not uninstalled had the last hard save being from May 16, almost a week ago, even though I had made other saves at least until a couple of days after that. However, the autosaves were all from early January

digital tapir
#

You only rollbacked root, your home was not affected

#

Unless you also did something with your home snapshots, if you even take those

#

Or you save your games in the root for some reason

sweet arrow
#

Yes, I do save games in root, Steam is there. I used to take home snapshots but I delete (or I think I did) that config. At least it does not show. So only root is snapshotted

digital tapir
#

Then you'll have to get them from or restore the new snapshot

#

Or maybe rsync with all the correct flags

sweet arrow
#

Yeah, I did that because I made my home folder too small so it would not be possible so the Steam directory is there.
I don't think there's a snapshot of those anymore, it's either the original one from January or the ones being done from yesterday onward. It was just odd that there were still any saved games at all and pointing the discrepancy between the last autosave bein from January yet having hard saves from under a week ago

digital tapir