I needed to find the cylinders, heads, and sectors for a program.  To do this I did the following command in linux:

  • hdparm -I /dev/sda

References:

https://www.cyberciti.biz/faq/find-hard-disk-hardware-specs-on-linux/