OpenEdv-开源电子网
标题:
linux开发板stm32135,在/etc/init.d下添加开机自启动脚本mount nfs出错
[打印本页]
作者:
HHstm
时间:
2023-5-27 23:36
标题:
linux开发板stm32135,在/etc/init.d下添加开机自启动脚本mount nfs出错
在开发板/etc/init.d目录下添加Smount开机自启动脚本,内容如下:
mount -t nfs -o nolock,vers=3 192.168.3.35:/home/book/nfs /mnt
开发板启动后报错:mount: mounting 192.168.3.35:/home/book/stm32mp135/nfs on /mnt failed: Network is unreachable
说明:ubuntu防火墙已关闭。
-------------------------------------------------------------------------------------------------------------------------------------------------
但是当开发板正常启动进入命令行后手动执行:mount -t nfs -o nolock,vers=3 192.168.3.35:/home/book/nfs /mnt可以挂载成功。
请问是不能在开机自启动中mount nfs吗?
作者:
lf19880813
时间:
2023-7-12 07:38
请问楼主问题解决了吗?
作者:
shengzhusheng
时间:
2023-8-18 09:30
那时网卡还没启动好吧
作者:
shengzhusheng
时间:
2023-8-18 09:31
那时网卡还没拿到ip吧
欢迎光临 OpenEdv-开源电子网 (http://47.111.11.73/)
Powered by Discuz! X3.4