Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 D-link 320 NAS server with my movies and musics on there.

How can I mount it automatic on login?

I´m using Ubuntu 12.04 on Ultrabook Samsung Series 5.

The path for my data is:


How would the exact line I have to add to fstab look like?

Thanks guys!!

share|improve this question

You should install cifs-utils: sudo apt-get install cifs-utils

Create a Directory inside your home folder: sudo mkdir /media/Musicas

Edit fstab file with sudo nano /etc/fstab and add the following line at the end

//  /media/Musicas  cifs guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0 

After editing the file do a sudo mount -a, that should make it work.

share|improve this answer
Hey man, thanx for yout attention, but I did everything like you said and I got this error: $ sudo mount -a mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) What I did wrong? – Bruno Gama Jan 24 '13 at 0:42
Try modify the line to: // /media/Musicas cifs guest,users,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0 Please note that i added the "users" – AcidRod75 Jan 24 '13 at 15:10
Hey man, thanx for your help. I did this way and this is the only way i can mount: // /media/Musicas cifs users,uid=1000 0 0 – Bruno Gama Jan 24 '13 at 23:04
So i guess it worked?, is it mounting on reboot? – AcidRod75 Jan 25 '13 at 12:07
Yeah man, it´s working! Really thanx for your help! – Bruno Gama Jan 25 '13 at 18:57

Your Answer


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.