User avatar
azeam
Posts: 194
Joined: Fri Oct 26, 2012 11:13 pm
Contact: Website

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

Wed Jan 02, 2013 11:27 am

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>

gondman
Posts: 8
Joined: Sun Dec 30, 2012 10:05 am

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

Wed Jan 02, 2013 12:39 pm

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:

User avatar
azeam
Posts: 194
Joined: Fri Oct 26, 2012 11:13 pm
Contact: Website

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

Wed Jan 02, 2013 12:58 pm

Sounds to me like a bug in mount.cifs, you could try mounting with the noserverino option and see if that makes any difference.

voltron81
Posts: 6
Joined: Tue Dec 11, 2012 2:42 pm

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

Wed Jan 02, 2013 2:12 pm

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

User avatar
azeam
Posts: 194
Joined: Fri Oct 26, 2012 11:13 pm
Contact: Website

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

Wed Jan 02, 2013 4:17 pm

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

gondman
Posts: 8
Joined: Sun Dec 30, 2012 10:05 am

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

Wed Jan 02, 2013 9:27 pm

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.

golmalhe
Posts: 1
Joined: Fri Apr 17, 2015 8:05 pm

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

Fri Apr 17, 2015 8:09 pm

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

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

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

Sat Apr 18, 2015 10:42 am

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

gryffindorliontime
Posts: 2
Joined: Sat Aug 12, 2017 2:26 am

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

Sat Aug 12, 2017 2:30 am

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.

Return to “Beginners”