I use various Sony Walkmans to record a multitude of short audionotes on the go (while running, swimming, or simply walking or taking the bus).
I used to mount each device as a Mass Media Storage to /media/$USER/WALKMAN/ under linux, and to move the audionotes (in /media/WALKMAN/Record/Voice) to my hard-drive via a script, which prepares a special order for processing by renaming the folders containing the audionotes.
Since the upgrade to the new linux kernel several months ago, the walkmans are recognized as mtp devices instead of mass media storage. Not only does this change the mounting point from /media/$USER/WALKMAN/ to something like /run/user/1003/gvfs/mtp:host=%5Busb%3A002%2C007%5D/Storage Media, but it seems that scripts (nor shell) can't access this new location: I have been back to moving and renaming the folders of audionotes "by mouse" since then.
I am ready to redo my script in python (rather than the original in perl) so that it accesses the walkmans via the mtp interface using the library pymtp, but I find strange that there is no option to continue mounting the walkmans as mass media storage?
Notes
- If I understand the advantage of mounting the file system of active devices such as cell phones as MTP, I would have assumed that the MMS mode would have been kept for other devices (so I assume that I missed a point?).
- I will manage to reprogram my script using the pymtp library: I am asking here in case there is a simpler solution. I would like a simpler solution to exist not only out of laziness, but because it would encourage others to program and personalize their work environment?
- Recompiling the kernel could yield a solution link, but I would be surprised if it's the simplest one possible.
- Setting up a UDEV rule (with adequate scripts) should have solved the problem according to this and this posts, but it seems that the device is not even mounted when it is recognized as an mtp one (neither gparted nor gnome-disks show it even once visible in the file manager) :(
- I thought that usbmount would solve my issue, but again I think that the walkman is not detected as a USB key but as an MTP device....
- My issue is NOT with the change in the mounting point: I did find the new mounting point in /run/user/1003/gvfs/mtp:host=*/Storage\ Media/. The problem is that a simple cp or mv in a shell from this location to my hard drive does not work.
Aucun commentaire:
Enregistrer un commentaire