[Samba] Can't write mount entrysmbmnt failed: 1

David Wuertele dave-gnus at bfnet.com
Tue Aug 19 19:49:35 GMT 2003


I've compiled and installed samba-2.2.8a on an embedded linux/uClibc
system, and I'm having problems using smbmount.  I've appended the
debuglevel=10 output of smbmount.  What does smbmount mean when it
says it "Can't write mount entry"?  I tried running it under strace to
see what it was writing to, but all I saw was:

  rt_sigaction(SIGTERM, {0x10000000, [], 0x408160}, {SIG_DFL}, 16) = 0
  fork(Process 410 attached
  )                                  = 410
  [pid   409] wait4(410, Process 409 suspended
  Can't write mount entrysmbmnt failed: 1

Which didn't tell me much.  Any suggestions?

/ # /bin/smbmount //rave/share /tmp/rave -o username=guest,guest,ro
INFO: Debug class all level = 10   (pid 397 from pid 397)
doing parameter workgroup = ROKU
doing parameter include = /etc/smb.interfaces
params.c:pm_process() - Processing configuration file "/etc/smb.interfaces"
doing parameter interfaces = 192.168.0.159/24
doing parameter server string = d-192.168.0.159
doing parameter netbios name = d-192.168.0.159
handle_netbios_name: set global_myname to: D-192.168.0.159
doing parameter log file = /mnt/flash0/sambalog/%m.log
doing parameter security = share
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = no
doing parameter encrypt passwords = yes
doing parameter null passwords = yes
doing parameter domain master = no
doing parameter local master = no
doing parameter preferred master = no
doing parameter map to guest = Bad User
doing parameter guest account = root
doing parameter browseable = yes
doing parameter public = yes
doing parameter writable = yes
doing parameter read only = no
doing parameter printable = no
doing parameter guest ok = yes
doing parameter guest only = yes
doing parameter guest account = root
doing parameter force create mode = 0777
doing parameter force directory mode = 0777
doing parameter force user = root
doing parameter force group = root
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: ROLE_STANDALONE
opts: username=guest
opts: guest
opts: ro
mount.smbfs started (version 2.2.8a)
codepage_initialise: client code page = 850
load_client_codepage: loading codepage 850.
Adding chars 0x85 0xb7 (l->u = True) (u->l = True)
Adding chars 0xa0 0xb5 (l->u = True) (u->l = True)
Adding chars 0x83 0xb6 (l->u = True) (u->l = True)
Adding chars 0xc6 0xc7 (l->u = True) (u->l = True)
Adding chars 0x84 0x8e (l->u = True) (u->l = True)
Adding chars 0x86 0x8f (l->u = True) (u->l = True)
Adding chars 0x91 0x92 (l->u = True) (u->l = True)
Adding chars 0x87 0x80 (l->u = True) (u->l = True)
Adding chars 0x8a 0xd4 (l->u = True) (u->l = True)
Adding chars 0x82 0x90 (l->u = True) (u->l = True)
Adding chars 0x88 0xd2 (l->u = True) (u->l = True)
Adding chars 0x89 0xd3 (l->u = True) (u->l = True)
Adding chars 0x8d 0xde (l->u = True) (u->l = True)
Adding chars 0xa1 0xd6 (l->u = True) (u->l = True)
Adding chars 0x8c 0xd7 (l->u = True) (u->l = True)
Adding chars 0x8b 0xd8 (l->u = True) (u->l = True)
Adding chars 0xd0 0xd1 (l->u = True) (u->l = True)
Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
Adding chars 0x95 0xe3 (l->u = True) (u->l = True)
Adding chars 0xa2 0xe0 (l->u = True) (u->l = True)
Adding chars 0x93 0xe2 (l->u = True) (u->l = True)
Adding chars 0xe4 0xe5 (l->u = True) (u->l = True)
Adding chars 0x94 0x99 (l->u = True) (u->l = True)
Adding chars 0x9b 0x9d (l->u = True) (u->l = True)
Adding chars 0x97 0xeb (l->u = True) (u->l = True)
Adding chars 0xa3 0xe9 (l->u = True) (u->l = True)
Adding chars 0x96 0xea (l->u = True) (u->l = True)
Adding chars 0x81 0x9a (l->u = True) (u->l = True)
Adding chars 0xec 0xed (l->u = True) (u->l = True)
Adding chars 0xe7 0xe8 (l->u = True) (u->l = True)
Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
load_dos_unicode_map: 850
load_unicode_map: loading unicode map for codepage 850.
load_unix_unicode_map: ISO8859-1 (init_done=0, override=0)
load_unicode_map: loading unicode map for codepage ISO8859-1.
added interface ip=192.168.0.159 bcast=192.168.0.255 nmask=255.255.255.0
resolve_lmhosts: Attempting lmhosts lookup for name rave<0x20>
startlmhosts: Can't open lmhosts file /etc/lmhosts. Error was No such file or directory
resolve_hosts: Attempting host lookup for name rave<0x20>
resolve_wins: Attempting wins lookup for name rave<0x20>
wins_srv_count: WINS status: 0 servers.
resolve_wins: WINS server resolution selected and no WINS servers listed.
name_resolve_bcast: Attempting broadcast lookup for name rave<0x20>
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 1
socket option SO_BROADCAST = 1
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 65535
socket option SO_RCVBUF = 65535
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Sending a packet of len 50 to (192.168.0.255) on port 137
read_udp_socket: lastip 192.168.0.150 lastport 137 read: 62
parse_nmb: packet id = 23970
Received a packet of len 62 from (192.168.0.150) port 137
nmb packet from 192.168.0.150(137) header: id=23970 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=RAVE<20> rr_type=32 rr_class=1 ttl=259200
    answers   0 char ......   hex 0000C0A80096
Got a positive name query response from 192.168.0.150 ( 192.168.0.150 )
tdb(unknown): tdb_open_ex: could not open file /var/lock/subsys/unexpected.tdb: No such file or directory
tdb(unknown): tdb_open_ex: could not open file /var/lock/subsys/unexpected.tdb: No such file or directory
tdb(unknown): tdb_open_ex: could not open file /var/lock/subsys/unexpected.tdb: No such file or directory
internal_resolve_name: returning 1 addresses: 192.168.0.150 
Connecting to 192.168.0.150 at port 139
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
write_socket(3,72)
write_socket(3,72) wrote 72
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
397: session request ok
write_socket(3,168)
write_socket(3,168) wrote 168
got smb length of 82
size=82
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=397
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=6 (0x6)
smb_vwv[1]=12802 (0x3202)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=65 (0x41)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=47616 (0xBA00)
smb_vwv[8]=24 (0x18)
smb_vwv[9]=63744 (0xF900)
smb_vwv[10]=227 (0xE3)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=37537 (0x92A1)
smb_vwv[13]=35470 (0x8A8E)
smb_vwv[14]=50022 (0xC366)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]=2049 (0x801)
smb_bcc=13
[000] AB 8B E3 C0 37 46 FB CA  52 4F 4B 55 00           ....7F.. ROKU.
size=82
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=397
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=6 (0x6)
smb_vwv[1]=12802 (0x3202)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=1024 (0x400)
smb_vwv[4]=65 (0x41)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=47616 (0xBA00)
smb_vwv[8]=24 (0x18)
smb_vwv[9]=63744 (0xF900)
smb_vwv[10]=227 (0xE3)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=37537 (0x92A1)
smb_vwv[13]=35470 (0x8A8E)
smb_vwv[14]=50022 (0xC366)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]=2049 (0x801)
smb_bcc=13
[000] AB 8B E3 C0 37 46 FB CA  52 4F 4B 55 00           ....7F.. ROKU.
write_socket(3,88)
write_socket(3,88) wrote 88
got smb length of 84
size=84
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=397
smb_uid=0
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=1 (0x1)
smb_bcc=43
[000] 55 6E 69 78 00 53 61 6D  62 61 20 32 2E 32 2E 37  Unix.Sam ba 2.2.7
[010] 61 2D 73 65 63 75 72 69  74 79 2D 72 6F 6C 6C 75  a-securi ty-rollu
[020] 70 2D 66 69 78 00 52 4F  4B 55 00                 p-fix.RO KU.
size=84
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=397
smb_uid=0
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=1 (0x1)
smb_bcc=43
[000] 55 6E 69 78 00 53 61 6D  62 61 20 32 2E 32 2E 37  Unix.Sam ba 2.2.7
[010] 61 2D 73 65 63 75 72 69  74 79 2D 72 6F 6C 6C 75  a-securi ty-rollu
[020] 70 2D 66 69 78 00 52 4F  4B 55 00                 p-fix.RO KU.
397: session setup ok
write_socket(3,67)
write_socket(3,67) wrote 67
got smb length of 49
size=49
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=397
smb_uid=0
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=1 (0x1)
smb_bcc=8
[000] 41 3A 00 4E 54 46 53 00                           A:.NTFS. 
397: tconx ok
Can't write mount entrysmbmnt failed: 1
/ # 




More information about the samba mailing list