A password debugging method, device and equipment for a SATA hard disk and a medium

CN117892288BActive Publication Date: 2026-09-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410080998.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-19
Publication Date
2026-09-18
Estimated Expiration
2044-01-19

AI Technical Summary

Technical Problem

[0004]有鉴于此,本发明提供了一种SATA硬盘的密码调试方法、装置、设备、介质,以解决相关技术中对于SATA硬盘进行密码调试时操作繁琐的技术问题

Benefits of technology

[0016]This invention provides a method, apparatus, device, and medium for password debugging of SATA hard drives. The method determines the type of password debugging command, the password, and the target hard drive. It then uses the password to perform password debugging on the SATA hard drive using different types of password debugging commands. During this process, the number and location of connected SATA hard drives are determined by traversing the SATA hard drives. The type of password debugging command is determined by setting a menu corresponding to the password debugging command in the BIOS. This allows for password debugging of the SATA hard drive using different types of password debugging methods according to user needs, satisfying diverse user requirements. Furthermore, by determining the type of password debugging command and using the same password for different types of commands, the password debugging process is simplified, and the applicability of the SATA hard drive password debugging method is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117892288B_ABST
    Figure CN117892288B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of server security, and discloses a password debugging method, device and equipment for a SATA hard disk and a medium, which determines the type of a password debugging command, a password and a target hard disk, and then uses the password to perform password debugging on the SATA hard disk by using password debugging commands of different types. In this process, the number and position of the connected SATA hard disks are determined by traversing the SATA hard disks, and the type of the password debugging command is determined by using a menu corresponding to the password debugging command in the BIOS, so that the SATA hard disk is subjected to password debugging in different types of password debugging modes according to the requirements of the user, different requirements of the user are met, and the SATA hard disk is subjected to password debugging by using the same password for different types of commands according to the type of the password debugging command, the password debugging process is simplified, and the applicability of the SATA hard disk password debugging method is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server security technology, specifically to a method, apparatus, device, and medium for password debugging of a SATA hard drive. Background Technology

[0002] The BIOS (Basic Input Output System), as the lowest-level and most direct hardware settings and control manager on the server motherboard, provides servers with more user-friendly functions. The BIOS acts as a bridge between hardware devices and software programs. During the boot process, the BIOS first performs a self-test and initialization of the hardware devices. This self-test includes self-tests of the CPU, memory, motherboard, serial and parallel ports, and hard drives, as well as loading drivers for network cards and I / O devices. Server systems can connect to various storage devices, one common type being the SATA hard drive. SATA stands for Serial Advanced Technology Attachment, a high-speed data transfer interface used to connect server motherboards and storage devices such as hard drives. SATA hard drives are a newer type of hard drive, using the SATA interface, offering higher transfer speeds and lower power consumption. From a hardware interface perspective, SATA hard drives connect to the SATA interface on the PCH (Power Chip Controller). The definition of the SATA interface on the PCH varies across different server platforms, resulting in different usable SATA interfaces. According to the ATA specification, SATA hard drives also support various security features included in the ATA specification. For example, they support Master / User password settings, allowing users to set a password for self-encryption and achieve a higher level of data protection. They also support secure erase functionality, enabling users to securely erase data from the hard drive when formatting or deleting data.

[0003] Currently, server BIOSes can interact with hard drive firewalls by creating new function modules based on the ATA specification and ATAPI commands. On the BIOS side, users can set hard drive passwords and implement hard drive encryption or secure erase operations according to specific encryption strategies. As is well known, servers can support a large number of connected hard drives, meeting significant storage needs. If a user needs to encrypt multiple hard drives, they will also need to securely erase them. Due to ATA specifications, a hard drive password is required to unlock the drive before secure erasure. If multiple hard drives need secure erasure, each drive must be unlocked by entering its corresponding password, which is cumbersome for users. Summary of the Invention

[0004] In view of this, the present invention provides a method, apparatus, device, and medium for password debugging of SATA hard drives, so as to solve the technical problem of cumbersome operation when performing password debugging of SATA hard drives in related technologies.

