Method and device for operating first software in multi-hard-disk mode

The hard disk status information is obtained through BIOS, the hard disk where the first software is located is determined and the partition table is adjusted, which solves the problem that the first software cannot be opened normally in multi-hard disk mode, and realizes the normal operation of the first software in a multi-hard disk environment.

CN119598446APending Publication Date: 2025-03-11联想开天科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411639114.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In multi-hard disk mode, the prior art cannot normally open the first software located in the second hard disk secure partition.

Method used

Obtain the status information of multiple hard disks through BIOS, determine the hard disk where the first software is located, adjust the hard disk partition table, ensure that the secure partition is open, and run the first software located in the secure partition.

Benefits of technology

It solves the problem that the first software cannot be opened normally in multi-hard disk mode, and ensures that the first software can run normally in a multi-hard disk environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598446A_ABST
    Figure CN119598446A_ABST
Patent Text Reader

Abstract

The invention provides a method for operating first software in a multi-hard-disk mode, the method is suitable for electronic equipment with multiple hard disks, and the method comprises the steps that when a first software calling instruction from a user is received in response, state information of the multiple hard disks is acquired through a BIOS; determining the hard disk where the first software is located based on the state information of the hard disks; adjusting a partition table of a hard disk where the first software is located, wherein the partition table at least comprises a security partition where the first software is located; opening the security partition; first software located in the security partition is operated; wherein the first software comprises an executable drive program, a file, system software or application software. The invention further provides a device for operating the first software in the multi-hard-disk mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for running first software in a multi-hard disk mode and a device for running first software in a multi-hard disk mode. Background Art

[0002] An electronic device may typically have multiple hard drives. A certain software located in a secure partition of the hard drive needs to be called and run under specific circumstances. For example, the software may be the OKR.efi software of a Lenovo computer. In existing solutions, when there is only one hard drive, a certain software located in a secure partition on the hard drive can be called and run normally. However, in the case of multiple hard drives, for example, assuming there are two hard drives, if a certain software is placed in the secure partition of the first hard drive, it can be called and run normally. However, if it is located in the secure partition of the second hard drive, the software cannot be called and run normally. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a method for running first software in a multi-hard disk mode and a device for running first software in a multi-hard disk mode.

[0004] A first aspect of the present application provides a method for running first software in a multi-hard disk mode, applicable to an electronic device with multiple hard disks, the method comprising:

[0005] In response to receiving a first software call instruction from a user, obtaining status information of the plurality of hard disks through the BIOS;

[0006] Determining the hard disk where the first software is located based on the status information of the multiple hard disks;

[0007] Adjusting a partition table of a hard disk where the first software is located, where the partition table at least includes a secure partition where the first software is located;

[0008] Open the secure partition;

[0009] Running the first software located in the secure partition;

[0010] The first software includes an executable driver, file, system software or application software.

[0011] In some embodiments, the method for obtaining the first software call instruction includes:

[0012] The trigger instruction is inputted in a human-computer interaction manner, including inputting the trigger instruction in a manner of obtaining one of the call instructions through at least a hardware device hot key, a graphical interactive interface, or an audio and video input device.

[0013] In some embodiments, obtaining status information of the plurality of hard disks through BIOS at least includes:

[0014] Whether each hard disk supports the secure partition opening command, the hard disk size, and the user-available size of the hard disk.

[0015] In some embodiments, obtaining status information of the plurality of hard disks through BIOS includes:

[0016] The slot position of each hard disk is read by the BIOS, so that the BIOS can quickly access the hard disk through the slot position to obtain the status information of the hard disk.

[0017] In some embodiments, determining the hard disk where the first software is located based on the status information of the multiple hard disks includes:

[0018] When the hard disk supports the secure partition opening instruction and the value obtained by subtracting the user available size of the hard disk from the hard disk size is equal to the size of the first software, the corresponding hard disk is determined to be the hard disk where the first software is located.

