Re: Bug#507084: ability to set new mount defaults in fstab
On Fri, Nov 28, 2008 at 02:46:15AM +0800, firstname.lastname@example.org wrote:
> Package: mount
> Version: 126.96.36.199-1
> Severity: wishlist
> X-Debbugs-Cc: email@example.com, firstname.lastname@example.org
> I notice a problem. The mount(8) defaults have no easy way of being
> changed by root, without having to recompile something.
> Wouldn't it be nice in /etc/fstab to be able to add a line
> "Here are the new defaults (in general, or for e.g., just vfat).
> Any disk mounted beyond this point in fstab or from the command line
> shall now use these defaults unless otherwise specified on that mount
> command line."
> E.g., "The new defaults for vfat are
> shortname=mixed,noatime,fmask=133". No more need for long command
> lines or wrapper shell scripts to set them next somebody hands you a
> key chain USB disk to plug in, etc.
It doesn't make sense to me. You can specify the options in /etc/fstab
and when using mount just fine, and it's not like mount is something
"persistent" like a daemon: How is mount supposed to figure out which
defaults to use in any case?
How is root supposed to figure out which options mount is currently
using, and why should he be forced to check if mount is using the
right options every time before it is to be used? That would require
some global locking of mount options to prevent situations in which
you question mount about the options it uses while someone else is
just about to change the options so that mount, at the time you would
use it, would use other options than you expect. I once have lost data
because I was using the wrong mount options on an XFS file system ...
And what do you do when someone does a simple
mount /usr -o remount,rw
apt-get install [some software]
mount /usr -o remount,ro
Which options would you want mount to use? Surely *not* any others
than those you specify while using it and the *same defaults as
always* for those you didn't specify. Have it otherwise, and it will
become unpredictable and result in messing up file systems and in
If you had mount using unpredictable defaults like that, I would file
a bug report against it :)
"Don't let them, daddy. Don't let the stars run down."