
Hello everybody,
the other day I wanted to use "chroot" to access a XFS-partition (hda2) from grml, but it did not work. The failure notice was:
"chroot: cannot run command '/bin/zsh': No such file or directory". True, zsh was not installed on the partition I tried to get chrooted - but is that necessary? And if yes, can I switch to another shell? (Entering the word "bash" before trying to chroot leads to the same result.)
PS: Of course I am riding the "Meilenschwein"... :-)
Thanks in advance, Frank

Frank Lehmann schrieb am Dienstag, den 21. August 2007:
Hello everybody,
the other day I wanted to use "chroot" to access a XFS-partition (hda2) from grml, but it did not work. The failure notice was:
"chroot: cannot run command '/bin/zsh': No such file or directory". True, zsh was not installed on the partition I tried to get chrooted - but is that necessary? And if yes, can I switch to another shell? (Entering the word "bash" before trying to chroot leads to the same result.)
man chroot
Try chroot foo /bin/bash
Alex

Hi,
"chroot: cannot run command '/bin/zsh': No such file or directory". True, zsh was not installed on the partition I tried to get chrooted - but is that necessary? And if yes, can I switch to another shell? (Entering the word "bash" before trying to chroot leads to the same result.)
man chroot
Very funny :-) ... unfortunately, the only important thing there said is:
"If no command is given, run ``${SHELL} -i'' (default: /bin/sh)."
I tried that in various combinations, but none worked.
Try chroot foo /bin/bash
I´ll do, as soon as I have access to my LinuxBox again. Thank you!
Frank

Frank Lehmann schrieb am Mittwoch, den 22. August 2007:
Hi,
"chroot: cannot run command '/bin/zsh': No such file or directory". True, zsh was not installed on the partition I tried to get chrooted - but is that necessary? And if yes, can I switch to another shell? (Entering the word "bash" before trying to chroot leads to the same result.)
man chroot
Very funny :-) ... unfortunately, the only important thing there said is:
"If no command is given, run ``${SHELL} -i'' (default: /bin/sh)."
Thats says it all. If you don't give a command ${SHELL} will be launched, this points to zsh, zsh is not installed, so there comes an error.
Alex
Teilnehmer (3)
-
Alexander Wirt
-
Alexander Wirt
-
Frank Lehmann