Linux Debian support - Howto change behavior of dynamic entries in /etc/fstab

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > April 2005 > Howto change behavior of dynamic entries in /etc/fstab





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Howto change behavior of dynamic entries in /etc/fstab
David Cook

2005-03-03, 5:45 pm

I notice that there are both 'static' and 'dynamic' entries
in /etc/fstab.

The problem I'm grappling with affects 'dynamic' entries
that come and go, for example, when I 'hotplug' one
the 'memory stick' drives into a USB-port.

For example, someone correctly suggested that if the fstab
entry for a memory-stick had the modifier
umask=000
appended to it, then it would auto-DISMOUNT for the
user (who may not have root privs).

Ok. But, the issue is that you can NOT just use a text-editor
on the entry in /etc/fstab and append the desired modifier.

Because, on the next REBOOT, or even after unplugging and
replugging the memory-stick, the entry in /etc/fstab is entirely
removed.

So, the question becomes: Is there a template somewhere, or
a way to coerce the system to create certain classes of
dynamic entries with one's desired modifiers and attributes?

Maybe it's just a 'man' page somewhere that I need to read!?

TIA...

Dave


Nick

2005-04-10, 2:45 am

David Cook wrote:

>
> So, the question becomes: Is there a template somewhere, or
> a way to coerce the system to create certain classes of
> dynamic entries with one's desired modifiers and attributes?
>
> Maybe it's just a 'man' page somewhere that I need to read!?
>


I don't use hotplug, but man hotplug seems to give some of the answers
you're looking for. See near the end where it mentions templates.


--
Nick
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com