Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a little server with a shared partition called D. I'd like to mount it permanently on a local machine with Linux Ubuntu, in order to access them easily. I have looked for similar questions, but i didn't find anything. Could somebody give me some hints how to do it?

share|improve this question

migrated from stackoverflow.com Nov 22 '12 at 15:37

This question came from our site for professional and enthusiast programmers.

1  
You should either ask this on unix.stackexchange.com or askubuntu.com – Aaron Digulla Nov 22 '12 at 8:30

See the Ubuntu documentation form AutoFS. The part you are instersted in is CIFS.

share|improve this answer
    
...too tricky for me, can't do it without any help – Emaborsa Nov 22 '12 at 22:07

You should add a line like the following in /etc/fstab:

//<windows-machine-ip-address>/share  /mnt/winshare  cifs  username=<windows-user>,password=<user-password>,iocharset=utf8,sec=ntlm  0  0  0  0

where /mnt/winshare is the mount point in Linux

or better create a file (e.g /etc/.smbcreds) with 600 access rights:

username=msusername
password=mspassword

and add the following in fstab:

//<windows-machine-ip-address>/share  /mnt/winshare  cifs  credentials=/etc/.smbcreds,iocharset=utf8,sec=ntlm  0  0  0  0
share|improve this answer
    
it doesn't work. I added the following line, but when i restart the system nothing happens //192.168.0.5/Dati%20(D) /mnt/winshare cifs username=Administrator,password=myPassword 0 0 – Emaborsa Nov 22 '12 at 22:00
    
I also tried as written here: thatsquality.com/articles/… and here cyberciti.biz/tips/… – Emaborsa Nov 22 '12 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .