openSUSE Forums > Hardware » options for automatically mounted FS (USB keys)

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read

Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-Jun-2009, 17:18
Puzzled Penguin
 
Join Date: Feb 2009
Posts: 22
didess hasn't been rated much yet
Default 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 !
Reply With Quote
  #2 (permalink)  
Old 15-Jun-2009, 01:46
Camaleón
Guest
 
Posts: n/a
Default Re: options for automatically mounted FS (USB keys)

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
Reply With Quote
  #3 (permalink)  
Old 15-Jun-2009, 02:18
Puzzled Penguin
 
Join Date: Feb 2009
Posts: 22
didess hasn't been rated much yet
Default Re: options for automatically mounted FS (USB keys)

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 ?
Reply With Quote
  #4 (permalink)  
Old 15-Jun-2009, 02:57
Camaleón
Guest
 
Posts: n/a
Default Re: options for automatically mounted FS (USB keys)

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

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
Reply With Quote
  #5 (permalink)  
Old 15-Jun-2009, 03:08
Busy Penguin
 
Join Date: Jun 2008
Posts: 262
KJ44 hasn't been rated much yet
Default Re: options for automatically mounted FS (USB keys)

Quote:
Originally Posted by Camaleón View Post
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:-)
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.
Reply With Quote
  #6 (permalink)  
Old 15-Jun-2009, 12:47
Puzzled Penguin
 
Join Date: Feb 2009
Posts: 22
didess hasn't been rated much yet
Default Re: options for automatically mounted FS (USB keys)

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!
Reply With Quote
  #7 (permalink)  
Old 15-Jun-2009, 13:00
Busy Penguin
 
Join Date: Jun 2008
Posts: 262
KJ44 hasn't been rated much yet
Default Re: options for automatically mounted FS (USB keys)

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.
Reply With Quote
  #8 (permalink)  
Old 15-Jun-2009, 16:46
Puzzled Penguin
 
Join Date: Feb 2009
Posts: 22
didess hasn't been rated much yet
Default Re: options for automatically mounted FS (USB keys)

Yes, I use Gnome (sometimes XFCE, but mainly Gnome)
Reply With Quote
  #9 (permalink)  
Old 16-Jun-2009, 02:14
Camaleón
Guest
 
Posts: n/a
Default Re: options for automatically mounted FS (USB keys)

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
Reply With Quote
  #10 (permalink)  
Old 16-Jun-2009, 15:34
Puzzled Penguin
 
Join Date: Feb 2009
Posts: 22
didess hasn't been rated much yet
Thumbs up Re: options for automatically mounted FS (USB keys)

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
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2