I'm trying to write a script that make a list of connected USBs list like this:
- MyFlash - ADATA
- BootUSB - ADATA
- MyBackup - SAN DISK
But I don't know how to identify the connected USB device is a storage one, and the volume name of it.
C/C++, Python, or Node.js help are welcome, and only under Linux OS.
I'm looking to mount and remount using code, but I think It will be easy to use Linux commands for this.
/dev/disk/by-label/*? - rodrigo