[0005] In a first aspect, the present invention provides a password debugging method for a SATA hard drive, the method comprising: traversing a preset location storage on the motherboard, the preset location storage including storage information and identifiers corresponding one-to-one with the storage information; determining target storage information based on the identifiers; mapping to a BIOS configuration page based on the storage information, so that the user can select the type of password debugging command; responding to the user's password debugging command based on the BIOS, determining the type and password of the password debugging command; traversing SATA hard drives to determine the target hard drive corresponding to the password debugging command; and performing password debugging on the target hard drive based on the password and type.

[0006] In conjunction with the first aspect, in one possible implementation of the first aspect, traversing the SATA hard drives to determine the target hard drive corresponding to the password debugging command includes: traversing the hardware SATA interfaces to determine the SATA hard drives connected through the SATA interfaces; establishing a correspondence between the SATA hard drives and the SATA interfaces based on the SATA hard drives; and determining the target hard drive corresponding to the password debugging command based on the correspondence.

[0007] In conjunction with the first aspect, one possible implementation of the first aspect includes: separate encryption, and password debugging of SATA hard drives based on the target hard drive, password, and type, including: based on separate encryption, mapping a password debugging menu corresponding to each SATA hard drive in the BIOS configuration page; when password encryption of the target hard drive is required, encrypting the target hard drive based on the password in the password debugging menu corresponding to the target hard drive; storing the password as the first password in a preset location on the motherboard so that the user can access the target hard drive using the first password; when password erasure of the target hard drive is required, erasing the target hard drive by comparing the first password stored in the preset location on the motherboard with the second password corresponding to the password debugging command in the password debugging menu corresponding to the target hard drive.

[0008] In conjunction with the first aspect, one possible implementation of the first aspect includes: unified encryption, which performs password debugging on SATA hard drives based on the target hard drive, password, and type. This includes: mapping a password debugging menu corresponding to all SATA hard drives in the BIOS configuration page based on unified encryption; encrypting all SATA hard drives based on the password in the password debugging menu when password encryption of the target hard drive is required; storing the password as the first password in a preset location on the motherboard so that users can access all SATA hard drives using the first password; and wiping the password of all SATA hard drives by comparing the first password stored in the preset location on the motherboard with the second password corresponding to the password debugging command in the password debugging menu when password erasure of the target hard drive is required.

[0009] In conjunction with the first aspect, one possible implementation of the first aspect includes: block encryption, based on the target hard drive, password, and type, performing password debugging on SATA hard drives, including: based on block encryption, mapping password debugging menus corresponding to each group of SATA hard drives in the BIOS configuration page; when password encryption of the target hard drive is required, encrypting a group of SATA hard drives corresponding to the target hard drive based on the password debugging menu corresponding to the target hard drive; storing the password as the first password in a preset location on the motherboard so that the user can access the group of SATA hard drives corresponding to the target hard drive using the first password; when password erasure of the target hard drive is required, erasing the password of the group of SATA hard drives corresponding to the target hard drive by comparing the first password stored in the preset location on the motherboard with the second password corresponding to the password debugging command in the password debugging menu corresponding to the target hard drive.

[0010] In conjunction with the first aspect, in one possible implementation of the first aspect, storing the password as a first password in a preset location on the motherboard includes: storing the password as a first password in a first preset location and a second preset location on the motherboard; in response to the BIOS executing an exit configuration interface command, determining the debugging password and debugging type corresponding to the debugging command; storing the debugging password in the second preset location, replacing the first stored password, and accessing the SATA hard drive based on the debugging password and debugging type; if the access is successful, storing the debugging password in the first preset location, replacing the first stored password; if the access fails, storing the first password in the second preset location, replacing the debugging password.

[0011] In conjunction with the first aspect, in one possible implementation of the first aspect, after performing password debugging on the SATA hard drive based on the target hard drive, password, and type, the method further includes: determining the access permissions corresponding to the password based on the type; and accessing the SATA hard drive based on the access permissions and the password.

[0012] Secondly, the present invention provides a password debugging device for a SATA hard drive. The device includes: a traversal module for traversing a preset location storage on the motherboard, the preset location storage including storage information and identifiers corresponding one-to-one with the storage information; a storage information module for determining target storage information based on the identifiers; a configuration module for mapping to a BIOS configuration page based on the storage information, so that the user can select the type of password debugging command; a first determination module for determining the type and password of the password debugging command in response to the user's password debugging command based on the BIOS; a second determination module for traversing the SATA hard drive and determining the target hard drive corresponding to the password debugging command; and a debugging module for performing password debugging on the SATA hard drive based on the target hard drive, password, and type.

