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

Data storage device and method capable of rapidly updating operating system 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
operating system
sector
firmware
data storage
storage sector
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 rapidly updating operating system

技术领域technical field

本发明有关于一种可对于数据储存装置的操作系统快速更新的方法。The invention relates to a method for quickly updating the operating system of a data storage device.

背景技术Background technique

计算机使用时,常常会因为操作的失当、中毒或断电而造成操作系统的损坏。因此,以往计算机出货前,计算机制造商都会对于计算机内部的数据储存扇区切割成一操作系统区及一系统还原区。操作系统区储存有一操作系统,而系统还原区储存有一备用操作系统,如系统还原文件。当用户欲执行计算机的操作系统更新程序时,能够按压一电性连接主板的一还原键进行操作系统还原功能的触发。操作系统还原功能被触发后,计算机的BIOS或微型化系统将利用系统还原区中的备用操作系统来还原操作系统区中的操作系统。When the computer is used, the operating system is often damaged due to improper operation, poisoning or power failure. Therefore, in the past, before the computer was shipped, the computer manufacturer would divide 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 backup operating system, such as system restore files. When the user wants to execute the update program of the operating system of the computer, he can press a restore key electrically connected to the main board to trigger the restore function of the operating system. After the operating system restore function is triggered, the BIOS or miniaturized system of the computer will use the spare operating system in the system restore area to restore the operating system in the operating system area.

此外,以往备用操作系统若要更新,通常会从操作系统供应者的云端服务器下载一完整新的备用操作系统以覆盖系统还原区中原本的备用操作系统。然而,完整新的备用操作系统的档案容量往往是非常大的,以致需要一较长的时间来下载文件,这对于备用操作系统的更新而言是非常不便利的。In addition, in the past, if the backup operating system needs to be updated, a completely new backup operating system is usually downloaded from the cloud server of the operating system provider to overwrite the original backup operating system in the system restore area. However, the file capacity of a complete new standby operating system is often very large, so that it takes a long time to download the file, which is very inconvenient for the update of the standby operating system.

发明内容Contents of the invention

本发明的一目的,在于提出一种数据储存装置,其包括一控制器、一数据储存单元、一微处理器及一网络通讯组件。控制器包括一韧体,而微处理器包括一嵌入式系统。数据储存单元包括一第一系统储存扇区以及一第二系统储存扇区。第一系统储存扇区储存有一原始操作系统,而第二系统储存扇区储存有一第一备用操作系统。当数据储存装置欲对于备用操作系统进行更新时,嵌入式系统通过网络通讯组件从云端管理平台下载操作系统差分档案。控制器的韧体利用操作系统差分档案更新第二系统储存扇区中的第一备用操作系统,以取得一新版的第一备用操作系统。于此,只要下载一个小的档案容量的操作系统差分档案就可以快速地更新数据储存装置的备用操作系统,以提升备用操作系统更新上的便利性。An object 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 includes 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 backup operating system. When the data storage device intends 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 uses the operating system differential file to update the first standby operating system in the storage sector of the second system to obtain a new version of the first standby operating system. Herein, the backup operating system of the data storage device can be updated quickly only by downloading an operating system differential file with a small file size, so as to improve the convenience of updating the backup operating system.

本发明的又一目的,在于提出一种数据储存装置,其控制器的韧体预设一开机指针指向第一系统储存扇区的一第一起始扇区地址,并以第一起始扇区地址作为一主启动扇区地址。当原始操作系统正常时,控制器的韧体读取第一初始扇区地址中的主启动记录,并以第一初始扇区地址中的主启动记录执行原始操作系统的开机流程。当原始操作系统异常时,控制器的韧体将会执行一开机指针位移程序,以将开机指针从第一系统储存扇区的第一初始扇区地址移至第二系统储存扇区的一第二初始扇区地址,且读取第二初始扇区地址中的主启动记录,并以第二初始扇区地址中的主启动记录执行新版的第一备用操作系统的开机流程。如此,当原始操作系统异常时,将可以通过开机指针从第一系统储存扇区的一第一起始扇区地址位移至第二系统储存扇区的第二初始扇区地址,而快速地利用新版的第一备用操作系统恢复电子装置的运作。Another object of the present invention is to propose a data storage device, the firmware of its controller presets a boot pointer to point to a first initial sector address of the first system storage sector, and uses the first initial sector address As a master boot sector address. When the original operating system is normal, the firmware of the controller reads the master boot record in the first initial sector address, and uses the master boot record in the first initial sector address to execute the boot process of the original operating system. When the original operating system is abnormal, the firmware of the controller will execute a boot pointer displacement program to move the boot pointer from the first initial sector address of the first system storage sector to a first address of the second system storage sector. Two initial sector addresses, and read the master boot record in the second initial sector address, and use the master boot record in the second initial sector address to execute the boot process of the new version of the first standby operating system. In this way, when the original operating system is abnormal, the boot pointer can be shifted from a first initial sector address of the first system storage sector to a second initial sector address of the second system storage sector, and the new version can be quickly used. The first backup operating system restores the operation of the electronic device.

本发明的又一目的,在于提出一种数据储存装置,其控制器的韧体定义有一原始操作系统更新程序。并且,数据储存单元还包括有一第三系统储存扇区,第三系统储存扇区储存有一第二备用操作系统。控制器的韧体利用操作系统差分档案更新第三系统储存扇区中的第二备用操作系统,以取得一新版的第二备用操作系统。在第二系统储存扇区的第一备用操作系统的运作期间,控制器的韧体执行一原始操作系统还原程序,以利用第三系统储存扇区中新版的第二备用操作系统更新第一系统储存扇区的原始操作系统。当第一系统储存扇区中的原始操作系统被更新后,控制器的韧体将开机指针从第二初始扇区地址移回第一初始扇区地址,电子装置以更新后的原始操作系统再次执行开机且运作。Another object of the present invention is to provide a data storage device, the firmware of the controller defines an original operating system update program. Moreover, the data storage unit also includes a third system storage sector, and the third system storage sector stores a second standby operating system. The firmware of the controller uses the operating system differential file to update the second standby operating system in the storage sector of the third system to obtain a new version of the second standby operating system. During the operation of the first standby operating system in the second system storage sector, the firmware of the controller executes an original operating system restoration procedure to update the first system with a new version of the second standby operating system in the third system storage sector The original operating system of the storage sector. After 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 restarts with the updated original operating system Execute boot up and work.

为达成上述目的,本发明提供一种数据储存装置,包括:一控制器;一数据储存单元,包括一第一系统储存扇区、一第二系统储存扇区及一第三系统储存区,其中第一系统储存扇区储存有一原始操作系统,第二系统储存扇区储存有一第一备用操作系统,第三系统储存区储存有一第二备用操作系统;一微处理器;一网络通讯组件,控制器连接数据储存单元,而微处理器连接控制器及网络通讯组件,其中数据储存装置通过网络通讯组件联机一云端管理平台;其中,当数据储存装置通过网络通讯组件从云端管理平台下载一操作系统差分档案时,微处理器要求控制器利用操作系统差分档案更新第二系统储存扇区的第一备用操作系统及第三系统储存扇区的第二备用操作系统,以更新出一新版的第一备用操作系统及一新版的第二备用操作系统。To achieve the above object, the present invention provides a data storage device, including: a controller; a data storage unit, including 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 backup operating system, and the third system storage area stores a second backup operating system; a microprocessor; a network communication component, controlling The device is connected to the data storage unit, and the microprocessor is connected to the controller and the network communication component, wherein the data storage device is connected to a cloud management platform through the network communication component; wherein, when the data storage device downloads an operating system from the cloud management platform through the network communication component When the differential file is used, the microprocessor requires the controller to use the operating system differential file to update the first standby operating system of the storage sector of the second system and the second standby operating system of the storage sector of the third system to update a new version of the first The alternate operating system and a new version of the second alternate operating system.

本发明一实施例中,操作系统差分档案由一计算机设备比对一新版操作系统与原始操作系统间的数据差异而产生,计算机设备将操作系统差分档案储存在云端管理平台的一数据储存空间中。In one embodiment of the present invention, the operating system differential file is generated by a computer device comparing the data difference between a new version of the operating system and the original operating system, and the computer device stores the operating system differential file in a data storage space on the cloud management platform .

本发明一实施例中,控制器包括一韧体,韧体定义有一原始操作系统更新程序,当原始操作系统异常时或需要更新时,韧体执行原始操作系统更新程序,以利用第二系统储存扇区中的新版的第一备用操作系统更新第一系统储存扇区的原始操作系统,而取得一新版操作系统。In one embodiment of the present invention, the controller includes a firmware, which defines an original operating system update program. When the original operating system is abnormal or needs to be updated, the firmware executes the original operating system update program to utilize the second system storage The new version of the first standby operating system in the sector updates the original operating system in the storage sector of the first system to obtain a new version of the operating system.

本发明一实施例中,第一系统储存扇区包括一第一起始扇区地址,第二系统储存扇区包括一第二起始扇区地址,控制器包括一韧体,韧体定义有一开机指针位移程序,韧体预设一开机指针指向第一系统储存扇区的第一起始扇区地址;当原始操作系统异常时或需要更新时,韧体执行开机指针位移程序,以将开机指针从第一系统储存扇区的第一起始扇区地址移至第二系统储存扇区的第二起始扇区地址,并以新版的第一备用操作系统执行开机且运作。In one embodiment of the present invention, the first system storage sector includes a first initial sector address, the second system storage sector includes a second initial sector address, the controller includes a firmware, and the firmware defines a boot Pointer displacement program, the firmware presets a boot pointer to point to the first starting 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 starting sector address of the first system storage sector is moved to the second starting sector address of the second system storage sector, and the new version of the first standby operating system is used to boot and operate.

本发明一实施例中,第一系统储存扇区被韧体预设为一显示扇区,而第二系统储存扇区被韧体预设为一隐藏扇区;当开机指针移至第二系统储存扇区的第二起始扇区地址时,韧体将第一系统储存扇区从显示扇区转换为隐藏扇区而将第二系统储存扇区从隐藏扇区转换为显示扇区。In one embodiment of the present invention, the first system storage sector is preset as a display sector by the firmware, and the second system storage sector is preset as a hidden sector by the firmware; when the boot pointer moves to the second system When storing the second initial sector address of the sector, the firmware converts the storage sector of the first system from a display sector to a hidden sector and converts the storage sector of the second system from a hidden sector to a display sector.

本发明一实施例中,韧体定义有一原始操作系统更新程序;当新版的第一备用操作系统运作期间时,韧体执行原始操作系统更新程序,利用第三系统储存扇区中的新版的第二备用操作系统更新第一系统储存扇区的原始操作系统。In one embodiment of the present invention, the firmware defines an original operating system update program; when the new version of the first standby operating system is in operation, the firmware executes the original operating system update program, and utilizes the new version of the first operating system in the storage sector of the third system. The second backup operating system updates the original operating system in the storage sector of the first system.

本发明一实施例中,其中网络通讯组件为一WiFi通讯组件、一以太网络通讯组件、一3G、4G或5G通讯组件或一可连接因特网的通讯组件。In an embodiment of the present invention, the network communication component is a WiFi communication component, an Ethernet communication component, a 3G, 4G or 5G communication component or a communication component 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 update of the operating system of the data storage device through the embedded system.

本发明提供一种可快速更新数据储存装置的操作系统的方法,数据储存装置包括一控制器、一微处理器、一数据储存单元及一网络通讯组件,数据储存单元包括一第一系统储存扇区及一第二系统储存扇区,第一系统储存扇区储存有一原始操作系统,第二系统储存扇区储存有一第一备用操作系统,控制器包括一韧体,韧体执行方法的步骤包括:通过网络通讯组件从一云端管理平台下载一操作系统差分档案;及利用操作系统差分档案更新第二系统储存扇区的第一备用操作系统以取得一新版的第一备用操作系统。The present invention provides a method for quickly updating the operating system of a data storage device. The data storage device includes a controller, a microprocessor, a data storage unit, and a network communication component. The data storage unit includes a first system storage fan. area and a second system storage sector, the first system storage sector stores an original operating system, the second system storage sector stores a first backup operating system, the controller includes a firmware, and the steps of the firmware execution method include : downloading an operating system differential file from a cloud management platform through the network communication component; and updating the first standby operating system in the storage sector of the second system by using the operating system differential file to obtain a new version of the first standby operating system.

本发明一实施例中,第一系统储存扇区包括一第一起始扇区地址,第二系统储存扇区包括一第二起始扇区地址,韧体定义有一开机指针位移程序,韧体执行方法更包括:预设一开机指针指向第一系统储存扇区的第一起始扇区地址;在原始操作系统异常时执行开机指针位移程序以将开机指针移至第二系统储存扇区的第二起始扇区地址;及以第二系统储存扇区中的新版的第一备用操作系统执行开机。In one embodiment of the present invention, the first system storage sector includes a first initial sector address, the second system storage sector includes a second initial sector address, the firmware defines a boot pointer displacement program, and the firmware executes The method further includes: preset a boot pointer to point to the first starting sector address of the first system storage sector; and execute the boot pointer displacement program to move the boot pointer to the second address of the second system storage sector when the original operating system is abnormal. start sector address; and perform booting with the new version of the first standby operating system in the second system storage sector.

本发明一实施例中,韧体执行方法还包括:预设第一系统储存扇区为一显示扇区而第二系统储存扇区为一隐藏扇区;及在开机指针移至第二系统储存扇区的第二起始扇区地址时将第一系统储存扇区从显示扇区转换为隐藏扇区且将第二系统储存扇区从隐藏扇区转换为显示扇区。In an embodiment of the present invention, the firmware execution method further includes: defaulting the first system storage sector as a display sector and the second system storage sector as a hidden sector; and moving the boot pointer to the second system storage sector The second starting sector address of the sector 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 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, and the controller uses the operating system differential file to update the third system storage sector Two standby operating systems to obtain a new version of the second standby operating system, the firmware also defines an original operating system update program, when the new version of the first standby operating system is booted and operated, the firmware execution method also includes: using the first standby operating system The second standby operating system of the new version in the three system storage sectors updates the original operating system in the first system storage sector; after the original operating system in the first system storage sector is updated, execute the boot pointer displacement program to move the boot pointer Move back from the second start sector address of the second system storage sector to the first start sector address of the first system storage sector; and re-execute booting with the updated original operating system in the first system storage sector .

附图说明Description of drawings

图1为本发明数据储存装置的结构示意图。FIG. 1 is a schematic structural diagram of a data storage device of the present invention.

图2为本发明数据储存装置的数据储存单元一实施例的扇区示意图。FIG. 2 is a schematic diagram of sectors of an embodiment of a data storage unit of the data storage device of the present invention.

图3为本发明数据储存装置的数据储存单元又一实施例的扇区示意图。FIG. 3 is a schematic diagram of sectors of another embodiment of a data storage unit of the data storage device of the present invention.

图4为本发明数据储存装置的数据储存单元又一实施例的扇区示意图。FIG. 4 is a schematic diagram of sectors of another embodiment of a data storage unit of the data storage device of the present invention.

图5为本发明可快速更新操作系统的方法一实施例的流程图。FIG. 5 is a flow chart of an embodiment of a method for rapidly updating an operating system according to the present invention.

图6为本发明可快速更新操作系统的方法又一实施例的流程图。FIG. 6 is a flow chart of another embodiment of the method for quickly updating an operating system according to the present invention.

附图标记说明:100-数据储存装置;11-控制器;111-韧体;1111-开机指针位移程序;1113-原始操作系统还原程序;12-数据储存单元;120-开机指针;121-第一系统储存扇区;1211-第一初始扇区地址;1212-主启动记录;122-第二系统储存扇区;1221-第二初始扇区地址;1222-主启动记录;123-第三系统储存扇区;125-数据储存扇区;13-数据传输接口;14-网络通讯组件;15-微处理器;151-嵌入式系统;16-输入输出埠;161-触发键;21-原始操作系统;22-第一备用操作系统;221-新版的第一备用操作系统;23-第二备用操作系统;231-新版的第二备用操作系统;300-云端管理平台;301-备用操作系统的更新通知;31-数据储存空间;50-计算机设备;51-操作系统差分档案;52-新版操作系统。Explanation of reference signs: 100-data storage device; 11-controller; 111-firmware; 1111-boot pointer displacement program; 1113-original operating system restoration program; 12-data storage unit; 120-boot pointer; 121-th A system storage sector; 1211-first initial sector address; 1212-master boot record; 122-second system storage sector; 1221-second initial sector address; 1222-master boot record; 123-third system Storage sector; 125-data storage sector; 13-data transmission interface; 14-network communication component; 15-microprocessor; 151-embedded system; 16-input and output port; 161-trigger key; System; 22-the first backup operating system; 221-the new version of the first backup operating system; 23-the second backup operating system; 231-the new version of the second backup operating system; 300-cloud management platform; 301-the backup operating system Update notice; 31-data storage space; 50-computer equipment; 51-operating system differential file; 52-new version of the operating system.

