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.
|
|
10-14-2001, 10:15 PM
|
#1
|
LQ Newbie
Registered: Oct 2001
Posts: 24
Rep:
|
Mount network share at startup.
How can I mount a network share on my W2k server so I will mount at startup?
|
|
|
10-17-2001, 12:51 AM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
I guess you could put it in the startup scripts.
the bad thing is your password is in there so protect the file with the script in it, don't use the same password anywhere else
I use this
mount -t smbfs //win2k/pub /lan/win2k -o username=david,password=foobar
or you could use smbmount
[david@ccxxxxxx-x david]$ mount
/dev/md1 on / type ext2 (rw)
none on /proc type proc (rw)
/dev/md0 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
automount(pid815) on /misc type autofs (rw,fd=5,pgrp=815,minproto=2,maxproto=3)
//winme/pub on /lan/winme type smbfs (0)
//win98/pub on /lan/win98 type smbfs (0)
//win2k/pub on /lan/win2k type smbfs (0)
|
|
|
10-17-2001, 04:27 AM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you rteally should use an /etc/fstab entry, as that's what it's there for, the equivalent line for that mount command would be:
//win2k/pub /lan/win2k smbfs username=david,password=pass
well, execpt the password,cos i hate all that foo crap.
|
|
|
10-17-2001, 09:53 PM
|
#4
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
I don't use fstab this way.
It is ok to put it in there with the noauto option.
then it would serve as a shortcut to mounting //whatever/share to a given place without typing the whole thing, sort of like your cdrom, you can just type mount /dev/cdrom and it will mount to the designated place.
The problem is if your system boots and those shared drives are not there to mount it will be trouble.
I just ssh into my machine and do the mount.
|
|
|
All times are GMT -5. The time now is 10:46 AM.
|
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
|
|