[0013] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the password debugging method for a SATA hard drive as described in the first aspect or any corresponding embodiment thereof.

[0014] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the password debugging method for a SATA hard drive according to the first aspect or any corresponding embodiment thereof.

[0015] The technical solution of this invention has the following advantages:

[0016] This invention provides a method, apparatus, device, and medium for password debugging of SATA hard drives. The method determines the type of password debugging command, the password, and the target hard drive. It then uses the password to perform password debugging on the SATA hard drive using different types of password debugging commands. During this process, the number and location of connected SATA hard drives are determined by traversing the SATA hard drives. The type of password debugging command is determined by setting a menu corresponding to the password debugging command in the BIOS. This allows for password debugging of the SATA hard drive using different types of password debugging methods according to user needs, satisfying diverse user requirements. Furthermore, by determining the type of password debugging command and using the same password for different types of commands, the password debugging process is simplified, and the applicability of the SATA hard drive password debugging method is improved. Attached Figure Description

[0017] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram illustrating an application scenario of a device provided according to an embodiment of the present invention;

[0019] Figure 2 This is a flowchart illustrating a password debugging method for a SATA hard drive according to an embodiment of the present invention;

[0020] Figure 3 This is a structural block diagram of a password debugging device for a SATA hard drive according to an embodiment of the present invention;

[0021] Figure 4 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention;

[0022] Figure 5 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] This embodiment provides an application diagram of the device, such as... Figure 1 As shown, device 10 includes: BIOS option 101 and SATA hard drive 102, wherein SATA hard drive 102 includes at least SATA hard drive 1021 and SATA hard drive 1022. Upon receiving a password debugging command, device 10, in BIOS option 101, encrypts or erases the corresponding hard drive in SATA hard drive 102 according to the type of password debugging command selected by the user. The types of password debugging commands include one or more of: individual encryption, unified encryption, and group encryption. When performing individual encryption, the user encrypts or erases each SATA hard drive in SATA hard drive 102 with different passwords; when performing unified encryption, the user encrypts or erases all SATA hard drives in SATA hard drive 102 with the same password; when performing group encryption, the user encrypts or erases SATA hard drives belonging to the same group in SATA hard drive 102 with the same password, and encrypts or erases SATA hard drives belonging to different groups in SATA hard drive 102 with different passwords.

[0025] According to an embodiment of the present invention, a method for password debugging of a SATA hard drive is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0026] This embodiment provides a method for debugging the password of a SATA hard drive, such as... Figure 2 As shown, the method includes the following steps:

[0027] S201. Traverse the motherboard preset location storage, which includes storage information and identifiers that correspond one-to-one with the storage information.

[0028] S202. Determine the target storage information based on the identifier.

[0029] S203. Based on the stored information, map to the BIOS configuration page so that the user can select the type of password debugging command.

[0030] Specifically, the motherboard default location refers to the memory on the motherboard, usually flash memory. The identifier that corresponds one-to-one with the stored information can be a GUID (Globally Unique Identifier). A GUID is a binary numeric identifier generated by an algorithm to identify each piece of stored information. The stored information refers to the data stored in flash memory. It is used to set variables in the BIOS configuration page. The variable set is the type of password debugging command.

[0031] Specifically, mapping to the BIOS configuration page based on stored information refers to determining the type of password debugging command selected by the user on the BIOS configuration page through function calls. The function's return value can be 0, 1, true, false, or other values. For example, the function determines whether the password debugging command type is unified encryption. If it returns false or 0, the password debugging command type is considered not to be unified encryption. The function can be GetVariable() or other functions; this embodiment does not specifically limit this. The stored information and identifiers stored in a preset location on the motherboard are used as backend storage, and the type of password debugging command mapped to the BIOS configuration page for user selection is used as the frontend page. The type of password debugging command selected by the user is determined through a backend-to-frontend mapping, thus providing a data foundation for subsequent password debugging of the target hard drive based on different types.

[0032] S204. In response to a user's BIOS-based password debugging command, determine the type and password of the password debugging command.

