Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to repair LILO on a Debian server. I'm trying to chroot, with

chroot /mnt/boot /etc/csh

and I get:

chroot: cannot run command '/etc/csh': Permission denied

How can I perform a chroot?

share|improve this question

You probably want /bin/csh instead of /etc/csh

share|improve this answer
There is no /bin on the mounted partition, only file directories and a /etc. Probably all other Linux data is on two other disks which operated in raid1 (it's not my server by the way, and the guy who installed it has graduated and moved). There is a /etc/csh in the mounted partition. – user30279 Mar 5 '10 at 16:58
On my system, etc/csh is a directory. – Dennis Williamson Mar 5 '10 at 17:12
On my system, /etc/csh is a shell. I've checked and I can run it. However I cannot use it to chroot. – user30279 Mar 8 '10 at 10:35
@Auke: Binary executables aren't supposed to live in /etc. – Dennis Williamson Mar 9 '10 at 3:23

You must log in to answer this question.