dj_salinger
Posts: 6
Joined: Mon Jun 04, 2012 6:12 am
Location: Ballarat, Australia

Mount Network Storage

Fri Jul 20, 2012 12:09 pm

I've googled and searched the forums for an answer to this and can't get it working.

I'm trying to mount a USB drive which is attached to my router. I can see it in Windows without any set up.

This is what I'm doing, and the error I'm getting:

[email protected] ~ $ sudo mount -t cifs //BoBLite/ /mnt
mount error: could not resolve address for BoBLite: Unknown error

If anyone could tell me what I'm doing wrong and/or point me in the right direction for a fix it would be very much appreciated!

Thanks.

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: Mount Network Storage

Fri Jul 20, 2012 12:16 pm

The error says the Pi doesn't find BoBLite. I would
- check capitalization and spelling
- try to ping it, assuming it answers to pings
- replace the name with its IP adress
- make sure it's actually sharing BoBLite/ not BoBLite/share/ or some such
- check the Pi and BoBLite are on the same subnet (x1.x2.x3.x4, for both their IP adress with x1/2/3 the same, only x4 different)

dj_salinger
Posts: 6
Joined: Mon Jun 04, 2012 6:12 am
Location: Ballarat, Australia

Re: Mount Network Storage

Fri Jul 20, 2012 12:43 pm

obarthelemy wrote:The error says the Pi doesn't find BoBLite. I would
- check capitalization and spelling
- try to ping it, assuming it answers to pings
- replace the name with its IP adress
- make sure it's actually sharing BoBLite/ not BoBLite/share/ or some such
- check the Pi and BoBLite are on the same subnet (x1.x2.x3.x4, for both their IP adress with x1/2/3 the same, only x4 different)
Thanks,

I've tried capitalization and spelling
When I ping the ip address I get:

64 bytes from 10.1.1.1: icmp_req=1 ttl=64 time=1.14 ms
64 bytes from 10.1.1.1: icmp_req=2 ttl=64 time=1.10 ms
64 bytes from 10.1.1.1: icmp_req=3 ttl=64 time=2.37 ms
64 bytes from 10.1.1.1: icmp_req=4 ttl=64 time=1.06 ms
64 bytes from 10.1.1.1: icmp_req=5 ttl=64 time=0.946 ms
64 bytes from 10.1.1.1: icmp_req=6 ttl=64 time=1.02 ms
64 bytes from 10.1.1.1: icmp_req=7 ttl=64 time=0.843 ms
64 bytes from 10.1.1.1: icmp_req=8 ttl=64 time=0.831 ms
64 bytes from 10.1.1.1: icmp_req=9 ttl=64 time=0.787 ms

etc....

and they're on the same subnet.

When I try and mount the specific share, I get a different error:


p[email protected] ~ $ sudo mount -t cifs smb://10.1.1.1/BoBLite_USB_storage /mnt
Mounting cifs URL not implemented yet. Attempt to mount smb://10.1.1.1/BoBLite_USB_storage


In Windows there are no _ between the words (BoBLite USB storage). Am I doing the right thing by adding them? Is there are way to find out the correct address for the share?

Thanks for your help. I feel like an idiot!

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: Mount Network Storage

Fri Jul 20, 2012 4:24 pm

I don't know if i 'is just good practice or a requirement, but you should make a subdir to /mnt and mount into that.

Other than that, you don't get an actual error message ? "Attempt to mount..." is not an error, maybe it did work ?

obarthelemy
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm

Re: Mount Network Storage

Fri Jul 20, 2012 4:25 pm

The most relevant thing I found via google: http://askubuntu.com/questions/137011/h ... u-x-ubuntu

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Mount Network Storage

Fri Jul 20, 2012 4:52 pm

mount -t cifs //<ip address>/<share> <local directory>
should work
so
sudo mount -t cifs //10.1.1.1/BoBLite\ USB\ storage /mnt

Give that a shot ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Return to “Beginners”