[Techtalk] init scripts

Hamster hamster at hamsternet.org
Tue Jul 9 19:21:22 EST 2002


> If I wanted to automatically mount some drives from a Windows machine at
> Linux startup, what would be the best way to do this?  I can mount them now
> using the smbmount command but want to set it up so that it is automatic at
> boot.
 
You can do this using fstab, the filesystem type you need is smbfs. The syntax for this is a bit tricky, and will need a bit of playing around with.

Hence the second thing you might want to try is tacking a smbmount command to the end of rc.local. However, you didnt say what distro you are using - knowing that would mean I could give you are far more accurate answer. rc.local mightnt even be an option on your machine.

 
> And, is there a way to mount them that would automatically log me into the
> Windows machine without manually putting in my password each time that the
> Linux machine is started?

Yes. Have a look at man smbmount. You will see options there that you can add the username and password as part of the mount command. Or you can save that uname passwd combination to a file, and use the credentials option.


Supply more details, we can provide a more detailed response!

Hamster





More information about the Techtalk mailing list