CN116126385A - Data storage device and method capable of updating operating system rapidly - Google Patents

Data storage device and method capable of updating operating system rapidly Download PDF

Info

Publication number
CN116126385A
CN116126385A CN202111341642.4A CN202111341642A CN116126385A CN 116126385 A CN116126385 A CN 116126385A CN 202111341642 A CN202111341642 A CN 202111341642A CN 116126385 A CN116126385 A CN 116126385A
Authority
CN
China
Prior art keywords
sector
operating system
firmware
data storage
system storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111341642.4A
Other languages
Chinese (zh)
Inventor
陈聿扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Innodisk Corp
Original Assignee
Innodisk Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Innodisk Corp filed Critical Innodisk Corp
Priority to CN202111341642.4A priority Critical patent/CN116126385A/en
Publication of CN116126385A publication Critical patent/CN116126385A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a data storage device and method capable of updating an operating system rapidly, wherein the data storage device comprises a controller, a data storage unit, a microprocessor and a network communication component, the controller comprises a firmware, the data storage unit comprises a first system storage sector and a second system storage sector; the first system storage sector stores an original operating system, and the second system storage sector stores a standby operating system; when the data storage device downloads an operating system differential file from the cloud management platform through the network communication component, the firmware updates a standby operating system of the second system storage sector by utilizing the operating system differential file so as to obtain a new version of standby operating system; therefore, the standby operating system can be updated rapidly only by downloading the operating system differential file, so that the convenience in updating the standby operating system is improved.

Description

