Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 i have added to /etc/auto.master this line:

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


    # $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

  2. #2
    what is the distro you use ?
    take a look at the /var/log/messages (for FC/RH) and /var/log/syslog (for DEB/UBU). You will get lot of information on why the automount is failing. That would be the starting point for your analysis.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts