#Trouble running chroot

1 messages · Page 1 of 1 (latest)

sturdy crow
#

I am basically forced to install arch anew because I corrupted my partitions. When I run arch-chroot /mnt I get the following error: failed to run command /bin/bash: No such file or directory. There are a lot of answers online but I didn't understand it that well nor did it work for me? How can I troubleshoot this? sda1: UEFI sda2: Linux Filesystem sda3 SWAP sda4: Linux Filesystem. I mounted sda2/4 in /mnt and UEFI in /mnt/efi. Then I installed the rudimentary linux with: pacstrap -i /mnt linux linux-firmware base vim. I deleted some PGP keys but after that I ran genfstab -U /mnt >> /mnt/etc/fstab. Now I am at the point where the error happens. running arch-chroot /mnt gives me the problem described above. Do you have any ideas what I'm doing wrong. How do I fix this 🙂

rugged iris
sturdy crow
#

Well I wanted to dual boot with nixos and on my existing arch installation I resized the linux filesystem partition to be 1.4T instead of 1.8T. So I get 400G for nixos. Then I ran into problems.. I only booted into rootfs afterwards and I probably can't restore any data. So now I want to install it from scratch again

rugged iris
#

so why do you want to chroot in your system?

sturdy crow
#

I want to install it fresh. That's what you have to do, don't you. I boot with an ISO now..

rugged iris
sturdy crow
#

Ok I will try this. thanks

sturdy crow
rugged iris
#

did you get in the arch iso?

sturdy crow
#

not yet. It failed while downloading. But why should my already installed one not work?

rugged iris
#

idk I would prefer using the archinstall script because we don't know what command messed up during the installation

sturdy crow
#

Do you only have experience with the script?

rugged iris
#

yeah sadly

sturdy crow
#

Ah okay. Is that easy?

rugged iris
#

easier than ubuntu's installation

sturdy crow
#

ok I will try it out.. I'll let you know if I don't get it 🙂

#

I'm installing it right now but I don't think it's still efficient. Why can I not use the one I already have? It's not that old and I can download new packages then..

rugged iris
sturdy crow
#

yes but why not with the old iso

#

yeah when typing archinstall with the old iso I get errors. I'll try the new one

feral fern
#

mount /dev/sdx1 /boot

#

mount /dev/sdx2 /mnt

#

you didnt have a mount point