[opensuse] change default mount options for vfat on flash drives
Hello: How can I change default (auto)mount options for vfat file system on removable flash disks (like sd cards) and pendrives? I would like to set options iocharset=winnt, time_offset=120 default when the drives are automatically mounted. I want this on openSUSE Leap 42.2 (KDE3 and KDE4 if it matters). Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Istvan Gabor wrote:
Hello:
How can I change default (auto)mount options for vfat file system on removable flash disks (like sd cards) and pendrives?
Hmm, not sure what the official way is, but as there's no reply yet: for my cardreader (which I prefer to get mounted as /media/sdcard anyhow) I created an fstab entry /dev/mmcblk0p1 /media/sdcard auto noauto,user,shortname=lower,uid=1000 0 0 The automounter honors this entry, too. So you should be able to specify your wanted options there, like my 'shortname=lower' -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2017-09-25 14:10, Peter Suetterlin wrote:
Istvan Gabor wrote:
Hello:
How can I change default (auto)mount options for vfat file system on removable flash disks (like sd cards) and pendrives?
Hmm, not sure what the official way is, but as there's no reply yet:
for my cardreader (which I prefer to get mounted as /media/sdcard anyhow) I created an fstab entry
You can change the default automatic mount point to /media, there is a trick for that if you are interested. For manual mounts, as in fstab, I abstain from /media and use /mnt.
/dev/mmcblk0p1 /media/sdcard auto noauto,user,shortname=lower,uid=1000 0 0
The automounter honors this entry, too. So you should be able to specify your wanted options there, like my 'shortname=lower'
Yes, as long as the device name holds it will work. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Carlos E. R. wrote:
On 2017-09-25 14:10, Peter Suetterlin wrote:
Istvan Gabor wrote:
Hello:
How can I change default (auto)mount options for vfat file system on removable flash disks (like sd cards) and pendrives?
Hmm, not sure what the official way is, but as there's no reply yet:
for my cardreader (which I prefer to get mounted as /media/sdcard anyhow) I created an fstab entry
You can change the default automatic mount point to /media, there is a trick for that if you are interested.
Thanks, but that was specific for the SDcard reader, as I have some scripts that refer to /media and I was too lazy to change... /run/media is fine for the rest :)
/dev/mmcblk0p1 /media/sdcard auto noauto,user,shortname=lower,uid=1000 0 0
The automounter honors this entry, too. So you should be able to specify your wanted options there, like my 'shortname=lower'
Yes, as long as the device name holds it will work.
Indeed - the TO mentioned pendrives. For those it would fail. The cardreader if built-in HW of the laptop, won't change that easy... *eg* -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Istvan Gabor
-
Peter Suetterlin