I am on the university machine trying to estimate the disk usage I have on my space I do
du -csh ./
from the begining of my account, but an error is given that ./Yesterday/Yesterday is not a device, so I do
du -csh --exclude="Yes*" ./
and the error is stopped. But is there a more elegant way, and why is this error emerging? I can image how the Yesterday of Yesterday gets removed but whats the concepts behind the error. Best,
1) using stat:
[ratz]s0128943: stat Yesterday
File: `Yesterday'
Size: 12288 Blocks: 24 IO Block: 4096 directory
Device: 1dh/29d
Inode: 714342402
Links: 90 Access: (0745/drwxr--r-x)
Uid: (35559/s0128943)
Gid: (28065/ UNKNOWN)
Access: 2010-10-15 13:06:07.000000000 +0100
Modify: 2010-10-15 13:06:07.000000000 +0100
Change: 2010-10-15 13:06:07.000000000 +0100
2) using stat on Yesterday/Yesterday
stat ./Yesterday/Yesterday
stat: cannot stat `./Yesterday/Yesterday': No such device
3) using uname for details
[ratz]s0128943: uname -srv
Linux 2.6.18-194.3.1.el5.inf.1 #1 SMP Fri May 21 12:59:58 BST 2010
4) using df on Yesterday/
[ratz]s0128943: df Yesterday/
Filesystem 1K-blocks Used Available Use% Mounted on
AFS 9000000 0 9000000 0% /afs
5) using df on Yesterday/Yesterday
df Yesterday/Yesterday
df: `Yesterday/Yesterday': No such device
6) mount | grep Yesterday
produces nothing
stat Yesterday
andstat Yesterday/Yesterday
? – Riccardo Murri Oct 15 '10 at 14:54uname -srv
), and what (if anything) is mounted onYesterday
(output ofdf Yesterday/ Yesterday/Yesterday/
andmount | grep Yesterday
)? – Gilles 'SO- stop being evil' Oct 15 '10 at 17:53du
problem, trydu -x
(du --one-file-system
). I'm not sure if it will work though; otherwise I can't think of anything better than--exclude
like you already did. – Gilles 'SO- stop being evil' Oct 18 '10 at 14:30