OVH Cloud OVH Cloud

[gentoo-user-fr] Chroot can't run command

7 réponses
Avatar
Vincent Rollet
Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent

--
gentoo-user-fr@gentoo.org mailing list

7 réponses

Avatar
KRAFT Benjamin
Est-ce que tu pourrais, s'il te plait, me donner le retour de la commande :

ls /mnt/gentoo/bin/bash

Cordialement,

KRAFT Benjamin

-----Message d'origine-----
De : Vincent Rollet [mailto:]
Envoyé : mardi 29 mars 2005 14:56
À : Gentoo fr
Objet : [gentoo-user-fr] Chroot can't run command

Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent


--
mailing list





--
mailing list
Avatar
Cedric Godin
On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:
Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent

--
mailing list





ls -l /mnt/gentoo/bin/bash donne quoi ?


--
mailing list
Avatar
Vincent Rollet
Cedric Godin a écrit :

On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:


Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent

--
mailing list







ls -l /mnt/gentoo/bin/bash donne quoi ?


--
mailing list






Voici ce que j'ai fais:

gentoo livecd# mkdir /mnt/gentoo/boot /mnt/gentoo/home /mnt/gentoo/usr
/mnt/gentoo/var
gentoo livecd# mount /dev/hdc1 /mnt/gentoo/boot
gentoo livecd# mount /dev/hdc7 /mnt/gentoo/home
gentoo livecd# mount /dev/hdc8 /mnt/gentoo/usr
gentoo livecd# mount /dev/hdc9 /mnt/gentoo/var
gentoo livecd# chroot /mnt/gentoo /bin/bash

chroot: can't run command '/bin/bash' : No such file or directory




--
mailing list
Avatar
Vincent Rollet
Cedric Godin a écrit :

On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:


Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent

--
mailing list







ls -l /mnt/gentoo/bin/bash donne quoi ?


--
mailing list






je n'ai pas de repertoire /mnt/gentoo/bin

ls /mnt/gentoo:
boot home usr var



--
mailing list
Avatar
Cedric Godin
On Tue, 2005-03-29 at 15:15 +0200, Vincent Rollet wrote:
Cedric Godin a écrit :

>On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:
>
>
>>Bonjour,
>>
>>j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
>>chroot: can't run command '/bin/bash' : No such file or directory
>>
>>Quelqu'un aurait-il une idee...
>>
>>Vincent
>>
>>--
>> mailing list
>>
>>
>>
>>
>
>ls -l /mnt/gentoo/bin/bash donne quoi ?
>
>
>--
> mailing list
>
>
>
>
je n'ai pas de repertoire /mnt/gentoo/bin

ls /mnt/gentoo:
boot home usr var



--
mailing list




alors normal ce message que tu as (après chroot, ton / sera en
réalité /mnt/gentoo et si tu cherches à exécuter /bin/bash, en fait tu
exécutes /mnt/gentoo/bin/bash).
Je suppose (mal ?) que c'est une nouvelle install que tu veux faire ?
As-tu executé tar sur le fichier stage-xxx.tar.gz ? Peut-être as-tu
oublié l'option -C ?


--
mailing list
Avatar
Cedric Godin
On Tue, 2005-03-29 at 15:19 +0200, Vincent Rollet wrote:
Cedric Godin a écrit :

>On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:
>
>
>>Bonjour,
>>
>>j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
>>chroot: can't run command '/bin/bash' : No such file or directory
>>
>>Quelqu'un aurait-il une idee...
>>
>>Vincent
>>
>>--
>> mailing list
>>
>>
>>
>>
>
>ls -l /mnt/gentoo/bin/bash donne quoi ?
>
>
>--
> mailing list
>
>
>
>
Voici ce que j'ai fais:

gentoo livecd# mkdir /mnt/gentoo/boot /mnt/gentoo/home /mnt/gentoo/usr
/mnt/gentoo/var
gentoo livecd# mount /dev/hdc1 /mnt/gentoo/boot
gentoo livecd# mount /dev/hdc7 /mnt/gentoo/home
gentoo livecd# mount /dev/hdc8 /mnt/gentoo/usr
gentoo livecd# mount /dev/hdc9 /mnt/gentoo/var
gentoo livecd# chroot /mnt/gentoo /bin/bash

chroot: can't run command '/bin/bash' : No such file or directory



A aucun endroit tu fais un mount qqchose /mnt/gentoo (ca doit être ta
partition / ).


--
mailing list
Avatar
Vincent Rollet
Cedric Godin a écrit :

On Tue, 2005-03-29 at 15:19 +0200, Vincent Rollet wrote:


Cedric Godin a écrit :



On Tue, 2005-03-29 at 14:56 +0200, Vincent Rollet wrote:




Bonjour,

j'essaie en vain d'executer "chroot /mnt/gentoo /bin/bash" et il me dis:
chroot: can't run command '/bin/bash' : No such file or directory

Quelqu'un aurait-il une idee...

Vincent

--
mailing list








ls -l /mnt/gentoo/bin/bash donne quoi ?


--
mailing list








Voici ce que j'ai fais:

gentoo livecd# mkdir /mnt/gentoo/boot /mnt/gentoo/home /mnt/gentoo/usr
/mnt/gentoo/var
gentoo livecd# mount /dev/hdc1 /mnt/gentoo/boot
gentoo livecd# mount /dev/hdc7 /mnt/gentoo/home
gentoo livecd# mount /dev/hdc8 /mnt/gentoo/usr
gentoo livecd# mount /dev/hdc9 /mnt/gentoo/var
gentoo livecd# chroot /mnt/gentoo /bin/bash

chroot: can't run command '/bin/bash' : No such file or directory





A aucun endroit tu fais un mount qqchose /mnt/gentoo (ca doit être ta
partition / ).


--
mailing list






oui en effet....
Et maintenant en faisant un mount /dev/hdc6 /mnt/gentoo ca marche
beaucoup mieux...

Merci a vous pour vos reponses

Vincent


--
mailing list