Automatic display and hidden partition method and device, computer equipment and storage medium
By assisting verification, the device establishes a binding relationship with the hard disk, and using desktop applications to achieve automatic partition hiding and display, solving cumbersome operation problems and improving user experience and data security.
Patent Information
- Application Number
- CN202410929838.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-12-20
AI Technical Summary
The existing partition hidden methods are cumbersome, have high professional and technical requirements, are not friendly to ordinary users, and are prone to data corruption.
By assisting verification, the device establishes a binding relationship with the hard disk, and using desktop applications to achieve automatic display and hidden partitioning functions, it is simple to operate, reduces professional technical requirements, and improves security.
It enables ordinary users to easily operate partition hiding and display, improves user experience and data security, and avoids data corruption and loss.
Smart Images

Figure CN119167442A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer equipment, and in particular to a method and device for automatically displaying and hiding partitions, a computer equipment and a storage medium. Background Art
[0002] With the development of Internet technology, the protection of data privacy and security has gained more and more consensus and attention. To improve the security of important and sensitive data, we need to start from all directions, usually from the following aspects: access control and permission management, data encryption, backup and recovery strategy, security audit and logging, physical security, and use of professional security tools or services. Partition hiding technology is an effective method based on the above aspects.
[0003] In the related technology, the common methods of hiding partitions are: the system's own disk management tool, system API, third-party encryption tools, modifying partition properties, etc., but these methods have the following disadvantages: 1. High professional and technical requirements, not user-friendly; 2. Cumbersome operation and poor experience; 3. Hiding and displaying require different operations. Once an operation error occurs, data is easily damaged. Summary of the invention
[0004] In view of this, the present invention provides a method, apparatus, computer device and storage medium for automatically displaying and hiding partitions, so as to solve the problem that the conventional partition display and hiding methods are complicated in operation.
[0005] In a first aspect, the present invention provides a method for automatically displaying and hiding partitions, which is applied to a computer device, and the method comprises:
[0006] Using the desktop application, locate the target partition in the hard disk of the computer device;
[0007] Determine whether the auxiliary verification device is inserted;
[0008] When the auxiliary verification device is inserted, a binding relationship between the auxiliary verification device and the hard disk is established through the communication between the desktop application, the service program, the hard disk and the auxiliary verification device;
[0009] Based on the binding relationship, use the desktop application to enable the automatic hiding function for the target partition, and write the partition hiding information corresponding to the target partition to the hard disk, so that the target partition is displayed according to the partition hiding information when the auxiliary verification device is inserted, and / or the target partition is hidden according to the partition hiding information when the auxiliary verification device is unplugged.
[0010] In the present invention, an auxiliary verification device is used to establish a binding relationship between the auxiliary verification device and the hard disk, and the partitions of the hard disk are automatically displayed and hidden. The professional and technical requirements are low, and ordinary users can easily understand and implement it. The operation only requires desktop programs and inserting auxiliary verification devices. The operation is simple. At the same time, it is not easy to make mistakes when using desktop applications. Since the auxiliary verification device has high confidentiality, it is not easy to cause data damage and loss, which can greatly improve the user experience.
[0011] In an optional implementation, the auxiliary verification device includes auxiliary firmware, and the hard disk includes hard disk firmware. A binding relationship between the auxiliary verification device and the hard disk is established through communication between a desktop application, a service program, the hard disk and the auxiliary verification device, including:
[0012] Through the desktop application, the service program is used to communicate with the auxiliary firmware, and the binding data is written to the auxiliary firmware through the firmware interface of the auxiliary verification device;
[0013] The service program is used to communicate with the hard disk firmware, and the binding data is written to the hard disk firmware to establish a binding relationship between the current auxiliary verification device and the current hard disk.
[0014] In this way, the auxiliary verification device is bound to the hard disk by using the service program, so that when the auxiliary verification device is subsequently inserted, it is easy to determine whether to automatically display or hide the partition. The binding relationship can further improve the security of using the auxiliary verification device to automatically display or hide the partition.
[0015] In an optional implementation, displaying the target partition according to the partition hiding information when the auxiliary verification device is inserted includes:
[0016] When the current auxiliary verification device is inserted, the service program is used to communicate with the hard disk firmware, and based on the partition hidden information, it is determined whether there is a binding relationship between the current auxiliary verification device and the current hard disk;
[0017] When the current auxiliary verification device is bound to the current hard disk, the hidden target partition is set to be displayed by using the service program.
[0018] In this method, a service program is used to determine whether there is a binding relationship between the auxiliary verification device and the hard disk. Only when there is a binding relationship between the auxiliary verification device and the hard disk, the hidden partition will be displayed, avoiding the use of a non-binding auxiliary verification device to display the hidden partition, further improving the security of partition display and hiding.
[0019] In an optional implementation manner, determining whether a binding relationship exists between the current auxiliary verification device and the current hard disk includes:
[0020] Read the binding data in the auxiliary firmware through the interface of the auxiliary firmware;
[0021] Call the interface of the hard disk firmware, transfer the binding data to the hard disk firmware, and verify whether the binding data exists in the hard disk firmware;
[0022] When the binding data exists in the hard disk firmware, determining that the current auxiliary verification device has a binding relationship with the current hard disk;
[0023] When the binding data does not exist in the hard disk firmware, it is determined that there is no binding relationship between the current auxiliary verification device and the current hard disk.
[0024] In this method, by using the binding data to determine whether it can be transmitted through the interface in the hard disk firmware, it is determined whether there is a binding relationship between the auxiliary verification device and the hard disk, providing data support for the subsequent hiding and display functions.
[0025] In an optional implementation, hiding the target partition according to the partition hiding information when the auxiliary verification device is unplugged includes:
[0026] When the current auxiliary verification device is unplugged, the service program is used to communicate with the hard disk firmware to determine whether to set the target partition to a hidden state;
[0027] When it is determined to set the target partition to a hidden state, the target partition is automatically hidden through a service program based on the partition hiding information.
[0028] In this manner, by automatically hiding the partition when the auxiliary verification device is unplugged, the security of partition hiding is further improved, and the user experience is further improved.
[0029] In an optional implementation, the auxiliary verification device is an auxiliary verification device based on a USB interface bus.
[0030] In this method, the use of auxiliary verification equipment based on the USB interface bus is more suitable for partition protection of computer equipment, has a wide range of application scenarios and the product is easier to control.
[0031] In a second aspect, the present invention provides a device for automatically displaying and hiding partitions, the device comprising:
[0032] A partition determination module, used to determine a target partition in a hard disk of a computer device using a desktop application;
[0033] A monitoring module, used to determine whether the auxiliary verification device is inserted;
[0034] A binding relationship establishment module is used to establish a binding relationship between the auxiliary verification device and the hard disk through the communication between the desktop application, the service program, the hard disk and the auxiliary verification device when the auxiliary verification device is inserted;
[0035] The partition display and hiding module is used to enable the automatic hiding function for the target partition based on the binding relationship and using the desktop application, and write the partition hiding information corresponding to the target partition to the hard disk, so that the target partition can be displayed according to the partition hiding information when the auxiliary verification device is inserted, and / or the target partition can be hidden according to the partition hiding information when the auxiliary verification device is unplugged.
[0036] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the automatic display and hiding partition method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for automatically displaying and hiding partitions according to the first aspect or any corresponding embodiment thereof.
[0038] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the method for automatically displaying and hiding partitions according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 4 is a flow chart of a method for automatically displaying and hiding partitions according to an embodiment of the present invention.
[0041] Figure 2 It is a flowchart of automatic hiding and displaying of partitions.
[0042] Figure 3 4 is a flow chart of another method for automatically displaying and hiding partitions according to an embodiment of the present invention.
[0043] Figure 4 4 is a flow chart of another method for automatically displaying and hiding partitions according to an embodiment of the present invention.
[0044] Figure 5 4 is a structural block diagram of an automatic display and hiding partition device according to an embodiment of the present invention.
[0045] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0047] In the related technology, the common methods of hiding partitions are: the system's own disk management tool, system API, third-party encryption tools, modifying partition properties, etc., but these methods have the following disadvantages: 1. High professional and technical requirements, not user-friendly; 2. Cumbersome operation and poor experience; 3. Hiding and displaying require different operations. Once an operation error occurs, data is easily damaged.
[0048] In order to solve the above problems, an automatic display and hiding partition method is provided in an embodiment of the present invention, which is used in a computer device. It should be noted that its execution subject can be an automatic display and hiding partition device, which can be implemented as part or all of the computer device through software, hardware or a combination of software and hardware. The computer device can be a terminal or a client or a server. The server can be a single server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application can be a smart phone, a personal computer, a tablet computer or other intelligent hardware devices. In the following method embodiments, the execution subject is taken as an example of a computer device for explanation.
[0049] The computer device in this embodiment is suitable for use scenarios where partitions existing in the computer device or partitions divided by itself are hidden and displayed. The present invention provides a method for automatically displaying and hiding partitions, uses an auxiliary verification device, establishes a binding relationship between the auxiliary verification device and the hard disk, and automatically displays and hides the partitions of the hard disk. It has low professional and technical requirements, and ordinary users can easily understand and implement it. The operation only requires desktop programs and inserting auxiliary verification devices. The operation is simple. At the same time, it is not easy to make mistakes when using desktop applications. Since the auxiliary verification device has high confidentiality, it is not easy to cause data damage and loss, which can greatly improve the user experience.
[0050] According to an embodiment of the present invention, an embodiment of a method for automatically displaying and hiding partitions is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0051] In this embodiment, a method for automatically displaying and hiding partitions is provided, which can be used in the above-mentioned computer device. Figure 1 is a flow chart of a method for automatically displaying and hiding partitions according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0052] Step S101, using a desktop application, determining a target partition in a hard disk of a computer device.
[0053] In one example, the partition can create a new partition or select an existing partition through the desktop UI application A, for example, select a partition P_A on the current computer device through the desktop UI application A, or use the desktop UI application A to create a partition P_B.
[0054] Step S102, determining whether the auxiliary verification device is inserted.
[0055] In one example, it is determined whether the auxiliary verification device is inserted, and when the auxiliary verification device is not inserted, a prompt is provided to insert the auxiliary verification device.
[0056] Step S103, when the auxiliary verification device is inserted, a binding relationship between the auxiliary verification device and the hard disk is established through communication between the desktop application, the service program, the hard disk and the auxiliary verification device.
[0057] In one example, a binding relationship between the auxiliary verification device and the hard disk is established through the service program S and the auxiliary firmware of the auxiliary verification device.
[0058] Step S104, based on the binding relationship, use the desktop application to enable the automatic hiding function for the target partition, and write the partition hiding information corresponding to the target partition into the hard disk, so that when the auxiliary verification device is inserted, the target partition is displayed according to the partition hiding information, and / or, when the auxiliary verification device is unplugged, the target partition is hidden according to the partition hiding information.
[0059] In one example, while establishing a binding relationship between the auxiliary verification device and the hard disk, the automatic hiding function is enabled for the target partition. When the auxiliary verification device is inserted into the computer, it is determined whether to display the hidden target partition; and / or, when the auxiliary verification device is unplugged from the computer, it is determined whether to automatically hide the target partition according to the partition hiding information.
[0060] In one implementation scenario, partition display and hiding involve desktop UI application A, service program S; an auxiliary verification device based on a USB interface bus, such as Ukey, etc., and Ukey is used below to replace the auxiliary verification device; customized Ukey firmware U_F; customized hard disk firmware S_F. Among them, the desktop UI application A is a desktop application with a UI interface, and the service program S is responsible for communicating with the auxiliary verification device firmware and communicating with the hard disk firmware S_F. Among them, the hard disk firmware S_F establishes a binding relationship with Ukey through the service program S: for example, through the service program S, combined with a certain encryption algorithm (the algorithm here is not limited to the encryption algorithm, as long as it can ensure that Ukey and the hard disk have a unique binding relationship), the Ukey and the hard disk are established. The content recorded in the hard disk firmware S_F includes: whether the current hard disk has enabled the partition hiding function, and the information that one or more partitions need to be automatically hidden or displayed. Users can achieve the following functions by operating the desktop application: 1. Select one or more partitions; 2. Enable the automatic hiding and displaying function of partitions; 3. Automatically display and hide all set partitions by default, and can set to display and hide a certain set partition separately (multiple partitions).
[0061] Figure 2 It is a flow chart of automatic hiding and displaying of partitions, such as Figure 2 As shown, the process of automatic partition hiding and display includes: 1) Select a partition P_A on the current computer device through the desktop UI application A or use the desktop UI application A to create a partition P_B. 2) If the P_A partition is selected, the desktop UI application A communicates with the service program S, and the service program S communicates with the auxiliary verification device Ukey firmware U_F to establish a binding relationship between the current Ukey and the current computer hard disk; the service program S communicates with the hard disk firmware S_F to write the partition hiding information into the hard disk firmware S_F; the logic of the binding relationship does not limit the method, as long as it can ensure that the Ukey corresponds to the current hard disk, for example: write the current hard disk firmware information into the Ukey firmware, write the current hard disk serial number into the Ukey firmware, etc. 3) While establishing the binding relationship, turn on the automatic hiding function for the selected partition P_A; there are no special requirements for the specific implementation of the partition hiding function, and it only needs to meet the hiding requirements of the current platform (linux, Windows, MacOS). For example, methods for hiding partitions may include: 1. changing partition attributes; 2. encrypting partitions so that the system cannot recognize the partitions; 3. hiding partitions through system APIs, etc. The present invention does not limit the methods for hiding partitions.
[0062] Specifically, when Ukey is inserted into the computer, the service program S communicates with the auxiliary verification device Ukey firmware to determine whether this Ukey has a binding relationship with the current hard disk. If there is a binding relationship, the hidden partition P_A is automatically set to a display state; when Ukey is unplugged from the computer, the service program S monitors the Ukey unplugging event and communicates with the hard disk firmware S_F to confirm whether the P_A partition needs to be set to a hidden state. If it needs to be hidden, the partition hiding state is set according to the partition hiding information in the hard disk firmware S_F. Among them, when the user no longer needs the partition hiding function, the partition hiding function can be turned off through the desktop UI application A; the partition automatic hiding function can also be turned on at any time; the prerequisite is that the Ukey device must be inserted into the computer device. The automatic hiding function of one or more partitions can be turned on through the desktop UI application A, and it also supports the function of automatically displaying only one partition among multiple hidden partitions.
[0063] Exemplarily, the functions of the service program S include a): communicating with the Ukey firmware U_F to establish a binding relationship between the Ukey and the current hard disk; b): monitoring the plug-in and unplug events of the auxiliary verification device Ukey; c): communicating with the hard disk firmware S_F to write the partition hiding information into the hard disk firmware S_F; d): setting partition hiding and display. Among them, the service program S is a self-starting program at startup, and the service program S starts to monitor the plug-in and unplug events of the auxiliary verification device Ukey.
[0064] The method for automatically displaying and hiding partitions provided in this embodiment utilizes an auxiliary verification device to establish a binding relationship between the auxiliary verification device and the hard disk, and automatically displays and hides the partitions of the hard disk. It has low professional and technical requirements and can be easily understood and implemented by ordinary users. The operation only requires desktop programs and the insertion of auxiliary verification devices, which is simple to operate. At the same time, it is not easy to make errors when operating using desktop applications. Since the auxiliary verification device has a high degree of confidentiality and is not prone to data damage and loss, the user experience can be greatly improved.
[0065] In this embodiment, a method for automatically displaying and hiding partitions is provided, which can be used in the above-mentioned computer device. Figure 3 FIG. 4 is a flowchart of another method for automatically displaying and hiding partitions according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0066] Step S301, using a desktop application, determine a target partition in the hard disk of a computer device. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0067] Step S302: Determine whether the auxiliary verification device is inserted. Figure 1Step S102 of the illustrated embodiment will not be described in detail here.
[0068] Step S303, when the auxiliary verification device is inserted, a binding relationship between the auxiliary verification device and the hard disk is established through the communication between the desktop application, the service program, the hard disk and the auxiliary verification device.
[0069] Specifically, the above step S303 includes:
[0070] Step S3031, using the desktop application, using the service program to communicate with the auxiliary firmware, and writing binding data to the auxiliary firmware through the firmware interface of the auxiliary verification device.
[0071] Step S3032, using the service program to communicate with the hard disk firmware, writing binding data to the hard disk firmware, and establishing a binding relationship between the current auxiliary verification device and the current hard disk.
[0072] In one example, after selecting the P_A partition, the desktop UI application A communicates with the service program S, and the service program S communicates with the auxiliary verification device Ukey firmware U_F to establish a binding relationship between the current Ukey and the current computer hard disk. The communication is essentially to write data to the firmware through the S program, and write or read data to the hard disk firmware through the Ukey firmware interface provided by the Ukey manufacturer; according to the binding relationship established between the hard disk firmware, Ukey firmware and service program S, the corresponding data is written to the corresponding firmware.
[0073] The service program S communicates with the hard disk firmware S_F and writes the partition hiding information into the hard disk firmware S_F. The partition hiding information is the partition information set by the desktop UI application A. The purpose of writing the hidden partition information into the firmware is: when the Ukey is unplugged, it can be read from the hard disk firmware whether the partition hiding function is enabled on the current hard disk and which specific partition is hidden.
[0074] Specifically, the logic of the binding relationship does not limit the method, as long as it can ensure that the Ukey corresponds to the current hard disk, for example: writing the current hard disk firmware information into the Ukey firmware, writing the current hard disk serial number into the Ukey firmware, etc.
[0075] In this way, the auxiliary verification device is bound to the hard disk by using the service program, so that when the auxiliary verification device is subsequently inserted, it is easy to determine whether to automatically display or hide the partition. The binding relationship can further improve the security of using the auxiliary verification device to automatically display or hide the partition.
[0076] Step S304: Based on the binding relationship, the desktop application is used to enable the automatic hiding function for the target partition, and the partition hiding information corresponding to the target partition is written to the hard disk, so that the target partition is displayed according to the partition hiding information when the auxiliary verification device is inserted, and / or the target partition is hidden according to the partition hiding information when the auxiliary verification device is unplugged. For details, please refer to Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0077] The automatic display and hiding partition method provided in this embodiment realizes the binding of the auxiliary verification device and the hard disk by using the service program, so as to facilitate the subsequent determination of whether to automatically display or hide the partition when the auxiliary verification device is inserted. The binding relationship can further improve the security of automatically displaying or hiding the partition using the auxiliary verification device.
[0078] In this embodiment, a method for automatically displaying and hiding partitions is provided, which can be used in the above-mentioned computer device. Figure 4 is a flowchart of another method for automatically displaying and hiding partitions according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0079] Step S401: Use the desktop application to determine the target partition in the hard disk of the computer device. Figure 3 Step S401 of the illustrated embodiment will not be described in detail here.
[0080] Step S402: Determine whether the auxiliary verification device is inserted. Figure 3 Step S402 of the illustrated embodiment will not be described in detail here.
[0081] Step S403: When the auxiliary verification device is inserted, a binding relationship between the auxiliary verification device and the hard disk is established using the service program. Figure 3 Step S403 of the illustrated embodiment will not be described in detail here.
[0082] Step S404, based on the binding relationship, use the desktop application to enable the automatic hiding function for the target partition, and write the partition hiding information corresponding to the target partition to the hard disk, so that when the auxiliary verification device is inserted, the target partition is displayed according to the partition hiding information, and / or, when the auxiliary verification device is unplugged, the target partition is hidden according to the partition hiding information.
[0083] Specifically, the auxiliary verification device is an auxiliary verification device based on a USB interface bus, and the above step S404 includes:
[0084] Step S4041, when the current auxiliary verification device is inserted, the service program is used to communicate with the hard disk firmware, and based on the partition hidden information, it is determined whether there is a binding relationship between the current auxiliary verification device and the current hard disk.
[0085] In some optional implementations, the above step S4041 includes:
[0086] Step b1, reading the binding data in the auxiliary firmware through the interface of the auxiliary firmware;
[0087] Step b2, calling the interface of the hard disk firmware, transferring the binding data to the hard disk firmware, and verifying whether the binding data exists in the hard disk firmware;
[0088] Step b3, when the binding data exists in the hard disk firmware, determining that there is a binding relationship between the current auxiliary verification device and the current hard disk;
[0089] Step b4: when the binding data does not exist in the hard disk firmware, it is determined that there is no binding relationship between the current auxiliary verification device and the current hard disk.
[0090] In one example, while Ukey establishes a binding relationship with the current hard disk, the service program S will also write binding data information into the Ukey firmware and the hard disk firmware, for example: through a special algorithm, write an identity verification data into the firmware of the Ukey and the hard disk. There are no special requirements for the special algorithm. The goal is to ensure the uniqueness of the binding relationship between Ukey and the hard disk. The special algorithm is not limited in the present invention. The binding data in the auxiliary device is read through the auxiliary device firmware interface, and then the hard disk firmware interface is called and the binding data is passed in for verification: when the verification passes, the hard disk firmware interface returns success, confirming that Ukey has a binding relationship with the current hard disk, otherwise Ukey does not have a binding relationship with the current hard disk.
[0091] In this method, by using the binding data to determine whether it can be transmitted through the interface in the hard disk firmware, it is determined whether there is a binding relationship between the auxiliary verification device and the hard disk, providing data support for the subsequent hiding and display functions.
[0092] Step S4042, when the current auxiliary verification device is bound to the current hard disk, the hidden target partition is set to a display state by using the service program.
[0093] In one example, when Ukey is inserted into the computer, the service program S communicates with the auxiliary verification device Ukey firmware to determine whether this Ukey is bound to the current hard disk. If so, the hidden partition P_A is automatically set to a display state.
[0094] Step S4043, when the current auxiliary verification device is unplugged, the service program is used to communicate with the hard disk firmware to determine whether to set the target partition to a hidden state.
[0095] Step S4044: when it is determined to set the target partition to a hidden state, the target partition is automatically hidden through a service program based on the partition hiding information.
[0096] In one example, when Ukey is unplugged from the computer, the service program S monitors the Ukey unplugging event and communicates with the hard disk firmware S_F to confirm whether the P_A partition needs to be set to a hidden state. If it needs to be hidden, the partition hidden state is set according to the partition hiding information in the hard disk firmware S_F.
[0097] The automatic display and hiding partition method provided in this embodiment uses a service program to determine whether there is a binding relationship between the auxiliary verification device and the hard disk. Only when there is a binding relationship between the auxiliary verification device and the hard disk, the hidden partition is displayed, avoiding the use of a non-binding auxiliary verification device to display the hidden partition, and further improving the security of partition display and hiding. By using the binding data to determine whether it can be transmitted through the interface in the hard disk firmware, it is determined whether there is a binding relationship between the auxiliary verification device and the hard disk, providing data support for the subsequent hiding and display functions. By automatically hiding the partition when the auxiliary verification device is unplugged, the security of partition hiding is further improved, and the user experience is further improved. The use of an auxiliary verification device based on a USB interface bus is more suitable for partition protection of computer equipment, with a wide range of application scenarios and easier product control.
[0098] In this embodiment, a device for automatically displaying and hiding partitions is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0099] This embodiment provides a device for automatically displaying and hiding partitions, such as Figure 5 As shown, including:
[0100] The partition determination module 501 is used to determine the target partition in the hard disk of the computer device using the desktop application. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0101] The monitoring module 502 is used to determine whether the auxiliary verification device is inserted. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0102] The binding relationship establishment module 503 is used to establish a binding relationship between the auxiliary verification device and the hard disk through the communication between the desktop application, the service program, the hard disk and the auxiliary verification device when the auxiliary verification device is inserted. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0103] The partition display and hiding module 504 is used to enable the automatic hiding function for the target partition based on the binding relationship and use the desktop application, and write the partition hiding information corresponding to the target partition into the hard disk, so that the target partition is displayed according to the partition hiding information when the auxiliary verification device is inserted, and / or the target partition is hidden according to the partition hiding information when the auxiliary verification device is unplugged. For details, please refer to Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0104] In some optional implementations, the auxiliary verification device includes auxiliary firmware, and the hard disk includes hard disk firmware. A binding relationship between the auxiliary verification device and the hard disk is established through communication between the desktop application, the service program, the hard disk and the auxiliary verification device. The binding relationship establishment module 503 includes:
[0105] The binding data writing unit is used to communicate with the auxiliary firmware through the desktop application using the service program, and write the binding data to the auxiliary firmware through the firmware interface of the auxiliary verification device.
[0106] The binding relationship establishing unit is used to communicate with the hard disk firmware using the service program, write binding data into the hard disk firmware, and establish a binding relationship between the current auxiliary verification device and the current hard disk.
[0107] In some optional implementations, the partition display and hiding module 504 includes:
[0108] The binding relationship judgment unit is used to use the service program to communicate with the hard disk firmware when the current auxiliary verification device is inserted, and based on the partition hidden information, judge whether there is a binding relationship between the current auxiliary verification device and the current hard disk.
[0109] The partition display unit is used to set the hidden target partition to a display state by using a service program when the current auxiliary verification device is bound to the current hard disk.
[0110] In some optional implementations, the binding relationship determination unit includes:
[0111] The data reading subunit is used to read the binding data in the auxiliary firmware through the interface of the auxiliary firmware.
[0112] The binding verification subunit is used to call the interface of the hard disk firmware, transfer the binding data to the hard disk firmware, and verify whether the binding data exists in the hard disk firmware.
[0113] The verification pass subunit is used to determine whether a binding relationship exists between the current auxiliary verification device and the current hard disk when the binding data exists in the hard disk firmware.
[0114] The verification failed subunit is used to determine that there is no binding relationship between the current auxiliary verification device and the current hard disk when the binding data does not exist in the hard disk firmware.
[0115] In some optional implementations, the partition display and hiding module 504 includes:
[0116] The hidden judgment unit is used to judge whether to set the target partition to a hidden state by using the service program to communicate with the hard disk firmware when the current auxiliary verification device is unplugged.
[0117] The partition hiding unit is used to automatically hide the target partition through a service program based on the partition hiding information when determining to set the target partition to a hidden state.
[0118] In some optional implementations, the auxiliary verification device is an auxiliary verification device based on a USB interface bus.
[0119] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0120] The automatic display and hiding partition device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0121] The embodiment of the present invention also provides a computer device having the above Figure 5 The automatic display and hiding of partition devices is shown.
[0122] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0123] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0124] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0125] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0126] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0127] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0128] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0129] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0130] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0131] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for automatically displaying and hiding partitions, applied to computer equipment, characterized in that: The method comprises: Using the desktop application, locate the target partition in the hard disk of the computer device; Determine whether the auxiliary verification device is inserted; When the auxiliary verification device is inserted, a binding relationship between the auxiliary verification device and the hard disk is established through communication between the desktop application, the service program, the hard disk and the auxiliary verification device; Based on the binding relationship, the desktop application is used to enable the automatic hiding function for the target partition, and the partition hiding information corresponding to the target partition is written to the hard disk, so that when the auxiliary verification device is inserted, the target partition is displayed according to the partition hiding information, and / or when the auxiliary verification device is unplugged, the target partition is hidden according to the partition hiding information.
2. The method according to claim 1, characterized in that The auxiliary verification device includes auxiliary firmware, the hard disk includes hard disk firmware, and the binding relationship between the auxiliary verification device and the hard disk is established through the communication relationship between the desktop application, the service program, the hard disk and the auxiliary verification device, including: Through the desktop application, the service program is used to communicate with the auxiliary firmware, and the binding data is written to the auxiliary firmware through the firmware interface of the auxiliary verification device; The service program is used to communicate with the hard disk firmware, and binding data is written into the hard disk firmware to establish a binding relationship between the current auxiliary verification device and the current hard disk.
3. The method according to claim 2, characterized in that The displaying the target partition according to the partition hiding information when the auxiliary verification device is inserted includes: When the current auxiliary verification device is inserted, the service program is used to communicate with the hard disk firmware, and based on the partition hidden information, it is determined whether there is a binding relationship between the current auxiliary verification device and the current hard disk; When the current auxiliary verification device is bound to the current hard disk, the service program is used to set the hidden target partition to a display state.
4. The method according to claim 3, characterized in that The determining whether there is a binding relationship between the current auxiliary verification device and the current hard disk includes: Reading the binding data in the auxiliary firmware through the interface of the auxiliary firmware; Calling the interface of the hard disk firmware, transferring the binding data into the hard disk firmware, and verifying whether the binding data exists in the hard disk firmware; When the binding data exists in the hard disk firmware, determining that a binding relationship exists between the current auxiliary verification device and the current hard disk; When the binding data does not exist in the hard disk firmware, it is determined that there is no binding relationship between the current auxiliary verification device and the current hard disk.
5. The method according to claim 2, characterized in that: The step of hiding the target partition according to the partition hiding information when the auxiliary verification device is unplugged includes: When the current auxiliary verification device is unplugged, the service program is used to communicate with the hard disk firmware to determine whether to set the target partition to a hidden state; When it is determined to set the target partition to a hidden state, the target partition is automatically hidden by the service program based on the partition hiding information.
6. The method according to claim 1, characterized in that The auxiliary verification device is an auxiliary verification device based on a USB interface bus.
7. An automatic display and hiding partition device, characterized in that: The device comprises: A partition determination module, used to determine a target partition in a hard disk of a computer device using a desktop application; A monitoring module, used to determine whether the auxiliary verification device is inserted; A binding relationship establishing module, used to establish a binding relationship between the auxiliary verification device and the hard disk through the communication between the desktop application, the service program, the hard disk and the auxiliary verification device when the auxiliary verification device is inserted; A partition display and hiding module is used to enable the automatic hiding function for the target partition based on the binding relationship and using the desktop application, and write the partition hiding information corresponding to the target partition into the hard disk, so that when the auxiliary verification device is inserted, the target partition is displayed according to the partition hiding information, and / or when the auxiliary verification device is unplugged, the target partition is hidden according to the partition hiding information.
8. A computer device, characterized in that: include: 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 method for automatically displaying and hiding partitions according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for automatically displaying and hiding partitions according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the method for automatically displaying and hiding partitions according to any one of claims 1 to 6.
