Data storage method and electronic device
An electronic device, a technology for storing data, applied in the direction of protecting stored content from loss, etc., can solve the problems of low TLC write life and data loss, and achieve the goal of improving security and reliability, reducing the number of erasing and writing, and prolonging the service life. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] see figure 1 , the present embodiment provides a method for storing data, which is applied to an electronic device, and the electronic device is connected with a hard disk drive HDD and a solid state disk SSD, and the method includes:
[0043] 101: Cache the data to be stored in the memory of the electronic device and the HDD respectively;
[0044] 102: When the electronic device is normally closed, write the data stored in the memory into the SSD;
[0045] 103: When the electronic device is abnormal, acquire the data from the HDD and write it into the SSD.
[0046] The electronic device in this embodiment may be a computer, a notebook computer, a terminal, a server, etc., which is not specifically limited in the present invention.
[0047] In one embodiment, when an abnormality occurs in the electronic device, obtaining the data from the HDD and writing it into the SSD includes:
[0048] When the electronic device is abnormal, it is judged whether the data stored in...
Embodiment 2
[0059] see figure 2 , the present embodiment provides a method for storing data, which is applied to an electronic device, and the electronic device is connected with a hard disk drive HDD and a solid state disk SSD, and the method includes:
[0060] 201: Record the first moment when the electronic device is turned on;
[0061] 202: Cache the data to be stored in the memory of the electronic device and the HDD respectively;
[0062] 203: When the electronic device is normally closed, write the data stored in the memory into the SSD;
[0063] 204: When the electronic device is abnormal, determine whether the data stored in the internal memory is lost, and if the data stored in the internal memory is lost, save the data stored in the HDD between the first moment and the current moment Write in the SSD.
[0064] 205: After the data is written into the SSD, delete the data stored in the HDD.
[0065] The electronic device in this embodiment may be a computer, a notebook compu...
Embodiment 3
[0073] see image 3 , the present embodiment provides an electronic device for storing data, the electronic device is connected with a hard disk drive HDD and a solid state disk SSD, and the electronic device includes:
[0074] A cache module 301, configured to cache the data to be stored in the memory of the electronic device and the HDD respectively;
[0075] A storage module 302, configured to write the data stored in the internal memory into the SSD when the electronic device is normally shut down; obtain the data from the HDD when the electronic device is abnormal And write in the SSD.
[0076] The electronic device in this embodiment may be a computer, a notebook computer, a terminal, a server, etc., which is not specifically limited in the present invention.
[0077] There are many situations in which the electronic device is abnormal, such as sudden power failure, abnormal restart, crash, etc., which are not specifically limited in the present invention.
[0078] In...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com