Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Chroot] Chroot impossible
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Tue Feb 09, 2010 4:53 pm    Post subject: [Chroot] Chroot impossible Reply with quote

Salut à tous !!

J'essaye de chrooter ma Gentoo depuis sysrecue64.
Je fais :

Code:
root@sysresccd /root % mount /dev/sda6 /mnt/cdrom
root@sysresccd /root % mount -t proc none /mnt/cdrom/proc
root@sysresccd /root % mount -o bind /dev /mnt/cdrom/dev
root@sysresccd /root % chroot /mnt/gentoo
chroot: failed to run command `/bin/zsh': No such file or directory
root@sysresccd /root % chroot /mnt/gentoo /bin/bash
chroot: failed to run command `/bin/bash': No such file or directory


Pourtant ils existent :

Code:
root@sysresccd /root % ls /mnt/cdrom/bin/bash
/mnt/cdrom/bin/bash
root@sysresccd /root % ls /mnt/cdrom/bin/zsh
/mnt/cdrom/bin/zsh


Mais quand je fais :

Code:
root@sysresccd /root % /mnt/cdrom/bin/bash
zsh: no such file or directory: /mnt/cdrom/bin/bash

D'où peut venir l'erreur ?


Last edited by Animatrix on Tue Feb 09, 2010 5:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Tue Feb 09, 2010 4:58 pm    Post subject: Reply with quote

tu te mélanges les pinceaux dans tes points de montages apparemment.

Quote:

root@sysresccd /root % mount /dev/sda6 /mnt/gentoo
root@sysresccd /root % mount -t proc none /mnt/gentoo/proc
root@sysresccd /root % mount -o bind /dev /mnt/gentoo/dev
root@sysresccd /root % chroot /mnt/gentoo


ça devrait aller mieux là
Back to top
View user's profile Send private message
Animatrix
Guru
Guru


Joined: 13 May 2006
Posts: 480
Location: France - Gard (30)

PostPosted: Tue Feb 09, 2010 5:01 pm    Post subject: Reply with quote

kwenspc wrote:
tu te mélanges les pinceaux dans tes points de montages apparemment.

Quote:

root@sysresccd /root % mount /dev/sda6 /mnt/gentoo
root@sysresccd /root % mount -t proc none /mnt/gentoo/proc
root@sysresccd /root % mount -o bind /dev /mnt/gentoo/dev
root@sysresccd /root % chroot /mnt/gentoo


ça devrait aller mieux là
OK je sors :arrow:
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Tue Feb 09, 2010 5:04 pm    Post subject: Reply with quote

Animatrix wrote:
OK je sors :arrow:

Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. :wink:
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Feb 09, 2010 5:14 pm    Post subject: Reply with quote

Bien évidemment !

Code:
chroot /mnt/gentoo /bin/bash


Zsh ne fait pas partie du stage 3, et chroot lance le shell défini par l'hôte, en l'occurence zsh.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Tue Feb 09, 2010 5:40 pm    Post subject: Reply with quote

XavierMiller wrote:
Bien évidemment !

Code:
chroot /mnt/gentoo /bin/bash


Zsh ne fait pas partie du stage 3, et chroot lance le shell défini par l'hôte, en l'occurence zsh.

Ah nan mais là il veut chrooter sur sa partition système qu'il a depuis un moment. Fin c'est l'impression que j'en ai.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Feb 09, 2010 7:32 pm    Post subject: Reply with quote

Ah, j'ai lu trop vite : bash ne passe pas non plus.

Question : as-tu bien activé le noyau 64 bits en tapant "rescue64" au boot ?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Tue Feb 09, 2010 8:11 pm    Post subject: Reply with quote

XavierMiller wrote:

Question : as-tu bien activé le noyau 64 bits en tapant "rescue64" au boot ?

Relis bien: la soluce c'était les points de montage :wink:
Back to top
View user's profile Send private message
Fenril
Apprentice
Apprentice


Joined: 16 May 2009
Posts: 209

PostPosted: Tue Feb 09, 2010 8:18 pm    Post subject: Reply with quote

kwenspc wrote:
Animatrix wrote:
OK je sors :arrow:

Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. :wink:


C'est plutôt à toi de payer non ?

Enfin je dis ça, je dis rien, moi je serais ultra endetté :lol:
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Tue Feb 09, 2010 8:43 pm    Post subject: Reply with quote

Fenril wrote:
kwenspc wrote:
Animatrix wrote:
OK je sors :arrow:

Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. :wink:


C'est plutôt à toi de payer non ?

Enfin je dis ça, je dis rien, moi je serais ultra endetté :lol:

Ben non, l'euros de la pitié :'] (ok le cent si tu veux)
Back to top
View user's profile Send private message
mrpouet
Retired Dev
Retired Dev


Joined: 29 Jul 2008
Posts: 87
Location: Bordeaux, France

PostPosted: Sat Feb 13, 2010 8:51 pm    Post subject: Reply with quote

j'imagine trop le truc :
[délire_de_geek]
Code:

root@sysresccd /root % chroot /mnt/gentoo
chroot: failed to run command `/bin/zsh': BANG BANG BANG ! you lost 1 €


Code:

root@sysresccd /root % debts
This month, your score is 35 €, be careful !


[/délire_de_geek]

bon okay :arrow:

edit: Avec toute cette préssion, on s'amuse comme on peut :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum