F
F
facha2012-06-30 14:08:56
linux
facha, 2012-06-30 14:08:56

Du reports a looped path and a 'corrupted file system'. How to check if everything is in order?

Hello.
The server has bind installed from the bind-chroot package (CentOS 6). Today I accidentally discovered that "du" complains about a looped path.

# du -ch --max-depth=1
...
du: WARNING: Circular directory structure.
This almost certainly means that you have a corrupted file system.
NOTIFY YOUR SYSTEM MANAGER.
The following directory is part of the cycle:
  `./named/chroot/var/named'

14M     ./named
...

As far as I can tell, the path is not looped and the file system is fine:
# pwd
/var/named/chroot/var/named/chroot/var/named
# ls -lah
drwxr-x--- 2 root named 4.0K Jun  7 19:40 .
drwxr-x--- 6 root named 4.0K Jun 10 00:56 ..

If there was a cycle, I would see chroot in the ls output, but here it is empty.
And yet I decided to ask if this is normal (WARNING from du)? Still, "Corrupted file system" sounds menacing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eaa, 2012-06-30
@eaa

> /var/named/chroot/var/named/chroot/var/named
hmm, well, if this is definitely not a looped path, then you don’t have to worry, a false alarm.
But I am somehow confused by the explicit repetition of "/var/named", well, "du" thinks the same way, because it is looking for a repetition of the path, and here it repeats already three times.

D
demimurych, 2012-06-30
@demimurych

fsck partition name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question