Raspberry-PI NAS with Hikvision Camera

soulja

Young grasshopper
Joined
Apr 1, 2015
Messages
66
Reaction score
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 :)
 

johngalt

Getting the hang of it
Joined
Dec 16, 2014
Messages
149
Reaction score
19
Saving this for one of my summertime projects...
 

harrijs

Young grasshopper
Joined
May 8, 2014
Messages
50
Reaction score
12
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.
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,964
Reaction score
6,794
Location
Scotland
Unfortunately - you can't use a sharename/folder name for a NAS storage target on the 2-series cameras - it must be a sharename only.
 

soulja

Young grasshopper
Joined
Apr 1, 2015
Messages
66
Reaction score
9
Any news? Did someone managed to use the raspberry as NAS?
 

nayr

IPCT Contributor
Joined
Jul 16, 2014
Messages
9,329
Reaction score
5,325
Location
Denver, CO
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.
 

Scubaticus

n3wb
Joined
Jun 18, 2015
Messages
1
Reaction score
0
Location
Netherlands
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:
Top