LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2007, 10:55 AM   #1
mmoalem
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 0
please help with autofs and automounting samba shares


hi there all - been looking for a way to automount my samba shares on my ubuntu client the same way windows does 'map network drives', ie instead of manually mounting through LinNeighborhood (my current way of mounting network drives).
my setup is:
server name: MYSERVER
shared drive: PHILIPS1
samba shares dont use login and password, they are open to all on home netowrk
following http://www.greenfly.org/tips/autofs.html i have added to /etc/auto.master this line:

Quote:
/mnt /etc/auto.smb --timeout=60
and created an executable auto.smb with this lines:

Quote:
#!/bin/bash

# $Id: auto.smb,v 1.3 2005/04/05 13:02:09 raven Exp $

# This file must be executable to work! chmod 755!

philips1 -fstype=smbfs,username=ROOT,uid=1000,gid=1000 ://MYSERVER/PHILIPS1
restarted autofs but it there is nothing in /mnt
ls /mnt returns nothing
cd /mnt/philips1 returns:
bash: cd: /mnt/philips1: No such file or directory

what am i doing wrong?
Edit/Delete Message
 
Old 03-20-2007, 04:15 PM   #2
zytsef
Member
 
Registered: Apr 2006
Location: Vancouver, Canada
Distribution: Slackware, Ubuntu
Posts: 168

Rep: Reputation: 30
Seems to me like you're doing things the hard way. Is there a particular reason why you must use autofs? You could just add the shares you want to your fstab and let smbmount get them going whenever you turn the machine on.
 
Old 03-20-2007, 05:03 PM   #3
mmoalem
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Original Poster
Rep: Reputation: 0
ok there are few reasons why autofs
the main one is that my file server is not allways on and sometimes i start my server after the ubuntu client, whatsmore, this setup is also for my wife who is not so technically savvy and i wanted to replicate windows 'map network drive' facility as it is as simple as it gets. she needs to have a system where she does not worry about the order of starting machines and whenever she starts the file server it is immediately accessible through point and click. i understand that autofs provides this
second reason is that i dont like giving up when something isnt working, there many shortcuts and hacks but i once it proved to be problematic i would like to solve it.....

BTW i have raised the issue here:
http://www.ubuntuforums.org/showthread.php?t=389090
where you can find more details and how far i got

Last edited by mmoalem; 03-20-2007 at 05:05 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Accessing Windows Or Samba Shares Using AutoFS LXer Syndicated Linux News 0 12-14-2006 04:03 PM
automounting with autofs not working.. logicalfuzz Linux - Networking 2 11-21-2005 05:41 AM
automounting/rc.autofs dive Slackware 11 07-15-2005 08:33 PM
NFS shares automounting mjuhannus Linux - Networking 1 03-06-2005 06:15 AM
Mounting samba windoze shares using autofs Rounan Linux - Software 2 12-05-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 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