You are not logged in.

#1 2025-05-03 21:37:07

ThePrivacyPlayer
Member
Registered: 2025-05-03
Posts: 4

[Resolved] Unable to chroot with install media

Hi everyone,

I finally got started on arch a couple of days ago. I got a working install with hyprland (yes, I'm going all in), and it appears my sudo is somehow broken (I believe I had to install it myself with pacman, as it wasn't installed by default), and was getting the error "/usr/bin/sudo must be owned by uid 0 and have the setuid bit set version".

Finding the discussion in https://stackoverflow.com/questions/370 … ion-ubantu, I went back to my install media (on external usb) to fix it as shown.

However, when trying to arch-chroot after mounting my ESP and root partition, it tells me that /bin/bash does not exist. Since this is a symlink for /usr/bin/bash, I tried adding it as an argument, and receive the same error "/mnt/usr/bin/bash: no such file or directory".

After checking a bit in the file structure, it appears that when mounting my partition, the whole partition is somehow actually mounted to /mnt/@ instead of /mnt, and therefore I'm unable to chroot to it.

Any idea if I messed something up here? I didn't find any reference to this happening to anyone else.

Thanks in advance for your help!

Last edited by ThePrivacyPlayer (2025-05-04 14:53:05)

Offline

#2 2025-05-03 21:42:04

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,456

Re: [Resolved] Unable to chroot with install media

Did you install the base package in your chroot  root  ? https://archlinux.org/packages/core/any/base/  It's needed to create bash process in your chroot environment.

You can do it like this:

pacstrap -K /mnt base

If that's not the case then please send the command output of lsblk with your partitions mounted.

Last edited by Succulent of your garden (2025-05-03 21:46:17)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Offline

#3 2025-05-03 22:05:36

ThePrivacyPlayer
Member
Registered: 2025-05-03
Posts: 4

Re: [Resolved] Unable to chroot with install media

Succulent of your garden wrote:

Did you install the base package in your chroot  root  ? https://archlinux.org/packages/core/any/base/  It's needed to create bash process in your chroot environment.

You can do it like this:

pacstrap -K /mnt base

If that's not the case then please send the command output of lsblk with your partitions mounted.

I'm not sure I understand what you mean. I already have a full system installed, which I can launch and log into just fine.

However when using the arch installer, there seems to be some kind of issue of how the partition is mounted.

Also, I need to chroot into my actual system. As I understand it, if I install the base package, it will create a new install separate from my existing one and that's what I'll chroot into. Am I understanding this correctly?

Hereunder you can see my lsblk as well as the files in /mnt and /mnt/@

gTKM7Zc6MdoHwnkcGjaSYdmJFTO-F81UFR5Jm5pb7XSNeO9Wu_zmkToPux7EvSvgkuGW_ZsgDS1UseebgPikIfSfYcOURtFykdkD-ksKrzA

As you can see, my whole system is mounted under /mnt/@, which I cannot chroot into.

Offline

#4 2025-05-03 23:29:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,680

Re: [Resolved] Unable to chroot with install media

You're already root, why are you trying to use sudo?

And you need to chroot into the root filesystem, you don't have the correct subvol mounted to /mnt.

Last edited by Scimmia (2025-05-04 01:25:59)

Offline

#5 2025-05-04 06:46:51

ThePrivacyPlayer
Member
Registered: 2025-05-03
Posts: 4

Re: [Resolved] Unable to chroot with install media

Scimmia wrote:

You're already root, why are you trying to use sudo?

And you need to chroot into the root filesystem, you don't have the correct subvol mounted to /mnt.

I'm totally confused by your reply. My screenshot is from the arch installer, that's why I'm root. I never login as root on my actual system.

As for the subvol, that's exactly my issue. I installed everything on my nvme0n1p2 partition, which I mounted to /mnt during install. And as you can see from lsblk, I mounted the partition to /mnt again here, and my question is why the file system is in /mnt/@ instead of /mnt? When I try to to chroot to /mnt/@, it tells me it's a non-directory, so why is my system mounted there when I used mount /dev/nvme0n1p2 /mnt, just like every single other time I did it, including during install?

Offline

#6 2025-05-04 07:03:59

cryptearth
Member
Registered: 2024-02-03
Posts: 2,022

Re: [Resolved] Unable to chroot with install media

you selected BtrFS for your system partition - so you must mount it with the required BtrFS subvol parameter: https://wiki.archlinux.org/title/Btrfs# … subvolumes

Offline

#7 2025-05-04 10:10:14

ThePrivacyPlayer
Member
Registered: 2025-05-03
Posts: 4

Re: [Resolved] Unable to chroot with install media

cryptearth wrote:

you selected BtrFS for your system partition - so you must mount it with the required BtrFS subvol parameter: https://wiki.archlinux.org/title/Btrfs# … subvolumes

Thanks a lot, worked like a charm!

Offline

#8 2025-05-04 12:22:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,087

Re: [Resolved] Unable to chroot with install media

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB