rc.local开机自动挂载NFS无效问题

利用路由器搭建了一个NFS服务,想挂载到树莓派上以扩充存储空间。在树莓派上手动挂载没有任何问题,但添加到 /etc/rc.local 后不能实现开机自动挂载,开机后手动挂载也是没有问题的。

经过实验发现:rc.local确实运行了,运行到rc.local时NFS服务还没有启动,导致挂载失败。

解决方法:
就是在挂载命令前面加个sleep,等NFS服务完全启动后再挂载。加上时间参数后最好让该命令后台运行测试下。规则参考如下:

sleep 10s && sudo mount -t nfs -o nolock 192.168.66.1:/mnt/pi /mnt/nfs &

rc.local开机自动挂载NFS无效问题》有3个想法

  1. diego ponce de leon

    Hi Dear,

    the BG3IQS SDR is not working properly for long time, the page open but is frizzed. this is a mantenance problem or something is broken?

    kind regards,
    Diego
    cx4di

    image

    回复
    1. BG3IQS 文章作者

      Hello!

      The SDR hardware is RTL-2832, which has a high operating temperature and is unstable. In addition, the csdr work takes up a lot of memory, which can easily cause a program to crash. I can only maintain it when I am not busy, thank you for your attention!

      vy73
      bg3iqs

      回复

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注