Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
5
Newest
 Supporter
Impact
~540 people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
Aug
1
comment Determine the size of a block device
@heinrich5991 when working with filesystems you should ask statfs() and friends. More importantly, you should not assume any direct relationship between the block device size and total / usable / effective / free / whatever space on filesystem.
Jul
30
comment Determine the size of a block device
@heinrich5991 technically it's rather useless to know how big a block device is if you cannot even read it...
Jul
30
comment Determine the size of a block device
And also only reports "native" names. On a server with iSCSI and/or multipath and/or LVM you get lots and lots of sd* and dm-* devices but usually you need to lookup the symlink of the one you're actually interested in (e.g.. a /dev/mapper/* one)
Feb
4
awarded  Supporter
Nov
7
awarded  Self-Learner
Nov
7
awarded  Student
Nov
7
awarded  Teacher
Nov
7
asked How to get the distribution of file sizes?
Nov
7
answered How to get the distribution of file sizes?
Nov
7
awarded  Autobiographer