[0033] Specifically, in response to a user's BIOS-based password debugging command, determining the type and password of the password debugging command involves obtaining the type of password debugging command selected by the user on the BIOS configuration page and the password entered by the user corresponding to that type. The BIOS configuration page refers to the BIOS Setup options page. The types of password debugging commands include: individual encryption, unified encryption, and group encryption. The type of password debugging command is determined by mapping storage information stored in a preset location on the motherboard to the BIOS configuration page, allowing the user to select the type of password debugging command.

[0034] S205. Traverse the SATA hard drives to determine the target hard drive corresponding to the password debugging command.

[0035] Specifically, traversing the SATA hard drives to determine the target hard drive corresponding to the password debugging command means traversing the hardware SATA interfaces, determining the number and location of connected SATA hard drives, and thus determining the target hard drive corresponding to the password debugging command.

[0036] S206. Based on the password and type, perform password debugging on the target hard drive.

[0037] Specifically, password debugging of a target hard drive based on password and type refers to encrypting or erasing the target hard drive based on different types of password debugging commands and the corresponding passwords.

[0038] This embodiment provides a password debugging method for SATA hard drives. By determining the type of password debugging command, the password, and the target hard drive, the method utilizes the password to perform password debugging on the SATA hard drive using different types of password debugging commands. In this process, the number and location of connected SATA hard drives are determined by traversing the SATA hard drives. The type of password debugging command is determined by setting the menu corresponding to the password debugging command in the BIOS. Thus, different types of password debugging methods can be used to perform password debugging on the SATA hard drive according to the user's needs, satisfying different user requirements. By determining the type of password debugging command, the same password can be used to perform password debugging on the SATA hard drive for different types of commands, simplifying the password debugging process and improving the applicability of the SATA hard drive password debugging method.

[0039] To encrypt or erase SATA hard drives, in one optional implementation, the SATA hard drives are traversed to determine the target hard drive corresponding to the password debugging command, including:

[0040] Iterate through the hardware SATA interfaces to identify the SATA hard drives connected via the SATA interfaces.

[0041] Based on SATA hard drives, establish the correspondence between SATA hard drives and SATA interfaces.

[0042] Based on the correspondence, the target hard drive corresponding to the password debugging command is determined.

[0043] Specifically, the hardware SATA interface refers to the hardware PCH SATA interface. By traversing the hardware PCH SATA interfaces, it is determined whether a SATA hard drive is connected, that is, the SATA hard drive connected through the SATA interface is identified.

[0044] Specifically, establishing the correspondence between SATA hard drives and SATA interfaces, based on SATA hard drives, means that after identifying the connected SATA hard drives by traversing the hardware PCH SATA interfaces, establishing the correspondence between each SATA hard drive and its corresponding hardware PCH SATA interface, accessing the corresponding SATA hard drive through the corresponding interface, and determining the target hard drive corresponding to the password debugging command. Thus, by using the correspondence between SATA hard drives and SATA interfaces, the target hard drive corresponding to the password debugging command is determined, providing a data foundation for subsequent password debugging of the target hard drive.

[0045] In one alternative implementation, password debugging of the SATA hard drive is performed based on the target hard drive, password, and type, including:

[0046] Based on individual encryption, a password debugging menu corresponding to each SATA hard drive is mapped on the BIOS configuration page.

[0047] Specifically, mapping a password debugging menu for each SATA hard drive in the BIOS configuration page, based on individual encryption, means that when the password debugging command type is individual encryption, a corresponding password debugging menu is configured for each SATA hard drive in the BIOS configuration page. This allows users to encrypt or erase the corresponding SATA hard drive using each password debugging menu. For example, if there are 10 connected SATA hard drives, numbered 0 to 9, and the password debugging command type is individual encryption, a corresponding password debugging menu needs to be set in the BIOS configuration page for each SATA hard drive numbered 0 to 9. This allows users to encrypt or erase the password for different SATA hard drives using the corresponding password debugging menu.

[0048] When password encryption is required for the target hard drive, encrypt the target hard drive based on the password in the password debugging menu corresponding to the target hard drive.

[0049] Specifically, when the password debugging command type is individual encryption, the target hard drive is one of all SATA hard drives. That is, the specific SATA hard drive is determined according to the password debugging menu selected by the user, and then the password is used to encrypt the SATA hard drive selected by the user.

