hdparm -i /dev/sda
can tell you about the model, firmware version and serial number of most ATA drives (including, I believe, a CF drive).
smartctl -a /dev/sda
also tells you about a random drive, including the model, serial number, firmware, capacity, as well as some statistics on the general condition of the drive.
I believe that this will work well for a CF drive, as well as for a SATA or PATA drive, although I donβt have one now to check it.
source share