Skip to contentSkip to conversation

Hi, I get the problem that du does report right size on nfs file system.

DISCUSSION Penny 3 participants 3 messages Apr 28, 2004 – Apr 30, 2004

lore
Share & tools
lore

Penny

author
#0 lore raw

Hi,all
run du * -sh in a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories but du only reports about 800M. Btw, the nfs server is running ms service for unix v3. Does anyone meet the same problem here? Thank u in advance.

#1 lore raw
Quoted 3 lines · Penny

Hi,all
run du * -sh in a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories but du only reports about 800M. Btw, the nfs server is running ms service for unix v3. Does anyone meet the same problem here? Thank u in advance.

Might try du -sh without the *, should give a total usage for the current directory and all sub directories.

Tony

#2 lore raw
In reply to Penny

A more specific answer is that * doesn't catch the hidden ( .* ) files and directories.

If you want to know the sizes of the current directory, and also get a summary of what's in each first-level directory, you acn go:

du --max-depth=1 .

(the '.' isn't necessary, since that's the default, but I like to know exactly what I'm asking for).

Quoted 3 lines · Penny

Hi,all
run du * -sh in a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories but du only reports about 800M. Btw, the nfs server is running ms service for unix v3. Does anyone meet the same problem here? Thank u in advance.

Signature · 4 lines
Stephen Samuel +1(604)876-0426                [email protected]
		   http://www.bcgreen.com/~samuel/
   Powerful committed communication. Transformation touching
     the jewel within each person and bringing it to light.