I have a disk size of 1TB. But when I do du -hx . on one of the folders it shows 1.4TB. and df -k . shows 60% full.
I dont understand why is the size shown greater that disk size itself.
Thanks, Mihir
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI have a disk size of 1TB. But when I do du -hx . on one of the folders it shows 1.4TB. and df -k . shows 60% full.
I dont understand why is the size shown greater that disk size itself.
Thanks, Mihir
There are three possible reasons:
your du implementation does not check hard linked files only once
the filesystem does not report the space used by files correctly with the stat() syscall
The filesystem is NFS and the fileserver is running HP-UX