I am able to successfully mount a drive with

sudo mount.cifs // /mnt/destination -o username=user,password=pass,domain=dom 

and navigate to the share with

cd mnt/destination 

However, once the Pi is rebooted I lose my mount. Any ideas as to why that is happening?

  • What OS are you using? Add it into fstab to mount on boot. – Impulss Nov 1 '13 at 0:11
  • "...why that is happening?" -> Because you rebooted ;) – goldilocks Nov 1 '13 at 8:48

You need to add a line to /etc/fstab. Linux uses this file to see what drives to mount when it boots. Try adding something like this at the end of /etc/fstab:

//  /mnt/destination  cifs  _netdev,username=user,password=pass  0   0

I don't think you need to specify a domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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