[0019] In some embodiments, the number of the first software is one, and the first software corresponds to an electronic device, and the first software varies with different electronic devices.

[0020] In some embodiments, adjusting a partition table of a hard disk where the first software is located, where the partition table includes at least a secure partition where the first software is located, includes:

[0021] The partition table of the hard disk where the first software is located is adjusted so that the secure partition where the first software is located is in the partition table.

[0022] In some embodiments, obtaining status information of the plurality of hard disks through the BIOS includes obtaining a switch status of the hard disks through the BIOS, wherein the switch status is on or off;

[0023] The step of opening the secure partition includes:

[0024] Based on the hard disk switch state, the actual situation of the hard disk security partition is judged to confirm whether the hard disk has opened the security partition. If the hard disk is in the closed state, the hard disk closed state is changed to the open state, thereby enabling the hard disk to open the security partition.

[0025] In some embodiments, running the first software located in the secure partition includes:

[0026] When receiving a first software execution instruction from a user, the first software located in the secure partition is executed.

[0027] A second aspect of the present application provides a device for running first software in a multi-hard disk mode, applicable to an electronic device with multiple hard disks, the device comprising at least:

[0028] a hard disk status acquisition module, configured to acquire status information of the plurality of hard disks through the BIOS in response to receiving a first software call instruction from a user;

[0029] a first software location determination module, configured to determine the hard disk where the first software is located based on the status information of the multiple hard disks;

[0030] A partition table adjustment module, configured to adjust a partition table of the hard disk where the first software is located, wherein the partition table includes at least a secure partition where the first software is located;

[0031] A security partition opening module, used to open the security partition;

[0032] A first software running module, configured to run the first software located in the secure partition;

[0033] The first software includes an executable driver, file, system software or application software.

[0034] The method for running the first software in the multi-hard disk mode provided by the present application obtains the status information of multiple hard disks of the electronic device through BIOS, determines the hard disk where the first software is located based on the status information of the multiple hard disks, adjusts the partition table of the hard disk where the first software is located, ensures that the security partition is opened and runs the first software located in the security partition. The present application solves the problem that the first software cannot be opened normally in the multi-hard disk mode of the existing electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of a method for running the first software in a multi-hard disk mode according to an embodiment of the present application;

[0036] Figure 2 This is a schematic diagram of the device structure for running the first software in the multi-hard disk mode of an embodiment of the present application.

[0037] Reference numerals:

[0038] 1000. Device for running the first software in multi-hard disk mode; 1001. Hard disk status acquisition module; 1002. First software location determination module; 1003. Partition table adjustment module; 1004. Secure partition opening module; 1005. First software running module; 1100. Bus; 1200. Processor; 1300. Memory; 1400. Other circuits. DETAILED DESCRIPTION

[0039] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0040] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but merely as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0042] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0043] It should also be understood that although the present application has been described with reference to certain specific examples, those skilled in the art will readily be able to implement many other equivalent forms of the present application.

[0044] Figure 1 A flow chart of a method for running the first software in a multi-hard disk mode according to an embodiment of the present application is shown. Figure 1 As shown, the method includes:

[0045] S101, in response to receiving a first software call instruction from a user, obtaining status information of multiple hard disks through BIOS;

[0046] S102, determining the hard disk where the first software is located based on status information of multiple hard disks;

[0047] S103: Adjust the partition table of the hard disk where the first software is located, where the partition table at least includes the security partition where the first software is located;

[0048] S104, open the security partition;

[0049] S105, running the first software located in the secure partition;

[0050] The first software includes an executable driver, file, system software or application software.

[0051] For ease of understanding, the following explanation is provided with examples. Taking a computer as an example, the electronic device typically has multiple hard drives. The first software varies depending on the manufacturer of the electronic device. For example, if the electronic device is a Lenovo computer, the first software is OKR.efi software. Taking a Lenovo computer with at least two hard drives as an example, the first software is OKR.efi software and is installed on one of the hard drives. It should be noted that the method for running the first software in multi-hard drive mode provided in this application is not limited to a specific electronic device manufacturer and is universal. In step S101, when a user attempts to run the first software, a call instruction is input. In response to receiving the first software call instruction from the user, the BIOS obtains status information of multiple hard drives. In step S102, the hard drive where the first software is located is determined based on the status information of the multiple hard drives. In step S103, the partition table of the hard drive where the first software is located is adjusted, and the partition table at least includes the secure partition where the first software is located. In step S104, the secure partition is enabled. In step S105, the first software located in the secure partition is run.

[0052] The method for running the first software in the multi-hard disk mode provided by the present application obtains the status information of multiple hard disks of the electronic device through BIOS, determines the hard disk where the first software is located based on the status information of the multiple hard disks, adjusts the partition table of the hard disk where the first software is located, ensures that the security partition is opened and runs the first software located in the security partition. The present application solves the problem that the first software cannot be opened normally in the multi-hard disk mode of the existing electronic device.

[0053] In some embodiments, a method for obtaining a first software call instruction includes:

[0054] The trigger instruction is inputted through human-computer interaction, including inputting the trigger instruction through at least one of a hardware device hot key, a graphical interactive interface, or an audio / video input device to obtain a call instruction.

[0055] Specifically, taking the launch of the OKR.efi software on a Lenovo computer as an example, after the computer is turned on, the user can press the F2 device hotkey as the first software call instruction. In addition, specific audio and video information can be obtained through the graphical interactive interface or audio and video input device during the computer startup process as the first software call instruction. For example, the user can input "call the first software" through an audio acquisition device to input the first software call instruction. This application can provide a variety of first software call instruction acquisition methods to facilitate user operation.

[0056] In some embodiments, obtaining status information of multiple hard disks through BIOS includes at least:

[0057] Whether each hard drive supports the secure partition opening command, the hard drive size, and the user-usable space of the hard drive. The usage of the corresponding hard drive can be obtained by reading the hard drive firmware status bit information (i.e., FW status bit) through BIOS to obtain the hard drive size and actual usage.

[0058] In some embodiments, obtaining status information of multiple hard disks through BIOS includes:

[0059] The BIOS reads the slot location of each hard disk, allowing the BIOS to quickly access the hard disk through the slot location to obtain the hard disk status information.

[0060] Continuing with the computer as an example, when the computer is configured with one hard disk, the hard disk is often set on the first slot. Of course, it can also be set in other slots other than the first slot. When the computer is configured with multiple hard disks, hard disks can be set in other slots except the first slot. After the BIOS reads the slot position of each hard disk, the BIOS can quickly access the hard disk based on the slot position to obtain the hard disk status information.

[0061] In some embodiments, determining the hard disk where the first software is located based on status information of multiple hard disks includes:

[0062] When the hard disk supports the secure partition opening instruction and the value obtained by subtracting the user available size of the hard disk from the hard disk size is equal to the size of the first software, the corresponding hard disk is determined to be the hard disk where the first software is located.

[0063] For ease of understanding, let's continue with the Lenovo computer example. The actual size of a computer's hard drive typically reserves some space, meaning the user-available size is typically smaller than the actual size of the hard drive. When the first software, OKR.efi, exists on a certain hard drive, the BIOS reads the hard drive status information, determines that the hard drive supports the secure partition open command, and that the value obtained by subtracting the user-available size from the hard drive size is equal to the size of the first software, OKR.efi, then determines that the corresponding hard drive is the hard drive where the first software, OKR.efi, resides.

[0064] This application solves the problem of normally calling and running the first software in multiple hard disk modes and when each hard disk supports the command to open the secure partition.

[0065] In some embodiments, the number of the first software is one, and the first software corresponds to the electronic device, and the first software varies with different electronic devices.

[0066] The first software is installed on one and only one of the multiple hard disks of the electronic device. Furthermore, taking a Lenovo computer as an example, the first software may be, for example, the OKR.efi software. When the electronic device is an electronic device other than a computer, or a computer manufactured by another manufacturer, the first software corresponds to the specific type or model of the electronic device.

[0067] In some embodiments, adjusting a partition table of a hard disk where the first software is located, where the partition table includes at least a secure partition where the first software is located, includes:

[0068] The partition table of the hard disk where the first software is located is adjusted so that the secure partition where the first software is located is in the partition table.

[0069] In some embodiments, obtaining status information of multiple hard disks through the BIOS includes obtaining a switch status of the hard disks through the BIOS, where the switch status is on or off;

[0070] Open the security section, including:

[0071] Based on the hard disk switch state, the actual situation of the hard disk security partition is judged to confirm whether the hard disk has opened the security partition. If the hard disk is in the off state, the hard disk off state is changed to the on state, thereby enabling the hard disk to open the security partition.

[0072] In some embodiments, running the first software located in the secure partition includes:

[0073] When receiving the first software execution instruction from the user, the first software located in the secure partition is executed.

[0074] Running the first software for security analysis can include two situations: one is automatically starting and running after the user's first software call instruction in step S101 above; another is running the first software after the user issues a first software run instruction after the first software call instruction in step S101 above is determined and the corresponding security partition is opened. The first software can also be run after the user issues a first software run instruction. The first software run instruction can be a device shortcut key or a related instruction input through a graphical interactive interface.

[0075] Figure 2 FIG. 1 shows a schematic diagram of a device structure for running the first software in a multi-hard disk mode according to an embodiment of the present application. Figure 2 As shown, the device is applicable to an electronic device with multiple hard disks, and the device at least includes:

[0076] The hard disk status acquisition module 1001 is configured to acquire status information of multiple hard disks through the BIOS in response to receiving a first software call instruction from a user;

[0077] A first software location determination module 1002 is configured to determine a hard disk where the first software is located based on status information of multiple hard disks;

[0078] A partition table adjustment module 1003 is configured to adjust a partition table of the hard disk where the first software is located, where the partition table at least includes a secure partition where the first software is located;

[0079] A secure partition opening module 1004 is used to open a secure partition;

[0080] A first software running module 1005 is used to run the first software located in the secure partition;

[0081] The first software includes an executable driver, file, system software or application software.

[0082] It should be noted that the implementation details of each module of the device for running the first software in the multi-hard disk mode provided by this application correspond to the method items for running the first software in the multi-hard disk mode provided by this application, and will not be repeated here.

[0083] Figure 2 An example diagram of an apparatus for running the first software in a multi-hard disk mode using a hardware implementation of a processing system is shown. The apparatus may include corresponding modules for executing each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be executed by a corresponding module, and the apparatus may include one or more of these modules. The modules may be one or more hardware modules specifically configured to execute the corresponding steps, or implemented by a processor configured to execute the corresponding steps, or stored in a computer-readable medium for execution by the processor, or implemented by some combination thereof.

[0084] The hardware structure can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. Bus 1100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules. Bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0085] Bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component Architecture (EISA) bus. Buses can be classified as address buses, data buses, control buses, and the like. For ease of illustration, this figure shows only one connecting line, but this does not imply that there is only one bus or only one type of bus.

[0086] The processor 1200 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0087] Any process or method description in the flowchart or otherwise described herein can be understood to represent a module, fragment or portion of code including one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which the functions may be performed in a substantially simultaneous manner or in a reverse order according to the functions involved, as will be understood by those skilled in the art to which the embodiments of the present application pertain. The processor performs the various methods and processes described above. For example, the method embodiments in the present application can be implemented as a software program that is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).

[0088] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device).

[0089] For the purposes of this specification, a "readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples (a non-exhaustive list) of readable storage media include the following: an electrical connection having one or more wires (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium can even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in other suitable ways as necessary, and then storing it in a memory.

