raven22;370455 Wrote: 
> Try the autofs package, instructions for Clarkconnect are here, but i
> guess it will work on debian/ubuntu as well.
> http://www.ulverston.myzen.co.uk/mini-itx/pages/nas.htm

That might very well be your best bet. 

Again, I have zero Ubantu or debian experience...and, for that matter,
limited experience in mounting nas shares from linux.  On my Fedora
box, I think I would try an approach like this:

Assuming that you are using pm-suspend to get into S3 sleep, create a
"15nas" script in /etc/pm/sleep.d:

Code:
--------------------
    
  #!/bin/bash
  
  # unmount networkshare on QNAP 109 II NAS before going to standby.
  # re mount the share when coming out of suspend..
  #
  # Note that this file belongs in /etc/pm/sleep.d/15nas and must be executable
  
  . /usr/lib/pm-utils/functions
  
  
  unmount_nas() {
  /bin/umount /mnt/nas_mount_point    
  }
  
  remount_nas() {
  /bin/mount -t nfs qnap_ip:/sharepoint /mnt/nas_mount_point
  
  }
  
  
  
  case "$1" in
  hibernate|suspend)
  unmount_nas
  ;;
  thaw|resume)
  remount_nas
  ;;
  *)
  ;;
  esac
  
  exit $?
  
--------------------

That script assumes that you connect to the qnap using nfs.  Again,
given my limited experience, I don't know if that is likely to be the
case.

Anyway, I'm cribbing this idea from Syburgh's WindPC wiki:
http://wiki.syburgh.com/audio0-local#toc22

..and for all I know, autofs might take care of all this for you
automatically.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to