[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: prevent writing to unmounted directory



Touch a file on the NAS share with a name such as
NAS.HERE, and in your script check that that file
exists. If it exists, then it's mounted, if not, then
it's not mounted.


Ken

--- Chris <list.hurschler@gmx.de> wrote:

> On Thursday 24 April 2008, Damon L. Chesser wrote:
> > Chris wrote:
> > > Hello,
> > >
> > > I want to run a script to rsync local files to a
> NAS mounted to
> > > /mnt/music. Sometimes the NAS is not running,
> and I want to prevent the
> > > script from writing to the mount directory:  is
> there any easy way to
> > > prevent this?
> > >
> > > Thanks,
> > >
> > > C
> >
> > How are you accessing the NAS?  NFS?  SAMBA?
> 
> smbfs
> 
> >
> > --
> > Damon L. Chesser
> > damon@damtek.com
> > http://www.linkedin.com/in/dchesser
> 
> 
> 
> -- 
> C. Hurschler
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 





      ___________________________________________________________ 
Yahoo! For Good. Give and get cool things for free, reduce waste and help our planet. Plus find hidden Yahoo! treasure 

http://green.yahoo.com/uk/earth-day/


Reply to: