You are not logged in.

#1 2017-04-12 04:19:00

makosz
Member
Registered: 2017-04-12
Posts: 19

[Solved] chroot: failed to run command /bin/bash: no such file or dire

I am not able to run

arch-chroot /mnt 

I get error

chroot: failed to run command /bin/bash: no such file or directory

I checked /mnt/etc/fstab and get abbreviated

#/dev/sda1
UUID=8008-C519     /boot    vfat   rw,relative,fmask,=002,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro  02

I also have /dev/sda2 mounted on /mnt/boot to have grub installed on, but there are no errors on it.

I read somewhere that the partition should be ext4 but I am using

mkfs.ext4 /dev/sda2

To format it.

Please help

Last edited by makosz (2017-04-13 01:54:50)

Offline

#2 2017-04-12 06:59:22

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] chroot: failed to run command /bin/bash: no such file or dire

It looks like you are chrooting to nothingness.

Offline

#3 2017-04-12 07:02:11

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: [Solved] chroot: failed to run command /bin/bash: no such file or dire

do you run pacstrap in your install mountpoint?


Well, I suppose that this is somekind of signature, no?

Offline

#4 2017-04-12 17:33:59

makosz
Member
Registered: 2017-04-12
Posts: 19

Re: [Solved] chroot: failed to run command /bin/bash: no such file or dire

Yes I do run

pacstrap /mnt base

I ran it again and get

 partition /mnt/boot too full: 2429 blocks needed, 119 blocks free

This was the second time I ran it so I'm thinking it says that due to what is on it now

Last edited by makosz (2017-04-12 17:34:19)

Offline

#5 2017-04-13 00:45:21

makosz
Member
Registered: 2017-04-12
Posts: 19

Re: [Solved] chroot: failed to run command /bin/bash: no such file or dire

So I finally am able to run

arch-chroot /mnt

but in /mnt/etc/fstab have the same msg.

I did increase the sizez of /dev/sda1. Now I am not able to get grub working. Have tried everything I was googling. Will make a new post.

Offline

#6 2017-04-13 01:48:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] chroot: failed to run command /bin/bash: no such file or dire

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB