I would like to be able to determine the type of a drive/device (CDROM, Floppy, Fixed Hard drive, Removable drive, etc.) in Linux either using C/C++ or bash script.
I will be given a mount point path, and I will need to display the source drive type of that mount point.