Dear all,

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

        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
  [EMAIL PROTECTED]

  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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to