具体实施方式Detailed ways

请参阅图1,为本发明数据储存装置的结构示意图,并配合参阅图2为本发明数据储存装置的数据储存单元一实施例的扇区示意图。如图1所示,本发明数据储存装置100亦可为一固态硬盘(Solid State Disk),其设置于一电子装置中,如计算机、自动化设备,作为电子装置的一操作系统储存媒体。数据储存装置100包括一控制器11、一数据储存单元12、一数据传输接口13、一网络通讯组件14及一微处理器15。控制器11连接数据储存单元12及数据传输接口13,而微处理器15连接控制器11及网络通讯组件14。数据储存装置100通过数据传输接口13与电子装置进行数据传输。网络通讯组件14亦可为一WiFi通讯组件、一以太网络通讯组件、一3G、4G或5G通讯组件或一可连接因特网的通讯组件。Please refer to FIG. 1 , which is a schematic structural diagram of a data storage device of the present invention, and refer to FIG. 2 , which is a schematic diagram of sectors of an embodiment of a data storage unit of the data storage device of the present invention. As shown in FIG. 1, the data storage device 100 of the present invention can also be a solid state disk (Solid State Disk), which is arranged in an electronic device, such as a computer or automation equipment, 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 component 14 can also be a WiFi communication component, an Ethernet communication component, a 3G, 4G or 5G communication component or a communication component that can be connected to the Internet.

控制器11包括一韧体111。数据储存单元12包括有复数个闪存,闪存形成有复数个数据扇区。如图2所示,控制器11的韧体111将对于数据储存单元12的数据扇区进行分割,以分割出一第一系统储存扇区121、一第二系统储存扇区122及一数据储存扇区125。第一系统储存扇区121及数据储存扇区125分别被韧体111预设为一显示扇区,而第二系统储存扇区122被韧体预设为一隐藏扇区。在本发明中,隐藏扇区为一操作系统或BIOS无法通过逻辑区块地址检视到的物理储存空间,例如:第二系统储存扇区122为固态硬盘制造商所提供的一预留空间(Over Provisioning,OP)。The controller 11 includes a firmware 111 . The data storage unit 12 includes a plurality of flash memory, and the flash memory is formed with a plurality of data sectors. As shown in FIG. 2, the firmware 111 of the controller 11 will divide 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. Sector 125. The first system storage sector 121 and the data storage sector 125 are respectively preset as a display sector by the firmware 111 , and the second system storage 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 viewed by an operating system or BIOS through a logical block address, for example: the second system storage sector 122 is a reserved space provided by a solid-state hard disk manufacturer (Over Provisioning, OP).

第一系统储存扇区121用以储存一原始操作系统21,且包括有一第一初始扇区地址1211。第二系统储存扇区122用以储存一第一备用操作系统22,且包括有一第二初始扇区地址1221。第一初始扇区地址1211的数据扇区记录有一主启动记录(Master Boot Record;MBR)1212,而第二初始扇区地址1221的数据扇区记录有另一主启动记录(MBR)1222。第一备用操作系统22与原始操作系统21具有相同的数据内容。The first system storage sector 121 is used to store 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 backup operating system 22 and includes a second initial sector address 1221 . The data sector record of the first initial sector address 1211 has a master boot record (Master Boot Record; MBR) 1212, and the data sector record of the second initial sector address 1221 has another master boot record (MBR) 1222. The first backup operating system 22 has the same data content as the original operating system 21 .

本发明数据储存装置100通过网络通讯组件14网络联机一云端管理平台300。云端管理平台300的一数据储存空间31储存有一操作系统差分档案51。操作系统差分档案51为一计算机设备50所提供。本发明一实施例中,计算机设备50亦可为一伺服计算机且设置在一云端管理平台300中;或者,计算机设备50相对于云端管理平台300为一外部计算机,其网络联机云端管理平台300。计算机设备50储存有操作系统开发商所提供的原始操作系统21以及一新版操作系统52。计算机设备50利用一数据比对算法对于原始操作系统21与新版操作系统52进行一数据的差异性比对,以产生操作系统差分档案51,并将操作系统差分档案51储存在云端管理平台300的数据储存空间31中。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 OS differential file 51 is provided by a computer device 50 . In one embodiment of the present invention, the computer device 50 can also be a server computer and is set in a cloud management platform 300; The computer device 50 stores the original operating system 21 and a new version of the operating system 52 provided by the operating system developer. The computer device 50 uses a data comparison algorithm to perform a data difference comparison between the original operating system 21 and the new version of the operating system 52 to generate the operating system differential file 51, and store the operating system differential file 51 on the cloud management platform 300 In the data storage space 31.

再者,本发明微处理器15亦可为一独立芯片;或者,微处理器15亦可整合在控制器11中。微处理器15包括有一嵌入式系统151。云端管理平台300通过微处理器15的嵌入式系统151监控或管理数据储存装置100的操作系统更新操作。当数据储存装置100欲对于备用操作系统进行更新时,嵌入式系统151通过网络通讯组件14从云端管理平台300下载操作系统差分档案51。控制器11的韧体111利用操作系统差分档案51更新第二系统储存扇区122中的第一备用操作系统22,以取得一新版的第一备用操作系统221。于此,相对于以往要更新数据储存装置的备用操作系统时需要下载一个大的档案容量的完整新版操作系统,本发明数据储存装置100只要下载一个小的档案容量的操作系统差分档案51就可以快速地更新备用操作系统,以提升备用操作系统更新上的便利性。Furthermore, the microprocessor 15 of the present invention can also be an independent chip; or, the microprocessor 15 can also be integrated in the controller 11 . The microprocessor 15 includes an embedded system 151 . The cloud management platform 300 monitors or manages the operating system update operation of the data storage device 100 through the embedded system 151 of the microprocessor 15 . When the data storage device 100 intends to update the standby operating system, the embedded system 151 downloads the operating system difference file 51 from the cloud management platform 300 through the network communication component 14 . The firmware 111 of the controller 11 uses the operating system difference file 51 to update the first backup operating system 22 in the second system storage sector 122 to obtain a new version of the first backup operating system 221 . Here, compared to the need to download a complete new version of the operating system with a large file capacity when updating the standby operating system of the data storage device in the past, the data storage device 100 of the present invention only needs to download a small file capacity of the operating system difference file 51. Quickly update the backup operating system to improve the convenience of updating the backup operating system.

接续,控制器11的韧体111预设一开机指针120指向第一系统储存扇区121的第一起始扇区地址1211,并以第一起始扇区地址1211作为一主启动扇区地址,例如:第零个逻辑区块地址(Logical block addressing 0,LBA 0)。当电子装置启动(power on)时,首先,根据开机指针120的指引,控制器11的韧体111进入数据储存单元12的第一系统储存扇区121,读取第一系统储存扇区121的第一初始扇区地址1211中的主启动记录1212,并以主启动记录1212执行原始操作系统21的开机流程。原始操作系统21正常开机后,电子装置将以原始操作系统21执行运作。Next, the firmware 111 of the controller 11 presets a boot pointer 120 to point to the 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 0, LBA 0). When the electronic device is powered on, at first, according to the guidance 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, and reads the first system storage sector 121 The master boot record 1212 in the first initial sector address 1211 , and the boot process of the original operating system 21 is executed with the master boot record 1212 . After the original operating system 21 is booted up normally, the electronic device will run with the original operating system 21 .

再者,韧体111定义有一开机指针位移程序1111。本发明一实施例中,当原始操作系统21异常或需要更新操作系统时,韧体111执行开机指针位移程序1111,以将开机指针120从第一系统储存扇区121的第一初始扇区地址1211移至第二系统储存扇区122的第二初始扇区地址1221,第二初始扇区地址1221作为主启动扇区地址(LBA 0)。并且,第一系统储存扇区121从显示扇区转换为隐藏扇区,而第二系统储存扇区122从隐藏扇区转换为显示扇区。接着,控制器11的韧体111读取第二系统储存扇区122的第二初始扇区地址1221中的主启动记录1222,并以主启动记录1222执行新版的第一备用操作系统221的开机流程。新版的第一备用操作系统221正常开机后,电子装置将以新版的第一备用操作系统221执行运作。如此,当原始操作系统21异常或需要更新操作系统时,将可以通过开机指针120位移至第二系统储存扇区122的第二初始扇区地址1221,而快速地利用新版的第一备用操作系统221恢复电子装置的开机。Furthermore, the firmware 111 defines a boot pointer displacement program 1111 . In one embodiment of the present invention, when the original operating system 21 is abnormal or needs to be updated, the firmware 111 executes the boot pointer displacement program 1111 to move the boot pointer 120 from the first initial sector address of the first system storage sector 121 1211 moves to the second initial sector address 1221 of the second system storage sector 122, and the second initial sector address 1221 is used as the main boot sector address (LBA 0). Moreover, 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. Next, the firmware 111 of the controller 11 reads the master boot record 1222 in the second initial sector address 1221 of the second system storage sector 122, and uses the master boot record 1222 to execute the booting of the new version of the first backup operating system 221 process. After the new version of the first backup operating system 221 is normally booted, the electronic device will run with the new version of the first backup operating system 221 . In this way, when the original operating system 21 is abnormal or 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, and the new version of the first standby operating system can be quickly used 221 resume the booting of the electronic device.

请参阅图3,为本发明数据储存装置的数据储存单元又一实施例的扇区示意图,并配合参阅图1。如图1及图3所示,在本实施例中,控制器11的韧体111定义有一原始操作系统更新程序1113。当原始操作系统21异常时或需要更新时,韧体111执行原始操作系统更新程序1113,以利用第二系统储存扇区122中的新版的第一备用操作系统221更新第一系统储存扇区121的原始操作系统21。当原始操作系统21被更新后,控制器11的韧体111利用更新后的原始操作系统21重新启动且运作。Please refer to FIG. 3 , which is a schematic diagram of sectors of another embodiment of the data storage unit of the data storage device of the present invention, and refer to FIG. 1 together. As shown in FIG. 1 and FIG. 3 , in this embodiment, the firmware 111 of the controller 11 defines an original operating system 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 first system storage sector 121 with the new version of the first backup operating system 221 in the second system storage sector 122 The original operating system 21. After the original operating system 21 is updated, the firmware 111 of the controller 11 restarts and operates with the updated original operating system 21 .

请参阅图4,为本发明数据储存装置的数据储存单元又一实施例的扇区示意图,并配合参阅图1。如图1及图4所示,本实施例数据储存单元12进一步被划分出一第三系统储存扇区123。第三系统储存扇区123被韧体设定为一隐藏扇区,其也为数据储存单元12的预留空间(OP)。第三系统储存扇区123用以储存一第二备用操作系统23。第二备用操作系统23与第一备用操作系统22及原始操作系统21具有相同的数据内容。Please refer to FIG. 4 , which is a schematic diagram of sectors of another embodiment of the data storage unit of the data storage device of the present invention, and refer to FIG. 1 together. As shown in FIG. 1 and FIG. 4 , the data storage unit 12 of this embodiment is further divided into a third system storage sector 123 . The third system storage sector 123 is set as a hidden sector by the firmware, which is also an reserved space (OP) of the data storage unit 12 . The third system storage sector 123 is used for storing a second backup operating system 23 . The second backup operating system 23 has the same data content as the first backup operating system 22 and the original operating system 21 .

在执行备用操作系统22、23的更新时,嵌入式系统151通过网络通讯组件14从云端管理平台300下载操作系统差分档案51,控制器11的韧体111利用操作系统差分档案51更新备用操作系统22、23,以便分别取得新版的备用操作系统221、231。When updating the standby operating systems 22 and 23, the embedded system 151 downloads the operating system differential file 51 from the cloud management platform 300 through the network communication component 14, and the firmware 111 of the controller 11 uses the operating system differential file 51 to update the standby operating system 22, 23, so as to obtain new versions of the standby operating system 221, 231 respectively.

本发明一实施例中,能够以一远程控制方式要求数据储存装置100更新备用操作系统22、23。云端管理平台300发出一备用操作系统的更新通知301至数据储存装置100。数据储存装置100的嵌入式系统151收到云端管理平台300所发出的备用操作系统的更新通知301后,将通过网络通讯组件14从云端管理平台300下载操作系统差分档案51,并要求韧体111利用操作系统差分档案51更新备用操作系统22、23。In an embodiment of the present invention, the data storage device 100 can be required to update the backup operating systems 22 and 23 in a remote control manner. The cloud management platform 300 sends an update notification 301 of the backup operating system to the data storage device 100 . After the embedded system 151 of the data storage device 100 receives the update notification 301 of the standby operating system issued by the cloud management platform 300, it will download the operating system differential file 51 from the cloud management platform 300 through the network communication component 14, and request the firmware 111 The standby operating system 22, 23 is updated using the operating system differential file 51.

或者,本发明又一实施例中,能够以一硬件控制方式要求数据储存装置100更新备用的操作系统22、23。数据储存装置100还包括有一输入输出埠(如GPIO)16。输入输出埠16连接微处理器15或控制器11以及外接一触发键161。当用户欲对于备用操作系统22、23进行更新时,按压触发键161触发输入输出埠16。当嵌入式系统151得知输入输出埠16已被触发,将通过网络通讯组件14从云端管理平台300下载操作系统差分档案51,并要求韧体111利用操作系统差分档案51更新备用操作系统22、23。Or, in another embodiment of the present invention, the data storage device 100 can be required to update the backup operating systems 22 and 23 in a hardware control manner. The data storage device 100 also includes an input/output port (such as GPIO) 16 . The I/O port 16 is connected to the microprocessor 15 or the controller 11 and an external trigger key 161 . When the user wants to update the standby operating system 22 , 23 , the user presses the trigger key 161 to trigger the I/O port 16 . When the embedded system 151 knows that the I/O port 16 has been triggered, it will download the operating system differential file 51 from the cloud management platform 300 through the network communication component 14, and require the firmware 111 to use the operating system differential file 51 to update the backup operating system 22, twenty three.

接续,控制器11的韧体111定义有开机指针位移程序1111及原始操作系统更新程序1113。当原始操作系统21异常而无法顺利开机时,韧体111执行开机指针位移程序1111,以将开机指针120从第一系统储存扇区121的第一初始扇区地址1211移至第二系统储存扇区122的第二初始扇区地址1221。当开机指针120移至第二初始扇区地址1221后,控制器11的韧体111会将第一系统储存扇区121从显示扇区转换为隐藏扇区,而第二系统储存扇区122从隐藏扇区转换为显示扇区。接着,韧体111读取第二系统储存扇区122的第二初始扇区地址1221中的主启动记录1222,并以主启动记录1222执行新版的第一备用操作系统221的开机流程。当新版的第一备用操作系统221已完成开机且进行运作时,韧体111接着执行原始操作系统更新程序1113,以利用第三系统储存扇区123中新版的第二备用操作系统231更新第一系统储存扇区121中的原始操作系统21。当原始操作系统21被更新后,韧体111设定第一系统储存扇区121为显示扇区而第二系统储存扇区122为隐藏扇区,并以第一系统储存扇区121中被更新后的原始操作系统21重新启动且运作。Next, the firmware 111 of the controller 11 defines a boot pointer displacement program 1111 and an original operating system update program 1113 . When the original operating system 21 is abnormal and cannot be booted smoothly, 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 system storage sector. The second initial sector address 1221 of the zone 122. After the boot pointer 120 moves to the second initial sector address 1221, the firmware 111 of the controller 11 will convert the first system storage sector 121 from a display sector to a hidden sector, and the second system storage sector 122 from Hidden sectors are converted to displayed sectors. Next, the firmware 111 reads the master boot record 1222 in the second initial sector address 1221 of the second system storage sector 122 , and uses the master 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 been booted and operated, the firmware 111 then executes the original operating system update program 1113 to update the first standby operating system 231 with the new version of the second standby operating system 231 in the third system storage sector 123. The original operating system 21 in the system storage sector 121 . When the original operating system 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 is updated in the first system storage sector 121 Afterwards, the original operating system 21 restarts and operates.

