Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I found that every time when I plugged in my portable hard drive (VFAT), HAL used the mount option "shortname=lower" to mount the drive, as shown in /media/.hal-mtab. However this causes lots of problems of name conversion. It's better use "shortname=mixed". So I wrote a simple hal policy file called storage-policy.fdi:
I put it under /usr/share/hal/fdi/policy/95userpolicy/ and restart haldaemon, and then I used lshal command to check if the new policy has been loaded:
I have found that a script in /usr/share/hal... doesn't help, and gnome-mount-nautilus-properties seems to be unavailable -- for Ubuntu at least. In a posting on a different forum, someone mentioned the gnome configuration database. By changing the relevant entry I could make mount use shortname=lower, so you may be able to get the system to work to your liking as well. Start gconf-editor from an xterm. Click Edit -> Find or ctrl-F and search for vfat. It should find the key /system/storage/default_options/vfat/mount_options, so you may also go there directly. Edit the mount_options key by double-clicking and set shortname to your preference. The change takes effect immediately, so re-inserting the USB card reader was enough in my case.
Again, this is assuming you use Gnome, but it may be helpful to others as well.
I have found that a script in /usr/share/hal... doesn't help, and gnome-mount-nautilus-properties seems to be unavailable -- for Ubuntu at least. In a posting on a different forum, someone mentioned the gnome configuration database. By changing the relevant entry I could make mount use shortname=lower, so you may be able to get the system to work to your liking as well. Start gconf-editor from an xterm. Click Edit -> Find or ctrl-F and search for vfat. It should find the key /system/storage/default_options/vfat/mount_options, so you may also go there directly. Edit the mount_options key by double-clicking and set shortname to your preference. The change takes effect immediately, so re-inserting the USB card reader was enough in my case.
Again, this is assuming you use Gnome, but it may be helpful to others as well.
Hi Thanks a lot for your help! Since I'm using Fedora 7, gnome-mount-nautilus-properties is available. Your gconf-editor approach is more generic and can be adapted to other platforms. I guess the problem occurs because of some changed made in Linux kernel modules "vfat" which uses the default mount options "shortname=lower". Therefore, in order to preserve exact file names, some settings must be made to change this default mount options, regardless of what desktop environment or linux distributions you use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.