Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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