Personally, I'd go with `du -h` or `du -B 1` (for bytes)
But AFAICT du is for mounted filesystems. He was asking about raw devices. I suppose the answer is somewhere in the docs for sysfs. (The kernel's?)
In reply to Re^4: get the size of a special device (drive)
by blazar
in thread get the size of a special device (drive)
by exodist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |