What’s the Best Way to Mount a NAS Using NFS or SMB?

0
3
Asked By TechieTurtle42 On

I'm trying to mount my NAS using this command: `sudo mount 192.168.254.60:/public /mnt/nas`, but I keep encountering some errors. The console says: `mount: /mnt/nas: fsconfig() failed: NFS: mount program didn't pass remote address.` Additionally, the output from `dmesg` shows: `CIFS: Attempting to mount //192.168.254.60/Public`, and then `CIFS: VFS: 192.168.254.60 failed to connect to IPC (rc=-13)` and `CIFS: VFS: cifs_mount failed w/return code = -13`. I can ping the NAS without issues and access the admin page via my browser. Can anyone help?

3 Answers

Answered By NerdyNFS On

Do you have `nfs-utils` installed on your system? Make sure you have the right packages to support NFS mounting.

TechieTurtle42 -

I’ve got `libnfs-utils/stable 5.0.2-1+b2 amd64` installed.

Answered By CIFS_Sage On

You need to be careful with the mount command syntax. For NFS, try this: `sudo mount -vvv -t nfs 192.168.254.60:/public /mnt/nas`. The `-vvv` flag gives you verbose output, which can help debug any issues. Also, ensure that NFS is enabled on the NAS and that your client can access it. If you're using CIFS, it might be worth checking this guide for specific command usage: [how to](https://forums.linuxmint.com/viewtopic.php?p=2224687#p2224687). Fixing the mount command first could really help you out!

Answered By MountMaster999 On

Have you considered adding an entry in your fstab? It can simplify mounting shared locations. Check out this guide for help: https://obie.hashnode.dev/ubuntu-server-permanently-mounting-samba-shares. That might make things way easier for you!

TechieTurtle42 -

Thanks for the tip! I’ll check that guide out.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.