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 PDFInfo
- 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
Links
- 238000013500 data storage Methods 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004891 communication Methods 0.000 claims abstract description 38
- 238000007726 management method Methods 0.000 claims abstract description 28
- 230000002159 abnormal effect Effects 0.000 claims description 19
- 238000006073 displacement reaction Methods 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 231100000572 poisoning Toxicity 0.000 description 1
- 230000000607 poisoning effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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
Description
技术领域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
控制器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
第一系统储存扇区121用以储存一原始操作系统21,且包括有一第一初始扇区地址1211。第二系统储存扇区122用以储存一第一备用操作系统22,且包括有一第二初始扇区地址1221。第一初始扇区地址1211的数据扇区记录有一主启动记录(Master Boot Record;MBR)1212,而第二初始扇区地址1221的数据扇区记录有另一主启动记录(MBR)1222。第一备用操作系统22与原始操作系统21具有相同的数据内容。The first
本发明数据储存装置100通过网络通讯组件14网络联机一云端管理平台300。云端管理平台300的一数据储存空间31储存有一操作系统差分档案51。操作系统差分档案51为一计算机设备50所提供。本发明一实施例中,计算机设备50亦可为一伺服计算机且设置在一云端管理平台300中;或者,计算机设备50相对于云端管理平台300为一外部计算机,其网络联机云端管理平台300。计算机设备50储存有操作系统开发商所提供的原始操作系统21以及一新版操作系统52。计算机设备50利用一数据比对算法对于原始操作系统21与新版操作系统52进行一数据的差异性比对,以产生操作系统差分档案51,并将操作系统差分档案51储存在云端管理平台300的数据储存空间31中。The
再者,本发明微处理器15亦可为一独立芯片;或者,微处理器15亦可整合在控制器11中。微处理器15包括有一嵌入式系统151。云端管理平台300通过微处理器15的嵌入式系统151监控或管理数据储存装置100的操作系统更新操作。当数据储存装置100欲对于备用操作系统进行更新时,嵌入式系统151通过网络通讯组件14从云端管理平台300下载操作系统差分档案51。控制器11的韧体111利用操作系统差分档案51更新第二系统储存扇区122中的第一备用操作系统22,以取得一新版的第一备用操作系统221。于此,相对于以往要更新数据储存装置的备用操作系统时需要下载一个大的档案容量的完整新版操作系统,本发明数据储存装置100只要下载一个小的档案容量的操作系统差分档案51就可以快速地更新备用操作系统,以提升备用操作系统更新上的便利性。Furthermore, the
接续,控制器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
再者,韧体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
请参阅图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
请参阅图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
在执行备用操作系统22、23的更新时,嵌入式系统151通过网络通讯组件14从云端管理平台300下载操作系统差分档案51,控制器11的韧体111利用操作系统差分档案51更新备用操作系统22、23,以便分别取得新版的备用操作系统221、231。When updating the
本发明一实施例中,能够以一远程控制方式要求数据储存装置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
或者,本发明又一实施例中,能够以一硬件控制方式要求数据储存装置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
接续,控制器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
此外,本发明一实施例中,本发明以一系统监控的方式控制韧体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
请参阅图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
如图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
步骤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
再者,本发明又一实施例中,本发明数据储存单元12进一步划分出一第三系统储存扇区123,如第4图所示。第三系统储存扇区123储存有一第二备用操作系统23。再度回到步骤S74,控制器11的韧体111进一步利用操作系统差分档案51更新第三系统储存扇区123中的第二备用操作系统23,以取得一新版的第二备用操作系统231。Furthermore, in yet another embodiment of the present invention, the
接续,步骤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
请参阅图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
步骤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
以上所述者,仅为本发明的一较佳实施例而已,并非用来限定本发明实施的范围,即凡依本发明权利要求所述的形状、构造、特征及精神所为的均等变化与修饰,均应包括于本发明的权利要求内。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)
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) |
-
2021
- 2021-11-12 CN CN202111341642.4A patent/CN116126385A/en active Pending
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 |