I suggest handling "/media/<label>" the same way as "/<drive letter>", maybe allowing to configure the "/media" part to some alternative prefix.
Conflicting labels would have some conciliating suffixes attached in the alias. For instance, if a flash drive labeled "Backup" is mounted on F: by Windows, then the following command lines would be treated the same way by Bash:
$ some-command /f/foobar
$ some-command /media/backup/foobar
Why don't you just mount f:/ to /media/backup?
mount f:/ /media/backup
Doesn't that work for you? There is no method by which we can determine some arbitrary name for a PnP drive.
Cool, it seems to work. If I could find some tool to hook into drive insertions and removals, I could even mount them dynamically on login. As for the drive name, I think there should be some Windows API or surrounding utility to retrieve drive label. I still keep my suggestion, but thanks for the info, makes it better than I thought.
Ticket moved from /p/mingw/feature-requests/119/