Hard disk state switching method, image forming device and storage medium
Through the hard disk state switching method, the problem of incompatibility of encrypted hard disks in the image forming device is solved, and the cross-device use of hard disks is realized, reducing costs and improving user experience.
Patent Information
- Application Number
- CN202411390174.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-17
AI Technical Summary
The encrypted hard disks of existing image forming devices are incompatible when connected to other devices, resulting in users needing to purchase certified secure hard disks, increasing costs and reducing user experience.
It provides a hard disk status switching method, allowing users to convert matching unencrypted hard disks into encrypted hard disks or convert encrypted hard disks into unencrypted hard disks, judge the matching status by reading hard disk information, and switch status after the server is authorized.
It realizes cross-device compatibility of hard disks, reduces user purchase costs, improves hard disk usage and security, and reduces resource waste.
Smart Images

Figure CN119323021A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image forming devices, and in particular to a hard disk state switching method, an image forming device and a storage medium. Background Art
[0002] When the hard disk of the current image forming device is encrypted, if the user wants to connect the hard disk to other image forming devices, the encryption will cause the hard disk to be unrecognizable by other image forming devices and cannot be used in a compatible manner. The user can only purchase a secure hard disk certified by other image forming devices again, which increases the cost. Even if the user wants to use the encrypted hard disk that has been used in an image forming device as an ordinary hard disk without encryption in other image forming devices, the user can only find a professional to decrypt the encrypted hard disk and can only connect it to other image forming devices for successful use after the decryption is successful, which undoubtedly reduces the user experience. Summary of the invention
[0003] In view of this, the present application provides a hard disk status switching method, an image forming device and a storage medium, allowing the user to convert an unencrypted hard disk matching the image forming device into an encrypted hard disk, or to convert an encrypted hard disk matching the image forming device into an unencrypted hard disk, so that a hard disk that meets the authentication conditions can be compatible with different image forming devices, reducing the user's purchase cost and maximizing the use of the hard disk. At the same time, the user can freely set the security of the hard disk according to their needs, thereby improving the user experience and reducing the waste of hard disk resources.
[0004] In a first aspect, an embodiment of the present invention provides a hard disk status method, which is applied to an image forming device, comprising:
[0005] Reading hard disk information of a target hard disk to determine a hard disk status of the target hard disk;
[0006] When the hard disk status is characterized as the target hard disk matching the image forming device, displaying hard disk status switching prompt information;
[0007] In response to a confirmation instruction of the hard disk status switching prompt information, sending an authorization request to a target server connected to the image forming device;
[0008] In response to the authorization instruction of the authorization request fed back by the target server, the hard disk state of the target hard disk is switched.
[0009] In a possible implementation, the hard disk information includes hard disk model information, and reading the hard disk information of the target hard disk to determine the hard disk status of the target hard disk includes:
[0010] Read the hard disk model information of the target hard disk;
[0011] Determining whether the hard disk model information matches a pre-stored authentication list;
[0012] If the hard disk signal information matches the pre-stored authentication list, the hard disk status of the target hard disk is characterized as the target hard disk matching the image forming device;
[0013] If the hard disk signal information does not match the pre-stored authentication list, the hard disk status of the target hard disk indicates that the target hard disk does not match the image forming device.
[0014] In a possible implementation, the hard disk information further includes master boot sector information of the target hard disk, and when the hard disk status is characterized as matching the target hard disk with the image forming device, displaying the hard disk status switching prompt information includes:
[0015] Reading the master boot sector information of the target hard disk;
[0016] Determining whether the master boot sector information includes preset information;
[0017] If the master boot sector information includes the preset information, determining that the hard disk state of the target hard disk is a non-secure hard disk matching the image forming device, and displaying a first hard disk state switching prompt information for switching from the non-secure hard disk to the secure hard disk;
[0018] If the master boot sector information does not contain the preset information, and the master boot sector information contains the preset information after being decrypted by a preset decryption algorithm, the hard disk status of the target hard disk is determined to be a secure hard disk matching the image forming device, and a second hard disk status switching prompt information is displayed from the secure hard disk to the non-secure hard disk.
[0019] In a possible implementation, the displaying of hard disk status switching prompt information further includes:
[0020] Determine a hard disk read / write state of the image forming device, wherein the hard disk read / write state includes a secure mode or a non-secure mode; the secure mode is used to perform read / write operations on the secure hard disk, and the non-secure mode is used to perform read / write operations on the non-secure hard disk;
[0021] Display first hard disk status switching prompt information corresponding to the hard disk read / write status; or display second hard disk status switching prompt information corresponding to the hard disk read / write status.
[0022] In a possible implementation, in response to a confirmation instruction of the hard disk status switching prompt information, sending an authorization request to a target server connected to the image forming apparatus includes:
[0023] Displaying a confirmation option and a rejection option corresponding to the hard disk status switching prompt information;
[0024] When a trigger signal of the confirmation option is detected, a first authorization request is sent to the target server to switch the target hard disk from the non-secure hard disk to the secure hard disk; or, a second authorization request is sent to the target server to switch the target hard disk from the secure hard disk to the non-secure hard disk.
[0025] In a possible implementation, the switching of the hard disk state of the target hard disk in response to the authorization instruction of the authorization request fed back by the target server includes:
[0026] In response to the authorization instruction for the first authorization request, encryption processing is performed on the target hard disk to switch the target hard disk to the secure hard disk; or, in response to the authorization instruction for the second authorization request, decryption processing is performed on the target hard disk to switch the target hard disk to the non-secure hard disk.
[0027] In a possible implementation, when the hard disk status is characterized as the target hard disk not matching the image forming device, the method further includes:
[0028] Reading the master boot sector information of the target hard disk;
[0029] Determining whether the master boot sector information is encrypted information;
[0030] If the master boot sector information is not encryption information, the hard disk status of the target hard disk is determined to be a non-encrypted common hard disk that does not match the image forming device, and a prompt message is displayed that the target hard disk is available but cannot be encrypted.
[0031] In a possible implementation manner, the master boot sector information is encrypted information, and the method further includes:
[0032] It is determined that the hard disk status of the target hard disk is an encrypted common hard disk that does not match the image forming device, and a prompt message indicating that the target hard disk is unavailable is displayed.
[0033] In a second aspect, an embodiment of the present invention provides an image forming device, including:
[0034] A hard disk status determination module, used for reading hard disk information of a target hard disk to determine the hard disk status of the target hard disk;
[0035] A display module, configured to display hard disk status switching prompt information when the hard disk status is characterized as the target hard disk matching the image forming device;
[0036] a communication module, configured to send an authorization request to a target server connected to the image forming device in response to a confirmation instruction of the hard disk status switching prompt information;
[0037] The execution module is used to switch the hard disk state of the target hard disk in response to the authorization instruction of the authorization request fed back by the target server.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0039] at least one processor; and
[0040] at least one memory in communication with the processor, wherein:
[0041] The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the first aspect.
[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method described in the first aspect.
[0043] In the embodiment of the present invention, the hard disk information is read to determine whether the hard disk is a certified hard disk that matches the image forming device. The hard disk state conversion function is provided for the certified hard disk. Thus, the certified non-encrypted secure hard disk is converted into an encrypted secure hard disk to prevent data leakage and improve the confidentiality of the hard disk data. Alternatively, the certified encrypted secure hard disk is converted into a non-encrypted secure hard disk to ensure that the hard disk can be recognized by other printers and improve the compatibility of the hard disk. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0045] Figure 1 A flowchart of a hard disk state switching method provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of a master boot sector information identification process provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the effect of encrypting EBR logical partition information provided by an embodiment of the present invention;
[0048] Figure 4A schematic diagram of a hard disk read and write state provided by an embodiment of the present invention;
[0049] Figure 5 A schematic structural diagram of an image forming device provided by an embodiment of the present invention;
[0050] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0052] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0053] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0054] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0055] In order to improve the compatibility of a hard disk in different image forming devices and the confidentiality of data in the hard disk, an embodiment of the present invention provides a hard disk state switching method, a hard disk, and an image forming device. Figure 1 The following is a flow chart of a hard disk state switching method provided by an embodiment of the present invention. Figure 1 As shown in , the method is applied to an image forming device, comprising:
[0056] Step 101 , reading hard disk information of a target hard disk to determine the hard disk status of the target hard disk.
[0057] Among them, the hard disk status is mainly used to characterize whether the target hard disk is a hard disk authenticated by the image forming device, and whether the target hard disk is in an encrypted state. When the target hard disk is connected to the image forming device, the image forming device reads the hard disk information of the target hard disk to determine whether the target hard disk is a hard disk authenticated by the image forming device. When the target hard disk is an authenticated hard disk, the target hard disk matches the image forming device. When the target hard disk is not an authenticated hard disk, the target hard disk does not match the image forming device. The image forming device can convert the hard disk status of the matched target hard disk. Among them, the image forming device can be a printer, a copier, a scanner, a plotter, a printer-copy-scanner all-in-one machine and other devices.
[0058] In some embodiments, the image forming device can determine whether the hard disk is a certified hard disk that matches the image forming device by reading the hard disk model information of the target hard disk. Specifically, the image forming device reads the hard disk model information of the target hard disk. Then, it is determined whether the hard disk model information matches the pre-stored certification list. Among them, the pre-stored certification list contains multiple certified hard disk model information. Optionally, the multiple certified hard disk model information can be implemented in the form of identity document (ID) of the hard disk model, and the hard disk model information of the read target hard disk is also in the form of the hard disk model ID. If the hard disk model information of the target hard disk is consistent with any of the certified hard disk model information in the pre-stored certification list, it is determined that the hard disk model information of the target hard disk matches the pre-stored certification list. Then the hard disk state of the target hard disk is characterized as the target hard disk matching the image forming device. That is, the target hard disk is a certified hard disk that matches the image forming device. The certified hard disk can be divided into an unencrypted non-secure hard disk and an encrypted secure hard disk based on whether the hard disk is encrypted or not. The secure hard disk is further divided into a first-level encrypted secure hard disk and a second-level encrypted secure hard disk based on the encryption level. If the hard disk model information of the target hard disk does not match the pre-stored authentication list, the hard disk status of the target hard disk is characterized as the target hard disk does not match the image forming device. That is, the target hard disk is a non-authenticated hard disk that does not match the image forming device, that is, a common hard disk. The common hard disk is divided into an unencrypted non-encrypted common hard disk and an encrypted encrypted common hard disk based on whether the hard disk is encrypted or not.
[0059] Optionally, the authentication list can also be obtained through a network. For example, the image forming device can obtain the authentication list by sending an authentication list acquisition request to the connected target server. Alternatively, the image forming device sends the hard disk model information of the target hard disk to the connected target server, and the target server determines whether the target hard disk matches the image forming device based on the hard disk model information sent by the image forming device, and feeds back the judgment result to the image forming device.
[0060] Step 102 : When the hard disk status indicates that the target hard disk matches the image forming device, hard disk status switching prompt information is displayed.
[0061] Among them, the master boot sector information of the target hard disk can be read first to determine whether the target hard disk is in an encrypted state, and then the corresponding hard disk state switching prompt information is displayed according to the encryption state of the target hard disk. Specifically, whether the master boot sector is in an encrypted state can be determined by determining whether the master boot sector information contains preset information. Among them, the preset information is fixed data such as the start byte or the end byte in the master boot sector. Such data often has a fixed position and a fixed value. Therefore, it is possible to determine whether the master boot sector information is encrypted data by determining whether there is preset data in the master boot sector. If the master boot sector information contains preset information, it means that the image forming device can read the complete master boot sector information, so the partition address and partition size of the target hard disk can be determined, and then the target hard disk is determined to be an unencrypted non-secure hard disk. Among them, the non-secure hard disk means that the target hard disk is an unencrypted hard disk. Then the hard disk state of the target hard disk is a non-secure hard disk that matches the image forming device. That is, the target hard disk is an unencrypted hard disk authenticated by the image forming device, and at this time, the first hard disk state switching prompt information from the non-secure hard disk to the secure hard disk can be displayed for the user to confirm whether to start the hard disk encryption function. The user can determine whether to encrypt the target hard disk according to usage requirements to switch the target hard disk from a non-secure hard disk to a secure hard disk.
[0062] If the master boot sector information does not contain the preset information, and the master boot sector information contains the preset information after being decrypted by the preset decryption algorithm, it can be determined that the hard disk status of the target hard disk is an encrypted secure hard disk that matches the image forming device. The encrypted secure hard disk means that the target hard disk is an encrypted hard disk that is authenticated by the image forming device. At this time, a second hard disk status prompt message can be displayed to switch from a secure hard disk to a non-secure hard disk, prompting the user whether to start the hard disk decryption function.
[0063] For example, the image forming device reads the first 512 bytes of data of the master boot sector of the target hard disk. Since the master boot sector of the current hard disk contains 512 bytes of data, and the 511th byte and the 512th byte are end markers, the value of the 511th byte is fixed to 55, and the data of the 512th byte is fixed to AA. Therefore, it can be determined whether the 511th byte (address is 0x1 fe) and the 512th byte (address is 0x1 ff) are 55 and AA. If so, it means that the master boot sector of the target hard disk can be unencrypted, and the hard disk whose master boot sector information can be read, and then it is determined that the hard disk is an unencrypted non-secure hard disk. At this time, a prompt message "The currently connected hard disk is a non-secure hard disk, do you want to apply for encryption conversion to a secure hard disk" (i.e., the first hard disk state switching prompt message) can be displayed. If the data of the 511th byte and the 512th byte are not 55 and AA, and the 511th byte and the 512th byte are decrypted by the preset decryption algorithm to be 55 and AA, it means that the target hard disk is a secure hard disk encrypted by a preset encryption algorithm matching the preset decryption algorithm. At this time, a prompt message "The currently connected hard disk is a secure hard disk, do you want to apply for decryption and conversion to a non-secure hard disk" may be displayed (ie, the second hard disk status switching prompt message).
[0064] Figure 2 The present invention provides a schematic diagram of a master boot sector information identification process, which determines whether a target hard disk is a secure hard disk by identifying the master boot sector. Figure 3 As shown in , this step includes:
[0065] Step 201, read the first 512 bytes of master boot sector information of the target hard disk.
[0066] Step 202, determine whether the data of the 511th byte and the 512th byte are 55 and AA respectively. If yes, execute step 203. If no, execute step 204.
[0067] Step 203: determine that the target hard disk is a non-secure hard disk.
[0068] If the 511th byte data and the 512th byte data of the master boot sector information are read as 55 and AA respectively, it means that the master boot sector information is unencrypted plain text data. Therefore, the target hard disk is an unencrypted non-secure hard disk.
[0069] Step 204, determine whether the data of the 511th byte and the 512th byte of the decrypted master boot sector information are 55 and AA. If yes, execute step 205. If not, execute step 206.
[0070] Step 205: Determine whether the target hard disk is a secure hard disk that has been encrypted.
[0071] When the 511th byte data and the 512th byte data of the master boot sector information are not 55 and AA, but are 55 and AA after being decrypted using a preset decryption algorithm, it means that the target hard disk has been encrypted. Therefore, the target hard disk is a secure hard disk.
[0072] Step 206, determining that the target hard disk is an unrecognizable hard disk.
[0073] If the 511th and 512th bytes of the master boot sector information are not 55 and AA, and are not 55 and AA after decryption, it means that the target hard disk uses an unknown encryption method. Under the premise that the master boot sector of the target hard disk cannot be read, the image forming device cannot identify the sector size and sector address, and therefore cannot perform read and write operations on the target hard disk.
[0074] In some embodiments, the image forming device performs read and write operations on a secure hard disk in a safe mode to ensure the security of stored data. And, performs read and write operations on a non-secure hard disk in a non-secure mode. Therefore, different hard disk status switching prompt information can also be displayed to the user according to the current hard disk read and write status of the image forming device. Specifically, the hard disk read and write status of the image forming device can be determined first, and the hard disk read and write status includes a safe mode and a non-safe mode. The safe mode is used to perform read and write operations on a secure hard disk. The non-safe mode is used to perform read and write operations on a non-secure hard disk. When the target hard disk is a non-secure hard disk, a first hard disk status switching prompt information corresponding to the hard disk read and write status can be displayed. When the target hard disk is a secure hard disk, a second hard disk status switching prompt information corresponding to the hard disk read and write status can be displayed to enable the user to more clearly understand the status of the image forming device.
[0075] For example, if the hard disk read / write status of the image forming device is in non-secure mode, when the hard disk status of the target hard disk is a secure hard disk that matches the image forming device, it can display “The currently connected hard disk is a secure hard disk. Do you want to apply for decryption to convert it to a non-secure hard disk and use it in non-secure mode?”. If the hard disk status of the target hard disk is a non-secure hard disk that matches the image forming device, it can display “The currently connected hard disk is a non-secure hard disk. Do you want to apply for encryption to convert it to a secure hard disk and use it in secure mode?”.
[0076] Step 103 , in response to a confirmation instruction for the hard disk status switching prompt information, sending an authorization request to a target server to which the image forming apparatus is connected.
[0077] When displaying the first hard disk status switching prompt information or the second hard disk status switching prompt information, the image forming device may also display the corresponding confirmation option and the rejection option. When the user selects the confirmation option, the image forming device detects the trigger signal of the confirmation option, determines that the confirmation instruction is received, and sends an authorization request to the target server connected to the image forming device. When the target hard disk is a non-secure hard disk that matches the image forming device, the first hard disk status switching prompt information is displayed, and the confirmation option and the rejection option are displayed. When the user selects the confirmation option, the first authorization request to switch the target hard disk from a non-secure hard disk to a secure hard disk can be sent to the target server. When the target hard disk is a secure hard disk that matches the image forming device, the second hard disk status prompt information can be displayed, and the confirmation option and the rejection option are displayed. When the user selects the confirmation option, the second authorization request to switch the target hard disk from a secure hard disk to a non-secure hard disk can be sent to the target server.
[0078] Step 104: In response to the authorization instruction of the authorization request fed back by the target server, the hard disk state of the target hard disk is switched.
[0079] When the target hard disk is a non-secure hard disk that matches the image forming device, the image forming device performs encryption processing on the target hard disk in response to the authorization instruction for the first authorization request fed back by the target server to switch the target hard disk to a secure hard disk. When the target hard disk is a secure hard disk that matches the image forming device, the image forming device performs decryption processing on the target hard disk in response to the authorization instruction for the second authorization request fed back by the target server to switch the target hard disk to a non-secure hard disk.
[0080] Among them, the encryption processing performed on the target hard disk can be realized by encrypting the partition description information of the target hard disk, which can ensure that the target hard disk cannot normally identify the partition after being connected to other devices, thereby achieving the effect of data protection. Specifically, the partition type of the target hard disk can be identified first. The partition type includes two types: master boot record (MBR, Master Boot Record, MBR) type and globally unique identifier partition table (GUID Partition Table, GPT) type. Different encryption methods need to be used for two different partition types. For the MBR partition type, the logical partition information of the main partition table (i.e., MBR logical partition information) of the target hard disk and the logical partition information of the extended partition (Extended Boot Record, EBR) can be encrypted and copied. For the GPT partition type, the protective MBR, primary partition header, partition table item collection, backup partition table item collection and backup partition header of the target hard disk can be encrypted and copied.
[0081] In the embodiment of the present invention, for a target hard disk of MBR partition type, not only the MBR logical partition information is encrypted, but also the EBR logical partition information is encrypted, thereby increasing the security of the master boot sector information. Figure 3 A schematic diagram of the effect of encrypting EBR logical partition information provided by an embodiment of the present invention. Figure 3 As shown in . After the MBR logical partition information is encrypted, if the EBR logical partition information is not encrypted, the EBR logical partition information can be found by searching the 55AA data. Then, the partition table information of an extended partition is obtained based on the EBR logical partition information. The partition address and partition size of the extended partition can be determined based on the partition table information. And the partition tables of other partitions can be found through the partition table information of the extended partition. Then, the encryption is cracked by tampering with the Extended partition table data. In the embodiment of the present invention, the EBR logical partition information is also encrypted, so it is impossible to find any partition table information by searching the 55AA data, and thus it is impossible to determine the address and partition size of any partition.
[0082] In some embodiments, after completing the encryption of the partition description information, secondary encryption can be performed, and the secondary encryption is mainly used to encrypt the files stored in the target hard disk. Specifically, after completing the encryption of the partition description information, a prompt message is displayed asking whether to encrypt the files stored in the target hard disk. After the user confirms to perform secondary encryption, the files stored in the target hard disk can be encrypted using an encryption algorithm such as OpenSS 1.
[0083] The decryption process of the target hard disk can be realized by decrypting and rewriting the partition description information of the target hard disk. Among them, it is possible to first read whether the files stored in the target hard disk can be read normally. If it can, it means that the target hard disk has not been encrypted twice, and the partition description information can be decrypted and rewritten. If it cannot be read, it means that the target hard disk has been encrypted twice, so it is necessary to first decrypt the files stored in the target hard disk and then decrypt and rewrite the partition description information.
[0084] Figure 4 A schematic diagram of a hard disk read and write state provided by an embodiment of the present invention. Figure 4As shown in , after the image forming device identifies the target hard disk. The corresponding security mode or non-security mode is used to read and write the target hard disk according to whether the target hard disk is encrypted. Specifically, if only the master boot sector information of the target hard disk is encrypted, it means that the encryption state of the target hard disk is a first-level encryption state that has been encrypted once. If the master boot sector information and the file data stored in the target hard disk are also encrypted, it means that the encryption state of the target hard disk is a second-level encryption state that has been encrypted twice. The image forming device reads and writes the target hard disk in the first-level encryption state and the second-level encryption state in the security mode. If the master boot sector information is not encrypted, the encryption state of the target hard disk is an unencrypted state. The image forming device reads and writes the target hard disk in a non-secure state.
[0085] In some embodiments, when the hard disk model information of the target hard disk does not match the certification list, it means that the target hard disk is a non-certified hard disk that does not match the image forming device. At this time, the master boot sector information of the target hard disk can be read first to determine whether the target hard disk is an encrypted hard disk. Specifically, it can be determined whether its master boot sector information is encrypted information. Among them, it can be determined whether the read master boot sector information contains preset information. That is, it is determined whether the data of the 511th byte of the master boot sector information of the target hard disk is 55, and whether the data of the 512th byte is AA. If so, it means that the master boot sector information of the target hard disk has not been encrypted, is plain text data, and can be read normally, then the hard disk status of the target hard disk is a non-encrypted hard disk that does not match the image forming device. Since the target hard disk has not been encrypted, normal read and write operations can be performed, and at this time, a prompt message that the target hard disk is available but cannot be encrypted can be displayed. Specifically, a prompt message "The current hard disk is a non-certified hard disk and cannot provide encryption services. Do you want to force the hard disk to be used in non-safe mode" can be displayed. After the user confirms, the image forming device switches from safe mode to non-safe mode and performs read and write operations on the target hard disk.
[0086] If the master boot sector information is encrypted information, it means that the master boot sector does not contain preset information. That is, the data of the 511th byte of the master boot sector information is not 55, and the data of the 512th byte is not AA. This means that the master boot sector information of the target hard disk has been encrypted by other encryption algorithms and is ciphertext data. The image forming device cannot recognize the partition address and partition size of the target hard disk, so it cannot read and write to the target hard disk. Therefore, it can be determined that the hard disk status of the target hard disk is an encrypted hard disk that does not match the image forming device (i.e. Figure 2 The target hard disk is not available.
[0087] Among them, in addition to the master boot sector, the target hard disk also includes a data storage partition and a conversion partition. The data storage partition is used to store data or files saved by the user. The conversion partition is mounted during the hard disk state switching process and is used to save temporary hard disk state switching data, and the conversion partition occupies 10% of the total capacity of the hard disk. Since the master boot sector and the data or files stored in the hard disk need to be encrypted or decrypted during the hard disk state switching process, the conversion partition is required to store the temporary data generated during the encryption or encryption process.
[0088] Corresponding to the above hard disk state switching method, an embodiment of the present invention provides an image forming device. Figure 5 FIG. 1 is a schematic diagram of the structure of an image forming device provided by an embodiment of the present invention. Figure 5 As shown in , the image forming apparatus includes: a hard disk status determining module 501 , a display module 502 , a communication module 503 and an execution module 504 .
[0089] The hard disk status determination module 501 is used to read the hard disk information of the target hard disk to determine the hard disk status of the target hard disk.
[0090] The display module 502 is used to display hard disk status switching prompt information when the hard disk status is characterized as the target hard disk matching the image forming device.
[0091] The communication module 503 is used to send an authorization request to a target server connected to the image forming apparatus in response to a confirmation instruction of the hard disk status switching prompt information.
[0092] The execution module 504 is used to switch the hard disk state of the target hard disk in response to the authorization instruction of the authorization request fed back by the target server.
[0093] Figure 5 The image forming apparatus provided in the illustrated embodiment can be used to implement the present invention. Figures 1 to 4 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0094] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the electronic device may include at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions of this specification. Figures 1 to 4 The embodiment shown provides a hard disk state switching method.
[0095] like Figure 6As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors 610, communication interface 620 and memory 630, and a communication bus 640 connecting different system components (including memory 630, communication interface 620 and processor 610).
[0096] The communication bus 640 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnection (PCI) bus.
[0097] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0098] The memory 630 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present specification.
[0099] A program / utility having a set (at least one) of program modules may be stored in memory 630, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.
[0100] The processor 610 executes various functional applications and data processing by running the programs stored in the memory 630, such as implementing the Figures 1 to 4 The embodiment shown provides a hard disk state switching method.
[0101] The embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figures 1 to 4 The embodiment shown provides a hard disk state switching method.
[0102] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasab le Programmab le ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0103] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0105] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0106] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.
[0107] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0108] It should be noted that the devices involved in the embodiments of this specification may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 displays, MP4 displays, etc.
[0109] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0111] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a connector, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.
[0112] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
[0113] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A hard disk state switching method, characterized in that: Applicable to image forming devices, including: Reading hard disk information of a target hard disk to determine a hard disk status of the target hard disk; When the hard disk status is characterized as the target hard disk matching the image forming device, displaying hard disk status switching prompt information; In response to a confirmation instruction of the hard disk status switching prompt information, sending an authorization request to a target server connected to the image forming device; In response to the authorization instruction of the authorization request fed back by the target server, the hard disk state of the target hard disk is switched.
2. The method according to claim 1, characterized in that The hard disk information includes hard disk model information, and the step of reading the hard disk information of the target hard disk to determine the hard disk status of the target hard disk includes: Read the hard disk model information of the target hard disk; Determining whether the hard disk signal information matches a pre-stored authentication list; If the hard disk model information matches the pre-stored authentication list, the hard disk status of the target hard disk is characterized as the target hard disk matching the image forming device; If the hard disk signal information does not match the pre-stored authentication list, the hard disk status of the target hard disk indicates that the target hard disk does not match the image forming device.
3. The method according to claim 1 or 2, characterized in that: The hard disk information also includes the master boot sector information of the target hard disk. When the hard disk status is characterized as the target hard disk matching the image forming device, the hard disk status switching prompt information is displayed, including: Reading the master boot sector information of the target hard disk; Determining whether the master boot sector information includes preset information; If the master boot sector information includes the preset information, determining that the hard disk state of the target hard disk is a non-secure hard disk matching the image forming device, and displaying a first hard disk state switching prompt information for switching from the non-secure hard disk to the secure hard disk; If the master boot sector information does not contain the preset information, and the master boot sector information contains the preset information after being decrypted by a preset decryption algorithm, the hard disk status of the target hard disk is determined to be a secure hard disk matching the image forming device, and a second hard disk status switching prompt information is displayed from the secure hard disk to the non-secure hard disk.
4. The method according to claim 3, characterized in that The display of hard disk status switching prompt information also includes: Determine a hard disk read / write state of the image forming device, wherein the hard disk read / write state includes a secure mode or a non-secure mode; the secure mode is used to perform read / write operations on the secure hard disk, and the non-secure mode is used to perform read / write operations on the non-secure hard disk; Display first hard disk status switching prompt information corresponding to the hard disk read / write status; or display second hard disk status switching prompt information corresponding to the hard disk read / write status.
5. The method according to claim 1 or 4, characterized in that: The step of sending an authorization request to a target server connected to the image forming apparatus in response to a confirmation instruction of the hard disk status switching prompt information comprises: Displaying a confirmation option and a rejection option corresponding to the hard disk status switching prompt information; When a trigger signal of the confirmation option is detected, a first authorization request is sent to the target server to switch the target hard disk from the non-secure hard disk to the secure hard disk; or, a second authorization request is sent to the target server to switch the target hard disk from the secure hard disk to the non-secure hard disk.
6. The method according to claim 5, characterized in that The step of switching the hard disk state of the target hard disk in response to the authorization instruction of the authorization request fed back by the target server includes: In response to the authorization instruction for the first authorization request, encryption processing is performed on the target hard disk to switch the target hard disk to the secure hard disk; or, in response to the authorization instruction for the second authorization request, decryption processing is performed on the target hard disk to switch the target hard disk to the non-secure hard disk.
7. The method according to claim 1, characterized in that When the hard disk status is characterized as the target hard disk not matching the image forming device, the method further includes: Reading the master boot sector information of the target hard disk; Determining whether the master boot sector information is encrypted information; If the master boot sector information is not encryption information, the hard disk status of the target hard disk is determined to be a non-encrypted common hard disk that does not match the image forming device, and a prompt message is displayed that the target hard disk is available but cannot be encrypted.
8. The method according to claim 7, characterized in that The master boot sector information is encrypted information, and the method further includes: It is determined that the hard disk status of the target hard disk is an encrypted common hard disk that does not match the image forming device, and a prompt message indicating that the target hard disk is unavailable is displayed.
9. An image forming device, characterized in that: include: A hard disk status determination module, used for reading hard disk information of a target hard disk to determine the hard disk status of the target hard disk; A display module, configured to display hard disk status switching prompt information when the hard disk status is characterized as the target hard disk matching the image forming device; a communication module, configured to send an authorization request to a target server connected to the image forming device in response to a confirmation instruction of the hard disk status switching prompt information; The execution module is used to switch the hard disk state of the target hard disk in response to the authorization instruction of the authorization request fed back by the target server.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 8.