[Techtalk] init scripts

Conor Daly conor.daly at oceanfree.net
Wed Jul 10 18:42:13 EST 2002


On Tue, Jul 09, 2002 at 07:21:22PM +0200 or so it is rumoured hereabouts, 
Hamster thought:
> > 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.

Haven't time to post details but check out LinNeighbourhood for browsing
MS Win machines and automatically mounting them...

Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  6:50pm  up 48 days,  4:07,  0 users,  load average: 0.00, 0.01, 0.00
Hobbiton.cod.ie
  6:41pm  up 21 days, 18:03,  1 user,  load average: 0.19, 0.14, 0.09



More information about the Techtalk mailing list