Rodrigo Noroaldo de Castro Fernandes
2004-May-06 12:58 UTC
[Samba] SMBCLIENT: error on mounting
Dear all, I use smbmount on a script. The package used is (SuSe 7.2): "... root@gprod:~ > which smbmount /usr/bin/smbmount root@gprod:~ > rpm -qf /usr/bin/smbmount smbclnt-2.2.0-15 root@gprod:~ > ls -l /usr/bin/smbmount -rwsr-sr-t 1 root root 497224 May 12 2001 /usr/bin/smbmount root@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@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