smbmount from fstab

Steve Litt slitt at troubleshooters.com
Wed Nov 24 21:45:28 GMT 1999


Thanks Urban,

I confirm that

>//server/share    /mnt/tmp   smbfs   username=urban,password=xxx  0 0

works, although in my case since I was mounting a share mode share from a
w98 box I needed to eliminate the username=whatever. Once again, I'm using
Samba 2.0.6 on almost stock Red Hat 6.0. I also confirm your 

>cola:~#mount error: Device or resource busy

I got the following in my boot.log:

Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded
Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy
Nov 24 11:38:26 mainserv portmap: portmap startup succeeded
Nov 24 11:38:27 mainserv netfs: Mounting SMB filesystems succeeded
Nov 24 11:38:27 mainserv mount: mount error: Device or resource busy
Nov 24 11:38:27 mainserv netfs: Mounting other filesystems succeeded

As did you, I found the mount succeeded in spite of the error messages.
Thanks Buddy! Thanks also to Gerry Creager. Gerry, I'll be trying your
method with pid and gid later. 

Thanks everyone

Steve Litt


At 02:34 AM 11/25/1999 +1100, you wrote:
>On Wed, 24 Nov 1999, Steve Litt wrote:
>
>> I've seen several references to running smbmount from /etc/fstab, but I've
>> never seen an example. Does anyone have an example fstab entry that does
this?
>
>I just tested it with:
>
>//server/share    /mnt/tmp   smb   username=urban,password=xxx  0 0
>
>I have an old version of mount so I get an error like this:
>
>cola:~#mount error: Device or resource busy
>Please refer to the smbmnt(8) manual page
>smbmnt failed: 255
>mount.smb: ioctl failed, res=-1
>Could not umount /mnt/tmp: Device or resource busy
>
>
>But the mount works. The latest util-linux is supposed to fix this I
>believe.
>
>/Urban
>
>



More information about the samba mailing list