Need help mounting SAMBA network share
I am trying to mount a smb share from my NAS onto my Ubuntu 12.04 desktop. I've tried the following:
Code:
mount -t cifs //192.168.1.42/mysql_backup /media/mysql_backup Code:
mount error(13): Permission denied So what do I need to do to get my share mounted? |
can you do it from your file browser under the network option? If you are in Ubuntu then Nautilus has the capability. Look on the pane on the left side of Nautilus click on the Network icon then it will display your shares on the network. You must know the user and password of SAMBA.
Good luck to you. |
Sorry, I should've been more clear. I need to figure out the command to perform the mount so I can put it in fstab to automount on boot.
I didn't realize there was a username and password for SAMBA. How do I find out what it is? |
This link shows you the steps to set up SAMBA in Debian running in a Raspberry Pi http://elinux.org/R-Pi_NAS
For Ubuntu will be very similar. Read the steps first it will show you how to create a SAMBA user and how to set up the password. Good luck to you. |
I am trying to mount a share from my NAS. So would I need to setup a Samba user on Ubuntu or my NAS? And if there is no user setup now, wouldn't that just mean security isn't enabled and shouldn't I be able to mount the share without any credentials?
I'm asking because I want to understand this as opposed to just knowing something will work without fully grasping why. |
After much trial and error I have it working. Here is the line I added to fstab:
Code:
//192.168.1.42/mysql_backup /media/mysql_backup cifs guest,uid=1000,gid-1000 0 0 One problem. When I boot Ubuntu I see a quick message about CIFS error. It's too quick to read it all. When I run grep cifs /var/log/syslog I see the following: Code:
Nov 15 14:44:13 Ubuntu-VM kernel: [ 4.170545] CIFS VFS: cifs_mount failed w/return code = -101 |
All times are GMT -5. The time now is 02:50 AM. |