* [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives
@ 2010-01-08 0:14 walt
2010-01-08 3:12 ` Iain Buchanan
2010-01-08 15:34 ` [gentoo-user] " Paul Hartman
0 siblings, 2 replies; 4+ messages in thread
From: walt @ 2010-01-08 0:14 UTC (permalink / raw
To: gentoo-user
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 <mis>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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives
2010-01-08 0:14 [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives walt
@ 2010-01-08 3:12 ` Iain Buchanan
2010-01-08 4:39 ` [gentoo-user] " walt
2010-01-08 15:34 ` [gentoo-user] " Paul Hartman
1 sibling, 1 reply; 4+ messages in thread
From: Iain Buchanan @ 2010-01-08 3:12 UTC (permalink / raw
To: gentoo-user
On Thu, 2010-01-07 at 16:14 -0800, walt wrote:
> gconftool-2 --type list --list-type=string \
> --set /system/storage/default_options/ext2/mount_options \
> "[noatime,nodiratime]"
nice, thanks!
--
Iain Buchanan <iaindb at netspace dot net dot au>
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: [micro HOWTO] Adding custom mount options for gnome-mounted drives
2010-01-08 3:12 ` Iain Buchanan
@ 2010-01-08 4:39 ` walt
0 siblings, 0 replies; 4+ messages in thread
From: walt @ 2010-01-08 4:39 UTC (permalink / raw
To: gentoo-user
On 01/07/2010 07:12 PM, Iain Buchanan wrote:
> On Thu, 2010-01-07 at 16:14 -0800, walt wrote:
>
>> gconftool-2 --type list --list-type=string \
>> --set /system/storage/default_options/ext2/mount_options \
>> "[noatime,nodiratime]"
>
> nice, thanks!
Ooops, typo! That first line should have had another '=' after the
--type flag, like this:
gconftool-2 --type=list --list-type=string \
--set /system/storage/default_options/ext2/mount_options \
"[noatime,nodiratime]"
At least, that syntax worked for me. Hope it works for you. I'm
still wondering why there isn't another '=' after the --set flag,
too :o/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives
2010-01-08 0:14 [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives walt
2010-01-08 3:12 ` Iain Buchanan
@ 2010-01-08 15:34 ` Paul Hartman
1 sibling, 0 replies; 4+ messages in thread
From: Paul Hartman @ 2010-01-08 15:34 UTC (permalink / raw
To: gentoo-user
On Thu, Jan 7, 2010 at 6:14 PM, walt <w41ter@gmail.com> wrote:
> Does kde allow you to automount USB sticks and external hard
> drives? And customize the mount options?
Apparently:
http://kde-look.org/content/show.php?content=91517
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-08 15:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 0:14 [gentoo-user] [micro HOWTO] Adding custom mount options for gnome-mounted drives walt
2010-01-08 3:12 ` Iain Buchanan
2010-01-08 4:39 ` [gentoo-user] " walt
2010-01-08 15:34 ` [gentoo-user] " Paul Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox