LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hard Disk Show Wrong Info (https://www.linuxquestions.org/questions/linux-newbie-8/hard-disk-show-wrong-info-921174/)

adarshmca 12-30-2011 01:07 AM

Hard Disk Show Wrong Info
 
Dear all,

I have a back up hard disk on which my backup is stored daily

Today I check the hard disk status by :-

Terminal > df -h

/dev/sdc1 294G 175G 104G 63% /mnt

But my hard disk contains only 92 GB data , Don't know why It shows wrong info , I checked my .Trash & lost_found folder, they are empty too


Terminal > cd /mnt
Terminal > du -sh *
16K lost+found
46G Backup-2011-12-25_22h10m.tar.bz2
46G Backup-2011-12-29_22h10m.tar.bz2


Any Comments on the issue


Thanks

jefro 12-30-2011 11:51 AM

There are a few web pages on the differences.

From one of them.

"that is the difference between disk usage (du) and free blocks displayer (df)

if a file makes use of 2KB of 1 MB block
du will display that the file had used only 2KB

but df would display that 1 MB had been used as its displaying only the free blocks available,
even if 1 byte is used in 1MB free block, the free block is no more a free block and its used."

http://www.unix.com/unix-dummies-que...isk-space.html

Other conditions also exist that change the values.


All times are GMT -5. The time now is 10:58 PM.