在这简要说明一下遇到的情况
1、磁盘已成功挂载,并且可以正常访问
2、samba网络共享设置完成
点击保存应用,在win10任务管理器死活看不见共享磁盘。在想着是不是samba是不是压根就没启动,然后谷歌一番samba启动的命令,无果,提示samba这个应用找不到
root@Openwrt:~# samba start
-ash: samba: not found
root@Openwrt:~# /mnt/sdc1 /etc/init.d^C
root@Openwrt:~#
root@Openwrt:~# /etc/init.d/samba4 start
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
root@Openwrt:~# /etc/init.d/smbd restart
-ash: /etc/init.d/smbd: not found
root@Openwrt:~# /etc/init.d/samba restart
-ash: /etc/init.d/samba: not found
root@Openwrt:~# /etc/init.d/samba4 restart
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
然后就是艰难的广泛的谷歌搜索,直到看到了这篇文章: 查看samba 开启失败的原因,非常有用,直接有效
输入命令: smbd -F -S
查看samba的启动日志
root@Openwrt:~# smbd -F -S
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libsmbd-base-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libauth-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/libdcerpc-server-core.so.0)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/libdcerpc-binding.so.0)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libmsrpc3-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/liblibsmb-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libgse-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libcli-spoolss-samba4.so)
Error loading shared library libgensec-samba4.so: I/O error (needed by /usr/lib/samba/libcli-smb-common-samba4.so)
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_have_feature: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_start_mech_by_oid: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_update: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_want_feature: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_server_start: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_session_info: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_init: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_update_recv: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_update_send: symbol not found
Error relocating /usr/lib/samba/libsmbd-base-samba4.so: gensec_expire_time: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_security_by_auth_type: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_set_remote_address: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_set_local_address: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_set_credentials: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_init: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_server_start: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_security_by_oid: symbol not found
Error relocating /usr/lib/samba/libauth-samba4.so: gensec_set_target_service_description: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_have_feature: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_sig_size: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_set_remote_address: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_set_local_address: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_want_feature: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_update_send: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_session_info: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_update_recv: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_get_name_by_authtype: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_set_target_service_description: symbol not found
Error relocating /usr/lib/libdcerpc-server-core.so.0: gensec_start_mech_by_authtype: symbol not found
Error relocating /usr/lib/libdcerpc-binding.so.0: gensec_sign_packet: symbol not found
Error relocating /usr/lib/libdcerpc-binding.so.0: gensec_seal_packet: symbol not found
Error relocating /usr/lib/libdcerpc-binding.so.0: gensec_unseal_packet: symbol not found
Error relocating /usr/lib/libdcerpc-binding.so.0: gensec_check_packet: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_check_packet: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_have_feature: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_sign_packet: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_set_credentials: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_set_target_service: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_sig_size: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_session_key: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_seal_packet: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_set_target_hostname: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_update: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_unseal_packet: symbol not found
Error relocating /usr/lib/samba/libmsrpc3-samba4.so: gensec_want_feature: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_start_mech_by_oid: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_security_by_auth_type: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_security_by_name: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_client_start: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_set_target_service: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_start_mech_by_sasl_list: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_set_target_hostname: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_session_key: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_start_mech_by_name: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_want_feature: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_set_credentials: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_update_send: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_init: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_ntlmssp_server_domain: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_set_max_update_size: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_update_recv: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_security_by_oid: symbol not found
Error relocating /usr/lib/samba/liblibsmb-samba4.so: gensec_start_mech_by_authtype: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_magic_check_krb5_oid: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_setting_int: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_have_feature: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_get_target_principal: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_generate_session_info_pac: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_get_target_hostname: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_get_credentials: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_get_target_service: symbol not found
Error relocating /usr/lib/samba/libgse-samba4.so: gensec_get_remote_address: symbol not found
Error relocating /usr/lib/samba/libcli-spoolss-samba4.so: gensec_get_credentials: symbol not found
Error relocating /usr/lib/samba/libcli-smb-common-samba4.so: gensec_wrap: symbol not found
Error relocating /usr/lib/samba/libcli-smb-common-samba4.so: gensec_unwrap: symbol not found
root@Openwrt:~#
好家伙,人都看傻了,这一大串是什么鬼。凭借我九年义务教育的智慧,我看到了 needed
这个单词,这分明就是缺少了某些运行必须的文件,去谷歌了一番,无果。只能是死马当活马医了。
卸载samba4-server
重装luci-i18n-samba4-zh-cn
root@Openwrt:~# opkg install luci-i18n-samba4-zh-cn
Installing luci-i18n-samba4-zh-cn (git-21.103.42737-1ae6877) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/luci/luci-i18n-samba4-zh-cn_git-21.103.42737-1ae6877_all.ipk
Installing libtasn1 (4.16.0-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libtasn1_4.16.0-1_x86_64.ipk
Installing liburing (2.0-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/liburing_2.0-1_x86_64.ipk
Installing libpam (1.5.1-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libpam_1.5.1-1_x86_64.ipk
Installing attr (2.5.1-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/attr_2.5.1-1_x86_64.ipk
Installing samba4-libs (4.13.4-2) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/samba4-libs_4.13.4-2_x86_64.ipk
^CInterrupted. Writing out status database.
root@Openwrt:~# opkg install luci-i18n-samba4-zh-cn
Installing luci-i18n-samba4-zh-cn (git-21.103.42737-1ae6877) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/luci/luci-i18n-samba4-zh-cn_git-21.103.42737-1ae6877_all.ipk
Installing samba4-server (4.13.4-2) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/packages/samba4-server_4.13.4-2_x86_64.ipk
Installing luci-app-samba4 (git-20.179.75976-ec03451) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/luci/luci-app-samba4_git-20.179.75976-ec03451_all.ipk
Configuring samba4-server.
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
grep: /proc/kallsyms: No such file or directory
Configuring luci-app-samba4.
Configuring luci-i18n-samba4-zh-cn.
Collected errors:
* resolve_conffiles: Existing conffile /etc/config/samba4 is different from the conffile in the new package. The new conffile will be placed at /etc/config/samba4-opkg.
报错不用管,我也不知到为什么报错,但是软件可以正常使用
双向传输10G大文件也没有发现什么问题.
{lamp/}
2021-05-06 20:16:51 星期四
Comments NOTHING