Incorrect mount_options

olivier

Developer
Hi all,
I need to modify the default_options for mount vfat filesystem.
I would to add these options: "-L fr_FR.UTF-8 -D CP850"
Then I've start gconf-editor and add 2 keys on the system\storage\default_options\vfat\mount_options:
- L fr_FR.UTF-8
- D CP850
The full line is now: longnames,-L fr_FR.UTF-8,-D CP850,-u=

But with these options I've got the error message «invalid mount options» when I plug a FAT formatted USB key.

Where did I do a mistake ?

Thanks
 
The option "-u=" was allready here, I didn't modify it.
But even if I remove this option, it doesn't fix the problem.

(I'm using gnome2-2.24.3_1 with FreeBSD 7.1-RELEASE)
 
-u means update an existing mount. Maybe you should leave it in, I don't know how this gnome stuff works, but the = behind it should be left out.

What do the options look like, now?
 
I've found the problem by testing the syntax using the mount command and not the mount_msdosfs command.
The key is on the man page of the mount command:
Any additional options specific to a file system type that is not
one of the internally known types (see the -t option) may be
passed as a comma separated list; these options are distinguished
by a leading ``-'' (dash). Options that take a value are speci-
fied using the syntax -option=value.

I didn't follow the "-option=value" rule.
Then I've modified the options by:
-L=fr_FR.UTF-8
-D=CP850
and it's works great now!
The full option line is now: longnames,-L=fr_FR.UTF-8,-D=CP850,-u=

Thanks for your questions that force me to do look the man page in detail :e
 
Back
Top