Win95 share going in and out of df under smbfs?

Keith G. Murphy keithmur at mindspring.com
Tue Sep 5 16:23:25 GMT 2000


Urban Widmark wrote:
> 
> On Wed, 30 Aug 2000, Keith G. Murphy wrote:
> 
> > Is this a known problem?
> 
> No. I have never heard of this re-appearing act.
> 
> > A Win95 share that I mounted under smbfs will show up as mounted in df,
> > and even contain the correct Used/Available info.  If I do an 'ls' on
> > the mountpoint, I see no files.  If I 'umount' the share, I get the 'not
> > mounted' error, but then no longer see the share in df.
> 
> Maybe it never actually mounted anything but it wrote something in
> /etc/mtab. As root:
> 
> # df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/sda1               202220    136282     55498  71% /
> ...
> /dev/sda11             3059728   1060632   1843672  37% /mnt/data
> # echo "/dev/sda5 /mnt/empty ext2 ro 0 0" >> /etc/mtab
> # df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/sda1               202220    136282     55498  71% /
> ...
> /dev/sda11             3059728   1060632   1843672  37% /mnt/data
> /dev/sda5               202220    136282     55498  71% /mnt/empty
> # ls -alF /mnt/empty
> total 2
> drwxr-xr-x   2 root     root         1024 Apr 14 17:57 ./
> drwxr-xr-x  19 root     root         1024 Jul 31 17:44 ../
> # umount /mnt/empty
> umount: /dev/sda5: not found
> umount: /mnt/empty: not mounted
> 
> Some differences from your description, mainly that the used/available
> isn't at all right.
> 
> 'cat /proc/mounts' shows what is actually mounted. df and mount both trust
> /etc/mtab for what to display (at least the versions I have).

Thanks for your reply.  Don't know what could be incorrectly updating
/etc/mtab.
> 
> > I just noticed the opposite (of sorts) also happens.  I performed the
> > sequence below within the space of a few seconds.  The share really is
> > mounted, but the first df I performed did not show it.  Notice also that
> > the 2nd df does *not* show the correct Used/Available info.
> 
> This is very strange. "old" mount programs would have trouble mounting
> smbfs, causing a delay between the mount command and when the mount
> becomes useable.

This is not happening right after a mount.
> 
> accountant_c is not under automounter control? That could be an idea why
> it suddenly appears.

It is not under automounter control.  It is mounted by a backup script.
> 
> Any funny kernel log messages?
> 
I do get this occasionally:

Sep  5 06:28:12 debserver kernel: smb_get_length: recv error = 5
Sep  5 06:28:12 debserver kernel: smb_request: result -5, setting
invalid
Sep  5 06:28:13 debserver kernel: smb_retry: new pid=1942, generation=9
Sep  5 06:28:13 debserver kernel: smb_retry: signal failed, error=-3
Sep  5 06:28:13 debserver kernel: smb_retry: signal failed, error=-3




More information about the samba mailing list