#mounting btrfs root submodule and chrooting

67 messages · Page 1 of 1 (latest)

summer river
#

I have an encrypted btrfs system. I’ve mounted the partition (/dev/mapper/sdb2) to a folder, how can I mount the root submodule from that and then chroot into it?

#

I tried “mount /dev/mapper/sdb2 -o subvol=@ /mnt”

#

It errors with “mount: ./proc: mount point does not exist.”

#

If I chroot with “chroot” instead of “arch-chroot” it works but when running pacman -Syu it fails to open mtab and cannot determine file system mount points

tribal cradle
summer river
#

It does though

#

The issue is that it can’t decrypt the disk at boot

#

As the system is partially updated

#

So glibc is the wrong version for device-mapper

tribal cradle
summer river
#

Some packages are updated, some are not

tribal cradle
summer river
#

What do you mean?

#

It’s a fully working system

#

Well

#

It was

tribal cradle
summer river
#

But I partially upgraded and now it has the wrong glibc version for device-mapper

tribal cradle
#

so maybe you mounted it wrong or something

summer river
#

What could cause that? It was working before glibc was updated

tribal cradle
#

see above

#

one moment

summer river
tribal cradle
#

idk, it should be what you just did

summer river
#

Oh…

tribal cradle
#

give me a sec to think about it

tribal cradle
summer river
#

Ye

tribal cradle
#

can you ls /mnt and tell me the output

summer river
#

All directories that would be in the root partition of a typical arch install

tribal cradle
#

it has a proc, too, right?

summer river
#

Oh wait… it doesn’t…

tribal cradle
#

thats weird

#

pacman -S --root /mnt base

#

you don't need to chroot

summer river
#

Will this change any of the files on my disk? (Data in home folders)

#

It won’t, right?

#

Wait no it won’t

summer river
#

It just reinstalled base

tribal cradle
#

what

#

wait one sec

#

pacman -Qo /proc

#

whats the package name it says at the beginning

summer river
#

It just says warning about pacman needs to download databases for repos and that /proc/ is owned by file system 2021.12.07-1

#

Upon downloading the repos, the warnings are gone but it says the same thing about proc

tribal cradle
#

pacman -S --root /mnt filesystem

#

retry arch-chroot

summer river
#

Oh hell yeah, it worked

#

Can I just pacman -Syu now?

tribal cradle
#

try it ig

summer river
#

It worked

#

Time to reboot

#

Darn it

#

Same issue

#

Drops me into emergency shell

#

It’s failing to load libcrypto.so.3

tribal cradle
#

what's the full error

summer river
#

ERROR: Failed to open encryption mapping: The device UUID=<THE UUID IS DISPLAYED HERE> is not a LUKS volume and the crypto= parameter was not specified

#

I looked this error up

#

It’s due to shared libraries failing

#

If I do “cryptsetup open /dev/sdb2 sdb2” it says about failed to load libraries

#

The full error cryptsetup gives is: cryptsetup: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory

tribal cradle
#

pacman -S openssl

#

idk

summer river
#

Oki