I’m trying to mount my Synology NAS on a Raspberry Pi 4 with Raspian. I works when I do it the following command:

sudo mount -t nfs 192.168.178.**:/volume1/my_data / /home/pi/mount/NAS

but it doesn’t work with this entry in /etc/fstab:

192.186.178.**:/volume1/my_data /home/pi/mount/NAS nfs defaults 0 0

What am I doing wrong?

Edit: pro tip: make sure you get the IP addresses right so you won’t spend days chasing after a trivial error like some idiot. Don’t ask me how I know. Thanks to @Arlos for pointing that out.

  • Arlos
    link
    fedilink
    101 year ago

    I assume you’ve just twisted two numbers in the second octet. 186 but in the example above it’s 168

    Fix it and it should work.

  • @wmassingham
    link
    51 year ago

    What do you mean “doesn’t work”? Is there some error message in the log (dmesg, /var/log/messages, on the console, whatever raspbian uses)?

  • adONis
    link
    21 year ago

    after modifying /etc/fstab you’d have to manually run sudo mount -a for the settings to take effect.

  • @warmaster
    link
    21 year ago

    Filesharing drove me insane.

    I ended up ripping the HDDs and putting them on my server, then proceeded to share the drives as normal. My docker containers now use them perfectly fine. IDK wtf Synology is doing but it’s cumbersome AF.

  • @[email protected]
    link
    fedilink
    English
    21 year ago

    As a wild guess, try completely specifying the IP address in your fstab instead of relying on a wildcard. Wouldn’t be the first time there was a slight difference in how a marginal feature like that worked in different contexts.

    • @[email protected]OP
      link
      fedilink
      11 year ago

      The IP address in the actual file is complete. I just didn’t want to put it here. I guess I should have put another number.

  • BlackEco
    link
    fedilink
    21 year ago

    What error message do you have (if any) when you try to mount your folder (sudo mount /home/pi/mount/NAS)

      • BlackEco
        link
        fedilink
        11 year ago

        Weird. Have you tried removing 0 0 at the end of your fstab entry? This option is not supported on recent NFS versions

  • @EatYouWell
    link
    1
    edit-2
    1 year ago

    This is what my fstab entry looks like.

    synas.com:/volume1/Music /mnt/music nfs nofail,noauto,x-systemd.automount

    If that works, but you want to figure out the root cause, let me know and we can get it figured out.