[Tfug] Mount Question

JD Rogers rogersjd at gmail.com
Tue Jul 12 20:51:04 MST 2005


You might also find the mapping function of ifupdown useful. In
debian, the file /etc/network/interfaces contains the info for each
network device. The cool thing is that you can setup logical devices
and 'map' the physical device to the logical one (man interfaces for
more info). It gets really cool when you setup a script for each
mapping. From what I understand, this should allow you to have a
script that mounts your NFS shares only when you bring up eth0 on your
work network.

Now that should be fairly straight forward to setup for a wired
network and you may even be able to automate the process using
packages ifplugd or guessnet so that it all just works depending on
where you are when you plug in the cable. If you are on a wireless
card and using wep, it may be more complicated. I have yet to get
things working in the case where a wep key must be choosen BEFORE
associating with a WAP. However, I just noticed the package waproamd
has been updated, so I may try it again. If anyone has gotten this to
work, I'd love to hear about it.

I've only been using debian lately.. anyone using something else want
to comment on this functionality in other flavors?
JDR

On 7/12/05, Adrian <choprboy at dakotacom.net> wrote:
> On Tuesday 12 July 2005 14:35, Jim Secan wrote:
> > I have a laptop that mounts several nfs filesystems from other servers on
> > my office network.  These are all mounted by entries in fstab.  When I take
> > the laptop on the road this causes the boot to be on the slow side while
> > the system tries to find these fs's to mount.  I can think of a couple of
> > hacks around this, but is there some way I can identify in the fstab that
> > these systems are not to be mounted at boot time?  I could then mount them
> > manually by a "mountall -t nfs" when I'm on the office network and want the
> > mounts done.
> >
> 
> As Paul said, add the "noauto" option to your fstab. You could also add a
> "user" option to the fstab entry as well.... That allows any normal user to
> mount/unmount that drive without special priviledges... a simple
> "mount /<mount_path>" to mount it when you need it.
> 
> Adrian
> _______________________________________________
> tfug mailing list
> tfug at tfug.org
> http://www.tfug.org/mailman/listinfo/tfug
>


More information about the tfug mailing list