此外,本发明一实施例中,本发明以一系统监控的方式控制韧体111执行开机指针位移程序1111及/或原始操作系统更新程序1113。当嵌入式系统151监控到原始操作系统21异常或收到云端管理平台300要求数据储存装置100更新原始操作系统21的信息时,将会要求韧体1111执行开机指针位移程序1111及/或原始操作系统更新程序1113。或者,在本发明另一实施例中,本发明也能够以一硬件触发方式控制韧体111执行开机指针位移程序1111或原始操作系统更新程序1113。当用户知道原始操作系统21异常或想要更新数据储存装置100的原始操作系统21时,亦可按压触发键161触发输入输出埠16。当嵌入式系统151得知输入输出埠16已被触发,将会要求韧体1111执行开机指针位移程序1111及/或原始操作系统更新程序1113。In addition, in an embodiment of the present invention, the present invention controls the firmware 111 to execute the boot pointer displacement 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 information from the cloud management platform 300 requesting the data storage device 100 to update the original operating system 21, it will request the firmware 1111 to execute the boot pointer displacement program 1111 and/or the original operation. System Updater 1113. Alternatively, in another embodiment of the present invention, the present invention can also control the firmware 111 to execute the boot pointer shifting program 1111 or the original operating system updating 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 , he can also press the trigger key 161 to trigger the I/O port 16 . When the embedded system 151 knows that the I/O port 16 has been activated, it will request the firmware 1111 to execute the boot pointer displacement program 1111 and/or the original operating system update program 1113 .

请参阅图5,为本发明可快速更新操作系统的方法一实施例的流程图。如图1及图2所示,数据储存装置100的数据储存单元12包括一第一系统储存扇区121、一第二系统储存扇区122及一数据储存扇区125。第一系统储存扇区121及数据储存扇区125分别被预设为一显示扇区,而第二系统储存扇区122被预设为一隐藏扇区。第一系统储存扇区121储存有一原始操作系统21,而第二系统储存扇区122储存一第一备用操作系统22。第一系统储存扇区121包括有一第一初始扇区地址1211,而第二系统储存扇区122包括有一第二初始扇区地址1221。第一初始扇区地址1211有一主启动记录1212,而第二初始扇区地址1221有另一主启动记录1222。Please refer to FIG. 5 , which is a flowchart of an embodiment of a method for quickly updating an operating system in the present invention. As shown in FIGS. 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 defaulted 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 backup 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 .

如图5所示,首先,步骤S71,控制器11的韧体111预设一开机指针120指向第一系统储存扇区121的第一初始扇区地址1211。步骤S72,当计算机装置的电源启动时,控制器11的韧体111读取第一初始扇区地址1211中的主启动记录1212,电子装置将以原始操作系统21执行开机且运作。步骤S73,嵌入式系统151从云端管理平台300下载一操作系统差分档案51。步骤S74,控制器11的韧体111利用操作系统差分档案51更新第二系统储存扇区122中的第一备用操作系统22,以取得一新版的第一备用操作系统221。As shown in FIG. 5 , first, in step S71 , the firmware 111 of the controller 11 presets a boot pointer 120 to point to the first initial sector address 1211 of the first system storage sector 121 . Step S72 , when the power of the computer device is turned on, the firmware 111 of the controller 11 reads the master boot record 1212 in the first initial sector address 1211 , and the electronic device will boot and operate with the original operating system 21 . In step S73 , the embedded system 151 downloads an operating system difference file 51 from the cloud management platform 300 . Step S74 , the firmware 111 of the controller 11 updates the first backup operating system 22 in the second system storage sector 122 using the operating system difference file 51 to obtain a new version of the first backup operating system 221 .

步骤S75,嵌入式系统151判断原始操作系统21是否异常或需要更新。若原始操作系统21正常且不需要更新,继续执行步骤S76,电子装置以原始操作系统21继续运作;若原始操作系统21异常或需要更新,继续执行步骤S77,控制器11的韧体111执行一开机指针位移程序1111,以将开机指针120从第一初始扇区地址1211移至第二初始扇区地址1221。步骤S78,控制器11的韧体111读取第二初始扇区地址1221中的主启动记录1222,并将第一系统储存扇区121从显示扇区转换为隐藏扇区而第二系统储存扇区122从隐藏扇区转换为显示扇区,电子装置将以新版的第一备用操作系统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, continue to execute step S76, 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, continue to execute step S77, and the firmware 111 of the controller 11 executes a The boot pointer displacement program 1111 is used to move the boot pointer 120 from the first initial sector address 1211 to the second initial sector address 1221 . Step S78, the firmware 111 of the controller 11 reads the master boot record 1222 in the second initial sector address 1221, and converts the first system storage sector 121 from a display sector to a hidden sector and the second system storage sector The area 122 is converted from a hidden sector to a display sector, and the electronic device will be booted and operated with the new version of the first backup operating system 221 .

再者,本发明又一实施例中,本发明数据储存单元12进一步划分出一第三系统储存扇区123,如第4图所示。第三系统储存扇区123储存有一第二备用操作系统23。再度回到步骤S74,控制器11的韧体111进一步利用操作系统差分档案51更新第三系统储存扇区123中的第二备用操作系统23,以取得一新版的第二备用操作系统231。Furthermore, in yet another embodiment of the present invention, the data storage unit 12 of the present invention is further divided into a third system storage sector 123 , as shown in FIG. 4 . The third system storage sector 123 stores a second standby operating system 23 . Returning to step S74 again, the firmware 111 of the controller 11 further updates the second backup operating system 23 in the third system storage sector 123 by using the operating system difference file 51 to obtain a new version of the second backup operating system 231 .

