Win95 share going in and out of df under smbfs?

Keith G. Murphy keithmur at mindspring.com
Wed Aug 30 15:28:50 GMT 2000


Is this a known problem?

I've seen this problem both under 2.0.6 and 2.0.7, on my Debian Linux
system (kernel 2.2.14):

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.

This whole thing is a particular pain if you're trying to write Perl
scripts that do things based on whether shares are mounted, since
Filesys::Diskfree seems the best way to tell, but this problem breaks
it, since it apparently relies on df.

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.

root at debserver:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1              1981000    608800   1269788  32% /
/dev/hda3              2858128   1032622   1677708  38% /var
/dev/hdc1               794118    445793    307301  59% /usr
/dev/hdc3               189335    159760     19798  89% /home
root at debserver:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1              1981000    608800   1269788  32% /
/dev/hda3              2858128   1032636   1677694  38% /var
/dev/hdc1               794118    445793    307301  59% /usr
/dev/hdc3               189335    159760     19798  89% /home
//ACCOUNTANT/C         2096832         0   2096832   0%
/mnt/accountant_c
root at debserver:~# ls /mnt/accountant_c
AUTOEXEC.BAT  CONFIG.WIN  MSDOS.SYS      SCANDISK.LOG  ffastun.ffa  
qdata
BOOTLOG.PRV   DETLOG.OLD  My Documents   SETUPLOG.TXT  ffastun.ffl
BOOTLOG.TXT   DETLOG.TXT  NETLOG.TXT     SUHDLOG.DAT   ffastun.ffo
BackupQB      IO.SYS      OEMROM.BIN     SYSTEM.1ST    ffastun0.ffx
COMMAND.COM   LWRITE      Program Files  WINDOWS       logo.sys
CONFIG.SYS    MSDOS.---   RECYCLED       debbie        prime




More information about the samba mailing list