Problem with NAS on Hikvision DS-2CD2412F-I

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
Hi bdani ,

I would like to ask few questions:

1. What type of file system ?
2. Made a separate partition for this share ?
3. Samba share are the same like "before" ?
4. Format HDD before status is "normal" ?


Thanks!
 

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
Hi bdani ,

I would like to ask few questions:

1. What type of file system ?
2. Made a separate partition for this share ?
3. Samba share are the same like "before" ?
4. Format HDD before status is "normal" ?


Thanks!
hi,

1. ext4 (options: rw,relatime,user_xattr,acl,barrier=1,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group,_netdev)
2. no, I using shared folder with quota
3. same disk, but new folder
4. cam is formatted it (not normal format)

bdani
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
hi,

Thanks for the reply!

I'll check my settings and hope for the best !
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
Hi guys,

Again with the bed news .... still fail with Debian/samba share.
Tried to debug samba share on my deb. but there is nothing to debug ... Log is clean ... everything looks OK

Samba version 3.6.6
PID Username Group Machine
-------------------------------------------------------------------
9906 cams cams 192.168.10.121 (192.168.10.121)


Service pid machine Connected at
-------------------------------------------------------
cams 9906 192.168.10.121 Wed Jul 1 10:37:08 2015



Status
- Uninitialized
Оf the other side still have warning in cam. terminal
[323824.199229] CIFS: Mount option noac not supported. Instead set /proc/fs/cifs/LookupCacheEnabled to 0

Honestly I have no more ideas....
 

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
Did you try it with openmediavault or set up a samba share manually?
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
Yes, try openmediavault and works, but my production is Deb.... and tried so many things in samba, but it doubts the problem is in samba... you never know....

 

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
I know,

did you try copy samba confs from omv to Your Deb?

I have no better idea...
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
Hi,

Yes I try , but did not work... may I see your conf (SMB), please.
 
Last edited by a moderator:

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
sure, here is:

#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 0
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = yes
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
use sendfile = yes
aio read size = 16384
aio write size = 16384
null passwords = no
local master = yes
time server = no
wins support = no




#======================= Share Definitions =======================
[hikvision2]
path = /media/534a07d5-aa21-46f4-b704-3e9bf67478a1/hikvision2/
guest ok = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = "hikvision"
invalid users =
read list =
write list = "hikvision"




in cam:
config...-->advanced-->storage-->NAS
server address: samba_ip
file path: \hikvison2
mount type: SMB/CIFS
username: hikvison
pass: hikvison
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
"blow my mind..."

I set exactly the same settings and AGAIN ... Uninitialized ...
 

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
ports are opened?

Cam and the NAS is in same network?
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
"ports are opened?"
-
100% working

Cam and NAS are in the same net. 192.168.10...
Cam - 192.168.10.121
NAS - 192.168.10.12
WIN - 192.168.10.174

and again to remind Windows 8.1 share works without problems...
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
bdani , thanks for the help lad !
... anyone for the more tea ... uuups ... suggestions :)))
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,983
Reaction score
6,805
Location
Scotland
I don't have a camera yet that will accept the 5.3.0 firmware (any of the 3 different 5.3.0 official versions I've found) where psh is used.
The newest (03/2015) appears to accept the firmware update with no errors but then refuses to load on the reboot, reverts to 'mini system' like so:
I've verified the mtdblock contents and they are fine - but there is some completion status on the upgrade that's not being stored as 'success'.

Starting udev: [ OK ]
UBI device number 1, total 192 LEBs (24772608 bytes, 23.6 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
waiting for /dev/ubi1_0.
pri_iUpgSuccCnt:0x0, sec_iUpgSuccCnt:0x0
pri_part and sec_part data error.
cat: read error: Invalid argument
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
But I am using firmware 3.2.1 that uses psh on a 7816N-E2 NVR, and I copied the method that worked OK there in readiness to use as an experiment on a camera -

Added this call to a new script, near the end of initrun.sh
echo "----------<myextras>----------"
if [ -e /dav/myextras.sh ];then
/dav/myextras.sh
fi
And the new script, with a few extras for debugging:
#!/bin/sh
echo "----------<ThisIs myextras> adding a few extra items----------"
# Assume the firmware files end up in /dav and that its not in the PATH
# so the updated version of busybox can quietly reside here unless we explicitly call it.
mount
pwd
cd /dav
ls -al
set
echo "-----------------<List the port filtering and flush any. Dropbear always runs, SSH just gets blocked>---------------"
/bin/iptables -L
/bin/iptables -F
# Fix the execute permission just in case
chmod 755 busybox-armv6l
chmod +s busybox-armv6l
cp busybox-armv6l /bin
ls -al /bin
echo "-----------------<Add new Busybox commands to supplement existing>---------------"
/bin/busybox-armv6l --install -s /bin
# ls -al /bin Far too many to list!
echo "-----------------<inhibit the busybox protected shell>---------------"
mv /bin/psh /bin/psh_orig
ln -s busybox /bin/psh
# ls -al /bin Far too many to list!
ps
exit 0
 

bdani

n3wb
Joined
Jun 25, 2015
Messages
13
Reaction score
0
Your Deb machine is virtual?
If it, and can u share it, i can check is too.
If you want, or I can create a samba share machine from a stock Deb.

Maybe it help...
 

masenov

n3wb
Joined
Jun 24, 2015
Messages
22
Reaction score
0
Hi bdani,

I use several deb machines and try with two of them (one is a virtual).
Try with samba/stock Deb.

Thanks!
 
Last edited by a moderator:
Top