接续,步骤S79,在第二系统储存扇区122中的新版的第二备用操作系统221的运作期间,控制器11的韧体111执行一原始操作系统还原程序1113,以利用第三系统储存扇区123中新版的第二备用操作系统231更新第一系统储存扇区121的原始操作系统21。最后,步骤S80,当电子装置下一次启动时,控制器11的韧体111将开机指针120从第二初始扇区地址1221移回第一初始扇区地址1211,将第一系统储存扇区121从隐藏扇区转换为显示扇区而第二系统储存扇区122从显示扇区转换为隐藏扇区,读取第一初始扇区地址1211中的主启动记录1212,以第一系统储存扇区121中更新后的原始操作系统21再次执行开机且运作。Next, step S79, during the operation of the new version of the second standby operating system 221 in the second system storage sector 122, the firmware 111 of the controller 11 executes an original operating system recovery program 1113 to utilize the third system storage sector The new version of the second standby operating system 231 in the area 123 updates the original operating system 21 of the first system storage sector 121 . Finally, in step S80, when the electronic device starts up next time, the firmware 111 of the controller 11 moves the boot pointer 120 from the second initial sector address 1221 back to the first initial sector address 1211, and the first system storage sector 121 Convert from hidden sector to display sector and the second system storage sector 122 from display sector to hidden sector, read the master boot record 1212 in the first initial sector address 1211, use the first system storage sector In 121, the updated original operating system 21 executes booting and operation again.

请参阅图6,为本发明可快速更新操作系统的方法又一实施例的流程图,并同时参阅图1及图3。首先,步骤S71,控制器11的韧体111预设一开机指针120指向第一系统储存扇区121的第一初始扇区地址1211。步骤S72,当计算机装置的电源启动时,控制器11的韧体111读取第一初始扇区地址1211中的主启动记录1212,电子装置将以原始操作系统21执行开机且运作。步骤S73,嵌入式系统151从云端管理平台300下载一操作系统差分档案51。步骤S741,控制器11的韧体111利用操作系统差分档案51更新第二系统储存扇区122中的第一备用操作系统22,以取得一新版的第一备用操作系统221。Please refer to FIG. 6 , which is a flowchart of another embodiment of the method for quickly updating the operating system of the present invention, and refer to FIG. 1 and FIG. 3 at the same time. First, in step S71 , the firmware 111 of the controller 11 presets a boot pointer 120 to point to the first initial sector address 1211 of the first system storage sector 121 . Step S72 , when the power of the computer device is turned on, the firmware 111 of the controller 11 reads the master boot record 1212 in the first initial sector address 1211 , and the electronic device will boot and operate with the original operating system 21 . In step S73 , the embedded system 151 downloads an operating system difference file 51 from the cloud management platform 300 . Step S741 , the firmware 111 of the controller 11 updates the first backup operating system 22 in the second system storage sector 122 by using the operating system difference file 51 to obtain a new version of the first backup operating system 221 .

步骤S75,嵌入式系统151判断原始操作系统21是否异常或需要更新。若原始操作系统21正常且不需要更新,继续执行步骤S76,电子装置以原始操作系统21继续运作;若原始操作系统21异常或需要更新,继续执行步骤S81,控制器11的韧体111执行一原始操作系统还原程序1113,以利用第二系统储存扇区122中新版的第一备用操作系统221更新第一系统储存扇区121的原始操作系统21。最后,步骤S82,控制器11的韧体111以第一系统储存扇区121中更新后的原始操作系统21再次执行开机且运作。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, continue to execute step S76, 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, continue to execute step S81, and the firmware 111 of the controller 11 executes a The original operating system recovery program 1113 is used to update the original operating system 21 of the first system storage sector 121 with the new version of the first backup operating system 221 in the second system storage sector 122 . Finally, in step S82 , the firmware 111 of the controller 11 performs booting and operation again with the updated original operating system 21 in the first system storage sector 121 .

以上所述者,仅为本发明的一较佳实施例而已,并非用来限定本发明实施的范围,即凡依本发明权利要求所述的形状、构造、特征及精神所为的均等变化与修饰,均应包括于本发明的权利要求内。What is described above is only a preferred embodiment of the present invention, and is not used to limit the scope of the present invention, that is, all equal changes and changes made according to the shape, structure, characteristics and spirit of the claims of the present invention. Modifications should be included in the claims of the present invention.

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 rapidly updating operating system 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 rapidly updating operating system

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 rapidly updating operating system

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 rapidly updating operating system

Country Status (1)

Country Link
CN (1) CN116126385A (en)

Similar Documents

Publication Publication Date Title
CN103412769B (en) External card parameter configuration, equipment and system
CN103365696B (en) BIOS image file acquisition methods and device
TWI515660B (en) Firmware variable update method
US10642623B1 (en) Preserving firmware settings during firmware updates
JP6861886B2 (en) Systems and methods for customized operating system conversion
TWI813869B (en) Data storage device and method for maintaining normal boot operation of data storage device
CN111522690B (en) Data storage device and method for maintaining normal start-up operation of data storage device
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
TWI765443B (en) Data storage device and method for maintaining normal boot operation of data storage device
US7188278B1 (en) Method, system, and apparatus for utilizing compressed program code in the boot block portion of a computer BIOS
CN110825419B (en) A firmware refresh method, device, electronic device and storage medium
JP6750605B2 (en) Computer system, baseboard management controller, OS installation method, and program
WO2015127730A1 (en) Method and apparatus for running version file
TWI808362B (en) Computer system and method capable of self-monitoring and restoring an operation of operating system
TW202009696A (en) A computer-implemented method, a computer system, and a computer-readable storage medium for updating the ROM code of a system
CN115794132A (en) Operating system deployment method, device, equipment and storage medium
TWI520063B (en) Management system for service of multiple operating environments, and method thereof
TWI786945B (en) Data storage device and method capable of quickly updating operating system
CN116126385A (en) Data storage device and method capable of rapidly updating operating system
CN114661670A (en) File decompression method, system and device based on Fuse file system
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
US11775315B2 (en) BIOS code to store operating systems on computer-readable media
TWI846417B (en) Computer network and method of updating firmware to a peripheral device of a computer system in computer network
CN114610226A (en) Data storage device and method for maintaining normal startup of data storage device
CN118276774A (en) Dynamic partitioning method and device for storage space, equipment and storage medium

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