Page 2 of 2

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 11:27 am
by azeam
gondman wrote: I can connect to the NAS with smbclient and see all the folders which i have seen with mount.
Can you also enter the folders/see their contents (that you can't do with mount)?

Code: Select all

smbclient //192.168.1.50/share -U<username>%<password>

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 12:39 pm
by gondman
Yes.
With smbclient using
smbclient //192.168.1.50/share -U<username>%<password>
i can enter the folders and see the contents. I can browse into them normally.
With mount i only see my share folder but can't enter the folders to see the contants :roll:

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 12:58 pm
by azeam
Sounds to me like a bug in mount.cifs, you could try mounting with the noserverino option and see if that makes any difference.

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 2:12 pm
by voltron81
Hi there,

I'm trying to mount my WD MYBOOKWORLD on the Raspberry, but I'm facing some issues...
Following the tutorial suggested at first posts, I have this configuration:
My NAS is on 192.168.1.101, so the line added on /etc/fstab is:
//192.168.1.101/PUBLIC/backup_raspberry /mnt/NAS username=USERNAME,password=PASSWORD,workgroup=WORKGROUP,users,auto,user_xattr 0 0

Then I try to mount it, but I'm having this error:
mount: unknown filesystem type 'user_xattr'

Any suggestion on that?
Regards

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 4:17 pm
by azeam
Add the file system type before the mount options, for example:

Code: Select all

//192.168.1.101/PUBLIC/backup_raspberry /mnt/NAS auto username=USERNAME,password=PASSWORD,workgroup=WORKGROUP,users,auto,user_xattr 0 0

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Wed Jan 02, 2013 9:27 pm
by gondman
azeam wrote:Sounds to me like a bug in mount.cifs, you could try mounting with the noserverino option and see if that makes any difference.
Hi,
I've also tried it with noservernino option like this ...

Code: Select all

sudo mount -t cifs //192.168.1.50/share -o username=[my_username],password=[my_password],noserverino /mnt/nas
everytime the same problem...

Code: Select all

bash: cd: Media: Object is remote
:cry:
The only thing i've seen is, if i want to browse to Media (with "cd Media") on my NAS there nothing entries in syslog.

So, i've tried to mount without "noserverino" option again after umount. Now the entry as before are visible

Code: Select all

Jan  2 22:22:47 raspi kernel: [77925.645512] CIFS VFS: Autodisabling the use of server inode numbers on \\nasgond\share. This server doesn't seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the "noserverino" option to silence this message.

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Fri Apr 17, 2015 8:09 pm
by golmalhe
SUCCESSS AFTER PAINFUL RESEARCH AND GOOGLING

Following works when your Network attached drive doesn't have any authentication needed. The key is sec=ntlmv2. If you don't have it in your options then it would keep giving permission denied message. I hope it helps.

//192.168.1.1/USB_Storage /mnt/laciedrive cifs auto,guest,sec=ntlmv2 0 0

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Sat Apr 18, 2015 10:42 am
by JimmyN
Rather than using "guest" I use a credentials file to access the share. Then I don't have a username and password in plain text in the fstab file. The credentials file contains the username, password, and workgroup and the files permissions are set to 0600.

Code: Select all

//192.168.0.98/"NetworkFolder" /home/jimmy/network-folder cifs auto, credentials=/home/jimmy/.smbcredentials

Re: How to Map a NAS (Ethernet Network drive) from Raspibian

Posted: Sat Aug 12, 2017 2:30 am
by gryffindorliontime
Hi, I was wondering if somebody would like to explain how I would be able to map a drive over ethernet. (maybe over XBMC as Scott mentioned) The institution I am working at blocks samba connections and other over internet connections, so I would like to do this over a local network like ethernet. I need to be able to transfer files over a local network regularly.


Thank you.