Data storage device and method capable of updating operating system rapidly
Technical Field
The invention relates to a method capable of quickly updating an operating system of a data storage device.
Background
When a computer is used, the operating system is often damaged due to improper operation, poisoning or power failure. Therefore, before the computer is shipped, the manufacturer of the computer cuts the data storage sector inside the computer into an operating system area and a system restore area. The operating system area stores an operating system, and the system restore area stores a standby operating system, such as a system restore file. When the user wants to execute the operating system updating program of the computer, the user can press a restoring key electrically connected with the main board to trigger the restoring function of the operating system. After the os restore function is triggered, the BIOS or the miniaturized system of the computer will restore the os in the os area by using the standby os in the os restore area.
In addition, in the past, if the standby operating system is to be updated, a completely new standby operating system is generally downloaded from the cloud server of the operating system provider to cover the original standby operating system in the system restore area. However, the archival capacity of the complete new standby operating system is often so large that a long time is required to download the file, which is inconvenient for the updating of the standby operating system.
Disclosure of Invention
An objective of the present invention is to provide a data storage device, which includes a controller, a data storage unit, a microprocessor and a network communication component. The controller includes a firmware, and the microprocessor includes an embedded system. The data storage unit comprises a first system storage sector and a second system storage sector. The first system storage sector stores an original operating system, and the second system storage sector stores a first standby operating system. When the data storage device is to update the standby operating system, the embedded system downloads the operating system differential file from the cloud management platform through the network communication component. The firmware of the controller updates the first standby operating system in the second system storage sector by using the operating system differential file to obtain a new version of the first standby operating system. Therefore, the standby operating system of the data storage device can be updated rapidly only by downloading an operating system differential file with small file capacity, so that the updating convenience of the standby operating system is improved.
Another objective of the present invention is to provide a data storage device, wherein a firmware of a controller presets a boot pointer to a first start sector address of a first system storage sector, and uses the first start sector address as a main boot sector address. When the original operating system is normal, the firmware of the controller reads the main startup record in the first initial sector address, and executes the startup flow of the original operating system by using the main startup record in the first initial sector address. When the original operating system is abnormal, the firmware of the controller executes a boot pointer displacement program to move the boot pointer from a first initial sector address of the first system storage sector to a second initial sector address of the second system storage sector, reads a main boot record in the second initial sector address, and executes a new version of boot flow of the first standby operating system according to the main boot record in the second initial sector address. Thus, when the original operating system is abnormal, the operation of the electronic device can be quickly recovered by using the new version of the first standby operating system by shifting the boot pointer from a first initial sector address of the first system storage sector to a second initial sector address of the second system storage sector.
Another objective of the present invention is to provide a data storage device, wherein the firmware of the controller defines an original operating system update procedure. The data storage unit also comprises a third system storage sector, and the third system storage sector stores a second standby operating system. The firmware of the controller updates the second standby operating system in the third system storage sector by using the operating system differential file to obtain a new version of the second standby operating system. During the operation of the first standby operating system of the second system storage sector, the firmware of the controller executes an original operating system restoring program to update the original operating system of the first system storage sector by using the new version of the second standby operating system of the third system storage sector. When the original operating system in the first system storage sector is updated, the firmware of the controller moves the boot pointer from the second initial sector address back to the first initial sector address, and the electronic device executes the boot again and operates with the updated original operating system.
In order to achieve the above object, the present invention provides a data storage device, comprising: a controller; the data storage unit comprises a first system storage sector, a second system storage sector and a third system storage area, wherein the first system storage sector stores an original operating system, the second system storage sector stores a first standby operating system, and the third system storage area stores a second standby operating system; a microprocessor; the microprocessor is connected with the controller and the network communication component, wherein the data storage device is connected with a cloud management platform through the network communication component; when the data storage device downloads an operating system differential file from the cloud management platform through the network communication component, the microprocessor requests the controller to update the first standby operating system of the second system storage sector and the second standby operating system of the third system storage sector by utilizing the operating system differential file so as to update a new version of the first standby operating system and a new version of the second standby operating system.
In an embodiment of the present invention, the operating system differential file is generated by comparing a data difference between a new version of the operating system and an original operating system by a computer device, and the computer device stores the operating system differential file in a data storage space of the cloud management platform.
In an embodiment of the present invention, the controller includes a firmware, the firmware defines an original operating system update program, and when the original operating system is abnormal or needs to be updated, the firmware executes the original operating system update program to update the original operating system of the first system storage sector by using the new version of the first standby operating system in the second system storage sector, so as to obtain a new version of the operating system.
In one embodiment of the present invention, the first system storage sector includes a first start sector address, the second system storage sector includes a second start sector address, the controller includes a firmware, the firmware defines a boot pointer displacement program, and the firmware presets a boot pointer to point to the first start sector address of the first system storage sector; when the original operating system is abnormal or needs to be updated, the firmware executes a boot pointer displacement program to move the boot pointer from a first initial sector address of a first system storage sector to a second initial sector address of a second system storage sector, and executes boot and operation by a new version of the first standby operating system.
In one embodiment of the present invention, the first system storage sector is preset by the firmware as a display sector, and the second system storage sector is preset by the firmware as a hidden sector; when the boot pointer is moved to a second starting sector address of the second system storage sector, the firmware converts the first system storage sector from the display sector to the hidden sector and converts the second system storage sector from the hidden sector to the display sector.
In one embodiment of the present invention, the firmware defines an original operating system update procedure; when the first standby operating system of the new edition is in operation, the firmware executes the original operating system updating program, and the original operating system of the first system storage sector is updated by utilizing the second standby operating system of the new edition in the third system storage sector.
In an embodiment of the present invention, the network communication device is a WiFi communication device, an ethernet communication device, a 3G, 4G or 5G communication device, or a communication device capable of connecting to the internet.
In an embodiment of the present invention, the microprocessor includes an embedded system, and the cloud management platform monitors or manages the operating system update of the data storage device through the embedded system.
The invention provides a method for updating an operating system of a data storage device rapidly, the data storage device comprises a controller, a microprocessor, a data storage unit and a network communication component, the data storage unit comprises a first system storage sector and a second system storage sector, the first system storage sector stores an original operating system, the second system storage sector stores a first standby operating system, the controller comprises a firmware, the steps of the firmware executing method comprise: downloading an operating system differential file from a cloud management platform through a network communication component; and updating the first standby operating system of the second system storage sector by using the operating system differential file to obtain a new version of the first standby operating system.
In an embodiment of the present invention, the first system storage sector includes a first start sector address, the second system storage sector includes a second start sector address, the firmware defines a boot pointer displacement procedure, and the firmware executing method further includes: presetting a starting pointer to point to a first starting sector address of a first system storage sector; executing a boot pointer displacement program when the original operating system is abnormal so as to move the boot pointer to a second starting sector address of a second system storage sector; and executing startup by the first standby operating system of the new version in the second system storage sector.
In an embodiment of the present invention, the firmware executing method further includes: presetting a first system storage sector as a display sector and a second system storage sector as a hidden sector; and converting the first system storage sector from the display sector to the hidden sector and converting the second system storage sector from the hidden sector to the display sector when the power-on pointer is moved to a second starting sector address of the second system storage sector.
In an embodiment of the present invention, the data storage unit further includes a third system storage sector, the third system storage sector stores a second standby operating system, the controller updates the second standby operating system of the third system storage sector by using the operating system differential file to obtain a new version of the second standby operating system, the firmware further defines an original operating system update program, and when the first standby operating system of the new version is started and operates, the firmware executing method further includes: updating the original operating system of the first system storage sector with a new version of the second alternate operating system in the third system storage sector; executing a boot pointer displacement procedure after the original operating system in the first system storage sector is updated to move the boot pointer back from the second starting sector address of the second system storage sector to the first starting sector address of the first system storage sector; and re-executing the starting by the updated original operating system in the first system storage sector.
Drawings
FIG. 1 is a schematic diagram of a data storage device according to the present invention.
FIG. 2 is a schematic diagram of a sector of an embodiment of a data storage unit of the data storage device of the present invention.
FIG. 3 is a schematic diagram of a sector of a data storage unit of the data storage device according to another embodiment of the present invention.
FIG. 4 is a schematic diagram of a sector of a data storage unit of a data storage device according to another embodiment of the present invention.
FIG. 5 is a flowchart of a method for fast updating an operating system according to an embodiment of the present invention.
FIG. 6 is a flowchart of a method for quickly updating an operating system according to another embodiment of the present invention.
Reference numerals illustrate: 100-a data storage device; 11-a controller; 111-firmware; 1111—a boot pointer displacement procedure; 1113-original operating System restore procedure; 12-a data storage unit; 120-boot pointer; 121-a first system storage sector; 1211-a first initial sector address; 1212-master boot record; 122-a second system storage sector; 1221-a second initial sector address; 1222-master boot record; 123-third system storage sector; 125-data storage sector; 13-a data transmission interface; 14-a network communication component; 15-a microprocessor; 151-embedded system; 16-input/output ports; 161-triggering a key; 21-the original operating system; 22-a first alternate operating system; 221-a new version of the first alternate operating system; 23-a second alternate operating system; 231-a new version of the second alternate operating system; 300-cloud management platform; 301-update notification of the standby operating system; 31-data storage space; 50-a computer device; 51-operating system differential files; 52-new version of operating system.
Detailed Description
Fig. 1 is a schematic structural diagram of a data storage device according to the present invention, and fig. 2 is a schematic sector diagram of an embodiment of a data storage unit of the data storage device according to the present invention. As shown in fig. 1, the data storage device 100 of the present invention may also be a Solid State Disk (Solid State Disk) disposed in an electronic device, such as a computer or an automation device, as an operating system storage medium of the electronic device. The data storage device 100 includes a controller 11, a data storage unit 12, a data transmission interface 13, a network communication component 14 and a microprocessor 15. The controller 11 is connected to the data storage unit 12 and the data transmission interface 13, and the microprocessor 15 is connected to the controller 11 and the network communication component 14. The data storage device 100 performs data transmission with the electronic device through the data transmission interface 13. The network communication device 14 may also be a WiFi communication device, an Ethernet communication device, a 3G, 4G or 5G communication device, or an Internet-connectable communication device.
The controller 11 includes a firmware 111. The data storage unit 12 includes a plurality of flash memories formed with a plurality of data sectors. As shown in fig. 2, the firmware 111 of the controller 11 divides the data sector of the data storage unit 12 into a first system storage sector 121, a second system storage sector 122 and a data storage sector 125. The first system memory sector 121 and the data memory sector 125 are respectively preset as a display sector by the firmware 111, and the second system memory sector 122 is preset as a hidden sector by the firmware. In the present invention, the hidden sector is a physical storage space that cannot be detected by an operating system or BIOS through the logical block address, for example: the second system storage sector 122 is a reserved space (Over Provisioning, OP) provided by the solid state disk manufacturer.
The first system storage sector 121 is used for storing an original operating system 21 and includes a first initial sector address 1211. The second system storage sector 122 is used for storing a first standby operating system 22 and includes a second initial sector address 1221. The data sector of the first initial sector address 1211 is recorded with a master boot record (Master Boot Record; MBR) 1212, while the data sector of the second initial sector address 1221 is recorded with another Master Boot Record (MBR) 1222. The first alternate operating system 22 has the same data content as the original operating system 21.
The data storage device 100 of the present invention is connected to a cloud management platform 300 through the network communication component 14. A data storage space 31 of the cloud management platform 300 stores an operating system differential file 51. The operating system differential file 51 is provided by a computer device 50. In an embodiment of the present invention, the computer device 50 may also be a server computer and disposed in a cloud management platform 300; alternatively, the computer device 50 is an external computer with respect to the cloud management platform 300, and the network thereof is connected to the cloud management platform 300. The computer device 50 stores an original operating system 21 provided by an operating system developer and a new version of the operating system 52. The computer device 50 performs a data difference comparison on the original os 21 and the new version os 52 by using a data comparison algorithm to generate the os differential file 51, and stores the os differential file 51 in the data storage space 31 of the cloud management platform 300.
Furthermore, the microprocessor 15 of the present invention may be a separate chip; alternatively, the microprocessor 15 may be integrated into the controller 11. The microprocessor 15 includes an embedded system 151. The cloud management platform 300 monitors or manages the operation system update operation of the data storage device 100 through the embedded system 151 of the microprocessor 15. When the data storage device 100 wants to update the standby os, the embedded system 151 downloads the os differential file 51 from the cloud management platform 300 through the network communication component 14. The firmware 111 of the controller 11 updates the first standby operating system 22 in the second system storage sector 122 with the operating system differential file 51 to obtain a new version of the first standby operating system 221. In this regard, compared to the conventional case of downloading a complete new version of the operating system with a large file capacity when the standby operating system of the data storage device is to be updated, the data storage device 100 of the present invention can rapidly update the standby operating system by downloading the operating system differential file 51 with a small file capacity, so as to improve the convenience of updating the standby operating system.
Next, the firmware 111 of the controller 11 presets a boot pointer 120 to point to a first start sector address 1211 of the first system storage sector 121, and uses the first start sector address 1211 as a main boot sector address, for example: the zeroth logical block address (Logical block addressing, LBA 0). When the electronic device is started (power on), first, according to the direction of the boot pointer 120, the firmware 111 of the controller 11 enters the first system storage sector 121 of the data storage unit 12, reads the main boot record 1212 in the first initial sector address 1211 of the first system storage sector 121, and uses the main boot record 1212 to execute the boot process of the original operating system 21. After the original operating system 21 is normally started, the electronic device will execute the operation with the original operating system 21.
Furthermore, the firmware 111 defines a boot pointer shift process 1111. In an embodiment of the present invention, when the original operating system 21 is abnormal or the operating system needs to be updated, the firmware 111 executes the boot pointer shift procedure 1111 to shift the boot pointer 120 from the first initial sector address 1211 of the first system storage sector 121 to the second initial sector address 1221 of the second system storage sector 122, where the second initial sector address 1221 is used as the main boot sector address (LBA 0). Also, the first system storage sector 121 is converted from a display sector to a hidden sector, and the second system storage sector 122 is converted from a hidden sector to a display sector. Then, the firmware 111 of the controller 11 reads the primary boot record 1222 in the second initial sector address 1221 of the second system storage sector 122, and uses the primary boot record 1222 to execute the boot process of the new version of the first standby operating system 221. After the new version of the first standby operating system 221 is started up normally, the electronic device will execute the operation with the new version of the first standby operating system 221. Thus, when the original operating system 21 is abnormal or the operating system needs to be updated, the boot pointer 120 can be shifted to the second initial sector address 1221 of the second system storage sector 122, so that the new version of the first standby operating system 221 can be quickly utilized to resume the booting of the electronic device.
Referring to FIG. 3, a sector diagram of a data storage unit of a data storage device according to another embodiment of the present invention is shown, and in conjunction with FIG. 1. As shown in fig. 1 and 3, in the present embodiment, the firmware 111 of the controller 11 defines an original os update program 1113. When the original operating system 21 is abnormal or needs to be updated, the firmware 111 executes the original operating system update program 1113 to update the original operating system 21 of the first system storage sector 121 with the new version of the first standby operating system 221 in the second system storage sector 122. When the original operating system 21 is updated, the firmware 111 of the controller 11 is restarted and operated by using the updated original operating system 21.
Referring to FIG. 4, a sector diagram of a data storage unit of a data storage device according to another embodiment of the present invention is shown, and in conjunction with FIG. 1. As shown in fig. 1 and 4, the data storage unit 12 of the present embodiment is further divided into a third system storage sector 123. The third system memory sector 123 is set by the firmware as a hidden sector, which is also the reserved space (OP) of the data storage unit 12. The third system storage sector 123 is used to store a second standby operating system 23. The second standby operating system 23 has the same data content as the first standby operating system 22 and the original operating system 21.
When the standby operating systems 22 and 23 are updated, the embedded system 151 downloads the os differential file 51 from the cloud management platform 300 through the network communication component 14, and the firmware 111 of the controller 11 updates the standby operating systems 22 and 23 by using the os differential file 51 so as to obtain new versions of the standby operating systems 221 and 231 respectively.
In one embodiment of the present invention, the data storage device 100 can be required to update the standby operating systems 22, 23 in a remote control manner. The cloud management platform 300 sends an update notification 301 of a standby os to the data storage device 100. After receiving the update notification 301 of the standby os sent by the cloud management platform 300, the embedded system 151 of the data storage device 100 downloads the os differential file 51 from the cloud management platform 300 through the network communication component 14, and requests the firmware 111 to update the standby os 22 and 23 by using the os differential file 51.
Alternatively, in another embodiment of the present invention, the data storage device 100 can be required to update the standby operating systems 22, 23 in a hardware control manner. The data storage device 100 further includes an input/output port (e.g., GPIO) 16. The I/O port 16 is connected to the microprocessor 15 or the controller 11 and is externally connected to a trigger key 161. When the user wants to update the standby operating systems 22, 23, pressing the trigger key 161 triggers the input/output port 16. When the embedded system 151 knows that the input/output port 16 is triggered, it downloads the os differential file 51 from the cloud management platform 300 through the network communication component 14, and requests the firmware 111 to update the standby os 22, 23 with the os differential file 51.
Next, the firmware 111 of the controller 11 defines a boot pointer shift program 1111 and an original os update program 1113. When the original operating system 21 is abnormal and a smooth boot cannot be performed, the firmware 111 executes the boot pointer displacement program 1111 to move the boot pointer 120 from the first initial sector address 1211 of the first system storage sector 121 to the second initial sector address 1221 of the second system storage sector 122. After the boot pointer 120 is moved to the second initial sector address 1221, the firmware 111 of the controller 11 converts the first system storage sector 121 from the display sector to the hidden sector, and the second system storage sector 122 from the hidden sector to the display sector. Next, the firmware 111 reads the primary boot record 1222 in the second initial sector address 1221 of the second system storage sector 122, and uses the primary boot record 1222 to execute the boot process of the new version of the first standby operating system 221. When the new version of the first standby operating system 221 has completed booting and is running, the firmware 111 then executes the original operating system update program 1113 to update the original operating system 21 in the first system storage sector 121 with the new version of the second standby operating system 231 in the third system storage sector 123. When the original os 21 is updated, the firmware 111 sets the first system storage sector 121 as a display sector and the second system storage sector 122 as a hidden sector, and restarts and operates with the updated original os 21 in the first system storage sector 121.
In addition, in one embodiment, the firmware 111 is controlled to execute the boot pointer shift program 1111 and/or the original operating system update program 1113 in a system monitoring manner. When the embedded system 151 monitors that the original operating system 21 is abnormal or receives the information that the cloud management platform 300 requests the data storage device 100 to update the original operating system 21, the firmware 1111 is required to execute the boot pointer shift program 1111 and/or the original operating system update program 1113. Alternatively, in another embodiment of the present invention, the firmware 111 can be controlled to execute the boot pointer shift program 1111 or the original operating system update program 1113 in a hardware triggered manner. When the user knows that the original operating system 21 is abnormal or wants to update the original operating system 21 of the data storage device 100, the user can also press the trigger key 161 to trigger the input/output port 16. When the embedded system 151 knows that the input/output port 16 has been triggered, the firmware 1111 will be required to execute the boot pointer shift process 1111 and/or the original operating system update process 1113.
Referring to FIG. 5, a flowchart of a method for rapidly updating an operating system according to an embodiment of the present invention is shown. As shown in fig. 1 and 2, the data storage unit 12 of the data storage device 100 includes a first system storage sector 121, a second system storage sector 122, and a data storage sector 125. The first system storage sector 121 and the data storage sector 125 are respectively preset as a display sector, and the second system storage sector 122 is preset as a hidden sector. The first system storage sector 121 stores an original operating system 21, and the second system storage sector 122 stores a first alternate operating system 22. The first system storage sector 121 includes a first initial sector address 1211 and the second system storage sector 122 includes a second initial sector address 1221. The first initial sector address 1211 has a master boot record 1212 and the second initial sector address 1221 has another master boot record 1222.
As shown in fig. 5, first, in step S71, the firmware 111 of the controller 11 presets a boot pointer 120 to point to a first initial sector address 1211 of the first system storage sector 121. In step S72, when the power of the computer device is turned on, the firmware 111 of the controller 11 reads the main boot record 1212 in the first initial sector address 1211, and the electronic device is turned on and operates with the original os 21. In step S73, the embedded system 151 downloads an os differential file 51 from the cloud management platform 300. In step S74, the firmware 111 of the controller 11 updates the first standby operating system 22 in the second system storage sector 122 with the os differential file 51 to obtain a new version of the first standby operating system 221.
In step S75, the embedded system 151 determines whether the original operating system 21 is abnormal or needs to be updated. If the original operating system 21 is normal and does not need to be updated, the step S76 is continued, and the electronic device continues to operate with the original operating system 21; if the original operating system 21 is abnormal or needs to be updated, the process continues to step S77, in which the firmware 111 of the controller 11 executes a boot pointer displacement procedure 1111 to move the boot pointer 120 from the first initial sector address 1211 to the second initial sector address 1221. In step S78, the firmware 111 of the controller 11 reads the main boot record 1222 in the second initial sector address 1221, and converts the first system storage sector 121 from the display sector to the hidden sector and the second system storage sector 122 from the hidden sector to the display sector, and the electronic device will perform the booting and operation with the new version of the first standby operating system 221.
In another embodiment of the present invention, the data storage unit 12 further divides a third system storage sector 123, as shown in fig. 4. The third system storage sector 123 stores a second spare operating system 23. Returning to step S74, the firmware 111 of the controller 11 further updates the second standby operating system 23 in the third system storage sector 123 with the os differential file 51 to obtain a new version of the second standby operating system 231.
Next, in step S79, during the operation of the new version of the second spare os 221 in the second system storage sector 122, the firmware 111 of the controller 11 executes an original os restore process 1113 to update the original os 21 of the first system storage sector 121 with the new version of the second spare os 231 in the third system storage sector 123. Finally, in step S80, when the electronic device is started next time, the firmware 111 of the controller 11 moves the boot pointer 120 back from the second initial sector address 1221 to the first initial sector address 1211, converts the first system storage sector 121 from the hidden sector to the display sector and the second system storage sector 122 from the display sector to the hidden sector, reads the main boot record 1212 in the first initial sector address 1211, and executes the booting again with the updated original operating system 21 in the first system storage sector 121.
Referring to fig. 6, a flowchart of a method for quickly updating an operating system according to another embodiment of the present invention is shown, and referring to fig. 1 and 3. First, in step S71, the firmware 111 of the controller 11 presets a boot pointer 120 to the first initial sector address 1211 of the first system storage sector 121. In step S72, when the power of the computer device is turned on, the firmware 111 of the controller 11 reads the main boot record 1212 in the first initial sector address 1211, and the electronic device is turned on and operates with the original os 21. In step S73, the embedded system 151 downloads an os differential file 51 from the cloud management platform 300. In step S741, the firmware 111 of the controller 11 updates the first standby operating system 22 in the second system storage sector 122 with the os differential file 51 to obtain a new version of the first standby operating system 221.
In step S75, the embedded system 151 determines whether the original operating system 21 is abnormal or needs to be updated. If the original operating system 21 is normal and does not need to be updated, the step S76 is continued, and the electronic device continues to operate with the original operating system 21; if the original operating system 21 is abnormal or needs to be updated, the step S81 is continued, and the firmware 111 of the controller 11 executes an original operating system restore process 1113 to update the original operating system 21 of the first system storage sector 121 with the new version of the first standby operating system 221 in the second system storage sector 122. Finally, in step S82, the firmware 111 of the controller 11 is powered on and operates again with the original os 21 updated in the first system storage sector 121.
The foregoing description is only one preferred embodiment of the present invention and is not intended to limit the scope of the invention, i.e., all equivalent variations and modifications in shape, construction, characteristics and spirit of the invention as defined in the appended claims should be construed to be included in the present claims.

