LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2011, 05:52 AM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
A "better" way to mount shares?


Hi,

When I mount a share using mount -t sshfs or cifs and my network connection (wireless) is lost, my laptop hangs (while executing ls /mnt/share/ for example) for ages before giving up. I would expect if it cannot see the share after a few seconds it would give an error, yet I could be waiting minutes.

Is there a better way to go around this? More of an on-access method that would expect it to not always be available?

I mainly use the command-line to access the data.

Thanks
 
Old 10-15-2011, 11:32 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can use autofs with a short timeout (say 5 seconds). That way, when you are not actively moving data back and forth the filesystem is unmounted, resulting in no delay.
 
Old 10-16-2011, 07:02 AM   #3
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
Thanks, that's very interesting. It works well when on the command line (if I cd onto a share it stays mounted) but if I open pcmanfm/thunar and go to the share, it unmounts after the timeout and the file browser closes. I wonder why it thinks being in a directory in a terminal is different to a GUI.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DFS shares - can mount shared folder, but no access - error "object is remote" gbloon Linux - Networking 6 08-20-2009 05:18 PM
why only "mount /dev/sda /mnt/usb" works and not "mount /dev/sda1..." ? gromot Linux - General 7 05-19-2009 10:18 AM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
Need to mount Windows shares as "user" MMYoung Slackware 4 09-12-2005 06:39 AM
Is it possible to "permanently" mount samba shares? soren625 Linux - Software 1 05-13-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration