title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Auto mount windows shares on Rasp PI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jecaho

    • May 2017
    • 2

    Auto mount windows shares on Rasp PI

    I have followed the PI instructions given here but my windows share will not auto mount after reboot.

    I have inserted the following in /etc/fstab

    //10.0.0.47/public/Media/Musik /home/pi/nas cifs username=myusername,password=mypassword 0 0

    A manual mount after reboot like "sudo mount -t cifs -o username=myusername,password=mypassword //10.0.0.47/public/Media/Musik /home/pi/nas" work fine until next reboot of cause.

    I am no expert in Linux :-(

    What do I do wrong?
  • simes_pep
    dBpoweramp Enthusiast

    • Dec 2013
    • 297

    #2
    Re: Auto mount windows shares on Rasp PI

    Originally posted by jecaho
    I have followed the PI instructions given here but my windows share will not auto mount after reboot.

    I have inserted the following in /etc/fstab

    //10.0.0.47/public/Media/Musik /home/pi/nas cifs username=myusername,password=mypassword 0 0

    A manual mount after reboot like "sudo mount -t cifs -o username=myusername,password=mypassword //10.0.0.47/public/Media/Musik /home/pi/nas" work fine until next reboot of cause.

    I am no expert in Linux :-(

    What do I do wrong?
    To ensure the NAS is mounted automatically in the crontab
    $ crontab -e
    Enter the following into the crontab file above the entry to start Asset

    @reboot sudo mount /home/pi/nas

    and test by rebooting 'sudo reboot' that the NAS is automatically remounted.

    Comment

    • jecaho

      • May 2017
      • 2

      #3
      Re: Auto mount windows shares on Rasp PI

      Hi

      I tried your suggestion but no positive result.

      If I write the command directly (not in crontab) "sudo mount /home/pi/nas" it works.

      I also tried a "@reboot sleep 60 && sudo mount /home/pi/nas" - but it does also not work.

      :-(

      Comment

      Working...

      ]]>