Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing issue once client reboots

Status
Not open for further replies.

MercJones

IS-IT--Management
Aug 2, 2007
29
GB
Hi there.

Heres a bit of background info:

I've got a linux server running Ubuntu, and a windows 2000 client pc.

Ive made a folder on the windows 2000 client pc and have shared that, and have then done the following in my terminal:

sudo smbmount //newit/sharetest /home/newit -o username=administrator,password=pass,dmask=777,fma sk=777,rw

which worked fine, and basically /home/newit takes me to the client C:\sharetest which is perfect.

All was going well until this morning.

I ssh'd to my linux server, went to /home and performed a "ls"

this took AGES...

I then connected via another client using winscp to my linux server, I can navigate to any directory fine, but as soon as I goto the /home directory I get:

says Host has not answered for more than 15 seconds. Still waiting... followed by: Error listing directory '/home'. and Error changing directory to '/home'.

I know this is because the client(win 2000) pc has been rebooted, as ive just tested this again, but the linux server hasnt been rebooted..

I've got around this issue, well, managed to get it working by doing:

sudo smbumount /home/newit to unmount it, and then remounting it again with the above command, and all is well again, I can do "ls" and its instant, and I can get in the home folder.

Any ideas why this is? or what I can do to stop it? client pcs get turned off each day, and to have this issue every day is going to be a real pain.

Any ideas please?
 
man smbmount would be one.

It also leads you to type man smb.conf

That has a few (actually more than a few) settings, such as a keepalive option and a "reset on zero vc" that you can play with. That is just the first glance. There might be more useful options...

+++ Despite being wrong in every important aspect, that is a very good analogy +++
Hex (in Darwin's Watch)
 
I've added reset on zero vc = yes to the /etc/samba/smb.conf file, but it still doesnt seem to keep the share as it should:

Also, is that the right directory, ive also got these listed:

./etc/samba/smb.conf
./usr/share/doc/samba-doc/examples/dce-dfs/smb.conf
./usr/share/doc/samba-doc/examples/pdb/mysql/smb.conf
./usr/share/doc/samba-doc/examples/tridge/smb.conf
./usr/share/samba/smb.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top