tudju
Jul 10th 2011, 09:24 AM
I am using the "device notifier" in the system tray of KDE to mount and unmount usb devices.
I have a problem when connecting my android nexus s because the label of the partition of the sd card looks corrupted from time to time (some time it is empty and the device is mounted to "disk", some time it includes weird characters which are impossible to type on a console so the mount point is hard to reach). At some point I have been able to change the label to "android" with the "disk utility" so that it would mount to /media/ANDROID. But it has changed again. Android does not seem to let us change the label.
I have read many posts about udev (and how to make rules to rename the device name, not the mount point). I have also played with the fstab so that it would mount on a specific point using the by-uuid code, but not with the device notifier which does not seem to like it.
I am wondering if there would be a way to intercept the label name while it is being given by the device. Or about any other way to make it possible to use the device notifier to mount and umount at the right place whatever label it transmitted by android.
I have a problem when connecting my android nexus s because the label of the partition of the sd card looks corrupted from time to time (some time it is empty and the device is mounted to "disk", some time it includes weird characters which are impossible to type on a console so the mount point is hard to reach). At some point I have been able to change the label to "android" with the "disk utility" so that it would mount to /media/ANDROID. But it has changed again. Android does not seem to let us change the label.
I have read many posts about udev (and how to make rules to rename the device name, not the mount point). I have also played with the fstab so that it would mount on a specific point using the by-uuid code, but not with the device notifier which does not seem to like it.
I am wondering if there would be a way to intercept the label name while it is being given by the device. Or about any other way to make it possible to use the device notifier to mount and umount at the right place whatever label it transmitted by android.