View previous topic :: View next topic |
Author |
Message |
Animatrix Guru
Joined: 13 May 2006 Posts: 480 Location: France - Gard (30)
|
Posted: Tue Feb 09, 2010 4:53 pm Post subject: [Chroot] Chroot impossible |
|
|
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 |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Feb 09, 2010 4:58 pm Post subject: |
|
|
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 |
|
|
Animatrix Guru
Joined: 13 May 2006 Posts: 480 Location: France - Gard (30)
|
Posted: Tue Feb 09, 2010 5:01 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Feb 09, 2010 5:04 pm Post subject: |
|
|
Animatrix wrote: | OK je sors |
Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Tue Feb 09, 2010 5:14 pm Post subject: |
|
|
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 |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Feb 09, 2010 5:40 pm Post subject: |
|
|
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 |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Tue Feb 09, 2010 7:32 pm Post subject: |
|
|
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 |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Feb 09, 2010 8:11 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Fenril Apprentice
Joined: 16 May 2009 Posts: 209
|
Posted: Tue Feb 09, 2010 8:18 pm Post subject: |
|
|
kwenspc wrote: | Animatrix wrote: | OK je sors |
Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. |
C'est plutôt à toi de payer non ?
Enfin je dis ça, je dis rien, moi je serais ultra endetté |
|
Back to top |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Feb 09, 2010 8:43 pm Post subject: |
|
|
Fenril wrote: | kwenspc wrote: | Animatrix wrote: | OK je sors |
Si on me filais 1 € à chaque fois que je fais une erreur de ce genre, et ça m'arrive souvent, je serais riche. |
C'est plutôt à toi de payer non ?
Enfin je dis ça, je dis rien, moi je serais ultra endetté |
Ben non, l'euros de la pitié :'] (ok le cent si tu veux) |
|
Back to top |
|
|
mrpouet Retired Dev
Joined: 29 Jul 2008 Posts: 87 Location: Bordeaux, France
|
Posted: Sat Feb 13, 2010 8:51 pm Post subject: |
|
|
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
edit: Avec toute cette préssion, on s'amuse comme on peut |
|
Back to top |
|
|
|