[OPEN] folder mounting at boot time

Post Reply
root23
recruit crewman
Posts: 2
Joined: Fri Jul 01, 2022 6:06 pm

[OPEN] folder mounting at boot time

Post by root23 »

Hello forum,
I have already read many posts here about my problem but do not come to the solution.

I want to mount a folder on my Synology NAS at boot time.

I have in /home/NAME a file .smbcredentials with the content:
username=xxxx
password=xxxx
domain=ip of my NAS

in the /etc/fstab I have entered the following

Code: Select all

//200.200.20.20/Backup /mnt/Backup cifs uid=1000,gid=1000,rw,user,credentials=/home/NAME/.smbcredentials 00
When booting I get the following error messages

Code: Select all

[FAILED] Failed to mount /mnt/Backup
[DEPEND] Dependency failed for Remote File System
Any help for me?

Thanks!

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] folder mounting at boot time

Post by erikdubois »

Dependency failed sounds like a package that is missing.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] folder mounting at boot time

Post by erikdubois »

Here

https://kb.synology.com/en-us/DSM/tutor ... etwork_NFS

I read about nfs

we have that too - gvfs-nfs...nfs-utils...

did you look here

https://wiki.archlinux.org/title/NFS

I am just looking up because I have no experience with this.

One day I will buy me one... I have been saying that the last 5 year.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] folder mounting at boot time

Post by erikdubois »

source : https://community.synology.com/enu/foru ... ply=431116

"That's the part that wasn't working for me. I could mount from the command line but not from /etc/fstab.

I just spent another half an hour piddling and finally got it to work. I think my mistake was including the volume in the server spec (e.g. <ip-address>/volume2/homes/<user> instead of <ip-address>/homes/<user>). Apparently I was doing it correctly on the command line but not in /etc/fstab. And now I've read mount.cifs so I have the Samba version locked to 3.0, I'm using a credentials file, and I the mount set to read-write. Still can't change file modes but apparently that's baked into the protocol.

So thanks for poking at me, all it took was one more push to figure out my mistake.

As to the purpose of the post, it was mostly my reaction to not getting NFS to work no matter what I did (and reading ever so many online rants about the same thing). I suspect it is possible, though it seems to require synchronizing UIDs and GIDs with the NAS or squashing all permissions to admin, neither of which I wanted to do.

Now that I have Samba working I can let NFS go!"

In the meantime I read articles that if you have Samba that is enough.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

root23
recruit crewman
Posts: 2
Joined: Fri Jul 01, 2022 6:06 pm

Re: [OPEN] folder mounting at boot time

Post by root23 »

Thanks for the quick help.
The problem was very strange :-)
I had too many "," in my password and with the separator the system got confused
:D

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] folder mounting at boot time

Post by erikdubois »

did you succeed in your efforts?

If you did - leave the solution behind for yourself for the next visitor
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Post Reply

Return to “Networking”