D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: jaaf on August 30, 2014, 07:17:59 AM
-
Hi,
I would like to use my D-Link DNS 320 in nautilus (Gentoo distro) . Reading different pages on the net , I understand that I can do this either using smb shares or using davfs2.
First with davfs2.
File structure
Volume_1 (user jaaf read/write enabled, all protocols enabled except NFS)
|— jaaf (user jaaf read/write enabled, all protocols enabled except NFS)
First trial
/etc/fstab
http://192.168.1.15/ /home/jaaf/dav davfs rw,user,noauto 0 0
localhost jaaf # mount -t davfs http://192.168.1.15 /home/jaaf/dav
Please enter the username to authenticate with server
http://192.168.1.15 or hit enter for none.
Username: jaaf
Please enter the password to authenticate user jaaf with server
http://192.168.1.15 or hit enter for none.
Password:
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
localhost jaaf #
Second trial
fstab
http://192.168.1.15/Volume_1/jaaf /home/jaaf/dav davfs rw,user,noauto 0 0
localhost jaaf # mount -t davfs http://192.168.1.15/Volume_1/jaaf /home/jaaf/dav
Please enter the username to authenticate with server
http://192.168.1.15/Volume_1/jaaf or hit enter for none.
Username: jaaf
Please enter the password to authenticate user jaaf with server
http://192.168.1.15/Volume_1/jaaf or hit enter for none.
Password:
/sbin/mount.davfs: Mounting failed.
404 Not Found
localhost jaaf #
Second Open location in Nautilus
smb://192.168.1.15/Volume_1/jaaf
This location could not be displayed
Sorry, could not display all the contents of “jaaf”: The specified location is not supported
Do not see what I can do. Thank you for help.
-
By now you should be getting the message that the DNS-320 does not support davfs2 protocol.
You should have no problems with using SMB though. Samba should be part of your Gentoo distro although I don't know what version you have. The Samba client should work to allow you to map the NAS regardless.
-
Hi ivan,
Thank you for your help.
Ok let's davfs aside.
I would like to go further with samba shares now. It seems to me I made significant progress even if I cannot completely explain how or why.
I restarted defining my shares and dir from scratch in the NAS.
Shares = jaaf-DirRoot and shim-DirRoot
Volume_1 (all users can read, only read)
|- jaaf-DirRoot (only jaaf can w/r, all other users can read only)
|- shim-DirRoot (only shim can w/r, all other users can read only)
Case 1:
/etc/fstab
//192.168.1.15/Volume_1/jaaf-RootDir /home/jaaf/JAAF-DLINK cifs user,username=jaaf,password={jaaf's passwd},workgroup=WORKGROUP 0 0
In this case JAAF-DLINK appears under the Browse Network short cut in nautilus (under, not inside i.e. when clicking it)
When clicking this JAAF-DLINK shortcut, the following message is displayed
Unable to access "JAAF-DLINK"
this porgram is not installed setuid root - "user" CIFS mounts not supported
Case 2:
//192.168.1.15/Volume_1/jaaf-RootDir /home/jaaf/JAAF-DLINK cifs defaults,username=jaaf,password={jaaf's passwd},workgroup=WORKGROUP 0 0
in this case when clicking JAAF-DLINK, i am told that only root can do this.
Thus in a terminal I can mount it as root. After that user can access the files and browse.
What I don't understand
1-why the share is not automatically mounted at boot ? Other drives like /dev/sda5 are automatically mounted with the defaults option.
What is not convenient with this behavior
To mount the share you must be root. This means that a standard user cannot, unless he knows the admin (root) password