motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.83k stars 898 forks source link

Network Share with FreeNAS SAMBA #1769

Open jangxbanger opened 5 years ago

jangxbanger commented 5 years ago

I am running motionEyeOS version: motionEyeOS 20180627 I am using the following board/model: Pi Zero W 1.1. I am using the following type of camera: Pi Zero W Camera Module My motionEyeOS unit is connected to the network via:Wifi

Hello, I'm attempting to add a network share to my MotioneyeOS. The Share I have setup is a Samba share from me FreeNAS server. I have verified it will mount in other unix distros as well as a windows machine. I have allowed guest access and have attempted with my credentials to mount the drive but it just will not mount.

I have attached a few screenshots please let me know if you need anything else from me.

image

image

RZFX commented 5 years ago

The output of "mount -a" tells you that there is no directory such as /home/jangadmin/mnt/Camera. As you verified yourself with "ls /home" you can clearly see that there is really no directory.

Please create the directory first before mounting it.

mkdir /home/jangadmin/mnt/Camera

Also you don't need to save your files to a network share when you have already mounted it in your filesystem. Just point your save location to the mountpoint. ;)

Let me know if it worked out for you!

RZFX commented 5 years ago

Also consider creating the ".smbcredentials" file in your home directory instead of writing your plain text credentials in the fstab file.

vi /YourHomeDirectory/.smbcredentials

username=<username> password=<password>

Save and set correct permission

chmod 600 /YourHomeDirectory/.smbcredentials

In fstab

//<server>/<share> <mountpoint> smbfs credentials=</path/to/.smbcredentials> 0 0

ccrisan commented 5 years ago

@jangxbanger see https://github.com/ccrisan/motioneyeos/wiki/Troubleshooting#network-shares

jangxbanger commented 5 years ago

@RZFX @ccrisan I'm unable to make any directories due to it being a read only file system

RZFX commented 5 years ago

@RZFX @ccrisan I'm unable to make any directories due to it being a read only file system

Please have a look at the FAQ below: https://github.com/ccrisan/motioneyeos/wiki/FAQ#why-do-i-get-read-only-file-system-when-trying-to-edit-a-file