摘要 |
<p>A data storage method and a data storage apparatus are provided, where the method includes: after a data card is connected to a host, determining an operating system type of the host; establishing, according to first mounting information in a configuration file, a memory file system that is compatible with a file system type of the host; mounting a storage device according to second mounting information in the configuration file; and setting, according to configuration information in the configuration file, correspondence between a storage space in the memory file system and a mounted storage device, where the configuration information includes an identifier of a storage device, whether to set a corresponding storage space for a storage device that corresponds to an identifier of each storage device in the memory file system, and a size of a set storage space, and the mounted storage device is used to store data that is to be stored in the data card, thereby extending storage capacity of the data card to storage capacity that can be provided by a virtual storage system, without changing a hardware structure of the data card.</p> |