Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-05-2005, 12:13 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27
Rep:
|
Automounting smbfs
I am trying to set up automounter (on Debian 2.6.11) to automatically mount a Windows drive. I have the following entry in my /etc/fstab:
//duo-xp/c /duo-xp smbfs credentials=/etc/samba/smbpasswd 0 0
This entry successfully mounts the desired Windows drive manually using
mount /duo-xp
(although it asks for a password that apparently can be anything). I converted this entry into a map that I put in auto.misc:
duo-xp -fstype=smbfs,credentials=/etc/samba/smbpasswd ://duo-xp/c
I expect with this entry to be able to type
ls /misc/duo-xp/c
and get a listing of the contents of the c drive without first mounting the partition manually. Instead I get
/misc/duo-xp/c: No such file or directory
My solution is similar to others I have found on the web, so I don't understand why it is not working. I have another entry in my auto.misc for automatically mounting a usbkey which works fine. I also tried
duo-xp -fstype=smbfs,login=myname,passwd=mypassword ://duo-xp/c
in my auto.misc. I don't get any messages in /var/log/messages when I try to list the directory. Any ideas?
|
|
|
11-06-2005, 10:40 AM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Have a look at man smbmount for the correct format of a credentials file..
Last edited by peter_robb; 11-06-2005 at 10:41 AM.
|
|
|
11-06-2005, 09:41 PM
|
#3
|
LQ Newbie
Registered: Oct 2004
Distribution: Ubuntu
Posts: 27
Original Poster
Rep:
|
Although the mount command reported an automount entry for /misc (automount(pidXXXX) on /misc type autofs ...), in fact there was no process with pid XXXX. In other words, automounter was not running. Once I got it running, the automount worked.
|
|
|
All times are GMT -5. The time now is 06:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|