1. A method for preventing data loss during reboot, comprising: pre-allocating, by a logical storage resource management device, reserved memory for storing a storage resource mapping table; allocating, by the logical storage resource management device, logical storage resources to a data source device before a system is rebooted, and recording, in the storage resource mapping table, a physical location of the logical storage resources into which data has been written when the data source device writes the data into the logical storage resources; and obtaining, by the logical storage resource management device, the physical location of the logical storage resources into which the data has been written from the storage resource mapping table when the system is rebooted, setting a state of a physical memory block corresponding to the logical storage resources into which the data has been written as used, and releasing all logical storage resources after the data source device reads the data.