whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.45k stars 121 forks source link

Name volume after device or mountpoint #219

Open cpcallen opened 5 years ago

cpcallen commented 5 years ago

After running

$mkdir ~/pixel
aft-mtp-mount ~/pixel

My device is mounted on ~/Pixel as expected, but Finder shows the mounted volume with the name OSXFUSE Volume 0 (aft-mtp-mount). It would be great if the mounted volume was named for the device (System Information says it's "Pixel") or at least the mountpoint ("pixel"), rather than this long and somewhat uninformative string.

yurikoles commented 5 years ago

@cpcallen This is common problem across OSXFuse on macOS and should be reported upstream.

It's reproducible with ntfs-3g, ext2-fuse, SSHFS and others.

bfleischer commented 5 years ago

All you have to do is pass the -o volname=Name parameter. This is not an FUSE bug. You are simply not providing a name for the mounted volume.

whoozle commented 5 years ago

if you can find an example how to provide volume name via fuse ops or any fuse api, I can add it no problem.

cpcallen commented 5 years ago

As noted by @bfleischer, the command aft-mtp-mount -o volname=Pixel ~/pixel did indeed mount my device with the volume name "Pixel". It would be great if that or something like it was the default.