LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2012, 10:13 PM   #1
listener_it
LQ Newbie
 
Registered: Jan 2011
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
How to Check Correct Disk Usage




Hi All,

I want to check the disk usage of a mounted windows shared folder from Linux box. When I check using du -sh it shows larger size than the original size that shows in windows system. Please let me know the command to find the correct disk usage which is equal when checking in windows as well as in Linux.
 
Old 04-16-2012, 10:17 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... does windows add up the individual files sizes, or does it take
into account the occupied "clusters"?
 
Old 04-16-2012, 10:41 PM   #3
listener_it
LQ Newbie
 
Registered: Jan 2011
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Hi Tinkster

Thank you for responding immly. It seems it adds up the individual file sizes.
 
Old 04-16-2012, 11:50 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That explains the discrepancy, then ...

du (as it's name suggests: disk usage) gives you
the space that is made unusable for other purposes. In other
words a 1 byte file will still take 4096b (or whatever the cluster
size for the particular fs you're looking at is) away ...



Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
correct usage of grep to search a disk Completely Clueless Linux - Newbie 13 02-10-2011 01:41 AM
disk usage by process - How to check ? dlugasx Linux - Server 3 01-24-2011 09:09 AM
df -kh does not update the correct disk space usage grant-skywalker Linux - Server 2 11-29-2009 06:08 PM
Check SAN Disk Usage ??? glen_walter Linux - Newbie 5 10-30-2009 06:36 PM
Correct Disk Usage lwsivad Linux - General 2 11-21-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration