[Samba] Mounting Samba client
Marijan Vidmar
marijan.vidmar at inea.si
Thu Jan 8 11:17:15 GMT 2004
Very often we could not mount clients via smbmount. In case of error there
is a following log (debug level 10).
Any hint/suggestion would be great.
Samba version 3.0.1
Marijan
---------------Log start-----------------------------------------------
[root at nas vidmar]# mount -t smbfs -o
username=backup,password=Backup1,debug=10 //mvidxp/smback0$ /home/smbmount
mount.smbfs started (version 3.0.1)
added interface ip=193.2.16.157 bcast=193.2.16.255 nmask=255.255.255.0
internal_resolve_name: looking up mvidxp#20
Opening cache file at /var/lib/samba/gencache.tdb
tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 lck_type=13:
Resource temporarily unavailable
Returning expired cache entry: key = NBT/MVIDXP#20, value = 193.2.16.100:0,
timeout = Thu Jan 8 12:12:17 2004
no entry for mvidxp#20 found.
Deleting cache entry (key = NBT/MVIDXP#20)
resolve_lmhosts: Attempting lmhosts lookup for name mvidxp<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_wins: Attempting wins lookup for name mvidxp<0x20>
Cache entry with key = WINS_SRV_DEAD/127.0.0.1,0.0.0.0 couldn't be found
wins_srv_is_dead: 127.0.0.1 is alive
resolve_wins: using WINS server 127.0.0.1 and tag '*'
bind succeeded on port 0
Sending a packet of len 50 to (127.0.0.1) on port 137
read_udp_socket: lastip 127.0.0.1 lastport 137 read: 62
parse_nmb: packet id = 6861
Received a packet of len 62 from (127.0.0.1) port 137
nmb packet from 127.0.0.1(137) header: id=6861 opcode=Query(0) response=Yes
header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=MVIDXP<20> rr_type=32 rr_class=1 ttl=288559
answers 0 char @....d hex 4000C1021064
Got a positive name query response from 127.0.0.1 ( 193.2.16.100 )
remove_duplicate_addrs2: looking for duplicate address/port pairs
namecache_store: storing 1 address for mvidxp#20: 193.2.16.100:0
Adding cache entry with key = NBT/MVIDXP#20; value = 193.2.16.100:0 and
timeout = Thu Jan 8 12:26:36 2004
(660 seconds ahead)
internal_resolve_name: returning 1 addresses: 193.2.16.100:0
Connecting to 193.2.16.100 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
22226: session request ok
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 101
size=101
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=22226
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 227 (0xE3)
smb_vwv[11]=60672 (0xED00)
smb_vwv[12]=43384 (0xA978)
smb_vwv[13]=55485 (0xD8BD)
smb_vwv[14]=50133 (0xC3D5)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=32
[000] 99 72 2D 08 A7 9D 17 FF 49 00 44 00 4F 00 4D 00 .r-.§..ÿ I.D.O.M.
[010] 00 00 4D 00 56 00 49 00 44 00 58 00 50 00 00 00 ..M.V.I. D.X.P...
size=101
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=22226
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 17 (0x11)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]= 0 (0x0)
smb_vwv[ 8]= 0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]= 227 (0xE3)
smb_vwv[11]=60672 (0xED00)
smb_vwv[12]=43384 (0xA978)
smb_vwv[13]=55485 (0xD8BD)
smb_vwv[14]=50133 (0xC3D5)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=32
[000] 99 72 2D 08 A7 9D 17 FF 49 00 44 00 4F 00 4D 00 .r-.§..ÿ I.D.O.M.
[010] 00 00 4D 00 56 00 49 00 44 00 58 00 50 00 00 00 ..M.V.I. D.X.P...
Serverzone is -3600
write_socket(4,136)
write_socket(4,136) wrote 136
got smb length of 35
size=35
smb_com=0x73
smb_rcls=3
smb_reh=0
smb_err=31
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=22226
smb_uid=0
smb_mid=2
smt_wct=0
smb_bcc=0
22226: session setup failed: ERRHRD - ERRgeneral (General failure.)
SMB connection failed
---------------Log end -----------------------------------------------
More information about the samba
mailing list