You are not logged in.
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
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 baseIf 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
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 baseIf 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/@
As you can see, my whole system is mounted under /mnt/@, which I cannot chroot into.
Offline
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
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
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
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
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.
Online