Claims (14)

1. A data storage device, comprising:
a controller;
the data storage unit comprises a first system storage sector and a second system storage sector, wherein the first system storage sector stores an original operating system, and the second system storage sector stores a first standby operating system;
a microprocessor;
the controller is connected with the data storage unit, the microprocessor is connected with the controller and the network communication assembly, and the data storage device is connected with a cloud management platform through the network communication assembly;
when the data storage device downloads an operating system differential file from the cloud management platform through the network communication component, the microprocessor requests the controller to update the first standby operating system of the second system storage sector by using the operating system differential file so as to update a new version of the first standby operating system.
2. The data storage device of claim 1, wherein the operating system differential file is generated by a computer device comparing data differences between a new version of the operating system and the original operating system, the computer device storing the operating system differential file in a data storage space of the cloud management platform.
3. The data storage device of claim 1, wherein the controller comprises a firmware defining an original operating system update program, the firmware executing the original operating system update program to update the original operating system of the first system storage sector with the new version of the first standby operating system in the second system storage sector to obtain a new version of operating system when the original operating system is abnormal or needs to be updated.
4. The data storage device of claim 1, wherein the first system storage sector includes a first start sector address, the second system storage sector includes a second start sector address, the controller includes a firmware defining a boot pointer displacement procedure, the firmware presets a boot pointer to point to the first start sector address of the first system storage sector; when the original operating system is abnormal or needs to be updated, the firmware executes the boot pointer displacement program to move the boot pointer from the first initial sector address of the first system storage sector to the second initial sector address of the second system storage sector, and executes the boot and operation by the new version of the first standby operating system.
5. The data storage device of claim 4, wherein the first system storage sector is preset by the firmware as a display sector and the second system storage sector is preset by the firmware as a hidden sector; when the boot pointer is moved to the second starting sector address of the second system storage sector, the firmware converts the first system storage sector from the display sector to the hidden sector and the second system storage sector from the hidden sector to the display sector.
6. The data storage device of claim 4, wherein the data storage unit further comprises a third system storage sector, the third system storage sector storing a second alternate operating system, the controller updating the second alternate operating system of the third system storage sector with the operating system differential file to obtain a new version of the second alternate operating system; the firmware defines an original operating system updating program; when the first standby operating system of the new edition is operated, the firmware executes the original operating system updating program, and the original operating system of the first system storage sector is updated by utilizing the second standby operating system of the new edition in the third system storage sector.
7. The data storage device of claim 1, wherein the network communication device is a WiFi communication device, an ethernet communication device, a 3G, 4G or 5G communication device, or a communication device connected to the internet.
8. The data storage device of claim 1, wherein the microprocessor comprises an embedded system, and the cloud management platform monitors or manages an operating system update operation of the data storage device via the embedded system.
9. A method for quickly updating an operating system of a data storage device, the data storage device comprising a controller, a data storage unit, a microprocessor and a network communication component, the data storage unit comprising a first system storage sector and a second system storage sector, the first system storage sector storing an original operating system, the second system storage sector storing a first alternate operating system, the controller comprising a firmware, the firmware executing the method comprising:
downloading an operating system differential file from a cloud management platform through the network communication component; and
And updating the first standby operating system of the second system storage sector by using the operating system differential file to obtain a new version of the first standby operating system.
10. The method of claim 9, wherein the operating system differential file is generated by a computer device comparing data differences between a new version of the operating system and the original operating system, the computer device storing the operating system differential file in a data storage space of the cloud management platform.
11. The method of claim 9, wherein the firmware defines an original operating system update program that is executed by the firmware to update the original operating system of the first system storage sector with the new version of the first alternate operating system in the second system storage sector when the original operating system is abnormal or needs to be updated.
12. The method of claim 9, wherein the first system storage sector includes a first start sector address, the second system storage sector includes a second start sector address, the firmware defines a boot pointer shift procedure, and the firmware performs the method further comprising:
presetting a starting pointer to point to the first starting sector address of the first system storage sector;
executing the boot pointer displacement program to move the boot pointer to the second starting sector address of the second system storage sector when the original operating system is abnormal; and
And executing starting by using the first standby operating system of the new version in the second system storage sector.
13. The method of claim 12, wherein the firmware executing the method further comprises:
presetting the first system storage sector as a display sector and the second system storage sector as a hidden sector; and
The first system storage sector is converted from the display sector to the hidden sector and the second system storage sector is converted from the hidden sector to the display sector when the boot pointer is moved to the second starting sector address of the second system storage sector.
14. The method of claim 12, wherein the data storage unit further comprises a third system storage sector, the third system storage sector stores a second standby operating system, the controller updates the second standby operating system of the third system storage sector with the operating system differential file to obtain a new version of the second standby operating system, the firmware further defines an original operating system update program, and when the first standby operating system of the new version is powered on and is running, the firmware performs the method further comprising:
updating the original operating system of the first system storage sector with the new version of the second alternate operating system in the third system storage sector;
executing the boot pointer displacement procedure after the original operating system in the first system storage sector is updated to move the boot pointer from the second starting sector address of the second system storage sector back to the first starting sector address of the first system storage sector; and
And re-executing starting by the updated original operating system in the first system storage sector.
CN202111341642.4A 2021-11-12 2021-11-12 Data storage device and method capable of updating operating system rapidly Pending CN116126385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111341642.4A CN116126385A (en) 2021-11-12 2021-11-12 Data storage device and method capable of updating operating system rapidly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111341642.4A CN116126385A (en) 2021-11-12 2021-11-12 Data storage device and method capable of updating operating system rapidly

