smb/CIFS caveats

afddwfadwfadwf

Young grasshopper
Joined
Mar 28, 2016
Messages
83
Reaction score
12
Tested on firmware version 5.3.6 and 5.3.8 after discussion with Hikvision support engineers

  • Only SMB 1.0 is supported
  • each IP camera uses the shared drive exclusively with no size limit in IPC software (I tested up to 800GB), IPC uses root of the share
  • the password field has a length limit (16 characters iirc)
  • IPC detects size of filesystem (NTFS quota not reflected), so create a filesystem for each IPC, you can mount a VHD on Windows or LV (LVM) on Linux => this is probably necessary if you want a 200GB+ share. Sharing the filesystem with others confuses IPC size calculation for formatting (my observation IPC creates datadir0 to datadir[n], n is about (share_size_seen_by_IPC/100GB + 1), if you get too many datadir directories, IPC is confused about the size)
  • check permission. smb user needs to have read/write on the share directory
  • after adding the Net HDD, click save before running the test or you will get "parameter error"
  • "device error" when formatting the Net HDD is most likely caused by other files already existing on the share but IPC does not have permission to delete them (those system created files)

The implication is that there cannot be other directory/files (even hidden) not created by Hikvision IPC.

For Windows, $recycle.bin and System Volume Information are automatically created at , both hidden and it is kinda tricky to delete them and stop Windows from recreating them.
For Linux, lost+found directory automatically created at root of partition. Solution is to create a directory under root of the filesystem and use that directory as samba share path

When in doubt, run wireshark with smb as filter and see what is causing the error.

to sum it up, CIFS feature really needs some fix from Hikvision...
 
Top