Skip to content
Advertisement

Tag: capacity

How does Linux Kernel know disk capacity? (at boot time)

I know that in linux environment, we can check the disk capacity (e.g. in units of the number of sectors) through commands such as df or fdisk. But, as far as I know, such a command seems to “read disk capacity information already loaded in memory”. (Not asking the disk directly for capacity) If so, how is disk capacity calculated

Advertisement