[0090] It should be understood that various parts of the present application can be implemented using hardware, software, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement the hardware: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0091] Those skilled in the art will understand that all or part of the steps of the above-mentioned implementation method can be accomplished by instructing related hardware through a program, and the program can be stored in a readable storage medium. When the program is executed, it includes one or a combination of the steps of the method implementation method.

[0092] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing module, each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.

[0093] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in a suitable manner in any one or more embodiments / methods or examples. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, unless they are mutually inconsistent.

[0094] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of such features. Throughout the description of this application, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0095] Those skilled in the art will appreciate that the above embodiments are merely intended to clearly illustrate the present application and are not intended to limit the scope of the present application. Other changes or modifications may be made based on the above disclosure, and such changes or modifications are still within the scope of the present application.

Claims

1. A method for running a first software in a multi-hard disk mode, applicable to an electronic device with multiple hard disks, characterized in that: The method comprises: In response to receiving a first software call instruction from a user, obtaining status information of the plurality of hard disks through BIOS; Determine the hard disk where the first software is located based on the status information of the multiple hard disks; Adjusting a partition table of a hard disk where the first software is located, wherein the partition table at least includes a security partition where the first software is located; Open the secure partition; Running the first software located in the secure partition; The first software includes executable drivers, files, system software or application software.

2. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: The method for obtaining the first software call instruction includes: The trigger instruction is inputted in a human-computer interaction manner, including inputting the trigger instruction in a manner of obtaining one of the call instructions through at least a hardware device hot key, a graphical interaction interface, or an audio and video input device.

3. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: Obtaining the status information of the plurality of hard disks through BIOS at least includes: Whether each hard disk supports the secure partition opening command, the hard disk size, and the user-available size of the hard disk.

4. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: The status information of the plurality of hard disks is obtained through BIOS, including: The slot position of each hard disk is read by BIOS, so that BIOS can quickly access the hard disk through the slot position to obtain the status information of the hard disk.

5. The method for running the first software in the multi-hard disk mode according to claim 4, characterized in that: Determining the hard disk where the first software is located based on the status information of the multiple hard disks includes: When the hard disk supports the secure partition opening instruction and the value obtained by subtracting the user available size of the hard disk from the hard disk size is equal to the size of the first software, the corresponding hard disk is determined to be the hard disk where the first software is located.

6. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: The number of the first software is one, and the first software corresponds to an electronic device, and the first software varies with different electronic devices.

7. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: Adjusting a partition table of a hard disk where the first software is located, where the partition table at least includes a security partition where the first software is located, includes: The partition table of the hard disk where the first software is located is adjusted so that the security partition where the first software is located is in the partition table.

8. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: Acquiring status information of the plurality of hard disks through BIOS, including acquiring a switch status of the hard disk through BIOS, wherein the switch status is on or off; The step of opening the security partition comprises: Based on the hard disk switch state, the actual situation of the hard disk security partition is judged to confirm whether the hard disk has opened the security partition. If the hard disk is in the closed state, the hard disk closed state is changed to the open state, thereby enabling the hard disk to open the security partition.

9. The method for running the first software in the multi-hard disk mode according to claim 1, characterized in that: Running the first software located in the secure partition includes: When receiving a first software running instruction from a user, the first software located in the secure partition is run.

10. A device for running first software in a multi-hard disk mode, suitable for an electronic device with multiple hard disks, characterized in that: The device at least comprises: A hard disk status acquisition module, configured to acquire status information of the plurality of hard disks through BIOS in response to receiving a first software call instruction from a user; A first software location determination module, configured to determine the hard disk where the first software is located based on the status information of the multiple hard disks; A partition table adjustment module, used to adjust the partition table of the hard disk where the first software is located, wherein the partition table at least includes the security partition where the first software is located; A security partition opening module, used to open the security partition; A first software running module, used for running the first software located in the secure partition; The first software includes executable drivers, files, system software or application software.