pmount one can mount cds, dvds usb partitions (and what not) as a user. I wrote a program (in C) that wants to copy music (and stuff) from a removable device. I want to list these devices and present them to my user. Then I will mount the selected device with
pmount, copy the stuff I want and then unmount it with
But I have no idea about how to list devices that are eligible for such task at a given moment.
I would prefer a
pmount based solution if there is any. If there is no such option I would be satisfied with a good enough approximation using other (simlpe user runnable) tools.
I have Debian 7 on i686.