Accessing Network Drives in the File Manager.


16 posts
by rodheal » Sun Jul 29, 2012 4:07 pm
When I try to access network drives via "Go" > "Network Drives" I get an error message "The specified location is not supported".

In Squeeze this used to work, is there a way to get this to work?
Posts: 4
Joined: Mon Aug 08, 2011 8:28 pm
by rodheal » Tue Jul 31, 2012 11:12 am
Anyone know how to get the file manager to connect to NAS?
Posts: 4
Joined: Mon Aug 08, 2011 8:28 pm
by Mortimer » Tue Jul 31, 2012 11:20 am
When I last looked I couldn't work out how to do it, and ended up doing through the command line, and then browsing to the linked folder afterwards.
User avatar
Posts: 685
Joined: Sun Jun 10, 2012 3:57 pm
by rodheal » Tue Jul 31, 2012 12:26 pm
In squeeze it was possible to to open networked drives in the file manager. Under the "Go" tab there was a heading for "Network Drives". You just entered the address of the drive, in my instance, my NAS box and user name and password and you could browse folders.
Posts: 4
Joined: Mon Aug 08, 2011 8:28 pm
by carlosfm » Fri Aug 03, 2012 10:56 pm
Hello,

Try ths, it has worked for me:

sudo apt-get install gvfs-backends

:arrow: writing this from my Pi.
Do you Pi?
Posts: 132
Joined: Fri Oct 21, 2011 3:23 pm
Location: Lisbon, Portugal
by downunderthunder » Wed Aug 08, 2012 6:35 pm
hello,

sudo apt-get install gvfs-backends

did not fix the problem for me!

where to find all my network resources?

I'm using the Raspbian wheezy image!
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by mad-hatter » Thu Aug 09, 2012 11:11 am
Hi,

I installed 'dolphin', and got access to my Windows 7 machine from raspbian.

Regards
Posts: 246
Joined: Sun Feb 26, 2012 2:58 pm
by downunderthunder » Thu Aug 09, 2012 9:29 pm
Yes what a great solution. I installed dolphin, too.
Then I remembered I rather like "thunar" so I installed it as well!

Now im struggling with command line access to samba and windows network resources!?!?

therefore I tried to use the smbclient. The resource I try to access is a "windows7-drive" called "D":

that's what smbclient outputs refering to this "machine":

pi@raspberrypi /usr/bin $ ./smbclient -L //UNTEN1
Enter pi's password:
Domain=[UNTEN1] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remoteverwaltung
C$ Disk Standardfreigabe
D Disk
D$ Disk Standardfreigabe
IPC$ IPC Remote-IPC
print$ Disk Druckertreiber
Software Disk
Users Disk
Z$ Disk Standardfreigabe
Domain=[UNTEN1] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

Server Comment
--------- -------

Workgroup Master
--------- -------
pi@raspberrypi /usr/bin $


but how to access the resource "drive D"?

Kind Regards
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by Mortimer » Thu Aug 09, 2012 10:40 pm
I have just tried it with a Windows 7 virtual machine I have running. This VM has an E: drive, which I set to be shared with the sharing name "E Drive"

I created a folder in /media on the RPi called "EDrive":
Code: Select all
sudo mkdir /media/EDrive


Now mount the share:
Code: Select all
sudo mount -t cifs -o user={W7 User Name} "//{IP address of W7 machine}/E Drive" /media/EDrive/

  • You have to specify a user name for the Windows 7 machine, that has the privileges to use the shared drive.
  • The quotes around the URL for the windows share are there because of the space in the share name.
  • The command will trigger a prompt for the password of the W7 user account.
  • You will see two folders you wouldn't normally see in Windows ($RECYCLE.BIN and System Volume Information) don't mess with them

Now when I do ls on /media/EDrive I will see the files on the shared drive.

To unmount:
Code: Select all
sudo umount /media/EDrive


The only thing that springs to mind is the fact that you are trying to share D:, which on my virtual machines is always the CD drive, but in checking it works in just the same way.

This may not be the way you were hoping to have this work, but it might give you pointers as to why you are not getting it working for you.
User avatar
Posts: 685
Joined: Sun Jun 10, 2012 3:57 pm
by downunderthunder » Fri Aug 10, 2012 2:04 pm
thanks a lot

this
sudo mount -t cifs -o user={W7 User Name} "//{IP address of W7 machine}/E Drive" /media/EDrive/

worked fine for me! so happy.

Once you know it, it's easy.

Nope in my case Drive D is a Hard Disk .... but who cares.....

kind regards
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by downunderthunder » Fri Aug 10, 2012 3:20 pm
A a little problem still exists:

How can I avoid being asked for the password?
So how to add the pwd to:

sudo mount -t cifs -o user={W7 User Name} "//{IP address of W7 machine}/E Drive" /media/EDrive/

man 8 mount didn't give me the soltion!?

kind regards
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by Mortimer » Fri Aug 10, 2012 4:25 pm
sudo mount -t cifs -o user={W7 User Name} password={W7 User password} "//{IP address of W7 machine}/E Drive" /media/EDrive/

Again of there are spaces in the password you might need to surround the entire password with quotes, or possibly all of "password={W7 User password}" with quotes. I am not sure, I can't try it at the moment.
User avatar
Posts: 685
Joined: Sun Jun 10, 2012 3:57 pm
by downunderthunder » Fri Aug 10, 2012 5:49 pm
thanks a lot
Now I think all my questions concerning this topic are answered!

kind regards
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by Mortimer » Fri Aug 10, 2012 6:14 pm
One thing to be aware of is the password will be in clear text. If this is going into a saved script, this might be an issue.
User avatar
Posts: 685
Joined: Sun Jun 10, 2012 3:57 pm
by downunderthunder » Sat Aug 11, 2012 11:54 am
Ok
Now i really tried to add the password

sudo mount -t cifs -o user={W7 User Name} password={W7 User password} "//{IP address of W7 machine}/E Drive" /media/EDrive/

but it doesn't work I just added right behind user=myuser password=mypwd

but it doesn't work?

leaving out password=mypwd and everything works fine?
Posts: 12
Joined: Tue Jul 10, 2012 7:29 pm
by Mortimer » Sat Aug 11, 2012 9:14 pm
OK its a simple fix, the '-o' switch needs to be repeated in front of the 'user' and 'password'.

sudo mount -t cifs -o user={W7 User Name} -o password={W7 User password} "//{IP address of W7 machine}/E Drive" /media/EDrive/
User avatar
Posts: 685
Joined: Sun Jun 10, 2012 3:57 pm