Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.