Can someone tell me how (or where ?) I should setup options for mounting devices which mount “automatically” : I think mainly of USB-sticks with windows file-systems which I’d like to respect my typing with upper and lower case letters.
> Can someone tell me how (or where ?) I should setup options for
> mounting devices which mount “automatically” : I think mainly of
> USB-sticks with windows file-systems which I’d like to respect my typing
> with upper and lower case letters.
“shortname=[lower|win95|winnt|mixed]” is an option you can use to mount vfat
devices.
Thank you for the option.
Now that you gave me the good option, where do I set it up?
Exemple : just a few minutes ago, I plugged an USB-stick which mounted automatically on /media/SomeDirectory. This SomeDirectory didn’t exist previously and will disappear after the dismounting.
So, how can I set up this option? while I cannot quote this file-system in /etc/fstab ?
> Thank you for the option.
> Now that you gave me the good option, where do I set it up?
Mmm, you can manually mount the usb key
Umount the device (if already automatically mounted) and from xterm run:
mount -t vfat -o shortname=mixed /dev/sdb1 /media
Please, note you’ll have to adjust the device (sdxx) and the mount point
(media) to fit your requirements.
The “one liner” above is just for testing purposes. If it works as you
expect, you may need to specify “codepage”, “umask”,“uid” and “gid=500” for
the mounted device.
Is the only way I know to achieve this. Almost sure there must an automatic
way to get this but dunno. Maybe someone can expand this a bit O:-)
You can and should mount your USB key under /media - if you define the volume name, the USB key will appear as a folder underneath /media with the same name.
If you’re using Gnome I can help with the automation.
> Thanks to cameleon : your “by hand” solution works fine : I
> re-discovered my directories and files with their “case-respected”
> names.
>
> I have to work a little harder to find how to automatize that !!
Didn’t you try KJ44’s advice? :-?
Open GConf editor and go
to /system/storage/default_options/vfat/mount_options and there you can
edit the options that will be appended to all vfat mounted devices.
I guess here you can change it to “shortname=mixed”.
You have to take into account that after the change, all vfat mounted
devices would follow that rule.
In a gnome session, in an xterm window, with my current login, even not a root session,I started “gconf-editor”, then :
system
storage
default-options
vfat
double-click on the only line
Button “Modify”
Replace “shortname=lower” by “shortname=mixed”
Button “Validate” (may be OK, mine was “Valider” because I’m using French)
I just umounted, then re-mounted my USB key and all was allright !!!
Just a remark : it seems stange to me that it be a Desktop setup, I thought it was deeper in Linux … That’s life
Thank you for the feedback, it’s nice to know when suggestions result in a solution.
As for your remark, indeed there are things deeper in Linux - if you follow my automounting DVD link, you’ll see an example (HAL configuration using XML).