On Fri, 2010-04-09 at 11:39 -0400, Casey Allen Shobe wrote:
> Something seems to have gone funny with one of my Debian/JFS systems:
> 
> Got an error about rsyncd failing to start, complaining about a
> missing config file.  Actually the config file is there, but does not
> show up in a directory listing:
> 
> # cd /etc/
> # ls -l rs*
> ls: cannot access rs*: No such file or directory
> # ls -l rsyncd.conf
> -rw-r--r-- 1 root root 934 2010-04-05 17:18 rsyncd.conf
> # mv rsyncd.conf rsyncd.conf.orig
> `rsyncd.conf' -> `rsyncd.conf.orig'
> # touch rsyncd.conf
> # ls rs*
> ls: cannot access rs*: No such file or directory
> # ls rsyncd.conf*
> ls: cannot access rsyncd.conf*: No such file or directory
> # ls rsyncd.conf{,.orig}
> rsyncd.conf  rsyncd.conf.orig
> 
> Can anyone advise on why this has happened and what I should do about
> this?

Looks like the directory is corrupt.

Since it's /etc, it will probably be hard to fix without booting from
rescue media.  fsck will probably destroy /etc and throw everything
into /lost+found, so that's not a great option.

>From a rescue boot, mount your root as /something

First, you may want to tar up everything in /etc, in case the following
doesn't work.

Then I'd try:
cd /somthing
mkdir etc-new
mv etc/* /etc-new/
If there's anything left in /etc, repeat the mv
> 
If etc-new appears okay:
mv etc etc-orig (in case there's any un-listable files still there)
mv etc-new etc

Good Luck.

> Cheers,
> -- 
> Casey Allen Shobe
-- 
David Kleikamp
IBM Linux Technology Center


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to