[Samba] SMBCLIENT: error on mounting

Rodrigo Noroaldo de Castro Fernandes r.fernandes at darumaorga.com.br
Thu May 6 12:58:00 GMT 2004


Dear all,

	I use smbmount on a script. The package used is (SuSe 7.2):
"...
root at gprod:~ > which smbmount
/usr/bin/smbmount
root at gprod:~ > rpm -qf /usr/bin/smbmount
smbclnt-2.2.0-15
root at gprod:~ > ls -l /usr/bin/smbmount
-rwsr-sr-t    1 root     root       497224 May 12  2001
/usr/bin/smbmount
root at gprod:~ >
..."

	This script runs on crontab each 20 minutes.

	It uses the follow line to mount the remoteWinNT shared folder:
"...
/usr/bin/smbmount "//WinNTSever/shared_folder" /mnt/xfer -o
username=user1,password=******,fmask=750,dmask=750,uid=507,gid=104
..."

	After mounted, the script lists, copies and moves some files from there
to local folders.

	Some times, this script fails to list, copy and move these files... :-(

	I could check the reason is because the smbmount falied.
	
	The error message:
"...
Can't get /etc/mtab~ lock filesmbmnt failed: 1
..."

Followed by the other command falied messages:
"...
ls: /mnt/xfer/DIR/F0005161: Input/output error
cp: cannot stat `/mnt/xfer/DIR/F0005161': Input/output error
mv: cannot stat `/mnt/xfer/DIR/F0005161': Input/output error
ls: /mnt/xfer/TMP/F0005161.tmp: Input/output error
..."

The follow messages appeared on "/var/log/message":
"...
May  6 03:00:17 gprod kernel: smb_retry: no connection process
May  6 03:00:17 gprod kernel: smb_lookup: find //DIR failed, error=-5
May  6 03:00:17 gprod kernel: smb_lookup: find //DIR failed, error=-5
May  6 03:00:17 gprod kernel: smb_lookup: find //TMP failed, error=-5
May  6 03:00:17 gprod kernel: smb_lookup: find //DIR failed, error=-5
May  6 03:00:17 gprod kernel: smb_lookup: find //TMP failed, error=-5
..."

	What does this error message mean? (Can't get /etc/mtab~ lock
filesmbmnt failed: 1)

	How can i correct this?

Regards
-- 
  Rodrigo Noroaldo de Castro Fernandes
  r.fernandes at darumaorga.com.br

  DARUMA ORGA Card Systems S/A
  Technology Division

  Av. Independencia 3451,  Taubate,  Sao Paulo,  BRAZIL,   12.032-000
  Tel: +55 12 281-1900 X 109/110/111             Fax: +55 12 281-1909
  Hot Line: +55 12 281-1925,     Mo to Fr, 08:00 to 17:00,      UTC-3

  www.darumaorga.com.br       www.orga.com


More information about the samba mailing list