Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:

//192.168.254.7/Volume_1/Musicas
//192.168.254.7/Volume_1/Filmes

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

Thanks guys!!

share|improve this question

1 Answer 1

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

//192.168.254.7/Volume_1/Musicas  /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: //192.168.254.7/Volume_1/Musicas /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: //192.168.254.7/Volume_1/Musicas /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

 
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.