Mounting a SSD partition with an ext4 file system with the discard option fails. $ sudo udisks --mount /dev/sde16 --mount-options discard Mount failed: Mount option discard is not allowed Using mount directly works as expected. $ sudo mount -o discard /dev/sde16 /mnt/ $ echo $? 0
This is Debian Sid/unstable. ii udisks 1.0.4-7 i386 storage media interface
The Debian BTS tracks this issue under the bug number 688145. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688145
Development focus is on udisks 2.0 but it's still a "problem" there. My view is pretty simple - if it's useful to use TRIM and TRIM is available, the ext4 filesystem driver should do it by default. The mount(5) man page seems to agree since it says "it is off by default until sufficient testing has been done". So I don't think it's a good idea to allow an unprivileged user to use 'discard' via udisks since the feature has not seen sufficient testing and it could be a security hole until it has. So I'm closing WONTFIX. You can of course work around this by just adding an entry to the /etc/fstab line for the device. We even have a nice GUI for this in Disks, see http://davidz25.blogspot.com/2012/03/simpler-faster-better.html for details.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.