[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: smbmount via /etc/fstab?



*- Marc Haber wrote about "smbmount via /etc/fstab?"
> Hi!
> 
> My Linux box does not have a CD-ROM drive (and it's stacked away in
> the closet anyway, so I'd not want to use a CD-ROM drive connected
> there directly if it had one) so I usually access CDs by smbmounting
> the CD-ROM drive from my Windows NT box on my desk.
> 
> To do so, I currently have to sudo smbmount with the full parameter
> set which I consider a nuisance.
> 
> I tried entering //janeway/cdrom /cdrom smb or smbfs into my
> /etc/fstab but that doesn't seem to work :-(
> 
> How can I do smbmounts via /etc/fstab?
> 
> Any hints will be appreciated.
> 
> Greetings
> Marc
> 

I don't think fstab supports smbfs yet.  I use autofs to mount the
shares as needed.  You will have to compile the kernel with automounter
support and install the autofs package.

This is my setup for mounting my samba shares.

#/etc/auto.master

/ang    /etc/auto.ang

#/etc/auto.ang
c       -fstype=smbfs,guest,uid=0,gid=35,filemod=770 ://angela/c
d       -fstype=smbfs,guest,uid=0,gid=35,filemod=770 ://angela/d
cd      -fstype=smbfs,guest,uid=0,gid=35,filemod=770 ://angela/cd

The option to pass to smbmount are (from the autofs mount_smbfs.c
source)

"nocaps",    "-C"
"guest",     "-n"
"passwd",    "-P"
"srvname",   "-s"
"mysmbname", "-c"
"login",     "-U"
"uid",       "-u"
"gid",       "-g"
"filemod",   "-f"
"dirmod",    "-d"
"port",      "-p"
"maxxmit",   "-m"

So do get at the cd on the Win machine I just cd to /ang/cd and it is
auto mounted.  Of course it only mounts it a smbfs type so you will
loose rockridge extensions.

-- 
Brian 
---------------------------------------------------------------------
"Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes." 
							   - unknown  

Mechanical Engineering                              servis@purdue.edu
Purdue University                   http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------


Reply to: