WO2013097095A1 - 一种备份存储装置的启动信息的方法 - Google Patents
一种备份存储装置的启动信息的方法 Download PDFInfo
- Publication number
- WO2013097095A1 WO2013097095A1 PCT/CN2011/084757 CN2011084757W WO2013097095A1 WO 2013097095 A1 WO2013097095 A1 WO 2013097095A1 CN 2011084757 W CN2011084757 W CN 2011084757W WO 2013097095 A1 WO2013097095 A1 WO 2013097095A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- storage device
- information
- boot
- booting
- bios
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
Definitions
- the present invention relates to the field of electronic communication technologies, and in particular, to a method for backing up startup information of a storage device.
- Background Art With the widespread use of computer technology and Internet technology, a huge amount of data is generated, most of which is stored in a hard disk. Due to the shortcomings of traditional MBR hard drives, GPT hard drives have gradually replaced MBR hard drives. Key information such as GPT headers and partition tables are stored at the beginning and end of the GPT hard drive. Virus damage, operational errors, and many accidental factors can cause damage to these critical information on the hard disk or cause the information to be lost. If the GPT header and partition table are damaged, the hard disk will not start. Summary of the invention
- Embodiments of the present invention provide a method of backing up boot information of a storage device to solve the problem that key information stored in the storage device is easily lost in the storage device.
- the embodiment of the present invention provides the following solution:
- the present invention provides an embodiment of a method for backing up startup information of a storage device, where the method includes: automatically scanning startup information in a storage device during a process of booting an operating system, The startup information is information required to start the storage device; the startup information is backed up to the BIOS Flash ROM.
- the automatically reading the startup information in the storage device, and backing up the startup information to The steps in the BIOS Flash ROM include: automatically reading the boot information in the storage device into the SM RAM, and backing up the boot information read into the SM RAM to the BIOS Flash ROM.
- the storage device may be a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the startup information includes: a GPT header and partition table information.
- the step of automatically reading the startup information in the storage device comprises: reading the startup information in the hard disk from the boot sector of the hard disk.
- the boot information in the storage device is automatically read; before the booting information is backed up to the BIOS Flash ROM, the method includes: triggering an interrupt, automatically reading boot information in the storage device; and backing up the boot information to The BIOS Flash ROM also includes: Exit interrupt.
- the triggering interrupt includes: enabling the ACPI function during the booting of the operating system, and running according to the ACPI specification, triggering the SMI interrupt.
- the step of exiting the interruption includes:
- the operating system is an operating system that complies with the EFI specification.
- the automatically reading the boot information in the storage device, and before the booting information is backed up in the BIOS Flash ROM the method further includes:
- the method further includes:
- the present invention also provides an embodiment of an apparatus for backing up startup information of a storage device, the apparatus comprising:
- An obtaining module configured to automatically read startup information in the storage device during booting the operating system, where the startup information is information required to start the storage device;
- the backup module is configured to back up the boot information to the BIOS Flash ROM.
- the obtaining module may be further configured to: automatically, in the process of booting the operating system, automatically read startup information in the storage device into the SM RAM;
- the backup module can be further configured to back up the boot information read into the SMRAM to the BIOS Flash ROM.
- the storage device is a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the startup information includes: a GPT header and partition table information.
- the operating system is an operating system that complies with the EFI specification.
- the device further includes: a triggering module, configured to automatically read the storage device in the reading module during the process of booting the operating system The boot information is set, and the backup module triggers the interrupt before backing up the boot information to the BIOS Flash ROM;
- a triggering module configured to automatically read the storage device in the reading module during the process of booting the operating system The boot information is set, and the backup module triggers the interrupt before backing up the boot information to the BIOS Flash ROM;
- the trigger module is further configured to automatically read boot information in the storage device; after backing up the boot information to the BIOS Flash ROM, exiting the interrupt.
- the triggering module includes: an enabling module, configured to enable an ACPI function during the booting of the operating system, and run according to an ACPI specification.
- the interrupt module is configured to automatically read the startup information in the storage device during the operation according to the ACPI specification, and the backup module triggers the SMI interrupt before backing up the startup information to the BIOS Flash ROM; After the "automatically read the boot information in the storage device; back up the boot information to the BIOS Flash ROM", the SMI interrupt is exited.
- the device further includes a presence or absence confirmation module, the presence or absence confirmation module is configured to read startup information of the module in the automatic reading storage device, and the backup module backs up the startup information to the BIOS Flash ROM. Before the middle, it is confirmed that the boot information in the storage device is not backed up in the BIOS Flash ROM.
- the device further includes a complete confirmation module, where the complete confirmation module is configured to automatically read the startup information in the storage device after the reading module, and the backup module backs up the startup information into the BIOS Flash ROM. Confirming that the boot information of the storage device is complete. It can be seen from the technical solution provided by the foregoing embodiments of the present invention that in the embodiment of the present invention, since key information of the storage device, for example, startup information, is backed up in the BIOS Flash ROM, these keys are improved. Information security.
- the present invention also provides an embodiment of a method for restoring storage device startup, the method comprising: BIOS initialization, and running the BIOS after initialization;
- the boot information of the storage device in the BIOS Flash ROM is read; and the boot device is used to boot the storage device.
- the storage device may be a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the startup information includes: a GPT header and partition table information.
- the method further includes:
- the operating system is an operating system that complies with the EFI specification.
- the method further includes: failing to boot the operating system, the reason for the failure is storing the instruction of the operating system.
- the storage device could not be started.
- the method further includes: prompting the user to select whether to restore Activation of the storage device;
- the selection result is to initiate recovery of the storage device to start.
- the using the startup information to start the storage device includes:
- the storage device is activated by booting information of the storage device read from the BIOS Flash ROM;
- the guiding area is an area in the storage device for storing startup information.
- the boot device since the boot information of the storage device is backed up to the BIOS Flash ROM, the boot device can still be booted in the BIOS Flash ROM if the boot device cannot be booted due to the loss of the boot information. The information is initiated so that the storage device can be booted up and used again, increasing the value of the storage device.
- the present invention also provides an embodiment of a device for restoring storage device startup, the device comprising: an initialization module, configured to perform BIOS initialization, and run the BIOS after BIOS initialization; a reading module, configured to run in the BIOS The booting information of the storage device in the BIOS flash ROM is read; and the booting module is configured to start the storage device by using the booting information.
- the storage device may be a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the device further includes: an executing module, configured to: after starting the storage device, execute an operating instruction of an operating system stored in the storage device to boot the operating system to start running.
- the operating system is an operating system that complies with the EFI specification.
- the device further includes: a prompting module, configured to: before the reading module reads the startup information of the storage device in the BIOS Flash ROM, the storage device that stores the instruction of the operating system cannot be started, and is booted After the operating system fails, the user is prompted to select whether to resume the startup of the storage device.
- the receiving module is configured to receive a selection result of the user, and the selection result is to initiate recovery of the storage device.
- the storage device since the boot information of the storage device is backed up to the BIOS Flash In the ROM, the storage device can still be started by backing up the startup information in the BIOS Flash ROM when the storage device cannot be started due to the loss of the startup information, so that the storage device can be started and used again, thereby improving the storage.
- the value of the device since the boot information of the storage device is backed up to the BIOS Flash In the ROM, the storage device can still be started by backing up the startup information in the BIOS Flash ROM when the storage device cannot be started due to the loss of the startup information, so that the storage device can be started and used again, thereby improving the storage. The value of the device.
- FIG. 1 is a schematic diagram of an embodiment of a method for backing up boot information of a storage device according to the present invention
- FIG. 2 is a schematic diagram of another embodiment of a method for backing up boot information of a storage device according to the present invention
- FIG. 3 is a schematic diagram of still another embodiment of a method for backing up boot information of a storage device of the present invention.
- FIG. 4 is a schematic diagram of still another embodiment of a method for backing up boot information of a storage device of the present invention.
- FIG. 5 is a schematic diagram of an embodiment of an apparatus for backing up startup information of a storage device according to the present invention
- FIG. 6 is a schematic diagram of another embodiment of an apparatus for backing up startup information of a storage device according to the present invention.
- FIG. 7 is a schematic diagram of still another embodiment of an apparatus for backing up information of a storage device according to the present invention.
- FIG. 8 is a schematic diagram of still another embodiment of an apparatus for backing up information of a storage device according to the present invention.
- FIG. 9 is a schematic diagram of still another embodiment of an apparatus for backing up startup information of a storage device according to the present invention.
- FIG. 10 is a schematic diagram of an embodiment of a method for restoring a storage device according to the present invention
- FIG. FIG. 11 is a schematic diagram of another embodiment of a method for restoring a storage device according to the present invention
- FIG. 12 is a schematic diagram of still another embodiment of a method for restoring a storage device according to the present invention
- FIG. 14 is a schematic diagram of another embodiment of a device for restoring a storage device according to the present invention
- FIG. 15 is a schematic diagram of a device for starting a recovery storage device according to the present invention
- the present invention provides an embodiment of a method for backing up startup information of a storage device, including: automatically scanning startup information in a storage device during booting an operating system, where the startup information is a startup Describe the information required by the storage device; back up the boot information to the BIOS Flash ROM.
- the key information of the storage device for example, the startup information, is backed up in the BIOS (Basic Input/Output System) Flash ROM (read only memory). ), thus improving the security of these key information.
- BIOS Basic Input/Output System
- Embodiments of the present invention may be applied to a hardware system having a processor and a storage device, where The processor performs the steps in the method for backing up the startup information of the storage device in the embodiment of the present invention, and backs up the startup information in the storage device.
- the hardware system having the processor and the storage device may be a computer, or a communication device, and the communication device may be: a server, or a router, or a gateway, or a mobile terminal, or a base station, or the like.
- the storage device is a medium having a storage function, such as: a hard disk, a magnetic disk, a flash SSD (Solid State Drive), a PCM (Linear Pulse Code Modlation) SSD (Solid State Drive), and an SD (SecureDigital) ) card, CF (Compact Flash) card, or USB flash drive (USB flash drive, Universal Serial Bus flash disk).
- a storage function such as: a hard disk, a magnetic disk, a flash SSD (Solid State Drive), a PCM (Linear Pulse Code Modlation) SSD (Solid State Drive), and an SD (SecureDigital) ) card, CF (Compact Flash) card, or USB flash drive (USB flash drive, Universal Serial Bus flash disk).
- the startup information includes: GPT (GUID)
- the boot information in the storage device may include: reading boot information in the hard disk from the boot sector of the hard disk.
- the boot information in the storage device is automatically read; before the step of backing up the boot information into the BIOS Flash ROM, the trigger is interrupted.
- the step of automatically reading the boot information in the storage device; and the step of backing up the boot information to the BIOS Flash ROM may further include: exiting the interrupt.
- the method further includes: enabling the ACPI (Advanced Configuration and Power Interface) function during the booting of the operating system, and operating according to the ACPI specification.
- the step of triggering the interrupt may include: enabling the ACPI function during the booting of the operating system, and operating according to the ACPI specification, Trigger SMI (System Management Interrupt) interrupt.
- the step of exiting the interruption includes:
- the step of triggering the SMI interrupt includes: executing an SMI interrupt instruction.
- the automatically reading the startup information in the storage device; the step of backing up the startup information into the BIOS Flash ROM comprises: automatically reading the startup information in the storage device to the SMRAM (System Management Random Access Memory, system) In the management memory, the boot information read into the SMRAM is backed up to the BIOS Flash ROM.
- SMRAM System Management Random Access Memory
- the operating system may be an operating system that complies with the EFI specification, such as: windows server 2008, or Redhat enterprise 5.5, and the like.
- the step of automatically reading the startup information in the storage device and backing up the startup information into the BIOS Flash ROM may further include: confirming the BIOS in the Flash ROM The boot information in the storage device is not backed up. Further, as shown in FIG. 4, it is confirmed that the storage device is not backed up in the BIOS Flash ROM.
- the step of starting the information may further include: confirming that the startup information in the storage device is complete.
- the process of confirming that the startup information of the storage device is complete may include: if the hard disk uses a GPT partition (the Signature in the GPT header may display a GPT partition) If it is, the CRC checksum calculation can be used to confirm that the startup information is complete.
- the step of "confirming that the BIOS flash ROM does not back up the boot information in the storage device" and the step of "confirming that the boot information in the storage device is complete” may be performed in an order of Reversed, or, can be performed at the same time, or one of the steps can be omitted.
- the present invention further provides an apparatus for backing up startup information of a storage device, including: an obtaining module, configured to automatically read startup information in a storage device during a process of booting an operating system,
- the startup information is information required to start the storage device;
- the backup module is configured to backup the startup information into the BIOS Flash ROM.
- key information of the storage device for example, boot information
- the BIOS Flash ROM since key information of the storage device, for example, boot information, is backed up in the BIOS Flash ROM, the security of these key information is improved.
- the storage device cannot be started after the startup information is lost, by backing up the startup information to the BIOS Flash ROM, the storage device can be started by the startup startup information, so that the storage device can be started and used again, thereby improving The value of the storage device.
- the apparatus for backing up startup information of the storage device may be applied to a hardware system having a processor and a storage device, where the processor performs activation information of the storage device Backup.
- the hardware system having the processor and the storage device may be a computer, or a communication device, and the communication device may be: a server, or a router, or a gateway, or a mobile terminal, or a base station, or the like.
- the storage device is a medium having a storage function, such as a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- a storage function such as a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the operating system may be an operating system that complies with the EFI specification, such as: windows server 2008, or Redhat enterprise 5.5, and the like.
- the obtaining module may be further configured to: automatically: read boot information in the storage device into the SMRAM during booting the operating system; the backup module may be further used to read The boot information in the SMRAM is backed up to the BIOS Flash ROM. As shown in FIG.
- the device may further include: a triggering module, configured to automatically read startup information in the storage device during booting the operating system, and use the startup information Before the backup to the BIOS Flash ROM, the interrupt is triggered; and further used to automatically read the boot information in the storage device; after the boot information is backed up to the BIOS Flash ROM, the interrupt is exited.
- the triggering module may include: an enabling module, configured to enable an ACPI function in the process of booting the operating system, and run according to an ACPI specification.
- An interrupt module configured to trigger an SMI interrupt before “automatically reading boot information in the storage device, backing up the boot information into the BIOS Flash ROM” in accordance with the ACPI specification; and further for “automatically” Read the boot information in the storage device; back up the boot information to the BIOS Flash ROM” and then exit the SMI interrupt.
- the device for backing up startup information of the storage device It is also possible to include the presence or absence of a confirmation module.
- the presence or absence confirmation module is configured to confirm that the boot information in the storage device is not backed up in the BIOS Flash ROM before automatically booting the boot information in the storage device and backing up the boot information into the BIOS Flash ROM.
- the device for backing up the startup information of the storage device may further include a complete confirmation module.
- the complete confirmation module is configured to confirm that the startup information of the storage device is complete before automatically reading the startup information in the storage device and backing up the startup information into the BIOS Flash ROM.
- the storage device is a hard disk
- the hard disk uses a GPT partition (the Signature in the GPT header can display a GPT partition)
- the startup information can be calculated through the CRC checksum.
- the CPU is configured to enable the ACPI function to trigger the system management interrupt after the BIOS boots the operating system;
- the memory includes the system management memory, and the system management memory is used to read the boot information of the hard disk after triggering the system management interruption.
- the boot information is information required to start the hard disk;
- the CPU is further configured to back up boot information of the hard disk in the system management memory to the BIOS storage unit;
- the BIOS storage unit is configured to store a BIOS program and boot information of the hard disk.
- critical information of the storage device such as boot information
- BIOS Flash ROM since critical information of the storage device, such as boot information, is backed up in the BIOS Flash ROM, the security of these critical information is improved.
- the storage device cannot be started, and the The information is backed up to the BIOS Flash ROM, and the storage device can be started by the startup information of the backup, so that the storage device can be started and used again, thereby improving the utilization value of the storage device.
- the present invention provides an embodiment of a method for restoring storage device startup, including: BIOS initialization, and running the BIOS after initialization; during BIOS operation, reading a BIOS in a BIOS Flash ROM Boot information; using the boot information, booting the storage device.
- the boot device since the boot information of the storage device is backed up to the BIOS Flash ROM, the boot device can still be booted in the BIOS Flash ROM if the boot device cannot be booted due to the loss of the boot information. The information is initiated so that the storage device can be booted up and used again, increasing the value of the storage device.
- Embodiments of the present invention can be applied to a hardware system having a processor and a storage device that performs the steps in the method of restoring storage device activation in accordance with an embodiment of the present invention to activate the storage device.
- the hardware system with the processor and the storage device may be a computer or a communication device, and the communication device may be: a server, or a router, or a gateway, or a mobile terminal, or a base station or the like.
- the storage device is a medium having a storage function, such as a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the method may further include: executing a running instruction of an operating system stored in the storage device to boot the operating system to start running.
- the operating system may be an operating system that complies with the EFI specification, such as: windows server 2008, or Redhat enterprise 5.5, and the like.
- the method before the step of reading the startup information of the storage device in the BIOS Flash ROM, the method further includes: failing to boot the operating system, failing The reason is that the storage device that stores the instructions of the operating system cannot be started.
- the booting information of the storage device in the BIOS flash ROM is read.
- the method further includes: prompting the user to select whether to resume the startup of the storage device;
- the selection result is to initiate recovery of the storage device to start.
- the step of starting the storage device by using the startup information comprises:
- BIOS flash ROM Loading boot information of the storage device in the BIOS flash ROM, loading the boot area of the storage device, booting the storage device from the boot area; or, by using BIOS flash
- the boot device of the storage device read in the ROM starts the storage device.
- the guiding area is an area in the storage device for storing startup information.
- the boot area may be a boot sector of the hard disk.
- the present invention provides an embodiment of a device for restoring storage device startup, comprising: an initialization module, configured to perform BIOS initialization, and run the BIOS after BIOS initialization; a reading module, configured in the BIOS In the running, reading the startup information of the storage device in the BIOS Flash ROM; And a startup module, configured to start the storage device by using the startup information.
- the boot device since the boot information of the storage device is backed up to the BIOS Flash ROM, the boot device can still be booted in the BIOS Flash ROM if the boot device cannot be booted due to the loss of the boot information.
- the information is initiated so that the storage device can be booted up and used again, increasing the value of the storage device.
- the means for recovering storage device activation may be applied to a hardware system having a processor and a storage device, the processor initiating the storage device.
- the hardware system having the processor and the storage device may be a computer, or a communication device, and the communication device may be: a server, or a router, or a gateway, or a mobile terminal, or a base station, or the like.
- the storage device is a medium having a storage function, such as a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- a storage function such as a hard disk, a magnetic disk, a flash SSD, a PCM SSD, an SD card, a CF card, or a USB flash drive.
- the device for starting the recovery storage device further includes: an execution module, configured to execute an operation of an operating system stored in the storage device after starting the storage device An instruction to boot the operating system to start running.
- the operating system may be an operating system that complies with the EFI specification, such as: windows server 2008, or Redhat enterprise 5.5, and the like.
- the device for starting the recovery storage device may further include: a prompting module, configured to: before storing the startup information of the storage device in the BIOS Flash ROM, The storage device of the instruction of the operating system cannot be started. After the failure of the booting of the operating system, the user is prompted to select whether to resume the startup of the storage device.
- the receiving module is configured to receive a selection result of the user, and the selection result is a selection recovery. Save The storage device is activated.
- the invention also provides an embodiment of a computer system, the computer system comprising:
- the CPU is configured to determine, after the BIOS is initialized, whether the user selects to restore the boot information of the hard disk; the memory, including the system management memory, is used to read from the BIOS storage unit after the CPU determines that the user selects the boot information of the recovery hard disk. Taking the boot information of the hard disk, the boot information is information required to start the hard disk; the CPU is further configured to restore the boot information of the hard disk in the system management memory to the hard disk; the BIOS storage unit is configured to store the BIOS program and Boot information of the hard disk.
- the boot device since the boot information of the storage device is backed up to the BIOS, the boot device can still be booted by backing up the boot information in the BIOS if the boot device cannot be started due to the loss of the boot information. Thereby, the storage device can be activated and used again, which improves the utilization value of the storage device.
- the invention also provides an embodiment of a computer system, the computer system comprising:
- the CPU is configured to determine, after the BIOS is initialized, whether the user selects to restore the boot information of the hard disk; the memory, including the system management memory, is used to read from the BIOS storage unit after the CPU determines that the user selects the boot information of the recovery hard disk. Taking the boot information of the hard disk, the boot information is information required to start the hard disk; the computer system starts the hard disk according to the boot information of the hard disk in the system management memory;
- the BIOS storage unit is configured to store a BIOS program and boot information of the hard disk.
- the storage device can still be backed up if the storage device cannot be started due to the loss of the startup information.
- the startup information in the BIOS is started, so that the storage device can be started and used again, which improves the utilization value of the storage device.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
- ROM read-only memory
- RAM random access memory
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明的实施例公开了一种备份存储装置的启动信息的方法的实施例,包括:在引导操作系统的过程中,自动读取存储装置中的启动信息,所述启动信息为启动所述存储装置所需要的信息;将所述启动信息备份到BIOS Flash ROM中。由于将所述存储装置的关键信息,例如:启动信息,备份在BIOS Flash ROM中,因此提高了这些关键信息的安全性。
Description
一种备份存储装置的启动信息的方法 技术领域 本发明涉及电子通信技术领域, 尤其涉及一种备份存储装置的启动信息 的方法。 背景技术 随着计算机技术和因特网技术的广泛普及使用, 产生海量的数据, 其中大 部份存储在硬盘中。 由于传统 MBR硬盘的缺点, GPT硬盘已逐渐替代 MBR硬 盘。 在 GPT硬盘的开始和结束部分存储着 GPT头和分区表等关键信息。 病毒的破坏, 操作的失误以及许多偶然的因素, 会导致硬盘中的这些关 键信息损坏, 或者导致这些信息丟失, 如果是 GPT头和分区表等遭到破坏的 话, 会进一步导致硬盘无法启动。 发明内容
本发明的实施例提供了一种备份存储装置的启动信息的方法, 以解决存 储装置中存储的关键信息容易在存储装置丟失的问题。 本发明实施例提供如下方案: 本发明提供一种备份存储装置的启动信息的方法的实施例, 所述方法包 括: 在引导操作系统的过程中, 自动读取存储装置中的启动信息, 所述启动 信息为启动所述存储装置所需要的信息; 将所述启动信息备份到 BIOS Flash ROM中。 可选的, 所述自动读取存储装置中的启动信息, 将所述启动信息备份到
BIOS Flash ROM中的步骤包括: 自动将存储装置中的启动信息读取到 SM RAM中, 并将读取到 SM RAM中 的所述启动信息备份到 BIOS Flash ROM中。
可选的, 所述存储装置可以为硬盘, 磁盘, flash SSD, PCM SSD, SD 卡, CF卡, 或 U盘。在所述存储装置为硬盘的情况下,所述启动信息包括: GPT 头和分区表信息。
可选的, 所述自动读取存储装置中的启动信息的步骤包括: 从硬盘的引 导扇区中读取硬盘中的启动信息。 可选的,在自动读取存储装置中的启动信息;将所述启动信息备份到 BIOS Flash ROM中之前包括: 触发中断, 在自动读取存储装置中的启动信息; 将所述启动信息备份到 BIOS Flash ROM中之后还包括: 退出中断。
可选的, 所述触发中断包括: 在引导所述操作系统的过程中,使能 ACPI功能,并按照 ACPI的规范运行, 触发 SMI中断。 所述退出中断的步骤包括:
退出 SMI中断。 可选的, 所述操作系统为遵循 EFI规范的操作系统。 可选的, 所述自动读取存储装置中的启动信息, 以及将所述启动信息备 份到 BIOS Flash ROM中之前还包括:
确认 BIOS Flash ROM中没有备份所述存储装置中的启动信息。
可选的, 所述自动读取存储装置中的启动信息, 以及将所述启动信息备 份到 BIOS Flash ROM中的步骤之前还包括:
确认所述存储装置中的启动信息是完整的。 由上述本发明的实施例提供的技术方案可以看出, 在本发明的实施例中, 由于将所述存储装置的关键信息, 例如: 启动信息, 备份在 BIOS Flash ROM 中, 因此提高了这些关键信息的安全性。
本发明还提供一种备份存储装置的启动信息的装置的实施例, 所述装置 包括:
获取模块, 用于在引导操作系统的过程中, 自动读取存储装置中的启动 信息, 所述启动信息为启动所述存储装置所需要的信息;
备份模块, 用于将所述启动信息备份到 BIOS Flash ROM中。
可选的, 所述获取模块可以进一步用于, 用于在引导操作系统的过程中, 自动将存储装置中的启动信息读取到 SM RAM中;
备份模块可以进一步用于, 将读取到 SMRAM中的所述启动信息备份到 BIOS Flash ROM中。
可选的, 所述存储装置为硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF 卡, 或 U盘。其中,在所述存储装置为硬盘的情况下,所述启动信息包括: GPT 头和分区表信息。
可选的, 所述操作系统为遵循 EFI规范的操作系统。
可选的, 所述装置还包括: 触发模块, 用于在引导操作系统的过程中, 在读取模块自动读取存储装
置中的启动信息, 备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 触发中断;
所述触发模块还用于在自动读取存储装置中的启动信息; 将所述启动信 息备份到 BIOS Flash ROM中之后, 退出中断。 可选的, 所述触发模块包括: 使能模块, 用于在引导所述操作系统的过程中, 使能 ACPI功能, 并按照 ACPI的规范运行。 中断模块, 用于在按照 ACPI的规范运行中, 在读取模块自动读取存储装 置中的启动信息, 备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 触发 SMI中断; 并且进一步用于在 "自动读取存储装置中的启动信息; 将所述 启动信息备份到 BIOS Flash ROM中" 之后, 退出 SMI中断。 可选的, 所述装置还包括有无确认模块, 所述有无确认模块, 用于读取模块在自动读取存储装置中的启动信息, 以及备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 确认 BIOS Flash ROM中没有备份所述存储装置中的启动信息。 可选的, 所述装置还包括完整确认模块, 所述完整确认模块, 用于在读取模块自动读取存储装置中的启动信息, 以及备份模块将所述启动信息备份到 BIOS Flash ROM中之前,确认所述存储 装置的启动信息是完整的。 由上述本发明的实施例提供的技术方案可以看出, 在本发明的实施例中, 由于将所述存储装置的关键信息, 例如: 启动信息, 备份在 BIOS Flash ROM 中, 因此提高了这些关键信息的安全性。
本发明还提供一种恢复存储装置启动的方法的实施例, 所述方法包括:
BIOS初始化, 并在初始化后运行所述 BIOS;
在 BIOS的运行中, 读取 BIOS Flash ROM中的存储装置的启动信息; 利用所述启动信息, 启动所述存储装置。 可选的, 所述存储装置可以为硬盘, 磁盘, flash SSD, PCM SSD, SD 卡, CF卡, 或 U盘。在所述存储装置为硬盘的情况下,所述启动信息包括: GPT 头和分区表信息。 可选的, 在启动所述存储装置之后, 所述方法还包括:
执行所述存储装置中存储的操作系统的运行指令, 以引导所述操作系统 启动运行。
可选的, 所述操作系统为遵循 EFI规范的操作系统。
可选的, 在 BIOS的运行中, 所述读取 BIOS Flash ROM中的存储装置的 启动信息之前, 所述方法还包括: 引导操作系统启动时失败, 失败的原因是存储所述操作系统的指令的存 储装置无法启动。
可选的, 在所述 BIOS的运行中, 所述引导操作系统启动时失败之后, 在 所述读取 BIOS Flash ROM中的存储装置的启动信息之前, 所述方法还包括: 提示用户选择是否恢复所述存储装置的启动;
接收用户的选择结果, 所述选择结果为选择恢复所述存储装置启动。 可选的, 所述利用所述启动信息, 启动所述存储装置包括:
把读取 BIOS Flash ROM中的存储装置的启动信息,加载到所述存储装置 的引导区域, 从所述引导区域启动所述存储装置; 或者
通过从 BIOS Flash ROM中读取到的存储装置的启动信息,启动所述存储 装置;
其中, 所述引导区域为所述存储装置中用于存储启动信息的区域。 在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS Flash ROM中, 从而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍 能通过备份在 BIOS Flash ROM中的启动信息进行启动,从而从而可以再次启 动并使用该存储装置, 提高了该存储装置的利用价值。
本发明还提供一种恢复存储装置启动的装置的实施例, 所述装置包括: 初始化模块, 用于执行 BIOS初始化, 并在 BIOS初始化后运行所述 BIOS; 读取模块, 用于在 BIOS的运行中, 读取 BIOS Flash ROM中的存储装置 的启动信息; 启动模块, 用于利用所述启动信息, 启动所述存储装置。
其中,所述存储装置可以为硬盘,磁盘, flash SSD, PCM SSD, SD卡, CF 卡, 或 U盘。
可选的, 所述装置还包括: 执行模块, 用于在启动所述存储装置之后, 执行所述存储装置中存储的 操作系统的运行指令, 以引导所述操作系统启动运行。 可选的, 所述操作系统为遵循 EFI规范的操作系统。 可选的, 所述装置还包括: 提示模块,用于在所述读取模块读取 BIOS Flash ROM中的存储装置的启 动信息之前, 由于存储所述操作系统的指令的存储装置无法启动, 引导操作 系统启动时失败后, 提示用户选择是否恢复所述存储装置的启动; 接收模块, 用于接收用户的选择结果, 所述选择结果为选择恢复所述存 储装置启动。 在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS Flash
ROM中, 从而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍 能通过备份在 BIOS Flash ROM中的启动信息进行启动,从而从而可以再次启 动并使用该存储装置, 提高了该存储装置的利用价值。
附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发 明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的 前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一种备份存储装置的启动信息的方法的实施例的示意图; 图 2为本发明一种备份存储装置的启动信息的方法的另一种实施例的示 意图;
图 3为本发明一种备份存储装置的启动信息的方法的再一种实施例的示 意图;
图 4为本发明一种备份存储装置的启动信息的方法的再一种实施例的示 意图;
图 5为本发明一种备份存储装置的启动信息的装置的实施例的示意图; 图 6为本发明一种备份存储装置的启动信息的装置的另一种实施例的示 意图;
图 7为本发明一种备份存储装置的启动信息的装置的再一种实施例的示 意图;
图 8为本发明一种备份存储装置的启动信息的装置的再一种实施例的示 意图;
图 9为本发明一种备份存储装置的启动信息的装置的再一种实施例的示 意图;
图 10为本发明一种恢复存储装置启动的方法的实施例的示意图;
图 1 1为本发明一种恢复存储装置启动的方法的另一种实施例的示意图; 图 12为本发明一种恢复存储装置启动的方法的再一种实施例的示意图; 图 13为本发明一种恢复存储装置启动的装置的实施例的示意图; 图 14为本发明一种恢复存储装置启动的装置的另一种实施例的示意图; 图 15为本发明一种恢复存储装置启动的装置的再一种实施例的示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
如图 1所示, 本发明提供一种备份存储装置的启动信息的方法的实施例, 包括: 在引导操作系统的过程中, 自动读取存储装置中的启动信息, 所述启动 信息为启动所述存储装置所需要的信息; 将所述启动信息备份到 BIOS Flash ROM中。 在本发明的实施例中, 由于将所述存储装置的关键信息, 例如: 启动信 息, 备份在 BIOS (Basic Input/Output System , 基本输入 /输出系统) Flash ROM (read only memory, 只读储存储器)中, 因此提高了这些关键信息的安 全性。 进一步地, 由于启动信息丟失后会导致该存储装置无法启动, 通过将启 动信息备份到 BIOS Flash ROM中, 可以通过备份的启动信息启动该存储装 置, 从而可以再次启动并使用该存储装置, 提高了该存储装置的利用价值。 本发明的实施例可以应用于具有处理器和存储装置的硬件系统中, 所述处
理器执行本发明实施例备份存储装置的启动信息的方法中的步骤, 对所述存 储装置中的启动信息进行备份。 其中, 所述具有处理器和存储装置的硬件系 统可以为计算机, 或者通信设备, 所述通信设备可以为: 服务器, 或路由器, 或网关, 或移动终端, 或基站等等。 在本发明的实施例中, 所述存储装置为具有存储功能的介质, 例如: 硬盘、 磁盘, flash SSD ( Solid State Drive ), PCM ( Linear Pulse Code Modlation ) SSD ( Solid State Drive ) , SD ( SecureDigital )卡, CF ( Compact Flash ) 卡, 或 U盘 (USB闪存盘, Universal Serial Bus flash disk )等。
在所述存储装置为硬盘的情况下, 所述启动信息包括: GPT ( GUID
Partition Table )头和分区表信息;所述启动信息存储在所述硬盘的引导扇区。 由于硬盘的启动信息是自动备份的, GPT分区等信息变更时, 能够做到及时 的备份。 所述自动读取存储装置中的启动信息的步骤可以包括: 从硬盘的引导扇 区中读取硬盘中的启动信息。
如图 2所示, 在本发明的实施例中, 在自动读取存储装置中的启动信息; 将所述启动信息备份到 BIOS Flash ROM中的步骤之前包括: 触发中断。 在自动读取存储装置中的启动信息; 将所述启动信息备份到 BIOS Flash ROM中的步骤之后还可以包括: 退出中断。 进一步地, 在所述触发中断的步骤之前还可以包括: 在引导所述操作系 统的过程中, 使能 ACPI ( Advanced Configuration and Power Interface, 先 进设置和电源管理) 功能, 并按照 ACPI的规范运行。 所述触发中断的步骤可 以包括: 在引导所述操作系统的过程中,使能 ACPI功能,并按照 ACPI的规范运行,
触发 SMI ( System Management Interrupt, 系统管理中断) 中断。 所述退出中断的步骤包括:
退出 SMI中断。
所述触发 SMI中断的步骤包括: 执行 SMI中断指令。
进一步地, 所述自动读取存储装置中的启动信息; 将所述启动信息备份 到 BIOS Flash ROM中的步骤包括: 自动将存储装置中的启动信息读取到 SMRAM ( System Management Random Access Memory, 系统管理内存)中, 并将读取到 SMRAM中的所述 启动信息备份到 BIOS Flash ROM中。
另外, 在本发明的实施例中, 可以在 BIOS引导操作系统启动的过程中, 对操作系统做了初始化之后,执行"使能 ACPI功能,并按照 ACPI的规范运行" 的步骤。
"将所述启动信息备份到 BIOS Flash ROM中"或者 "退出中断" 的步骤 之后, 完成操作系统启动的引导, 并且开始运行所述操作系统。
在本发明的实施例中, 所述操作系统可以为遵循 EFI规范的操作系统, 例 如: windows server 2008, 或者 Redhat enterprise 5.5等等。
如图 3所示,在本发明的实施例中,所述自动读取存储装置中的启动信息, 以及将所述启动信息备份到 BIOS Flash ROM中的步骤之前还可以包括: 确认 BIOS Flash ROM中没有备份所述存储装置中的启动信息。 进一步地, 如图 4所示, 确认 BIOS Flash ROM中没有备份所述存储装置
中的启动信息的步骤之前还可以包括: 确认所述存储装置中的启动信息是完整的。 更进一步地, 在所述存储装置为硬盘的情况下, 其中, 确认所述存储装 置的启动信息是完整的过程可以包括: 如果硬盘釆用 GPT分区 (GPT header里的 Signature可以显示是 GPT分 区) 的话, 可以通过 CRC校验和计算, 从而确认所述启动信息是完整的。 在本发明的实施例中, 所述 "确认 BIOS Flash ROM中没有备份所述存储 装置中的启动信息" 的步骤和 "确认所述存储装置中的启动信息是完整的" 的步骤的执行顺序可以颠倒, 或者, 也可以同时执行, 或者, 也可以省略其 中一个步骤。
如图 5所示, 本发明还提供一种备份存储装置的启动信息的装置的实施 例, 包括: 获取模块, 用于在引导操作系统的过程中, 自动读取存储装置中的启动 信息, 所述启动信息为启动所述存储装置所需要的信息; 备份模块, 用于将所述启动信息备份到 BIOS Flash ROM中。 在本发明的实施例中, 由于将所述存储装置的关键信息, 例如: 启动信 息, 备份在 BIOS Flash ROM中, 因此提高了这些关键信息的安全性。 进一步地, 由于启动信息丟失后会导致该存储装置无法启动, 通过将启 动信息备份到 BIOS Flash ROM中, 可以通过备份的启动信息启动该存储装 置, 从而可以再次启动并使用该存储装置, 提高了该存储装置的利用价值。
在本发明的实施例中, 备份存储装置的启动信息的装置可以应用于具有处 理器和存储装置的硬件系统中, 所述处理器对所述存储装置的启动信息进行
备份。 其中, 所述具有处理器和存储装置的硬件系统可以为计算机, 或者通 信设备, 所述通信设备可以为: 服务器, 或路由器, 或网关, 或移动终端, 或基站等等。
在本发明的实施例中, 所述存储装置为具有存储功能的介质, 例如: 硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘等。
在本发明的实施例中, 所述操作系统可以为遵循 EFI规范的操作系统, 例 如: windows server 2008, 或者 Redhat enterprise 5.5等等。 在本发明的实施例中, 所述获取模块可以进一步用于, 用于在引导操作 系统的过程中, 自动将存储装置中的启动信息读取到 SMRAM中; 备份模块可以进一步用于, 将读取到 SMRAM中的所述启动信息备份到 BIOS Flash ROM中。 如图 6所示, 在本发明的实施例中, 所述装置还可以包括: 触发模块, 用于在引导操作系统的过程中, 在自动读取存储装置中的启 动信息, 将所述启动信息备份到 BIOS Flash ROM中之前, 触发中断; 并且进一步用于在自动读取存储装置中的启动信息; 将所述启动信息备 份到 BIOS Flash ROM中之后, 退出中断。 如图 7所示, 在本发明的实施例中, 所述触发模块可以包括: 使能模块, 用于在引导所述操作系统的过程中, 使能 ACPI功能, 并按照 ACPI的规范运行。 中断模块, 用于在按照 ACPI的规范运行中, 在 "自动读取存储装置中的 启动信息,将所述启动信息备份到 BIOS Flash ROM中"之前,触发 SMI中断; 并且进一步用于在 "自动读取存储装置中的启动信息; 将所述启动信息备份 到 BIOS Flash ROM中" 之后, 退出 SMI中断。
如图 8所示, 在本发明的实施例中, 所述备份存储装置的启动信息的装置
还可以包括有无确认模块。 所述有无确认模块, 用于在自动读取存储装置中的启动信息, 以及将所 述启动信息备份到 BIOS Flash ROM中之前, 确认 BIOS Flash ROM中没有备 份所述存储装置中的启动信息。 如图 9所示, 在本发明的实施例中, 所述备份存储装置的启动信息的装置 还可以包括完整确认模块。 所述完整确认模块, 用于在自动读取存储装置中的启动信息, 以及将所 述启动信息备份到 BIOS Flash ROM中之前,确认所述存储装置的启动信息是 完整的。
其中, 在所述存储装置为硬盘的情况下, 如果硬盘釆用 GPT分区 (GPT header里的 Signature可以显示是 GPT分区)的话, 可以通过 CRC校验和计算 所述启动信息是否完整。 本发明还提供一种计算机系统的实施例, 所述计算机系统包括:
CPU ,用于在 BIOS引导操作系统后,使能 ACPI功能,触发系统管理中断; 内存, 包括系统管理内存, 所述系统管理内存用于在触发系统管理中断 后, 读取硬盘的引导信息, 所述引导信息为启动所述硬盘所需要的信息; 所述 CPU还用于将系统管理内存中的硬盘的引导信息备份到 BIOS存储 单元中;
所述 BIOS存储单元用于存储 BIOS程序及所述硬盘的引导信息。 在本发明的计算机系统的实施例中, 由于将所述存储装置的关键信息, 例如: 启动信息, 备份在 BIOS Flash ROM中, 因此提高了这些关键信息的安 全性。
进一步地, 由于启动信息丟失后会导致该存储装置无法启动, 通过将启
动信息备份到 BIOS Flash ROM中, 可以通过备份的启动信息启动该存储装 置, 从而可以再次启动并使用该存储装置, 提高了该存储装置的利用价值。
如图 10所示, 本发明提供一种恢复存储装置启动的方法的实施例, 包括: BIOS初始化, 并在初始化后运行所述 BIOS; 在 BIOS的运行中, 读取 BIOS Flash ROM中的存储装置的启动信息; 利用所述启动信息, 启动所述存储装置。
在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS Flash ROM中, 从而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍 能通过备份在 BIOS Flash ROM中的启动信息进行启动,从而从而可以再次启 动并使用该存储装置, 提高了该存储装置的利用价值。
本发明的实施例可以应用于具有处理器和存储装置的硬件系统中, 所述处 理器执行本发明实施例恢复存储装置启动的方法中的步骤, 启动所述存储装 置。 其中, 所述具有处理器和存储装置的硬件系统可以为计算机, 或者通信 设备, 所述通信设备可以为: 服务器, 或路由器, 或网关, 或移动终端, 或 基站等等。 在本发明的实施例中, 所述存储装置为具有存储功能的介质, 例如: 硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘等。
如图 1 1所示, 在本发明的实施例中, 启动所述存储装置之后, 还可以包 括: 执行所述存储装置中存储的操作系统的运行指令, 以引导所述操作系统 启动运行。 在本发明的实施例中, 所述操作系统可以为遵循 EFI规范的操作系统, 例 如: windows server 2008, 或者 Redhat enterprise 5.5等等。
如图 12所示, 在本发明的实施例中, 在 BIOS的运行中, 所述读取 BIOS Flash ROM中的存储装置的启动信息的步骤之前, 还包括: 引导操作系统启动时失败, 失败的原因是存储所述操作系统的指令的存 储装置无法启动。
如图 12所示, 在本发明的实施例中, 在所述 BIOS的运行中, 所述引导操 作系统启动时失败的步骤之后,在所述读取 BIOS Flash ROM中的存储装置的 启动信息的步骤之前, 还包括: 提示用户选择是否恢复所述存储装置的启动;
接收用户的选择结果, 所述选择结果为选择恢复所述存储装置启动。
在本发明的实施例中, 所述利用所述启动信息, 启动所述存储装置的步 骤包括:
把读取 BIOS Flash ROM中的存储装置的启动信息,加载到所述存储装置 的引导区域, 从所述引导区域启动所述存储装置; 或者, 通过从 BIOS Flash
ROM中读取到的存储装置的启动信息, 启动所述存储装置。 其中, 所述引导 区域为所述存储装置中用于存储启动信息的区域。 在所述存储装置为硬盘的情况下, 所述引导区域可以为所述硬盘的引导 扇区。 如图 13所示, 本发明提供一种恢复存储装置启动的装置的实施例, 包括: 初始化模块, 用于执行 BIOS初始化, 并在 BIOS初始化后运行所述 BIOS; 读取模块, 用于在 BIOS的运行中, 读取 BIOS Flash ROM中的存储装置 的启动信息;
启动模块, 用于利用所述启动信息, 启动所述存储装置。 在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS Flash ROM中, 从而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍 能通过备份在 BIOS Flash ROM中的启动信息进行启动,从而从而可以再次启 动并使用该存储装置, 提高了该存储装置的利用价值。 在本发明的实施例中, 恢复存储装置启动的装置可以应用于具有处理器和 存储装置的硬件系统中, 所述处理器启动所述存储装置。 其中, 所述具有处 理器和存储装置的硬件系统可以为计算机, 或者通信设备, 所述通信设备可 以为: 服务器, 或路由器, 或网关, 或移动终端, 或基站等等。
在本发明的实施例中, 所述存储装置为具有存储功能的介质, 例如: 硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘等。
如图 14所示, 在本发明的实施例中, 所述恢复存储装置启动的装置还包 括: 执行模块, 用于在启动所述存储装置之后, 执行所述存储装置中存储的 操作系统的运行指令, 以引导所述操作系统启动运行。 在本发明的实施例中, 所述操作系统可以为遵循 EFI规范的操作系统, 例 如: windows server 2008, 或者 Redhat enterprise 5.5等等。
如图 15所示, 在本发明的实施例中, 所述恢复存储装置启动的装置还可 以包括: 提示模块, 用于在读取 BIOS Flash ROM中的存储装置的启动信息之前, 由于存储所述操作系统的指令的存储装置无法启动, 引导操作系统启动时失 败后, 提示用户选择是否恢复所述存储装置的启动; 接收模块, 用于接收用户的选择结果, 所述选择结果为选择恢复所述存
储装置启动。
本发明还提供一种计算机系统的实施例, 所述计算机系统包括:
CPU , 用于在 BIOS初始化后, 判断用户是否选择恢复硬盘的引导信息; 内存, 包括系统管理内存, 所述系统管理内存用于在 CPU判断用户选择 恢复硬盘的引导信息后, 从 BIOS存储单元读取硬盘的引导信息, 所述引导信 息为启动硬盘所需要的信息; 所述 CPU还用于将系统管理内存中的硬盘的引导信息恢复到硬盘中; 所述 BIOS存储单元用于存储 BIOS程序及所述硬盘的引导信息。 在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS中, 从 而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍能通过备份 在 BIOS中的启动信息进行启动, 从而可以再次启动并使用该存储装置, 提高 了该存储装置的利用价值。 本发明还提供一种计算机系统的实施例, 所述计算机系统包括:
CPU , 用于在 BIOS初始化后, 判断用户是否选择恢复硬盘的引导信息; 内存, 包括系统管理内存, 所述系统管理内存用于在 CPU判断用户选择 恢复硬盘的引导信息后, 从 BIOS存储单元读取硬盘的引导信息, 所述引导信 息为启动硬盘所需要的信息; 所述计算机系统根据所述系统管理内存中的硬盘的引导信息启动所述硬 盘;
所述 BIOS存储单元用于存储 BIOS程序及所述硬盘的引导信息。 在本发明的实施例中, 由于将存储装置的启动信息备份到了 BIOS中, 从 而可以在存储装置由于丟失了启动信息而无法启动的情况下, 仍能通过备份
在 BIOS中的启动信息进行启动, 从而可以再次启动并使用该存储装置, 提高 了该存储装置的利用价值。 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存 己忆体 ( Random Access Memory, RAM )等。 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应该以权利要求的保护范围为准。
Claims
1、 一种备份存储装置的启动信息的方法, 其特征在于, 所述方法包括: 在引导操作系统的过程中, 自动读取存储装置中的启动信息, 所述启动信 息为启动所述存储装置所需要的信息; 将所述启动信息备份到 BIOS Flash ROM中。
2、 如权利要求 1所述的备份存储装置的启动信息的方法, 其特征在于, 所 述存储装置为硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘。
3、 如权利要求 1所述的备份存储装置的启动信息的方法, 其特征在于, 在 所述存储装置为硬盘的情况下, 所述启动信息包括: GPT头和分区表信息。
4、 如权利要求 3所述的备份存储装置的启动信息的方法, 其特征在于, 所 述自动读取存储装置中的启动信息的步骤包括: 从硬盘的引导扇区中读取硬盘 中的启动信息。
5、 如权利要求 1所述的备份存储装置的启动信息的方法, 其特征在于, 在自动读取存储装置中的启动信息; 将所述启动信息备份到 BIOS Flash ROM中之前包括: 触发中断, 在自动读取存储装置中的启动信息; 将所述启动信息备份到 BIOS Flash ROM中之后还包括: 退出中断。
6、 如权利要求 5所述的备份存储装置的启动信息的方法, 其特征在于, 所述触发中断包括: 在引导所述操作系统的过程中, 使能 ACPI功能, 并按照 ACPI的规范运行, 触发 SMI中断。
所述退出中断的步骤包括:
退出 SMI中断。
7、 如权利要求 1至 6中任一项所述的备份存储装置的启动信息的方法, 其特 征在于, 所述操作系统为遵循 EFI规范的操作系统。
8、 如权利要求 1所述的备份存储装置的启动信息的方法, 其特征在于, 所 述自动读取存储装置中的启动信息, 以及将所述启动信息备份到 BIOS Flash ROM中之前还包括: 确认 BIOS Flash ROM中没有备份所述存储装置中的启动信息。
9、 如权利要求 1至 6中任一项所述的所述的备份存储装置的启动信息的方 法, 其特征在于, 所述自动读取存储装置中的启动信息, 以及将所述启动信息 备份到 BIOS Flash ROM中的步骤之前还包括: 确认所述存储装置中的启动信息是完整的。
10、 如权利要求 1至 6中任一项所述的所述的备份存储装置的启动信息的方 法, 其特征在于, 所述自动读取存储装置中的启动信息, 将所述启动信息备份 到 BIOS Flash ROM中的步骤包括: 自动将存储装置中的启动信息读取到 SMRAM中, 并将读取到 SMRAM中的 所述启动信息备份到 BIOS Flash ROM中。
1 1、 一种备份存储装置的启动信息的装置, 其特征在于, 所述装置包括: 获取模块, 用于在引导操作系统的过程中, 自动读取存储装置中的启动信 息, 所述启动信息为启动所述存储装置所需要的信息; 备份模块, 用于将所述启动信息备份到 BIOS Flash ROM中。
12、 如权利要求 1 1所述的备份存储装置的启动信息的装置, 其特征在于,
所述获取模块进一步用于, 用于在引导操作系统的过程中, 自动将存储装 置中的启动信息读取到 SM RAM中; 备份模块进一步用于, 将读取到 SMRAM中的所述启动信息备份到 BIOS Flash ROM中。
13、 如权利要求 1 1所述的备份存储装置的启动信息的装置, 其特征在于, 所述存储装置为硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘。
14、 如权利要求 13所述的备份存储装置的启动信息的方法, 其特征在于, 在所述存储装置为硬盘的情况下, 所述启动信息包括: GPT头和分区表信息。
15、 如权利要求 1 1至 14中任一项所述的备份存储装置的启动信息的装置, 其特征在于, 所述操作系统为遵循 EFI规范的操作系统。
16、 如权利要求 1 1至 14中任一项所述的备份存储装置的启动信息的装置, 其特征在于, 所述装置还包括: 触发模块, 用于在引导操作系统的过程中, 在读取模块自动读取存储装置 中的启动信息, 备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 触发 中断; 所述触发模块还用于在自动读取存储装置中的启动信息; 将所述启动信息 备份到 BIOS Flash ROM中之后, 退出中断。
17、 如权利要求 16所述的备份存储装置的启动信息的装置, 其特征在于, 所述触发模块包括: 使能模块,用于在引导所述操作系统的过程中,使能 ACPI功能,并按照 ACPI 的规范运行。 中断模块, 用于在按照 ACPI的规范运行中, 在读取模块自动读取存储装置 中的启动信息, 备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 触发
SMI中断; 并且进一步用于在 "自动读取存储装置中的启动信息; 将所述启动信 息备份到 BIOS Flash ROM中" 之后, 退出 SMI中断。
18、 如权利要求 1 1至 14中任一项所述的备份存储装置的启动信息的装置, 其特征在于, 所述装置还包括有无确认模块, 所述有无确认模块, 用于读取模块在自动读取存储装置中的启动信息, 以 及备份模块将所述启动信息备份到 BIOS Flash ROM中之前, 确认 BIOS Flash ROM中没有备份所述存储装置中的启动信息。
19、 如权利要求 1 1至 14中任一项所述的备份存储装置的启动信息的装置, 其特征在于, 所述装置还包括完整确认模块, 所述完整确认模块, 用于在读取模块自动读取存储装置中的启动信息, 以 及备份模块将所述启动信息备份到 BIOS Flash ROM中之前,确认所述存储装置 的启动信息是完整的。
20、 一种恢复存储装置启动的方法, 其特征在于, 所述方法包括: BIOS初始化, 并在初始化后运行所述 BIOS; 在所述 BIOS的运行中, 读取 BIOS Flash ROM中的存储装置的启动信息; 利用所述启动信息, 启动所述存储装置。
21、 如权利要求 20所述的恢复存储装置启动的方法, 其特征在于, 所述存 储装置为硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘。
22、 如权利要求 20所述的恢复存储装置启动存储装置的方法, 其特征在于, 在所述存储装置为硬盘的情况下, 所述启动信息包括: GPT头和分区表信息。
23、 如权利要求 20所述的恢复存储装置启动的方法, 其特征在于, 在启动 所述存储装置之后, 所述方法还包括:
执行所述存储装置中存储的操作系统的运行指令, 以引导所述操作系统启
24、 如权利要求 23所述的恢复存储装置启动的方法, 其特征在于, 所述操 作系统为遵循 EFI规范的操作系统。
25、 如权利要求 20所述的恢复存储装置启动的方法, 其特征在于, 在 BIOS 的运行中, 所述读取 BIOS Flash ROM中的存储装置的启动信息之前, 所述方法 还包括: 引导操作系统启动时失败, 失败的原因是存储所述操作系统的指令的存储 装置无法启动。
26、 如权利要求 25所述的恢复存储装置启动的方法, 其特征在于, 在所述 BIOS的运行中, 所述引导操作系统启动时失败之后, 在所述读取 BIOS Flash ROM中的存储装置的启动信息之前, 所述方法还包括: 提示用户选择是否恢复所述存储装置的启动; 接收用户的选择结果, 所述选择结果为选择恢复所述存储装置启动。
27、 如权利要求 20所述的恢复存储装置启动的方法, 其特征在于, 所述利 用所述启动信息, 启动所述存储装置包括:
把读取 BIOS Flash ROM中的存储装置的启动信息,加载到所述存储装置的 引导区域, 从所述引导区域启动所述存储装置; 或者
通过从 BIOS Flash ROM中读取到的存储装置的启动信息,启动所述存储装 置;
其中, 所述引导区域为所述存储装置中用于存储启动信息的区域。
28、 一种恢复存储装置启动的装置, 其特征在于, 所述装置包括: 初始化模块, 用于执行 BIOS初始化, 并在 BIOS初始化后运行所述 BIOS; 读取模块, 用于在所述 BIOS的运行中, 读取 BIOS Flash ROM中的存储装 置的启动信息;
启动模块, 用于利用所述启动信息, 启动所述存储装置。
29、 如权利要求 26所述的恢复存储装置启动的装置, 其特征在于, 所述存储 装置为硬盘, 磁盘, flash SSD, PCM SSD, SD卡, CF卡, 或 U盘。
30、 如权利要求 28所述的恢复存储装置启动的装置, 其特征在于, 所述装 置还包括: 执行模块, 用于在启动所述存储装置之后, 执行所述存储装置中存储的操 作系统的运行指令, 以引导所述操作系统启动运行。
31、 如权利要求 30所述的恢复存储装置启动的装置, 其特征在于, 所述操 作系统为遵循 EFI规范的操作系统。
32、 如权利要求 28所述的恢复存储装置启动的装置, 其特征在于, 所述装 置还包括: 提示模块,用于在所述读取模块读取 BIOS Flash ROM中的存储装置的启动 信息之前, 由于存储所述操作系统的指令的存储装置无法启动, 引导操作系统 启动时失败后, 提示用户选择是否恢复所述存储装置的启动; 接收模块, 用于接收用户的选择结果, 所述选择结果为选择恢复所述存储 装置启动。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/084757 WO2013097095A1 (zh) | 2011-12-27 | 2011-12-27 | 一种备份存储装置的启动信息的方法 |
CN2011800392642A CN103189840A (zh) | 2011-12-27 | 2011-12-27 | 一种备份存储装置的启动信息的方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/084757 WO2013097095A1 (zh) | 2011-12-27 | 2011-12-27 | 一种备份存储装置的启动信息的方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013097095A1 true WO2013097095A1 (zh) | 2013-07-04 |
Family
ID=48679809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/084757 WO2013097095A1 (zh) | 2011-12-27 | 2011-12-27 | 一种备份存储装置的启动信息的方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103189840A (zh) |
WO (1) | WO2013097095A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114117455A (zh) * | 2022-01-18 | 2022-03-01 | 荣耀终端有限公司 | 一种电子设备的安全启动方法及电子设备 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204876B (zh) * | 2014-06-12 | 2019-01-15 | 联想(北京)有限公司 | 系统启动方法以及电子设备 |
CN105787311A (zh) * | 2014-12-22 | 2016-07-20 | 联想(上海)信息技术有限公司 | 存储设备管理方法、装置及电子设备 |
CN108255532A (zh) * | 2018-01-16 | 2018-07-06 | 联想(北京)有限公司 | 一种操作系统迁移方法和装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1952832A (zh) * | 2005-10-17 | 2007-04-25 | 光宝科技股份有限公司 | 保护备份数据的计算机系统与方法 |
CN101840365A (zh) * | 2010-04-30 | 2010-09-22 | 广州广电运通金融电子股份有限公司 | Bios安全保护方法及系统 |
US20110047129A1 (en) * | 2009-08-18 | 2011-02-24 | Computer Associates Think, Inc. | Backup and recovery of systems including boot configuration data in an extension firmware interface partition |
CN102439565A (zh) * | 2011-10-28 | 2012-05-02 | 华为技术有限公司 | 启动恢复的方法和装置 |
-
2011
- 2011-12-27 WO PCT/CN2011/084757 patent/WO2013097095A1/zh active Application Filing
- 2011-12-27 CN CN2011800392642A patent/CN103189840A/zh active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1952832A (zh) * | 2005-10-17 | 2007-04-25 | 光宝科技股份有限公司 | 保护备份数据的计算机系统与方法 |
US20110047129A1 (en) * | 2009-08-18 | 2011-02-24 | Computer Associates Think, Inc. | Backup and recovery of systems including boot configuration data in an extension firmware interface partition |
CN101840365A (zh) * | 2010-04-30 | 2010-09-22 | 广州广电运通金融电子股份有限公司 | Bios安全保护方法及系统 |
CN102439565A (zh) * | 2011-10-28 | 2012-05-02 | 华为技术有限公司 | 启动恢复的方法和装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114117455A (zh) * | 2022-01-18 | 2022-03-01 | 荣耀终端有限公司 | 一种电子设备的安全启动方法及电子设备 |
CN114117455B (zh) * | 2022-01-18 | 2023-03-14 | 荣耀终端有限公司 | 一种电子设备的安全启动方法及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN103189840A (zh) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10353779B2 (en) | Systems and methods for detection of firmware image corruption and initiation of recovery | |
US9128878B2 (en) | System and method for auto-failover and version matching of bootloader in an access controller | |
US9880862B2 (en) | Method and system for verifying proper operation of a computing device after a system change | |
CN102439565B (zh) | 启动恢复的方法和装置 | |
WO2014161339A1 (zh) | 固件升级方法及装置 | |
US8499202B2 (en) | Method and system for recovery of a computing environment during pre-boot and runtime phases | |
CN110795738B (zh) | 一种计算机的启动方法和控制器、存储介质以及系统 | |
CN102880527B (zh) | 一种基板管理控制器的数据恢复方法 | |
US9152492B2 (en) | Performing recovery of a headless computer | |
CN101593083A (zh) | 对计算机配置信息进行保护和恢复的装置、计算机和方法 | |
US20090271660A1 (en) | Motherboard, a method for recovering the bios thereof and a method for booting a computer | |
WO2010081323A1 (zh) | 一种单板应用版本的实现方法及系统 | |
WO2013097095A1 (zh) | 一种备份存储装置的启动信息的方法 | |
US20210286685A1 (en) | Operating system repairs via recovery agents | |
US20140089653A1 (en) | Electronic apparatus, method of restoring guid partition table (gpt) and computer-readable recording medium | |
TW202131170A (zh) | 韌體損壞恢復技術 | |
WO2013167010A2 (zh) | 一种移动终端及其开机方法 | |
JP2005222366A (ja) | 自動復帰方法/プログラム/プログラム記録媒体、処理装置 | |
CN102402447A (zh) | 设备启动方法和设备 | |
CN105677414A (zh) | 一种在Hostboot中实现双启动的方法 | |
CN109062627A (zh) | 一种Linux服务器系统kdump服务的配置方法 | |
US20160004607A1 (en) | Information processing apparatus and information processing method | |
US9329920B2 (en) | Supervisor system resuming control | |
WO2014183497A1 (zh) | 一种设备、设备启动方法及计算机存储介质 | |
CN109783150A (zh) | 一种嵌入式系统启动防砖方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11878882 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11878882 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11878882 Country of ref document: EP Kind code of ref document: A1 |