Control method and device
By obtaining and modifying hardware configuration information to change the disk startup sequence, the operating system installation problem in a multi-hard disk environment is solved, and the user-defined installation location is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202411196138.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
AI Technical Summary
When multiple hard disks are installed in electronic devices, how to install the operating system on the hard disk expected by users is difficult to implement without affecting the normal operation of the device.
By obtaining the target reporting sequence, modifying the hardware configuration information to change the startup sequence of the disk, the first operating system can install the operating system according to the user's preset order.
It realizes that without modifying the boot system compilation process, users can install the operating system on the desired disk, improving user experience and convenience of use.
Smart Images

Figure CN119088405A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, the field of computer technology, and in particular to a control method and device. Background Art
[0002] With the diversification of storage devices, multiple storage devices may be installed on electronic devices such as personal computers (PCs) and server devices (Servers). For example, when the electronic device is a server, a hard disk driver (HDD), a solid state driver (SSD) using the non-volatile memory interface specification (NVMe), an SSD using the SATA (Serial ATA) hard disk interface, an SSD using the M.2 hard disk interface, and 7MM and 9MM hard disks classified by hard disk thickness, etc. may be installed on the electronic device at the same time.
[0003] When an electronic device is equipped with multiple hard disks, how to install an operating system on a hard disk desired by a user becomes a problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the present application at least provides a control method and device.
[0005] The technical solution of this application is implemented as follows:
[0006] On the one hand, the present application provides a data processing method, comprising:
[0007] In response to a target trigger operation, a target reporting sequence is obtained; wherein the target trigger operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; and the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system;
[0008] Modify the default reporting order of at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of at least one disk;
[0009] The modified hardware configuration information set is sent to the first operating system, so that the first operating system determines a target disk for installing the second operating system from at least one disk based on the target reporting order.
[0010] In some embodiments, in response to the target triggering operation, before obtaining the target reporting order, the method further includes:
[0011] Obtaining configuration information of a reporting order of at least one disk from a user;
[0012] Based on the configuration information, determine the target reporting order.
[0013] In some embodiments, obtaining configuration information of a user's reporting order for at least one disk includes at least one of the following:
[0014] Determining configuration information of a reporting sequence of at least one disk by a user through a setting option in a boot system of the electronic device;
[0015] Configuration information of a user's reporting sequence for at least one disk is determined through a setting option in a baseboard management controller of the electronic device.
[0016] In some embodiments, the at least one disk includes at least one of the following: at least one first disk and at least one second disk; the reporting sequence corresponding to each first disk is sent to the first operating system through a first hardware configuration information set generated by a boot system of the electronic device; the reporting sequence corresponding to each second disk is sent to the first operating system through a second hardware configuration information set generated by a disk manager corresponding to the second disk;
[0017] Modifying the default reporting order of at least one disk in the hardware configuration information set of the electronic device to the target reporting order includes at least one of the following:
[0018] In a case where the at least one disk includes at least one first disk, by booting the system, modifying the reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order;
[0019] In the case that the at least one disk includes at least one second disk, the reporting order corresponding to the at least one second disk in the second hardware configuration information set is modified from the default reporting order to the target reporting order through the disk manager.
[0020] In some embodiments, modifying the reporting order corresponding to at least one first disk in the first hardware configuration information set from a default reporting order to a target reporting order includes:
[0021] Determine hardware configuration information corresponding to at least one first disk in the first hardware configuration information set;
[0022] Based on the target reporting order corresponding to each first disk, the arrangement order of the hardware configuration information corresponding to at least one first disk in the first hardware configuration information set is modified to modify the reporting order corresponding to at least one first disk from the default reporting order to the target reporting order.
[0023] In some embodiments, determining hardware configuration information corresponding to at least one first disk in the first hardware configuration information set includes:
[0024] Loading a first hardware configuration information set into a memory of the electronic device;
[0025] Based on the target reporting order and the default reporting order, determining at least one first target disk whose reporting order needs to be adjusted from at least one first disk;
[0026] Based on the disk identification information corresponding to each first target disk, the memory address corresponding to each first target disk is determined, and the hardware configuration information stored in the memory address is used as the hardware configuration information of the corresponding first target disk.
[0027] In some embodiments, modifying the reporting order corresponding to at least one second disk in the second hardware configuration information set from a default reporting order to a target reporting order includes:
[0028] Using the boot system to send the target reporting sequence to the disk manager;
[0029] Based on the target reporting order, using the disk manager, modifying the bus connection information of at least one second disk in the second hardware configuration information set, so as to modify the reporting order corresponding to the at least one second disk from the default reporting order to the target reporting order;
[0030] The bus connection information has a corresponding relationship with the reporting sequence of the corresponding second disk.
[0031] In some embodiments, the at least one disk includes at least one of: a plurality of first disks of at least two types, and at least one first disk and at least one second disk;
[0032] The control method also includes:
[0033] Additional information is sent to the first operating system; wherein the additional information is used to indicate the disk type and disk identification information of the first disk in the target reporting sequence.
[0034] In some embodiments, the first operating system represents an operating system running on a remote server;
[0035] Sending a target reporting sequence to the first operating system includes:
[0036] Send the target report sequence to the remote server.
[0037] In another aspect, the present application provides a control device, comprising:
[0038] A first acquisition module is used to obtain a target reporting sequence in response to a target trigger operation; wherein the target trigger operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; and the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system;
[0039] A modification module, used to modify the default reporting order of at least one disk in the hardware configuration information set of the electronic device to a target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of at least one disk;
[0040] The sending module is used to send the modified hardware configuration information set to the first operating system, so that the first operating system determines a target disk for installing the second operating system from at least one disk based on the target reporting order.
[0041] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0043] Figure 1 A schematic diagram of an implementation flow of a control method provided in this application;
[0044] Figure 2 A schematic diagram of an implementation flow of a control method provided in this application;
[0045] Figure 3 A schematic diagram of the structure of a control device provided in this application;
[0046] Figure 4 A hardware entity schematic diagram of an electronic device provided in this application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0048] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0049] The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.
[0051] In the case where multiple hard disks are installed on an electronic device, if a third-party operating system is used to install the operating system for the electronic device, for example, the Preboot eXecution Environment (PXE) is used to install the operating system for the electronic device, the electronic device needs to report the boot sequence of the local hard disks to the third-party operating system, so that the third-party operating system determines which hard disk of the electronic device to install the operating system on based on the boot sequence. Usually, the third-party operating system will use the first hard disk started in the boot sequence as the hard disk for installing the operating system.
[0052] Here, the boot sequence reported by the electronic device to the third-party operating system is the initialization sequence of multiple hard disks during the power-on process of the electronic device. For example, when the bus standard adopted by the electronic device is a high-speed serial computer bus standard (peripheral component interconnect, PCI) or a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIe), during the power-on process of the electronic device, the hard disks on the PCI or PCIe bus are scanned to obtain the boot sequence of multiple hard disks installed on the electronic device. For example, 8 hard disks can be connected to one port (port) of PCI, for example, 8 hard disks can be connected to port 0, 8 hard disks can be connected to port 1, and so on; in this way, the first hard disk to be started determined by the scanning action is the first hard disk connected to port 0.
[0053] However, the hard disk where the user wants to install the operating system may not be the first hard disk in the boot sequence determined during the power-on process, for example, the first hard disk connected to port 0 may be the first hard disk connected to port 1. At the same time, the scanning order of multiple hard disks during the power-on process of the electronic device is determined during the compilation of the boot system of the electronic device. If the scanning order is changed, the electronic device may have operating errors or even crash.
[0054] In the related art, when the bus standard adopted by the electronic device is, for example, PCIe, the order of the root nodes in the PCIe bus can be modified, but the order of a specific hard disk cannot be modified, for example, the scanning order of the hard disk connected to the specified PCIe bidirectional pass unit (lane) 0-3 can be modified.
[0055] Based on this, the present application provides a control method, which can be executed by a processor of an electronic device. The electronic device may refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with control capabilities.
[0056] Figure 1 The following is a schematic diagram of the implementation flow of a data processing method provided in this application. Figure 1 As shown, the method includes the following steps S101 to S103:
[0057] Step S101, in response to a target trigger operation, obtaining a target reporting sequence; wherein the target trigger operation represents an operation that triggers the use of a first operating system to install a second operating system on an electronic device; the target reporting sequence is represented by a disk startup sequence that is pre-set for at least one disk installed on the electronic device and reported to the first operating system.
[0058] Here, the target trigger operation refers to an operating system installation operation for the electronic device triggered by a target user of the electronic device.
[0059] The first operating system refers to a control system used to install an operating system for an electronic device.
[0060] In some embodiments, when the target trigger operation refers to the target user selecting to remotely install an operating system, for example, selecting to use a preboot execution environment (PXE) to install an operating system for an electronic device, the first operating system may refer to an operating system running on a remote server for installing an operating system for the electronic device. Here, the operating system running on the remote server may be a Windows operating system, a Linux system, or the like.
[0061] The second operating system refers to an operating system installed for an electronic device.
[0062] In some embodiments, the second operating system may be a Windows operating system, a Linux operating system, or the like.
[0063] The target reporting sequence is a pre-set sequence for at least one disk installed on the electronic device.
[0064] By sending the target reporting sequence to the first operating system, the first operating system can obtain the arrangement sequence of at least one disk on the electronic device and recognize the arrangement sequence as the startup sequence of the at least one disk.
[0065] Here, since the target reporting sequence is a sequence preset according to user requirements, the target reporting sequence is the same as or different from the initialization sequence of at least one disk.
[0066] In some embodiments, the target reporting order can be stored in a baseboard management controller (BMC) of an electronic device, or it can be stored in a memory in the electronic device used to store firmware of a boot system (BIOS or UEFI), for example, a serial peripheral interface read-only memory (SPI ROM).
[0067] Step S102, modifying the default reporting order of at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a collection of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of the at least one disk.
[0068] Here, the hardware configuration information set refers to a collection of hardware configuration information related to the electronic device, and the hardware configuration information set includes configuration management information related to the system hardware of the electronic device.
[0069] In the process of installing the second operating system for the electronic device using the first operating system, the electronic device sends a hardware configuration information set to the first operating system so that the first operating system determines the hardware configuration of the electronic device and allocates corresponding configuration resources to the electronic device based on the hardware configuration of the electronic device.
[0070] In some embodiments, the default reporting order of at least one disk refers to the initialization order of at least one disk, that is, the disk order obtained after scanning at least one disk during the power-on process of the electronic device. For example, the default reporting order is obtained by scanning disk devices that implement the PCI or PCIe bus standard.
[0071] Here, the default reporting order is related to the installation position of each disk on the electronic device and the loading order of the corresponding drive device, and the first disk in the default reporting order (for example, an M.2 hard disk that implements the NVMe interface standard, hereinafter referred to as M.2SATA) may not be the disk where the user expects to install the operating system. Therefore, the default reporting order is modified to the target reporting order so that the first operating system can install the operating system according to the preset target reporting order.
[0072] Step S103: Send the modified hardware configuration information set to the first operating system, so that the first operating system determines a target disk for installing the second operating system from the at least one disk based on the target reporting order.
[0073] Here, after the default reporting order of at least one disk is modified to the target reporting order, the hardware configuration information set containing the target reporting order is sent to the first operating system, so that the first operating system determines the target disk for installing the second operating system from at least one disk of the electronic device based on the target reporting order.
[0074] In some embodiments, the first operating system determines the disk that is first in the target reporting order as the target disk.
[0075] In the above embodiment, when it is determined based on the target trigger operation to use the first operating system to install the second operating system for the electronic device, the target reporting order for at least one disk is obtained, and the default reporting order of at least one disk in the hardware configuration information set is modified to the target reporting order; the hardware configuration information set containing the target reporting order is sent to the first operating system, so that the first operating system determines the target disk for installing the second operating system from at least one disk based on the target reporting order. In this way, when at least one disk is installed on the electronic device, and the boot system compilation process is not modified, the user can set at least one disk to the desired target reporting order, so that the second operating system is installed on the disk desired by the user using the first operating system, thereby improving the user's experience.
[0076] In some embodiments, Figure 2 As shown, the control method provided by the present application can be implemented as the following steps S201 to S205:
[0077] Step S201: Obtain configuration information of a user's reporting sequence for at least one disk.
[0078] Here, the user configures the reporting order of at least one disk according to the identification information of each disk.
[0079] In some embodiments, a reporting order configuration interface is provided for at least one disk installed on the electronic device to display identification information of at least one disk to the user, thereby allowing the user to reconfigure the reporting order of the disks by adjusting the order of the disk identification information.
[0080] In some embodiments, the above step S201 can be implemented as at least one of the following steps S2011 to S2012:
[0081] Step S2011: Determine the configuration information of the reporting order of the at least one disk by the user through the setting options in the boot system of the electronic device.
[0082] Here, a setting option is provided in the boot system of the electronic device, so that the user can configure the reporting order of at least one disk through the setting option.
[0083] The setting options provided in the boot system can display various types of disks installed on the electronic device, such as NVMe disks, SATA disks, disks connected to a Redundant Arrays of Independent Disks Controller (RAID card), disks connected to a Host Bus Adapter (HBA) card, etc. When the user expects to install a second operating system on the M.2SATA, the user can adjust the reporting order of the M.2SATA to the first reporting order through the setting option.
[0084] In some embodiments, corresponding setting options may be set for each type of disk, for example, options for NVMe disks, options for NVMe disks, and so on.
[0085] In some embodiments, by default, the above setting options are in a disabled state. When the user configures a reporting order for a certain type of disk, the user only needs to enable the corresponding setting options.
[0086] Step S2012: determining configuration information of a reporting sequence of the at least one disk by a user through a setting option in a baseboard management controller of the electronic device.
[0087] Here, a setting option is provided in a baseboard management controller (BMC) of the electronic device, so that a user can configure a reporting sequence of at least one disk installed in the electronic device through the setting option.
[0088] After the user sets the reporting order of at least one disk through the BMC, the set reporting order is stored in the BMC of the electronic device. During the power-on process of the electronic device, the boot system of the electronic device obtains the reporting order set by the user from the BMC.
[0089] In some embodiments, corresponding setting options can be set for each type of disk, for example, options for NVMe disks, options for SATA disks, and so on.
[0090] In some embodiments, by default, the above setting options are in a disabled state. When the user configures a reporting order for a certain type of disk, the user only needs to enable the corresponding setting options.
[0091] In some embodiments, the configuration information of the reporting order of at least one disk can be obtained by remote management. For example, the setting options in the BMC chip of the electronic device are remotely operated by a remote server; during the power-on process of the electronic device, the configuration information corresponding to the setting options in the BMC chip is mapped to the settings of the boot system, thereby realizing the settings of the boot system.
[0092] In some embodiments, the setting options in the BMC of the electronic device are set through out-of-band data (OOB). For example, ONECli in Lenovo XClarity Essentials is used to implement remote management of the boot system of the electronic device.
[0093] Step S202: determining a target reporting order based on the configuration information.
[0094] Here, the target reporting order is determined according to the configuration information obtained. For example, in the default reporting order, M.2SATA is ranked eighth. When the user sets M.2SATA as the first disk to be reported, M.2SATA is adjusted from the eighth to the first in the default reporting order, and the reporting order of the disks ranked in the first seven in the default reporting order is pushed back one by one, thereby obtaining the target reporting order.
[0095] Step S203, in response to a target trigger operation, obtaining a target reporting sequence; wherein the target trigger operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system;
[0096] Step S204, modifying the default reporting order of the at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of the at least one disk;
[0097] Step S205: Send the modified hardware configuration information set to the first operating system, so that the first operating system determines a target disk for installing the second operating system from the at least one disk based on the target reporting order.
[0098] The above steps S203, S204 and S205 correspond to the above steps S101, S102 and S103 respectively. Therefore, the specific implementation of steps S203, S204 and S205 can refer to the above specific description of steps S101, S102 and S103.
[0099] In some embodiments, after setting the target reporting order of at least one disk installed on the electronic device through the boot system or BMC, when it is determined that the user chooses to use the first operating system to install the second operating system for the electronic device, the setting will be checked and the target reporting order will be sent to the first operating system, so that the first operating system determines the target disk for installing the second operating system according to the target reporting order.
[0100] In the above embodiment, by providing setting options in the boot system or BMC of the electronic device, the user can locally or remotely configure the reporting order of at least one disk installed on the electronic device to install the operating system in the target disk of the electronic device, thereby improving the diversity and flexibility of the configuration method of the disk reporting order.
[0101] In some embodiments, the at least one disk includes at least one of the following: at least one first disk and at least one second disk; the reporting order corresponding to each first disk is sent to the first operating system through a first hardware configuration information set generated by the boot system of the electronic device; the reporting order corresponding to each second disk is sent to the first operating system through a second hardware configuration information set generated by a disk manager corresponding to the second disk.
[0102] In some embodiments, at least one first disk refers to a disk mounted on a motherboard of an electronic device, that is, an onboard disk. In some embodiments, at least one first disk may include a disk using an NVMe interface specification, a disk using a SATA interface specification, and the like.
[0103] In some embodiments, the first hardware configuration information set generated by the boot system may include Advanced Configuration and Power Management Interface (ACPI) information generated by the boot system. In some embodiments, the reporting order corresponding to each first disk is sent to the first operating system via a Differentiated System Description Table (DSDT table) in the ACPI information.
[0104] In some embodiments, the at least one second disk refers to a disk installed on a mainboard of the electronic device through a disk manager.
[0105] In some embodiments, the disk manager may include a RAID card, an HBA card, and the like.
[0106] In some embodiments, during the process of installing a second operating system for an electronic device using a first operating system, the disk manager can generate a reporting sequence for at least one disk connected to the disk manager, and send the reporting sequence directly to the first operating system or to the first operating system through the boot system of the electronic device.
[0107] In this way, the default reporting order of the at least one disk in the hardware configuration information set of the electronic device is modified to the target reporting order, that is, the above step S102, can be implemented as at least one of the following steps S1021 to S1022:
[0108] Step S1021, when the at least one disk includes at least one first disk, modify the reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order through the boot system.
[0109] Here, in the case that the at least one disk includes at least one first disk, the first hardware configuration information set is modified by the boot system to modify the reporting order corresponding to the at least one first disk from the default reporting order to the target reporting order.
[0110] In the case where the first hardware configuration information set is an ACPI table, the ACPI table is generated by the boot system of the electronic device and is included in a fast file system (FFS) in binary form, that is, in the image file of the boot system. During the startup process of the electronic device, the boot system loads the code of the ACPI table into the memory of the electronic device to prepare for sending to the first operating system.
[0111] Therefore, in some embodiments, modifying the first hardware configuration information set by booting the system means modifying the DSDT table of the ACPI table loaded into the memory of the electronic device by booting the system to modify the default reporting order of at least one first disk defined in the DSDT table to a target reporting order.
[0112] In some embodiments, the above step S1021 of modifying the reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order can be implemented as the following steps S10211 to S10212:
[0113] Step S10211: Determine hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set.
[0114] Here, the hardware configuration information corresponding to at least one first disk is determined in the first hardware configuration information set, that is, the hardware configuration information of at least one first disk whose reporting order needs to be adjusted is determined in the first hardware configuration information set.
[0115] In some embodiments, the hardware configuration information of the first disk may include hardware-related parameters such as the disk installation position of the first disk (for example, slot ID, bay ID), product number information (Product ID, PID), vendor number information (Vendor ID, VID), model and / or interface type.
[0116] In some embodiments, determining hardware configuration information corresponding to at least one first disk in the first hardware configuration information set may be implemented as the following steps S10213 to S10215:
[0117] Step S10213: load the first hardware configuration information set into the memory of the electronic device.
[0118] Here, the first hardware configuration information set is determined during the boot system compilation process of the electronic device, and the compilation process cannot be modified using a software program. At the same time, before sending the first hardware configuration information set to the first operating system, the compiled boot system file needs to be loaded into the memory of the electronic device to generate an image object. Therefore, after the first hardware configuration information is loaded into the memory, the reporting order of at least one first disk can be modified in the memory.
[0119] Step S10214: Based on the target reporting order and the default reporting order, determine at least one first target disk whose reporting order needs to be adjusted from the at least one first disk.
[0120] Here, the target reporting order and the default reporting order are compared, so as to determine at least one first target disk whose reporting order needs to be adjusted from at least one first disk. For example, in the default reporting order, M.2SATA is the eighth ranked disk, and in the target reporting order, M.2SATA is the first ranked disk, and it is determined that the reporting order of the disks ranked first to seventh in the default reporting order is pushed back by one position in the target reporting order, then the disks ranked first to eighth in the default reporting order can be determined as the first target disk.
[0121] Step S10215: determining a memory address corresponding to each first target disk based on the disk identification information corresponding to each first target disk, and using the hardware configuration information stored in the memory address as the hardware configuration information of the corresponding first target disk.
[0122] Here, the disk identification information corresponding to the first target disk may be the PID, VID corresponding to the first target disk), disk serial number information, slot ID, bay ID and / or consistency identification information corresponding to the first target disk, and the like.
[0123] In the case where the first hardware configuration information set is an ACPI table, the hardware configuration information of at least one first disk of the electronic device is stored in a DSDT table in the ACPI table. Thus, first, according to the keyword, the memory address corresponding to the DSDT table is determined in the memory; then, according to the definition method of the DSDT table and the disk identification information of each first target disk, the memory address corresponding to each first target disk is determined; thereafter, the hardware configuration information stored in the memory address corresponding to each first target disk is determined as the hardware configuration information of the corresponding first target disk.
[0124] Step S10212, based on the target reporting order corresponding to each of the first disks, modify the arrangement order of the hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set to modify the reporting order corresponding to the at least one first disk from the default reporting order to the target reporting order.
[0125] Here, after determining the hardware configuration information corresponding to each first disk, that is, determining the memory address corresponding to each first target disk whose reporting order needs to be adjusted and the hardware configuration information in the memory address, according to the target reporting order corresponding to each first disk, the reporting order of at least one first target disk in the first hardware configuration information set is modified from the default reporting order to the target reporting order.
[0126] In some embodiments, the memory address corresponding to the hardware configuration information of at least one first target disk is adjusted to adjust the arrangement order of the at least one first target disk in the first hardware configuration information set.
[0127] For example, when at least one first target disk includes Disk 1, Disk 2, and Disk 3, and the default reporting order is Disk 1, Disk 2, and Disk 3, and the target reporting order is Disk 3, Disk 1, and Disk 2, before the arrangement order is modified, the hardware configuration information of Disk 1, Disk 2, and Disk 3 is stored in memory address 1, memory address 2, and memory address 3, respectively (wherein the arrangement order of memory address 1, memory address 2, and memory address 3 represents the order in which the first operating system reads the memory of the electronic device), then after the reporting order is modified, the memory addresses corresponding to the hardware configuration information of Disk 1, Disk 2, and Disk 3 will be adjusted to memory address 2, memory address 3, and memory address 1, respectively.
[0128] In some embodiments, when the first hardware configuration information set is an ACPI table, the reporting order of the at least one first target disk is adjusted by modifying the order of the hardware configuration information of the at least one first target disk in the DSDT table of the ACPI table.
[0129] In some embodiments, when the first hardware configuration information set is an ACPI table, since the default reporting order of at least one first disk in the DSDT table of the ACPI table is determined when the boot system is compiled, support for dynamically adjusting the information in the DSDT table is set in the boot system. For example, a corresponding program can be written in the form of program code to enable the boot system to support dynamic modification of the DSDT table.
[0130] In this way, the reporting order can be modified by adjusting the memory address of the hardware configuration information of at least one first target disk.
[0131] Step S1022, when the at least one disk includes at least one second disk, the disk manager modifies the reporting order corresponding to the at least one second disk in the second hardware configuration information set from the default reporting order to the target reporting order.
[0132] Here, in the case that the at least one disk includes at least one second disk, since the disk manager can directly send the reporting order of the at least one second disk to the first operating system, the second hardware configuration information set can be modified through the disk manager.
[0133] In some embodiments, a setting option for the reporting order of at least one second disk managed by the disk manager may be separately set in the boot system or BMC of the electronic device, so that the user can separately configure the reporting order of each second disk managed by the disk manager.
[0134] In some embodiments, a reporting order setting option can be uniformly set for at least one first disk and at least one second disk in the boot system or BMC of the electronic device, so that the user can complete the configuration operation of the reporting order of at least one first disk and at least one second disk in the setting option, and the boot system sends the configuration result for at least one second disk to the disk manager.
[0135] In some embodiments, the above step S1022 of modifying the reporting order corresponding to the at least one second disk in the second hardware configuration information set from the default reporting order to the target reporting order can be implemented as the following steps S10221 to S10222:
[0136] Step S10221, using the boot system to send the target reporting sequence to the disk manager.
[0137] In some embodiments, an interface function is provided between the boot system and the disk manager, so that the boot system can send the target reporting sequence for the at least one second disk to the firmware of the disk manager through the interface function.
[0138] Step S10222, based on the target reporting order, using the disk manager, modify the bus connection information of at least one second disk in the second hardware configuration information set to change the reporting order corresponding to the at least one second disk from the default reporting order to the target reporting order; wherein the bus connection information has a corresponding relationship with the reporting order of the corresponding second disk.
[0139] Here, after the disk manager receives the target reporting order from the boot system, the disk manager determines at least one second target disk whose reporting order needs to be adjusted based on the disk identification information of each second disk, and modifies the bus connection information of at least one second target disk according to the target reporting order.
[0140] For example, according to the target reporting order, the user hopes to adjust the M.2SATA connected to the RAID card to be the first reported disk. The boot system can send the order of M.2SATA in the target reporting order to the firmware of the RAID card, and the firmware of the RAID card can modify the bus connection information of M.2SATA, for example, modify the information channel ID and logical unit number (LUN) of M.2SATA to 0.
[0141] Here, the bus connection information has a corresponding relationship with the reporting order of the second disk, so the reporting order of the second disk can be modified by modifying the bus connection information.
[0142] In the above embodiment, for at least one first disk connected to the mainboard of the electronic device and at least one second disk connected to the disk manager, different reporting order modification methods are determined based on different hardware configuration information reporting methods, thereby achieving the purpose of modifying the reporting order of different types of disks on the electronic device.
[0143] In some embodiments, the at least one disk includes at least one of: a plurality of first disks of at least two types, and at least one first disk and at least one second disk;
[0144] Thus, the control method provided by the present application further includes the following steps S1023:
[0145] Step S1023: Send additional information to the first operating system; wherein the additional information is used to indicate the disk type and disk identification information of the first disk in the target reporting sequence.
[0146] In some embodiments, the at least two types of first disks may include a plurality of first disks using at least two interface specifications and / or a plurality of first disks using at least two communication protocols.
[0147] In some embodiments, the plurality of first disks of at least two types may include at least one NVMe disk that implements the NVMe interface specification and at least one SATA disk that implements the SATA interface specification, for example, an M.2 using an NVMe interface and an M.2 SATA using an interface.
[0148] Here, when the electronic device adopts the PCI or PCIe bus standard, since different types of first disks are connected through PCI or PCIe lanes, and only the root bridge and disk identifier corresponding to the disk are defined when defining the disk connected to the PCI or PCIe bus, the disk type cannot be distinguished from the table in the ACPI paradigm, for example, it cannot be distinguished whether the current disk is NVMe or SATA.
[0149] In addition, after the first operating system receives the target reporting sequence for at least one disk from the electronic device, it needs to load the corresponding driver to run the at least one disk. Considering that different types of disks correspond to different drivers, and the loading sequence of each driver will result in a different first boot disk identified by the first operating system.
[0150] For example, in the case where at least one disk includes a SATA disk, the loading order of the driver corresponding to the SATA disk may be affected by various factors. For example, in the case where the disk ranked first in the target reporting order is a SATA disk, if the driver corresponding to the SATA disk encounters a startup problem when loading, the driver will be skipped and the next driver will be loaded, thus causing the first disk recognized by the first operating system to not be the SATA disk ranked first in the target reporting order.
[0151] At least one first disk and at least one second disk refer to that the electronic device is provided with at least one first disk mounted on the mainboard and at least one second disk connected to the disk manager (for example, a RAID card or an HBA card). For example, the electronic device is provided with an M.2 NVMe mounted on the backplane and an M.2 SATA connected to the RAID card.
[0152] As described above, the hardware configuration information and reporting order of at least one first disk are sent to the first operating system through the first hardware configuration information set (e.g., ACPI table), and the hardware configuration information and reporting order of at least one second disk are directly sent to the first operating system by the disk manager through the second hardware configuration information set. At this time, the first operating system will not be able to determine whether to determine the first disk in the first hardware configuration information set as the target disk or the first disk in the second hardware configuration information set as the target disk.
[0153] Therefore, additional information is sent to the first operating system here so that the first operating system can determine the disk type and disk identification information of the first disk in the target reporting order based on the additional information, whether the first disk the user expects to set is an onboard disk or a disk connected to the disk manager, and determine the driver to be loaded based on the disk type of the first disk.
[0154] In some embodiments, after obtaining the user's target reporting order for at least one disk through the setting options in the boot system or BMC, corresponding SMBIOS information is generated based on the target reporting order and the System Management BIOS (SMBIOS) standard, so that the first operating system determines the disk type and disk identification information of the first disk in the target reporting order based on the SMBIOS information.
[0155] In some embodiments, the 40th type of data structure (Type 40) in the SMBIOS standard may be used to send additional information to the first operating system. Here, SMBIOS Type 40 corresponds to Table 118. After the first operating system reads Table 118, it will continue to read Table 119 below Table 118. In this way, specific additional information may be defined by Table 119. The specific structures of Table 118 and Table 119 are as follows:
[0156]
[0157] Table 118 - Additional Information (Type 40) Structure
[0158]
[0159]
[0160] Table 119 - Additional information input format
[0161] In some embodiments, a method for passing additional information to a first operating system through Tables 118 and 119 is as follows: first, table 119 is pointed to through offset 05h of table 118; then, the disk type of the first disk expected by the user is defined using offset 03h of table 119, for example, two bits in the space pointed to by offset 03h are used to indicate whether the first disk expected by the user is a disk mounted on the motherboard, a disk connected to a RAID card, or a disk connected to an HBA card, and one bit is used to indicate whether the first disk expected by the user is a SATA disk or an NVMe disk; at the same time, the space pointed to by offset 04h in table 119 is used to define the disk identifier of the first disk expected by the user, for example, the space pointed to by offset 04h is used to define the bay ID or slot ID of the first disk.
[0162] For example, if the user wants to set the M.2SATA connected to the RAID card as the first disk in the target reporting order, the information pointing to table 119 is defined in offset 05h of table 118; then, in the space pointed to by offset 03h of table 119, the specified two bits are set to 11 (here, for example, 00 represents the onboard disk, 01 represents the disk connected to the HBA card, and 11 represents the disk connected to the RAID card); then, in the space pointed to by offset 04h of table 119, the bay ID or slot ID corresponding to the M.2 hard disk connected to the RAID card is defined.
[0163] In the above embodiment, when multiple types of disks are installed on the electronic device, additional information is used to indicate to the first operating system the disk type and disk identification information of the first disk desired by the user, and whether the first disk is a disk mounted on the motherboard or a disk connected to the disk manager, so that the first operating system can accurately install the second operating system on the target disk specified by the user.
[0164] In some embodiments, the first operating system represents an operating system running on a remote server;
[0165] The sending the target report sequence to the first operating system includes:
[0166] The target report sequence is sent to the remote server.
[0167] Here, in the case of installing an operating system for an electronic device using a remote server, the first operating system is an operating system running on the remote server.
[0168] In some embodiments, the remote server is a PXE server.
[0169] When the user chooses to install an operating system in a PXE environment on an electronic device, the electronic device sends a target reporting sequence to a PXE server, and the first operating system running on the PXE server controls the operating system installation process of the electronic device.
[0170] As can be seen from the above, in the control method provided by the present application, when using the first operating system to install the second operating system for the electronic device, by providing setting options in the boot system or BMC of the electronic device, the user can set the target reporting order for at least one disk according to personal needs, so that the first operating system can install the second operating system on the target disk of the electronic device specified by the user according to the target reporting order, thereby improving the convenience of the user when installing the operating system, and thus improving the user's usage experience.
[0171] Based on the foregoing embodiments, an embodiment of the present application provides a control device, which includes the units included and the modules included in the units, which can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0172] Figure 3 A schematic diagram of the structure of a control device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the control device 300 includes: an acquisition module 310, a modification module 320 and a sending module 330, wherein:
[0173] The first acquisition module 310 is used to obtain a target reporting sequence in response to a target triggering operation; wherein the target triggering operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; and the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system;
[0174] The modification module 320 is used to modify the default reporting order of the at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of the at least one disk;
[0175] The sending module 330 is used to send the modified hardware configuration information set to the first operating system, so that the first operating system determines a target disk for installing the second operating system from the at least one disk based on the target reporting order.
[0176] In some embodiments, the apparatus 300 further comprises:
[0177] A second acquisition module 340 is used to acquire configuration information of a reporting sequence of the at least one disk by a user;
[0178] The sequence determination module 350 is used to determine the target reporting sequence based on the configuration information.
[0179] In some embodiments, the second acquisition module 340 is configured to perform at least one of the following:
[0180] Determining configuration information of a reporting sequence of the at least one disk by a user through a setting option in a boot system of the electronic device;
[0181] The configuration information of the reporting sequence of the at least one disk is determined by the user through the setting options in the baseboard management controller of the electronic device.
[0182] In some embodiments, the at least one disk includes at least one of the following: at least one first disk and at least one second disk; the reporting order corresponding to each first disk is sent to the first operating system through a first hardware configuration information set generated by a boot system of the electronic device; the reporting order corresponding to each second disk is sent to the first operating system through a second hardware configuration information set generated by a disk manager corresponding to the second disk;
[0183] The modification module 320 includes a first modification submodule 321 and a second modification submodule 322, wherein:
[0184] The first modification submodule 321 is used for modifying, by the boot system, the reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order when the at least one disk includes at least one first disk;
[0185] The second modification submodule 322 is used to modify the reporting order corresponding to the at least one second disk in the second hardware configuration information set from the default reporting order to the target reporting order through the disk manager when the at least one disk includes at least one second disk.
[0186] In some embodiments, the first modification submodule 321 is used to:
[0187] Determining hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set;
[0188] Based on the target reporting order corresponding to each of the first disks, modify the arrangement order of the hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set to modify the reporting order corresponding to the at least one first disk from the default reporting order to the target reporting order.
[0189] In some embodiments, the first modifying submodule 321 is used to:
[0190] Loading the first hardware configuration information set into the memory of the electronic device;
[0191] Based on the target reporting order and the default reporting order, determining at least one first target disk whose reporting order needs to be adjusted from the at least one first disk;
[0192] Based on the disk identification information corresponding to each of the first target disks, a memory address corresponding to each of the first target disks is determined, and the hardware configuration information stored in the memory address is used as the hardware configuration information of the corresponding first target disk.
[0193] In some embodiments, the second modification submodule 322 is used to:
[0194] sending the target reporting sequence to the disk manager using the boot system;
[0195] Based on the target reporting order, using the disk manager, modifying bus connection information of at least one second disk in the second hardware configuration information set, so as to modify the reporting order corresponding to the at least one second disk from the default reporting order to the target reporting order;
[0196] The bus connection information has a corresponding relationship with the reporting sequence of the corresponding second disk.
[0197] In some embodiments, the at least one disk includes at least one of: a plurality of first disks of at least two types, and at least one first disk and at least one second disk;
[0198] The sending module 330 is further used to send additional information to the first operating system; wherein the additional information is used to indicate the disk type and disk identification information of the first disk in the target reporting sequence.
[0199] In some embodiments, the first operating system represents an operating system running on a remote server;
[0200] The sending module 330 is used to send the target report sequence to the remote server.
[0201] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0202] It should be noted that in the embodiment of the present application, if the above-mentioned control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0203] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0204] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0205] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0206] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.
[0207] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0208] It should be noted that Figure 4 A schematic diagram of a hardware entity of a computer device in an embodiment of the present application is shown in FIG. Figure 4 As shown, the hardware entity of the computer device 400 includes: a processor 401, a communication interface 402 and a memory 403, wherein:
[0209] Processor 401 generally controls the overall operation of computer device 400 .
[0210] The communication interface 402 enables the computer device to communicate with other terminals or servers through a network.
[0211] The memory 403 is configured to store instructions and applications executable by the processor 401, and can also cache data to be processed or processed by the processor 401 and each module in the computer device 400 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 401, the communication interface 402, and the memory 403 through the bus 404.
[0212] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0213] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0214] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0215] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0216] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0217] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0218] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0219] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A control method, comprising: In response to a target trigger operation, a target reporting sequence is obtained; wherein the target trigger operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system; Modify the default reporting order of at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to the initialization order of the at least one disk; The modified hardware configuration information set is sent to the first operating system, so that the first operating system determines a target disk for installing the second operating system from the at least one disk based on the target reporting order.
2. The method according to claim 1, wherein: Before obtaining the target reporting sequence in response to the target triggering operation, the method further includes: Obtaining configuration information of a reporting order of the at least one disk from a user; Based on the configuration information, the target reporting order is determined.
3. The method according to claim 2, wherein: The obtaining of configuration information of the reporting order of the at least one disk by the user includes at least one of the following: Determining configuration information of a reporting sequence of the at least one disk by a user through a setting option in a boot system of the electronic device; The configuration information of the reporting sequence of the at least one disk is determined by the user through the setting options in the baseboard management controller of the electronic device.
4. The method according to any one of claims 1 to 3, wherein: The at least one disk includes at least one of the following: at least one first disk and at least one second disk; the reporting sequence corresponding to each of the first disks is sent to the first operating system through a first hardware configuration information set generated by a boot system of the electronic device; The reporting sequence corresponding to each second disk is sent to the first operating system through a second hardware configuration information set generated by a disk manager corresponding to the second disk; The step of modifying the default reporting order of the at least one disk in the hardware configuration information set of the electronic device to the target reporting order includes at least one of the following: In a case where the at least one disk includes at least one first disk, modifying, by the boot system, a reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order; In the case that the at least one disk includes at least one second disk, the disk manager modifies the reporting order corresponding to the at least one second disk in the second hardware configuration information set from the default reporting order to the target reporting order.
5. The method according to claim 4, wherein: The step of modifying the reporting order corresponding to the at least one first disk in the first hardware configuration information set from the default reporting order to the target reporting order includes: Determining hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set; Based on the target reporting order corresponding to each of the first disks, modify the arrangement order of the hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set to modify the reporting order corresponding to the at least one first disk from the default reporting order to the target reporting order.
6. The method according to claim 5, wherein: The determining the hardware configuration information corresponding to the at least one first disk in the first hardware configuration information set includes: Loading the first hardware configuration information set into the memory of the electronic device; Based on the target reporting order and the default reporting order, determining at least one first target disk whose reporting order needs to be adjusted from the at least one first disk; Based on the disk identification information corresponding to each of the first target disks, a memory address corresponding to each of the first target disks is determined, and the hardware configuration information stored in the memory address is used as the hardware configuration information of the corresponding first target disk.
7. The method according to claim 4, wherein: The step of modifying the reporting order corresponding to the at least one second disk in the second hardware configuration information set from the default reporting order to the target reporting order includes: sending the target reporting sequence to the disk manager using the boot system; Based on the target reporting order, using the disk manager, modifying bus connection information of at least one second disk in the second hardware configuration information set, so as to modify the reporting order corresponding to the at least one second disk from the default reporting order to the target reporting order; The bus connection information has a corresponding relationship with the reporting sequence of the corresponding second disk.
8. The method according to claim 4, wherein: The at least one disk includes at least one of: a plurality of first disks of at least two types, and at least one first disk and at least one second disk; The method further comprises: Additional information is sent to the first operating system; wherein the additional information is used to indicate the disk type and disk identification information of the first disk in the target reporting sequence.
9. The method according to any one of claims 1 to 3, wherein: The first operating system represents an operating system running on a remote server; The sending the target report sequence to the first operating system includes: The target report sequence is sent to the remote server.
10. A control device comprising: A first acquisition module is used to obtain a target reporting sequence in response to a target trigger operation; wherein the target trigger operation represents an operation of triggering the installation of a second operating system for an electronic device using a first operating system; and the target reporting sequence represents a disk startup sequence pre-set by at least one disk installed on the electronic device and reported to the first operating system; a modification module, configured to modify the default reporting order of the at least one disk in the hardware configuration information set of the electronic device to the target reporting order; the hardware configuration information set represents a set of hardware configuration information related to the electronic device; the default reporting order corresponds to an initialization order of the at least one disk; The sending module is used to send the modified hardware configuration information set to the first operating system, so that the first operating system determines a target disk for installing the second operating system from the at least one disk based on the target reporting order.
Citation Information
Cited By
Electronic device and operation method thereof
TWI932121B
