LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-17-2010, 11:40 PM   #1
mkoco
Member
 
Registered: Feb 2008
Location: US, New Jersey
Distribution: Slackware
Posts: 88

Rep: Reputation: 17
autofs+sshfs "Directory not found"


Hello all.

Having some troubles with sshfs + autofs. Roughly following this guide here: http://www.tjansson.dk/?p=84

Here is /etc/auto.master:
Code:
/mnt/sshfs /etc/auto.sshfs uid=1000,gid=100, timeout=600, --ghost
/etc/auto.sshfs:
Code:
remote1 -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 -retry=3 :sshfs\#user@remote1.com\:
remote2 -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 -retry=3 :sshfs\#user@remote2.com\:
Both sites authenticate via pubkey when I ssh, or sshfs as normal.

But when I 'cd' to the dirs /mnt/sshfs/remote1 or /mnt/sshfs/remote2, I get this error:
Code:
bash: cd: remote1/: No such file or directory
Kind of stuck, any ideas?

Edit: Also, logs are free of errors.

Last edited by mkoco; 06-17-2010 at 11:42 PM.
 
Old 06-18-2010, 05:05 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,093

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Which Slackware version?
 
Old 06-18-2010, 08:26 AM   #3
mkoco
Member
 
Registered: Feb 2008
Location: US, New Jersey
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: 17
This is with slackware-current.
 
Old 06-18-2010, 10:09 AM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,093

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Hmm. For some reason or another, the autofs maintainers removed the status command from rc.autofs between 4.1.4 and 5.0.5. Too bad they didn't bother to update the man page.

So, I would go edit /etc/default/autofs by uncommenting the line containing OPTIONS="" (it's almost at the end of the file) and setting the options to "-d"...
Code:
OPTIONS="-d"
...like so to turn on verbose debugging.

I'd then issue an
Code:
/etc/rc.d/rc.autofs restart
command, attempt to access one of those mount points and see what shows up in /var/log/messages and /var/log/syslog.
 
1 members found this post helpful.
Old 06-18-2010, 07:31 PM   #5
mkoco
Member
 
Registered: Feb 2008
Location: US, New Jersey
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Richard Cranium View Post
Hmm. For some reason or another, the autofs maintainers removed the status command from rc.autofs between 4.1.4 and 5.0.5. Too bad they didn't bother to update the man page.

So, I would go edit /etc/default/autofs by uncommenting the line containing OPTIONS="" (it's almost at the end of the file) and setting the options to "-d"...
Code:
OPTIONS="-d"
...like so to turn on verbose debugging.

I'd then issue an
Code:
/etc/rc.d/rc.autofs restart
command, attempt to access one of those mount points and see what shows up in /var/log/messages and /var/log/syslog.
Excellent.. Thank you. Turning on debugging helped me comb the logs.. finally got this working!

 
Old 07-26-2010, 05:34 PM   #6
londoh
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 1
Quote:
Excellent.. Thank you. Turning on debugging helped me comb the logs.. finally got this working!
whooohoooo didnt you do well with the replies you got!
But how exactly does YOUR reply help the rest of the poor saps like me who are still struggling for the solution???
 
1 members found this post helpful.
Old 07-26-2010, 10:19 PM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,093

Rep: Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469Reputation: 1469
Quote:
Originally Posted by londoh View Post
whooohoooo didnt you do well with the replies you got!
But how exactly does YOUR reply help the rest of the poor saps like me who are still struggling for the solution???
Well, what's in your logs?

Last edited by Richard Cranium; 07-26-2010 at 10:19 PM. Reason: Don't post after a 6 pack of beer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS6.3 - Ch5.4.1 "/bin/sh sort not found" error at "make bootstrap" ubyt3m3 Linux From Scratch 2 06-23-2008 01:09 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
sshfs error when mounting "remote host has disconnected" thew00t Linux - Server 3 04-14-2007 07:32 AM
Adding a directory returns "no medium found" error JcN Linux - Newbie 7 02-01-2006 09:40 PM
What is the "Lost+Found" directory for? sumguy231 Linux - Newbie 2 07-21-2004 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration