djmaster329
Posts: 13
Joined: Thu Jun 28, 2012 3:18 pm

Network share

Fri Jun 29, 2012 4:19 pm

Hello,

I was trying to mount my network share (windows), which is an external HDD connected to my Netgear router.
For some reason, it does not recognize the network share.

The path to the share is: \\NETDISC\shares\USB_Storage

I tried the command

Code: Select all

mount -t smbfs  \NETDISC\shares\USB_Storage /mnt/netdisc
(I created a folder in the /mnt directory) but it gives me this error:

Code: Select all

mount.cifs: bad UNC (NETDISCsharesUSB_Storage)
Do I need to add extra parameters, and if so, which ones?
The share doesn't require an username and password.

Kind Regards,
djmaster329

itimpi
Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Network share

Fri Jun 29, 2012 4:43 pm

There are problems with the slashes in the code you gave. I have always used forward slashes and started with two of them (//NETDISC/...). The back-slash is treated as an escape character in the shell.

djmaster329
Posts: 13
Joined: Thu Jun 28, 2012 3:18 pm

Re: Network share

Fri Jun 29, 2012 5:19 pm

I just tried that,

This is the output:

Code: Select all

root@raspberrypi:/mnt# mount -t smbfs //NETDISC/shares/USB_Storage /mnt/netdisc
mount error: could not resolve address for NETDISC: Name or service not known
root@raspberrypi:/mnt# mount -t smbfs //10.0.0.1/shares/USB_Storage /mnt/netdisc
Password:
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@raspberrypi:/mnt#
EDIT:
I can reach the http interface of the network share by going to either 10.0.0.1/shares/USB_Storage or NETDISC/shares/USB_Storage

Return to “Troubleshooting”