[0050] The password is stored as the first password in a preset location on the motherboard so that the user can access the target hard drive using the first password.

[0051] Specifically, when the password debugging command type is individual encryption, the first password refers to the encryption password for a specific SATA hard drive. Storing the password as the first password in a preset location on the motherboard, so that the user can access the target hard drive through the first password, means using the first password as the encryption password for the target hard drive selected by the user and storing the first password in the flash memory of the motherboard.

[0052] When it is necessary to erase the password of the target hard drive, the password can be erased by comparing the first password stored in the motherboard's preset location with the second password corresponding to the password debugging command in the password debugging menu corresponding to the target hard drive.

[0053] Specifically, when it is necessary to erase the password of the target hard drive, the system compares whether the first password stored in the motherboard flash and the second password entered by the user are the same. If the first password and the second password are the same, the password of the target hard drive is erased, thereby decrypting a certain SATA hard drive.

[0054] In one alternative implementation, password debugging of a SATA hard drive is performed based on the target hard drive, password, and type, including:

[0055] Based on unified encryption, a password debugging menu corresponding to all SATA hard drives is mapped on the BIOS configuration page.

[0056] Specifically, mapping a password debugging menu corresponding to all SATA hard drives in the BIOS configuration page based on unified encryption means that when the password debugging command type is unified encryption, a unified password debugging menu is configured for all connected SATA hard drives in the BIOS configuration page. This allows users to perform password encryption or erasure on all SATA hard drives using the password debugging menu. For example, if there are 10 connected SATA hard drives, numbered 0 to 9, when the password debugging command type is unified encryption, a unified password debugging menu needs to be set in the BIOS configuration page for SATA hard drives numbered 0 to 9. This allows users to perform password encryption or erasure on all SATA hard drives using the password debugging menu.

[0057] When password encryption is required for the target hard drive, encrypt all SATA hard drives based on the password in the password debugging menu.

[0058] Specifically, when the password debugging command type is unified encryption, the target hard drive is all SATA hard drives, and thus all SATA hard drives are encrypted according to the password.

[0059] The password is stored as the first password in a preset location on the motherboard, so that users can access all SATA hard drives using the first password.

[0060] When it is necessary to erase the password of the target hard drive, in the password debugging menu, the password of all SATA hard drives is erased by comparing the first password stored in the motherboard's preset location with the second password corresponding to the password debugging command.

[0061] Specifically, when the password debugging command type is unified encryption, the first password refers to the encryption password for all SATA hard drives.

[0062] Specifically, when it is necessary to erase the password of the target hard drive, the system compares whether the first password stored in the motherboard flash and the second password entered by the user are the same. If the first password and the second password are the same, the password of the target hard drive is erased, thereby decrypting all SATA hard drives.

[0063] In one alternative implementation, password debugging of the SATA hard drive is performed based on the target hard drive, password, and type, including:

[0064] Based on block encryption, a password debugging menu corresponding to each group of SATA hard drives is mapped on the BIOS configuration page.

[0065] Specifically, based on block encryption, mapping password debugging menus for each group of SATA hard drives in the BIOS configuration page means that when the password debugging command type is block encryption, a corresponding password debugging menu is configured for each group of SATA hard drives in the BIOS configuration page. This allows users to encrypt or erase SATA hard drives belonging to the same group using the password debugging menu for each group. Each group of SATA hard drives can be one or more SATA hard drives. For example, if there are 10 connected SATA hard drives, numbered 0 to 9, with numbers 0 to 5 as the first group and numbers 6 to 9 as the second group, then when the password debugging command type is block encryption, corresponding password debugging menus need to be set separately in the BIOS configuration page for the first and second groups of SATA hard drives. This allows users to encrypt or erase SATA hard drives in different groups using the corresponding password debugging menus. That is, the password corresponding to the first group is used to encrypt or erase SATA hard drives numbered 0 to 5, and the password corresponding to the second group is used to encrypt or erase SATA hard drives numbered 6 to 9. This allows for group management of SATA hard drives with a large number of drives, such as those forming a disk array, thus meeting different user needs.

[0066] When password encryption is required for the target hard drive, the password debugging menu corresponding to the target hard drive can be used to encrypt a group of SATA hard drives corresponding to the target hard drive based on the password.

[0067] Specifically, when the password debugging command type is group encryption, the target hard drive is a group of SATA hard drives consisting of one or more SATA hard drives from all SATA hard drives, and then the password is used to encrypt one or more groups of SATA hard drives selected by the user.

[0068] The password is stored as the first password in a preset location on the motherboard, so that users can access a set of SATA hard drives corresponding to the target hard drive using the first password.

[0069] When it is necessary to erase the password of the target hard drive, in the password debugging menu corresponding to the target hard drive, the password of a group of SATA hard drives corresponding to the target hard drive is erased by comparing the first password stored in the preset location of the motherboard with the second password corresponding to the password debugging command.

[0070] Specifically, when the password debugging command type is block encryption, the first password refers to the encryption password for one or more corresponding SATA hard drives.

[0071] Specifically, when it is necessary to erase the password of the target hard drive, the system compares whether the first password stored in the motherboard flash and the second password entered by the user are the same. If the first password and the second password are the same, the password of the target hard drive is erased, thereby decrypting one or more groups of corresponding SATA hard drives.

[0072] To ensure the correctness of password changes and avoid accidental password changes, in one optional implementation, the password is stored as a first password in a preset location on the motherboard, including:

[0073] The password is stored as the first password in the first and second preset locations on the motherboard.

[0074] Specifically, both the first preset position and the second preset position can refer to the motherboard flash.

[0075] In response to the BIOS executing the exit configuration interface command, determine the debugging password and debugging type corresponding to the debugging command.

[0076] Specifically, in response to the BIOS executing the exit configuration interface command, determining the debug password and debug type corresponding to the debug command means determining the debug password that the user has added or modified and the debug type corresponding to the debug password when the user is about to exit the BIOS configuration page.

[0077] Store the debugging password in the second preset location, replacing the first stored password, and access the SATA hard drive based on the debugging password and debugging type.

[0078] Specifically, storing the debugging password in a second preset location replaces the first stored password. Accessing the SATA hard drive based on the debugging password and debugging type means storing the newly added or modified debugging password in the second preset location to form a data backup, and verifying the newly added or modified debugging password by accessing the SATA hard drive. For example, when the debugging type is individual encryption, the corresponding debugging password can only access the corresponding SATA hard drive; when the debugging type is unified encryption, the corresponding debugging password can access all SATA hard drives; when the corresponding debugging password is group encryption, the corresponding debugging password can only access a group of SATA hard drives consisting of one or more SATA hard drives.

[0079] If access is successful, the debugging password will be stored in the first preset location, replacing the first stored password.

[0080] Specifically, if the access is successful, the user's newly added or modified debugging password is considered to be a correct operation, and the password stored in the first preset location is replaced with the debugging password, thereby completing the addition or modification of the password.

[0081] In the event of access failure, the first password will be stored in the second preset location, replacing the debugging password.

[0082] Specifically, in the event of access failure, the user's newly added or modified debugging password is considered to be a mistake, and the password stored in the second preset location is replaced with the first password, thereby completing the rollback of the original password and avoiding password changes caused by mistake.

[0083] In one alternative implementation, after performing password debugging on the SATA hard drive based on the target hard drive, password, and type, the method further includes:

[0084] Based on the type, determine the access permissions corresponding to the password.

[0085] Access to the SATA hard drive is based on access permissions and a password.

[0086] Specifically, determining the access permissions corresponding to the password based on the type means that when the password debugging command type is individual encryption, the access permissions corresponding to the password are the specific SATA hard drive selected by the user; when the password debugging command type is unified encryption, the access permissions corresponding to the password are all SATA hard drives; and when the password debugging command type is group encryption, the access permissions corresponding to the password are a group of SATA hard drives consisting of one or more SATA hard drives.

[0087] Specifically, accessing SATA hard drives based on access permissions and passwords means that when the password debugging command type is individually encrypted and the user enters the correct password, the user can access a specific SATA hard drive; when the password debugging command type is uniformly encrypted and the user enters the correct password, the user can access all SATA hard drives; and when the password debugging command type is individually encrypted and the user enters the correct password, the user can access all SATA hard drives in the corresponding group of SATA hard drives.

