Unable To Mount NFS Drive

  • Hello,

    I am trying to mount a NAS drive to be used by Plex Media Server, but am having some difficulty. I can connect via NFS or SMB and am able to see/use the drive from Kodi. I have gone through the Libreelec wiki and attempted to mount via NFS and SMB, but am getting the same failure. Here is what I am doing:

    # nano /storage/.config/system.d/storage-media.mount

    [Unit]

    Description=smb mount script

    Requires=network-online.service

    After=network-online.service

    Before=kodi.service

    [Mount]

    What=192.168.1.40

    Where=/storage/media

    Options=username=plex,password=plex,rw,vers=2.1

    Type=cifs

    [Install]

    WantedBy=multi-user.target

    # systemctl start storage-media.mount

    Job for storage-media.mount failed.

    See "systemctl status storage-media.mount" and "journalctl -xe" for details.

    # systemctl status storage-media.mount

    ● storage-media.mount - smb mount script

    Loaded: loaded (/storage/.config/system.d/storage-media.mount; disabled; vend

    or preset: disabled)

    Active: failed (Result: exit-code) since Mon 2018-12-17 21:51:57 UTC; 47s ago

    Where: /storage/media

    What: 192.168.1.40

    Process: 2815 ExecMount=/usr/bin/mount 192.168.1.40 /storage/media -t cifs -o

    username=plex,password=plex,rw,vers=2.1 (code=exited, status=255)

    Dec 17 21:51:57 Media-Player systemd[1]: Mounting smb mount script...

    Dec 17 21:51:57 Media-Player systemd[1]: storage-media.mount: Mount process exit

    ed, code=exited status=255

    Dec 17 21:51:57 Media-Player systemd[1]: Failed to mount smb mount script.

    Dec 17 21:51:57 Media-Player systemd[1]: storage-media.mount: Unit entered faile

    d state.

    I get the same failure when doing the above for NFS. Maybe I am missing something simple?? Any help would be greatly appreciated.

    Thanks

  • After searching around and playing with it, I was able to get this to work:

    # mount -t cifs -o username=plex,password=plex,rw //192.168.1.40/video /storage/media/video

    However, when I try to use this in systemd, I am getting a dependency error:

    # nano /storage/.config/system.d/storage-media-video.mount

    [Unit]

    Description=cifs mount script

    Requires=network-online.service

    After=network-online.service

    Before=kodi.service

    [Mount]

    What=//192.168.1.40/video

    Where=/storage/media/video

    Options=username=plex,password=plex,rw

    Type=cifs

    [Install]

    WantedBy=multi-user.target

    # systemctl enable storage-media-video.mount

    # systemctl status storage-media-video.mount

    ● storage-media-video.mount - cifs mount script

    Loaded: loaded (/storage/.config/system.d/storage-media-video.mount; enabled;

    vendor preset: disabled)

    Active: inactive (dead)

    Where: /storage/media/video

    What: //192.168.1.40/video

    Dec 18 22:54:57 Media-Player systemd[1]: Dependency failed for cifs mount script

    .

    Dec 18 22:54:57 Media-Player systemd[1]: storage-media-video.mount: Job storage-

    media-video.mount/start failed with result 'dependency'.

    I think I am close. Please let me know what I am missing.

    Thanks,

    Jim

  • Never mind on this. After I got the mount command to work and started playing with the Plex Media Server, I determined that Plex does not play well with the ARM architecture on my old Minix box, and does not want to stream a large percentage of the video formats in my library. Rather than covert my entire library, I am going to plan "B" and find another home for Plex Media Server.