options for automatically mounted FS (USB keys)

Hi all !

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.

Thanks in advance !

didess wrote:

> 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.

I.e., “shortname=mixed”

“man mount” gives you full info on this.

THT.

Greetings,


Camaleón

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 ?

didess wrote:

> 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 :slight_smile:

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:-)

Greetings,


Camaleón

I can help if you are using Gnome.

Here’s how I figured out how to tweak the automatic mounting of a DVD

DVD Automounting UDF Problems. - Page 2 - openSUSE Forums

All you should need to do is edit the vfat mount options in gconf-editor.

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 !!

(directory creation, finding the proper device - because it disappears after the use …)

If I find more I’ll post here

Thanks to all!

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.

Yes, I use Gnome (sometimes XFCE, but mainly Gnome)

didess wrote:

> 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.

BTW, it is documented here:

GNOME/Desktop Policy
http://en.opensuse.org/GNOME/Desktop_Policy

Greetings,


Camaleón

Hi all !

That’s it !!

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

Many thanks to all of you

FYI : One more info : I realized that gconf-editor comes with Gnome, but can setup parameters quite away from Gnome.

On a machine with Gnome and XFCE, I could use gconf-editor in an Xfce session as much as in a Gnome session

Thank you for the feedback, it’s nice to know when suggestions result in a solution. :slight_smile:

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).

This path no longer exists in OpenSUSE 11.3. Does anyone happen to know how to modify the mount parameters for automounted usb sticks there?

Thanks!

John