1

When i try to mount my share folder from windows 7 machine from network, this error occur me, any ideas how to solve them? My actual auto-running code below:

mkdir -p /mnt/zmg
mount -t cifs //10.20.30.1/zmg /mnt/zmg -o username=Provisorio/Administrator,password=zen,noserverino
  • I take it that Provisorio is the work group name and not an actual domain? – Raman Sailopal Nov 28 '17 at 15:38
  • Did you try sudo? – justinnoor.io Nov 28 '17 at 16:42
  • provisorio is computer name, administrator is the user. I dont use a domain, instead of that i let workgroup name has a default (WORKGROUP) – firewallcj Nov 28 '17 at 22:53
1

you should probably specify the -o information prior to the address info i.e. mount -t cifs -o username=<USER>,password=<PASS> //<share-address>/<share-name> /mnt/mount-point

As for why it is err-ing out, this could be due to your username, it seems like you are specifying the domain with the user, which is how you mount a share on Windows but not the same on unix, it should be just the username, if you want to specify the domain, add it to the end of the command like so `username=user,password=pass,domain=example.com

So in your case try using: mount -t cifs -o username=Administrator,password=zen,domain=Provisorio,noserverino //10.20.30.1/zmg /mnt/zmg

another reason the error 13 is appearing is due to folder permissions, so make sure you have the correct permissions on the wondows folder. for testing i'd say open the permissions up first to eliminate it as a possible cause!

To make this a permanent solution i.e. making it persistant after reboots add this line to the end of the /etc/fstab file ( you will need sudo permissions to edit this file! )
//10.20.30.1/zmg /mnt/zmg cifs username=Administrator,password=zen,domain=Provisorio,noserverino 0 0

  • Where can i get that fstab file? Im just take files from zenworks imaging cd and put on tftpd32 program on desktop which is a private network. I dont have "etc" folder too, can i create it manually? – firewallcj Nov 28 '17 at 22:51
  • @firewallcj All UNIX based systems will have an /etc folder under the /(root) directory, this is the equivalent of window's C:\ folder, if you do not have access to this folder it may be because you are not an administrator? In this case it might just be best not to mess with the fstab file and you should just mount it and move your files. fstab would be useful if you need to access this mounted directory over an extended period of time, it seems like you just need to mount it once to take the image files you need no? – jamalm Nov 29 '17 at 10:16
  • @firewallcj And no you should not create an /etc folder, for many reasons! and it would be pointless :) hope i helped, do let me know if you need more help and let me know if the mount worked – jamalm Nov 29 '17 at 10:19
  • 1
    i follow your suggest and know i can mount successfuly, but give me (error 16, resource busy, and error 8), besides that i can access my network directory. how can i put printscreen here to show how my server is setup? – firewallcj Nov 29 '17 at 10:42
  • i.imgur.com/zY4vMcJ.png – firewallcj Nov 29 '17 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.