Page 1 of 1

Network share

Posted: Fri Jun 29, 2012 4:19 pm
by djmaster329
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

Re: Network share

Posted: Fri Jun 29, 2012 4:43 pm
by itimpi
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.

Re: Network share

Posted: Fri Jun 29, 2012 5:19 pm
by djmaster329
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