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

There are hundreds of entries for this - and as far as I can tell I am doing it right.

But it is not working...

I run a latest Raspbian (Debian Wheezy) Distribution on a Raspberry Pi. I have configured a fstab entry for a Samba share on my NAS

//medienzimmer/Qmultimedia/Musik /mnt/Musik cifs username=XXX,password=XXX,iocharset=utf8,file_mode=0777,dir_mode=0777,auto 0 0

I can easily to "sudo mount -a" and the share gets mounted. But It will never happen persistent after the system boots.

The Raspberry Pi is connected via WLAN to the network. I have cifs-utils installed. Any clues what I am missing here (must be something basic ;)


This seems to be a prevailing Debian Bug/Regression.

My fix was using a simple init script:

sudo touch /etc/network/if-up.d/mountnas && chmod u+x /etc/network/if-up.d/mountnas



mount /mnt/Musik
share|improve this question
up vote 1 down vote accepted

I don't even know what the auto is, but am missing the _netdev thing.

I know this has to be a last resource, but in case everything else fails you can do the mount from an init.d script making sure it is executed after networking scripts. Am also not hundert percent sure about, but believe custom init.d scripts tend to be put by the system the latter in the init script.

share|improve this answer
The _netdev thing did not do the trick :| – madflow Jul 5 '13 at 8:03
Thanks anyway ;) Such a script should be put in "/etc/network/if-up.d/ ". Sort of paradox - since the cifs script responsible for the mounting is already there... Anyway - a simple script with mount -a is working now... Still this seems to be b0rked ( – madflow Jul 5 '13 at 19:25

As far as I can see, you are only missing server IP, for this example:

// /mnt/Musik cifs username=XXX,password=XXX,_netdev 0 0

ps. try without charset and file and dir mode first and _netdev, cause I understood you are trying to mount network device.

share|improve this answer
"medienzimmer" is the server name. mount -a works - so the missing IP is not the issue. I actually have the same artifact on my Linux Mint Debian machine... So all of this can be related to certain debian bugs: – madflow Jul 5 '13 at 18:58

You must log in to answer this question.

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