V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dasenlin
V2EX  ›  Raspberry Pi

树莓派无法启动 nmbd.service 请帮忙分析下原因

  •  
  •   dasenlin · 2018-06-04 10:45:38 +08:00 · 4505 次点击
    这是一个创建于 2364 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天突然发现不能用共享名 \raspberrypi 打开局域网共享了,用\192.168.1.111 的 ip 形式可以打开

    root@raspberrypi:~# /etc/init.d/samba restart [....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details. failed!

    root@raspberrypi:~# systemctl status nmbd.service ● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd) Loaded: loaded (/etc/init.d/nmbd) Active: failed (Result: exit-code) since Mon 2018-06-04 10:39:25 CST; 35s ago Process: 5968 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)

    Jun 04 10:39:25 raspberrypi nmbd[5968]: Segmentation fault Jun 04 10:39:25 raspberrypi nmbd[5968]: Starting NetBIOS name server: nmbdSegmentation fault Jun 04 10:39:25 raspberrypi nmbd[5968]: failed! Jun 04 10:39:25 raspberrypi systemd[1]: nmbd.service: control process exited, code=exited status=1 Jun 04 10:39:25 raspberrypi systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd). Jun 04 10:39:25 raspberrypi systemd[1]: Unit nmbd.service entered failed state.

    root@raspberrypi:~# journalctl -xn -- Logs begin at Mon 2018-06-04 09:37:52 CST, end at Mon 2018-06-04 10:40:15 CST. -- Jun 04 10:39:25 raspberrypi systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd). -- Subject: Unit nmbd.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

    -- Unit nmbd.service has failed.

    -- The result is failed. Jun 04 10:39:25 raspberrypi systemd[1]: Unit nmbd.service entered failed state. Jun 04 10:40:01 raspberrypi CRON[6013]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6014]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6015]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6024]: (root) CMD (. /etc/profile; /bin/bash /root/monitor.sh >/dev/null 2>&1)

    发现是 nmbd 服务启动不了,昨天装了个 ftp,不知是不是因为这个破坏了相关文件

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2740 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 12:07 · PVG 20:07 · LAX 04:07 · JFK 07:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.