I need to determine in a shell script if a given block device (e.g.
/dev/sda) is a compact flash disk or a regular hard drive. Google did not help me out for once, and while
udevadm info --query=all --name=sda gives me lots of information, theres nothing I recognize to mean "I'm definately (not) a flash drive" or "I'm definately (not) a hard drive".
Is it possible to distinguish these two types of storage devices?
I use Ubuntu 10.10.