Mount or Unmount the HDD or SD card (called disk in this document) to or from the device root file system.
This URL is used with the camera or video encoder which it has local storage media, disk. In our design, disk hot-swap is not supported. Therefore, it might damage the disk if user removed it form a device while the firmware is writing data to it. Unmount the disk will disable the access of disk. That should be used before user removed the disk, reboot the device or power off the device.
With mount command, the device will mount the disk and be able to access to the disk.
When the disk was attached to the device, the device will perform the disk test automatically. As the test is passed, the device mounts disk to its root file system if the DISK_STATE=MOUNT.
The firmware replied the return message after it fully mounts or unmounts the disk. That might take few seconds.
In general, the usage of disk is associated with the specific event handlers in the firmware. When device received DISK_STATE=UNMOUNT command, it will disable the access of the disk. Then, all events with disk access will not take effect until the DISK_STATE=MOUNT command is received.
UNMOUNT: unmount the disk from device root file system
MOUNT: mount the disk to device root file system.
DISK_STATE='MOUNT'
or
ERROR: DISK_STATE not found
OK: DISK_STATE='MOUNT'
or
ERROR: DISK_STATE not found
or
ERROR: internal error. ...
PlatformT Camera, Video server with local storage A1D-310-V4.10 and later PlatformK Camera with local storage A1D-311-V5.02 and later
Valid
http://ip:port/cgi-bin/system?USER=admin&PWD=123456&DISK_STATE
or
http://ip:port/cgi-bin/cmd/system?DISK_STATE
http://ip:port/cgi-bin/system?USER=admin&PWD=123456&DISK_STATE=MOUNT
or
http://ip:port/cgi-bin/cmd/system?DISK_STATE=MOUNT