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 Nov 22 '12 at 15:37

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

You should either ask this on or – 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:


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 // /mnt/winshare cifs username=Administrator,password=myPassword 0 0 – Emaborsa Nov 22 '12 at 22:00
I also tried as written here:… and here… – 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 .