[0088] By implementing this embodiment, the type of password debugging command is determined by setting a menu corresponding to the password debugging command in the BIOS. This allows for password debugging of the SATA hard drive using different types of password debugging methods according to user needs, satisfying diverse user requirements. Furthermore, by determining the type of password debugging command, the same password can be used to perform password debugging on the SATA hard drive for different types of commands, simplifying the password debugging process and improving the applicability of the SATA hard drive password debugging method.

[0089] This embodiment also provides a password debugging device for a SATA hard drive, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0090] This embodiment provides a password debugging device for a SATA hard drive, such as... Figure 3 As shown, it includes:

[0091] The traversal module 301 is used to traverse the motherboard preset location storage, which includes storage information and identifiers corresponding one-to-one with the storage information. For details, please refer to the relevant description of step S201 in the above embodiments, which will not be repeated here.

[0092] The storage information module 302 is used to determine the target storage information based on an identifier. For details, please refer to the description of step S202 in the above embodiments, which will not be repeated here.

[0093] Configuration module 303 is used to map stored information to the BIOS configuration page, allowing the user to select the type of password debugging command. For details, please refer to the description of step S203 in the above embodiments, which will not be repeated here.

[0094] The first determining module 304 is used to determine the type and password of the password debugging command in response to a user's BIOS-based password debugging command. For details, please refer to the description of step S204 in the above embodiments, which will not be repeated here.

[0095] The second determining module 305 is used to traverse the SATA hard drives and determine the target hard drive corresponding to the password debugging command. For details, please refer to the relevant description of step S205 in the above embodiments, which will not be repeated here.

[0096] The debugging module 306 is used to perform password debugging on the SATA hard drive based on the target hard drive, password, and type. For details, please refer to the description of step S206 in the above embodiments, which will not be repeated here.

[0097] In this embodiment, the password debugging device for the SATA hard drive is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0098] This invention also provides a computer device having the above-described features. Figure 3 The password debugging device for the SATA hard drive shown.

[0099] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 4 As shown, the computer device includes one or more processors 401, memory 402, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 4 Take a processor 401 as an example.

[0100] Processor 401 may be a central processing unit, a network processor, or a combination thereof. Processor 401 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0101] The memory 402 stores instructions executable by at least one processor 401 to cause the at least one processor 401 to perform the method shown in the above embodiments.

[0102] Memory 402 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, memory 402 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 402 may optionally include memory remotely located relative to processor 401, and this remote memory may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0103] Memory 402 may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; memory 402 may also include combinations of the above types of memory. The computer device also includes a communication interface 403 for communicating with other devices or communication networks.

[0104] This invention also provides a computer-readable storage medium. The methods described in this invention can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, such as... Figure 5As shown, embodiments of the present invention also provide a computer-readable storage medium 501, which stores computer instructions 5011. When the computer instructions 5011 are executed by a processor, they implement the method shown in the above embodiments.

[0105] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for debugging the password of a SATA hard drive, characterized in that, The method includes: Traverse the motherboard preset location storage, which includes storage information and identifiers that correspond one-to-one with the storage information; Based on the identifier, the target storage information is determined; Based on the stored information, it is mapped to the BIOS configuration page, allowing the user to select the type of password debugging command; In response to a user's BIOS-based password debugging command, determine the type and password of the password debugging command; Traverse the SATA hard drives to determine the target hard drive corresponding to the password debugging command; Based on the password and the type, password debugging is performed on the target hard drive; Based on the password and the type, password debugging is performed on the target hard drive, including: Based on the encryption type, the corresponding password debugging menu is mapped on the BIOS configuration page; When password encryption of the target hard drive is required, encryption is performed based on the password. The password is stored as the first password in a preset location on the motherboard. The step of storing the password as the first password in a preset location on the motherboard includes: The password is stored as the first password in the first preset location and the second preset location on the motherboard. In response to the BIOS executing the exit configuration interface command, determine the debugging password and debugging type corresponding to the debugging command; Store the debugging password in the second preset location, replace the first password, and access the SATA hard drive based on the debugging password and the debugging type; If the access is successful, the debugging password is stored in the first preset location, replacing the first password; In the event of access failure, the first password is stored in the second preset location, replacing the debugging password.

2. The method according to claim 1, characterized in that, The step of traversing SATA hard drives to determine the target hard drive corresponding to the password debugging command includes: Traverse the hardware SATA interfaces to identify the SATA hard drives connected through those interfaces; Based on the SATA hard drive, establish the correspondence between the SATA hard drive and the SATA interface; Based on the correspondence, the target hard drive corresponding to the password debugging command is determined.

