How can I get hard disk capacity, usage, etc. using the /proc or /sys filesystems?If it is possible, please tell me which file(s) I need to process to get that information.
How to get hard disk information from /proc and/or /sys
linux;hard disk;proc;sysfs
This is Answer     cat /sys/block/sda/sizeAbove file will returns some number like 312581808, then this number need to multiply by 512 standard block size then u ll get long int value in bytes, then u can convert to GB.