title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 4 of 4

Thread: Raspian on Pi2 unable to mount drive using fstab

  1. #1

    Raspian on Pi2 unable to mount drive using fstab

    Hi, I've managed to install and configure Asset UPnP on a Raspberry Pi 2.

    After following the advice on this forum for installing, creating an @reboot cron entry to start on powerup, and mounting a network share....
    I have managed to get it all working apart from the auto mounting of the network share (using the fstab file)

    My knowledge of Linux is pretty limited, but I did manage to manually mount the share to a (chmod 777) folder using the following mount command:*

    sudo mount -t cifs //192.168.0.104/Public /home/pi/nas -o username=admin2,password=password,vers=1.0

    The 'vers' bit apparently is something to do with the Nas device using an older version of the Samba protocol, it was only after adding this that I managed to manually mount the share (as I said, I'm not too familiar with Linux)

    This works, and with UPNP running, everything works just fine, however I just cannot seem to get the mount to work when updating fstab file.

    I tried the advice by Spoon here (final section):
    https://forum.dbpoweramp.com/showthr...sset-Specifics

    so, I've tried things like
    //192.168.0.4/Public /home/pi/nas cifs username=admin2,password=password,_netdev,sec=ntlm ,vers=1.0 0 0


    ..and various other configurations... nothing I've tried manages to mount the share on reboot...

    Any help of converting my (working) mount command for use in th fstab file would be very appreciated... I'm so close!

    Oh yes, the NAS device is a WD MYBOOKLIVEDUO

    Thanks

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    39,024

    Re: Raspian on Pi2 unable to mount drive using fstab

    Add just:

    mount -t cifs //192.168.0.104/Public /home/pi/nas -o username=admin2,password=password,vers=1.0

    with sudo crontab -e

  3. #3

    Re: Raspian on Pi2 unable to mount drive using fstab

    Hi Spoon.

    Thanks for the advice.

    I did actually try adding the mount command into the crontab file.

    I added the line with an @reboot sudo prefix
    I added the line just before the @reboot to launch AssetUPnP

    After rebooting, I checked the home/pi/nas folder to find it hadn't mounted.

    Should I not have put the @reboot sudo prefix on the line?

    Also, does it matter if the line comes before or after the launch of Asset in the crontab?

    Also, if I use this method to mount the NAS, I guess I don't need the entry in the fstab?

    Thanks for the help

  4. #4
    Administrator
    Join Date
    Apr 2002
    Posts
    39,024

    Re: Raspian on Pi2 unable to mount drive using fstab

    Yes you would need @reboot

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •