this post was submitted on 22 Nov 2023
18 points (90.9% liked)

Linux

48230 readers
510 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

top 9 comments
sorted by: hot top controversial new old
[–] Arlos@feddit.de 8 points 1 year ago (1 children)

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.

[–] Diplomjodler@feddit.de 5 points 1 year ago

Holy crap. You're right. For the record: I'm an idiot.

[–] wmassingham@lemmy.world 5 points 1 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)?

[–] BlackEco@lemmy.blackeco.com 2 points 1 year ago (1 children)

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

[–] Diplomjodler@feddit.de 1 points 1 year ago (1 children)

I just get this:

mount.nfs: Connection timed out

[–] BlackEco@lemmy.blackeco.com 1 points 1 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@lemmy.world 1 points 1 year ago* (last edited 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.

[–] nyan@lemmy.cafe 1 points 1 year ago (1 children)

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.

[–] Diplomjodler@feddit.de 1 points 1 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.