bash: cd: /etc/init.d: Input/output error

Kurt Wall kwall
Mon May 17 12:01:20 PDT 2004


In a 8.0K blaze of typing glory, Shannon Scott wrote:
> I tried to restart my apache web server this morning, but the system
> reported:
> httpd: unrecognized service
> It restarted well yesterday.
>  
> Everything on the server is running well.  The only directory I can find
> with any problems is /etc/init.d.
> The directory won't list and I can't move into it.  When I try, I get:
> bash: cd: /etc/init.d: Input/output error
> but the rest of the disc seems fine, and it is not very old.  
>  
> Can the system be recovered?
> Could it be anything other than a bad drive?

Boot to single-user mode and run badblocks on the partition:

# badblocks /dev/hda1

Replace /dev/hda1 with the partition that contains /etc/init.d, which
I assume to be the same partition that holds /.

> Any advice or suggestions are welcomed.  Please keep any unkind comments
> to yourself.

The last sentence was really unnecessary.

Kurt
-- 
This is the LAST time I take travel suggestions from Ray Bradbury!



More information about the Linux-users mailing list