DISK_STATE

 

Description

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.

Input Argument

UNMOUNT: unmount the disk from device root file system
MOUNT: mount the disk to device root file system.

Attribute

Return of Message

DISK_STATE='MOUNT'
or
ERROR: DISK_STATE not found

OK: DISK_STATE='MOUNT'
or
ERROR: DISK_STATE not found
or
ERROR: internal error. ...

Applicability

PlatformT Camera, Video server with local storage A1D-310-V4.10 and later
PlatformK Camera with local storage A1D-311-V5.02 and later
PlatformK Camera A1D-311-V5.08.06 and later
PlatformA1 Camera A1D-500-V6.02 and later

Statue

Valid

See also

DISK_FORMAT, DISK_FORMAT_LOG

Example

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

Back To

HOME, SYSTEM CGI