You are not logged in.

#1 2022-02-20 13:22:30

01001010110
Member
Registered: 2022-02-20
Posts: 1

chroot: failed to run command /usr/bin/zsh: No such file or [SOLVED]

Hi.

Usually I try to scour the web for answers whenever I encounter an issue, but this time I couldn’t find anything. Thank you in advance for your help.

chroot: failed to run command /usr/bin/zsh: No such file or directory

Preface: So, firstly I don’t even use zsh on my system, I use bash. Recently I purchased a new SSD to accompany my HDD that my Arch box was running from. I wanted to use both, with

/, swap & /boot

running from the SDD for a little performance upgrade whilst /home was running from the HDD (videos, pics etc). I managed to get as far as editing

/etc/fstab

when I realised I wasn’t able to mount / unmount the disks I had partitioned anymore. I had been able to up until I ran

sudo mount -a

I then thought it was best to chroot via a live image from a usb, as I could manually unmount / mount while not within the partition itself.

In chroot:

mount | grep /dev
mkdir /rescue
mkdir /rescue/boot
mkdir /rescue/proc
mkdir /rescue/sys
mkdir /rescue/dev
mkdir /rescue/dev/pts
cryptsetup open —type luks /dev/sda3 root
mount /dev/mapper/root /rescue
mount /dev/sda1 /rescue/boot

(efi boot partition)^

mount -t proc proc /rescue/proc
mount -t sysfs sys /rescue/sys
mount -o bind /dev /rescue/dev
mount -t devpts pts /rescue/dev/pts
chroot /rescue

And that’s when I received the error message (above). I have tried switching to bash whilst in the live boot but still receive the same message. I have scoured the web and 99% of what I came across was to do with

/bin/bash

- not zsh. So I’m stuck. Still sat in the live boot as I don’t want to leave just yet to find out the solution is here. Again - thanks in advance for any help/suggestions.

Last edited by 01001010110 (2022-02-22 16:53:57)

Offline

#2 2022-02-20 13:27:16

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

Re: chroot: failed to run command /usr/bin/zsh: No such file or [SOLVED]

from the chroot man page:

If no command is given, run '"$SHELL" -i'

Since you're in zsh on the ISO, that's what it calls if you don't specify anything.

Offline

Board footer

Powered by FluxBB