up vote 1 down vote favorite
share [g+] share [fb]

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?

link|improve this question
feedback

1 Answer

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

link|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
feedback

Your Answer

 
or
required, but never shown