Publications (1)

Publication Number Publication Date
CN116126385A true CN116126385A (en) 2023-05-16

Family

ID=86299555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111341642.4A Pending CN116126385A (en) 2021-11-12 2021-11-12 Data storage device and method capable of updating operating system rapidly

Country Status (1)

Country Link
CN (1) CN116126385A (en)

Similar Documents

Publication Publication Date Title
TWI363298B (en) Communication device and firmware update method thereof
EP2076834A1 (en) Program upgrade system and method for ota-capable mobile terminal
KR102692889B1 (en) Method for updating firmware, electronic device and storage medium therefor
TWI722269B (en) Firmware updating method and electronic device using the same
WO2009074444A2 (en) Updating firmware of an electronic device
TWI765443B (en) Data storage device and method for maintaining normal boot operation of data storage device
TWI813869B (en) Data storage device and method for maintaining normal boot operation of data storage device
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN105183517A (en) Method and device for mounting external storage equipment in recovery mode and electronic device
US7188278B1 (en) Method, system, and apparatus for utilizing compressed program code in the boot block portion of a computer BIOS
US10642623B1 (en) Preserving firmware settings during firmware updates
KR20070118138A (en) Information processing device, program, and storage medium
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
US20220179756A1 (en) Computer system and method capable of self-monitoring and restoring an operation of operating system
JP2003345730A (en) Interface device, method for updating firmware in interface device and program therefor
CN111522690B (en) Data storage device and method for maintaining normal start-up operation of data storage device
CN116126385A (en) Data storage device and method capable of updating operating system rapidly
TWI520063B (en) Management system for service of multiple operating environments, and method thereof
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
TWI786945B (en) Data storage device and method capable of quickly updating operating system
KR101850275B1 (en) Method for generating boot image for fast booting and image forming apparatus for performing the same, method for performing fast booting and image forming apparatus for performing the same
CN114020308A (en) Camera equipment upgrading method, device, equipment and medium
TWI489390B (en) Electronic apparatus and system updating method thereof
KR101850272B1 (en) Method for updating boot image for fast booting and image forming apparatus for performing the same
KR100636518B1 (en) Method for upgrade of firmware in mobile telecommunication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination