From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NT2VT-0007LP-5N for garchives@archives.gentoo.org; Fri, 08 Jan 2010 00:15:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B15C9E0A95; Fri, 8 Jan 2010 00:14:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 68C83E0A95 for ; Fri, 8 Jan 2010 00:14:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E71381B4014 for ; Fri, 8 Jan 2010 00:14:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.036 X-Spam-Level: X-Spam-Status: No, score=-3.036 required=5.5 tests=[AWL=-0.437, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KdeKo3AiAxm2 for ; Fri, 8 Jan 2010 00:14:44 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 6060A1B403F for ; Fri, 8 Jan 2010 00:14:42 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NT2Us-0002MZ-CZ for gentoo-user@gentoo.org; Fri, 08 Jan 2010 01:14:34 +0100 Received: from adsl-69-234-196-13.dsl.irvnca.pacbell.net ([69.234.196.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jan 2010 01:14:34 +0100 Received: from w41ter by adsl-69-234-196-13.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jan 2010 01:14:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives Date: Thu, 07 Jan 2010 16:14:03 -0800 Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-196-13.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20100107 Thunderbird/3.2a1pre Sender: news X-Archives-Salt: e158b2b6-66a2-4642-851f-8128d556cbd7 X-Archives-Hash: 6072dd44768ac312a18842ee3ba5661a For many weeks I've been looking for a way to add the 'noatime' and 'nodiratime' flags for drives that are automounted in gnome. Sifting through the mountains of information about how hal, hotplug, udev, and gnome interact was painful, but I finally stumbled across a working method on the LinuxFromScratch website. In the good-ole days (several months ago) the way to do it would have been to put a customized fdi file in /etc/hal/fdi/policy/. More recently hal has pushed that task up to the 'desktop' layer, e.g. gnome, kde, kfce, etc. I suppose that's because such a preference should be left up to the user instead of the sysadmin, but I can only speculate about what motivates the hal daemon. In gnome, the way to do it is to use the gconf editor (open the 'Configuration Editor' in the Applications::System-Tools drop- down menu). Below the root entry, you'll see 'apps', 'desktop', 'schemas', and 'system'. Expand 'system' and then 'storage' below that, and finally 'default_options' below that. You should see a list of filesystem types, like iso9660, ntfs, and so on. Each filesystem type has a 'mount_options' key that you can edit by double-clicking on it. Thus, each filesystem type has its own custom mount options -- but what happened to ext2? I've reformatted some of my USB sticks from vfat to ext2, and I'd like to customized the mount options for them too. LinuxFromScratch to the rescue! They point out that the gconf editor can't edit everything that appears in the gnome 'registry' but there is a command-line tool 'gconftool-2' that can. The way to customize the default mount options for ext2 drives is to do this from a command prompt: gconftool-2 --type list --list-type=string \ --set /system/storage/default_options/ext2/mount_options \ "[noatime,nodiratime]" See how simple and intuitive once you have an example staring you in the face? Dunno why I didn't just try that in the first place :o/ Lest you kde fans sneer at us gnome gnerds, see if you can do the same thing using the tools that kde provides you! Does kde allow you to automount USB sticks and external hard drives? And customize the mount options?