Disappearing Mounts

Grant grant at conprojan.com.au
Wed Jan 10 11:34:20 GMT 2001


I hope this helps, please slap me if it doesn't. Come to writing time, I
don't think this is going to help much...

(1) I am using mount.smbfs so that I can mount Windows shares to perform
crontab tasks and other various automation from the Linux side. Like
backing up files from the Linux machine to the Windows 2000 machine.

(2) I have set the disconnection timeout on the Windows 2000 registry to
65535 and this did not stop the mount from being disconnected.

Below are  procedures I undertook to give as much information
regarding the mounting and timeout of Windows 2000 Professional SP1
shares.

------------------------------------------------------------------------------------------

[root]# mount -t smbfs -o
username=USERNAME,password=PASSWORD,uid=root,gid=root,dmask=0777
//win2k/share /mount/dir

[root]# ps auwwx | grep mount
root     24596  0.0  0.8  1840 1072 ?        S    19:58   0:00
/sbin/mount.smbfs //win2k/share /mount/dir -o rw username USERNAME
password XXXXXXX uid root gid root dmask 0777

[root]# mount
//win2k/share on /mount/dir type smbfs (0)

[root]# date
Wed Jan 10 19:58:54 EST 2001

[root]# exit

------------------------------------------------------------------------------------------

[root]# date
Wed Jan 10 21:14:14 EST 2001

[root]# cd /mount/dir

[root]# ls -l
ls: dir: Broken pipe
total 0

[root]# ps auwwx | grep mount
root     24596  0.0  0.9  1976 1204 ?        D    19:58   0:00
/sbin/mount.smbfs //win2k/share /mount/dir -o rw username USERNAME
password XXXXXXX uid root gid root dmask 0777

[root]# ls -l

It lists no files, as the share is no longer mounted.

[root]# ps auwwx | grep mount 

mount.smbfs is no longer running.

[root]# mount
//win2k/share on /mount/dir type smbfs (0)





More information about the samba mailing list