Raspberry-PI NAS with Hikvision Camera

soulja

Young grasshopper
Apr 1, 2015
65
9
Hey

Does anybody use a Raspberry-PI NAS for a Hikvision Camera?
I am looking for a tutorial because I am new to both.

I installed a Samba Server on the Raspberry-PI and mounted a USB-Stick on it "/media/usbstick".

Than i entered the IP of the Raspberry-PI 192.168.178.84 + Path "/media/usbstick" + "SMB/CIFS" + Name and password.

Its telling me:

Mounting to NAS server failed. Invalid directory or incorrect user name/password.


Please help me :)
 
Double check the permissions you set in your smb configuration. You will also need to make sure that you have the permissions on the mount point set to allow the user write to it.
 
I am using a CuBox as an ftp server, works very well since it has an eSata port with a 4TB WD Purple hooked up.. no idea how to hook it up to a Hikvision but my Dahua's have been happy with simple old FTP.
 
These are not detailed instructions!

I'm using a Raspberry Pi Model 2B -> Samsung SDD
The model 2B USB can deliver 1,2A which is enough for Samsungs EVO (4Watt)

My SSD is formatted ext4 (2 partitions, one for each camera (I'm using 2 CAMS))
When using one partition, I ran into issues (disk full) because each camera was thinking it could use the full advirtised HD space.

Added the user & group hikvison on the raspberry
created the directory struct:

/hikvision (drwxrwxrwt 6 root root) (is the SSD mount point, (/etc/fstab: LABEL=HIKVISION /hikvision ext4 defaults 0 2))
/hikvision/frogs (drwxrwxrwt 4 root root)
/hikvision/timelapse (drwxrwxrwt 4 root root)

Added the shares in /etc/samba/smb.conf

[frogs]
comment = Hikvision database Frogs
path=/hikvision/frogs
valid users = @hikvision
wide links = no
create mask = 0660
force create mode = 0660
force directory mode = 0770
writable = yes
browsable = yes


Config the hikvison frogs camera

Type: NAS
Server Address: x.x.x.x (RPi IP)
Path: /frogs
Proto: SMB/CIFS
Username: hikvision
Password: *******

Test: OK (sometimes I have to enter the pass again before hitting test)

In network.ftp I configured /hikvision/timelapse so my timelapse pictures are stored at that location.

Be sure there is nothing in /hikvision/front

To check the share from windows explorer, goto \\x.x.x.x\, click frogs and it will ask user/pass
Try to create something in the dir and delete it.

Repeat for every other camera.

Hope this helps.
 
Last edited by a moderator: