View Full Version : [Solved] Incorrect mount_options
olivier
February 20th, 2009, 21:23
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
kamikaze
February 21st, 2009, 19:12
longnames,-L=fr_FR.UTF-8,-D=CP850
Whatever made you put in -u=?
olivier
February 21st, 2009, 19:22
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)
kamikaze
February 21st, 2009, 19:40
-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?
olivier
February 21st, 2009, 21:07
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
kamikaze
February 22nd, 2009, 09:21
longnames,-L=fr_FR.UTF-8,-D=CP850It seems like I already corrected the syntax in my first post.
olivier
February 22nd, 2009, 10:13
You've right, but I didn't see the diff on your first post :\
kamikaze
February 22nd, 2009, 10:51
:D
The -u= comment was actually only meant as an afterthought. Never mind.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.