|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
du and dfspace reporting
Hi, I am using SCO UNIX version 6.0.0 release 5. I am using du and df space to see the used space in the / partition. I am using du -k option to get count in 1024 k so that it directly makes kb. In dfspace I subtracted the used mb from total size mb which should be the used space and then convert to GB. But the output from du -k (converted to gb ) donot match this output of dfspace (converted to gb) Here it goes : Code:
> du -k = 38339676 (kb) = 38.3 gb > dfspace 788718.80 MB of 851248.99 MB available so 851.2 gb - 788.7 gb = 61gb approx. used space in / I suppose , these should match, but they didn't . Any help is appreciated. regards, dexter Last edited by methyl; 09-12-2012 at 01:29 PM.. Reason: code tags |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Hi,
< http://www.unix.com/unix-dummies-que...isk-space.html > The links explains that df will use the block size to give the usage details. My system block size is 1024bytes and for that the outputs are not matching. I already know that block size is something which affects the usage reported, but my question was after implementing that logic. I used DU with block size of 1024 and df space is also using 1024 b block size (or let me know how to check df's used block size) My query still remains... regards, Dexter ---------- Post updated at 10:41 AM ---------- Previous update was at 10:34 AM ---------- And BTW, I talked about "dfspace" and not "df". Reporting by dfspace is in MB . I donot know the underlying princile of how it reports the usage. Dexter |
|
#4
|
|||
|
|||
|
You should post both Code:
du -k and Code:
df -k precise output. Code:
dfspace is apparently a just df wrapper. Is the discrepancy still there after a reboot ? Last edited by jlliagre; 09-15-2012 at 03:39 AM.. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
On my partition / du -k | tail -1 gives 38253272 (last line is the summantion ) df -k -v gives Code:
/ /dev/root 871678974 63965476 807713498 8% i.e it shows used blocks (1024) = 63965476 whereas du shows 38253272 I know that du is primarily for directory and file contents and df for partition but 38 gb and 63 gb are a big difference . Is 25 gb being taken by filesystem contents ??? regrads, dexter Last edited by radoulov; 09-18-2012 at 07:24 AM.. |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
From the man page for du. (SCO 6.0.0)
Quote:
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
@dextergenious: again, is this discrepancy still there after a reboot ?
Is your file system clean ? (fsck) |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sar command not reporting | RobSand | Solaris | 2 | 02-17-2009 01:38 PM |
| Reporting SU and Failedlogins | janet | Shell Programming and Scripting | 1 | 02-24-2006 08:51 AM |
| regarding dfspace | girish_shukla | SCO | 1 | 06-24-2004 10:14 AM |
| Progress reporting | Ypnos | UNIX for Dummies Questions & Answers | 9 | 05-28-2003 11:25 AM |
| Reporting | Mike11 | UNIX for Dummies Questions & Answers | 3 | 12-14-2000 09:48 PM |
|
|