Computing.Net > Forums > Linux > Automounting a Windows share

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automounting a Windows share

Reply to Message Icon

Name: Scott
Date: April 2, 2002 at 13:46:57 Pacific
Comment:

Basic Questiopn:
I can mount a share using this command:
smbmount //server/share /mount point How do I go about mounting it automatically? I can't seem to get the line in fstab right...Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: B
Date: April 3, 2002 at 23:31:03 Pacific
Reply:

Try looking in the smbmount man page... I am 90% sure that it will tell you how to do it. Let me know if this helps...


0

Response Number 2
Name: bart
Date: April 4, 2002 at 03:25:35 Pacific
Reply:

Try adding the command in your /etc/rd.d/rc.local. Something like:

/bin/mount -t smbfs //server/share

The command will be executed everytime linux boots so I think this might work. I haven't tried it though. Good luck |: )

- Bart


0

Response Number 3
Name: bart
Date: April 4, 2002 at 03:33:29 Pacific
Reply:

Don't forget to supply the mountpoint, the username and the password. So the complete command will look like this:

/bin/mount -t smbfs -o username=username,password=yourpass //server/share /mountpoint


0

Response Number 4
Name: Scott
Date: April 4, 2002 at 11:07:46 Pacific
Reply:

Bart,
adding the mount info to the /etc/rc.d/rc.local file worked perfect, thanks! Why would it NOT work in the fstab file?


0

Response Number 5
Name: aeichner
Date: May 2, 2002 at 08:49:12 Pacific
Reply:

You simply have to move all information to the fstab, so it has to look like this:

#fs mnt-point type options dump pass
//server/share /mountpoint smbfs user,noauto,username=yourname,password=yourpass 0 0

This works fine. So you can type (as user)

mount /mountpoint

If you ever have to connect to a W2K-Server it seems you have to add the "port=445"-option to the rest (find it out with a portscanner like nmap).
For more take a look at http://www.tldp.org/HOWTO/SMB-HOWTO.html


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Automounting a Windows share

Use Samba to print to a Windows shared printer? www.computing.net/answers/linux/use-samba-to-print-to-a-windows-shared-printer/1949.html

Mounting a Windows Share www.computing.net/answers/linux/mounting-a-windows-share/27513.html

How to access Windows Shares in Linux, P www.computing.net/answers/linux/how-to-access-windows-shares-in-linux-p/7159.html