3. The method according to claim 1, characterized in that, The types include: individual encryption; based on the encryption type, mapping the corresponding password debugging menu on the BIOS configuration page, including: based on the individual encryption, mapping the password debugging menu corresponding to each SATA hard drive on the BIOS configuration page respectively; When it is necessary to encrypt the target hard drive with a password, encryption is performed based on the password, including: when it is necessary to encrypt the target hard drive with a password, encrypting the target hard drive based on the password in the password debugging menu corresponding to the target hard drive; The method also includes: when it is necessary to erase the password of the target hard drive, in the password debugging menu corresponding to the target hard drive, by comparing the first password stored in the preset location of the motherboard with the second password corresponding to the password debugging command, the password of the target hard drive is erased.

4. The method according to claim 1, characterized in that, The types include: unified encryption, which maps a corresponding password debugging menu to the BIOS configuration page based on the encryption type, including: mapping a password debugging menu corresponding to all SATA hard drives to the BIOS configuration page based on the unified encryption; When password encryption of the target hard drive is required, encryption is performed based on the password, including: when password encryption of the target hard drive is required, encrypting all SATA hard drives based on the password in the password debugging menu; The method also includes: when it is necessary to erase the password of the target hard drive, in the password debugging menu, by comparing the first password stored in the preset location of the motherboard with the second password corresponding to the password debugging command, to erase the password of all SATA hard drives.

5. The method according to claim 1, characterized in that, The types include: block encryption, which maps a corresponding password debugging menu to the BIOS configuration page based on the encryption type, including: mapping a password debugging menu corresponding to each group of SATA hard drives to the BIOS configuration page based on the block encryption; When password encryption of the target hard drive is required, encryption is performed based on the password, including: when password encryption of the target hard drive is required, in the password debugging menu corresponding to the target hard drive, encrypting a group of SATA hard drives corresponding to the target hard drive based on the password; The method also includes: when it is necessary to erase the password of the target hard drive, in the password debugging menu corresponding to the target hard drive, by comparing the first password stored in the preset location of the motherboard with the second password corresponding to the password debugging command, to erase the password of a group of SATA hard drives corresponding to the target hard drive.

6. The method according to claim 1, characterized in that, After performing password debugging on the SATA hard drive based on the target hard drive, the password, and the type, the method further includes: Based on the type, determine the access permissions corresponding to the password; Access to the SATA hard drive is granted based on the access permissions and the password.

7. A password debugging device for a SATA hard drive, characterized in that, The device includes: The traversal module is used to traverse the preset location storage on the motherboard, wherein the preset location storage on the motherboard includes storage information and an identifier that corresponds one-to-one with the storage information. A storage information module is used to determine target storage information based on the identifier; The configuration module is used to map the stored information to the BIOS configuration page so that the user can select the type of password debugging command; The first determining module is used to determine the type and password of a password debugging command in response to a user's BIOS-based password debugging command. The second determining module is used to traverse SATA hard drives and determine the target hard drive corresponding to the password debugging command; The debugging module is used to perform password debugging on the SATA hard drive based on the target hard drive, the password, and the type. Based on the password and the type, password debugging is performed on the target hard drive, including: Based on the encryption type, the corresponding password debugging menu is mapped on the BIOS configuration page; When password encryption of the target hard drive is required, encryption is performed based on the password. The password is stored as the first password in a preset location on the motherboard. The step of storing the password as the first password in a preset location on the motherboard includes: The password is stored as the first password in the first preset location and the second preset location on the motherboard. In response to the BIOS executing the exit configuration interface command, determine the debugging password and debugging type corresponding to the debugging command; Store the debugging password in the second preset location, replace the first password, and access the SATA hard drive based on the debugging password and the debugging type; If the access is successful, the debugging password is stored in the first preset location, replacing the first password; In the event of access failure, the first password is stored in the second preset location, replacing the debugging password.

8. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the password debugging method for the SATA hard drive according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform password debugging of the SATA hard drive as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • SATA hard disk crypto module and work method thereof

    CN106991061A

  • BIOS-based hard disk secure erasing method and device, terminal and storage medium

    CN115373605A