CN104573574B - SATA hard disc Write-protection method and system - Google Patents

SATA hard disc Write-protection method and system Download PDF

Info

Publication number
CN104573574B
CN104573574B CN201510043427.4A CN201510043427A CN104573574B CN 104573574 B CN104573574 B CN 104573574B CN 201510043427 A CN201510043427 A CN 201510043427A CN 104573574 B CN104573574 B CN 104573574B
Authority
CN
China
Prior art keywords
sata
hard disk
operation instruction
write
hard disc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510043427.4A
Other languages
Chinese (zh)
Other versions
CN104573574A (en
Inventor
谢稷宏
朱宏伟
王山水
马淑桂
程春雨
杜琳琳
宣鹏娥
毕向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Archives Science & Tech Inst
Zhejiang Provincial Archives
BEIJING HANLONG SIQI DIGITAL TECHNOLOGY Co Ltd
Original Assignee
Archives Science & Tech Inst
Zhejiang Provincial Archives
BEIJING HANLONG SIQI DIGITAL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Archives Science & Tech Inst, Zhejiang Provincial Archives, BEIJING HANLONG SIQI DIGITAL TECHNOLOGY Co Ltd filed Critical Archives Science & Tech Inst
Priority to CN201510043427.4A priority Critical patent/CN104573574B/en
Publication of CN104573574A publication Critical patent/CN104573574A/en
Application granted granted Critical
Publication of CN104573574B publication Critical patent/CN104573574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/80Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in storage media based on magnetic or optical technology, e.g. disks with sectors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The invention discloses a kind of SATA hard disc Write-protection method and systems, are related to computer technology.It is invented to solve the problem of that software write-protect in the prior art cannot carry out software write-protect just for the boot partition of the non-guide subregion hard disk of hard disk.Technical solution provided in an embodiment of the present invention includes:The hard disk operation instruction that the user terminal that S10, reception connect in advance is sent;S20, judge whether the hard disk operation instruction belongs to write operation instruction according to default write operation standard;If so, executing S30;S30, hard disk operation instruction is filtered, and re-executes the S10.

Description

SATA hard disc Write-protection method and system
Technical field
The present invention relates to computer technology more particularly to a kind of SATA hard disc Write-protection method and systems.
Background technology
Currently, hard disk as large capacity information-storing device be widely applied to all kinds of archives, cultural center, library, The units mechanisms such as the Art Museum, exhibition center and industry data center.To improve the safety of information, bank, digital library, public security The data that proof organ etc. is required to its storage can not be changed, that is, have write-protect.
In the prior art, write-protect is generally carried out to hard disk by software;However, software write-protect is just for the non-of hard disk The boot partition of boot partition, hard disk cannot carry out software write-protect.
Invention content
A kind of SATA hard disc Write-protection method of present invention offer and system can carry out write-protect to entire hard disk.
The present invention solves technical problem and adopts the following technical scheme that:A kind of SATA hard disc Write-protection method, including:S10, it connects Receive the hard disk operation instruction that the user terminal connected in advance is sent;S20, the hard disk operation is judged according to default write operation standard Whether instruction belongs to write operation instruction;If so, executing S30;S30, hard disk operation instruction is filtered, and re-executed described S10。
Optionally, SATA hard disc Write-protection method provided in an embodiment of the present invention, if hard disk operation instruction does not belong to It is instructed in write operation, further includes:S40, hard disk operation instruction is sent to corresponding SATA hard disc, the SATA hard disc is made to hold The row corresponding operation of hard disk operation instruction.
Optionally, SATA hard disc Write-protection method provided in an embodiment of the present invention also wraps between the S10 and S20 It includes:S11, it is determined whether to enable hard disk write-protectings;If opened, the S20 is executed;Otherwise, the S40 is executed.
Optionally, in SATA hard disc Write-protection method provided in an embodiment of the present invention, the S40, including:If S401, The hard disk operation instruction is not write operation instruction, and hard disk operation instruction is stored into pre-set data buffer storage; S402, successively from the data buffer storage call hard disk operation instruction, and by the hard disk operation of calling instruction be sent to it is corresponding SATA hard disc makes the SATA hard disc execute corresponding operation.
Optionally, in SATA hard disc Write-protection method provided in an embodiment of the present invention, the S20, including:S201, to institute It states hard disk operation instruction to be analyzed, obtains corresponding Frame Information Structure FIS;S202, by the Frame Information Structure FIS with it is default Write operation standard is matched, and matching result is obtained;S203 judges whether the hard disk operation instruction belongs to according to matching result Write operation instructs.
The present invention solves technical problem and adopts the following technical scheme that:A kind of SATA hard disc Write-protect system, including:
At least one SATA hard disc, write protector and user terminal;
The write protector includes:At least one first SATA connector, fpga chip and the second SATA connector;It is described extremely Few first SATA connector and second SATA connector are connected with the fpga chip respectively;Each SATA hard disc with one First SATA connector is connected, and the number of the SATA hard disc is corresponding with the number of the first SATA connector;2nd SATA Connector is connected with the user terminal;
The fpga chip, the hard disk operation instruction sent for receiving the user terminal;According to default write operation mark Standard judges whether the hard disk operation instruction belongs to write operation instruction;If so, filtering hard disk operation instruction.
Optionally, SATA hard disc Write-protect system provided in an embodiment of the present invention further includes:
USB-SATA interface convertors, the user terminal is through the USB-SATA interface convertors and the 2nd SATA Connector is connected.
Optionally, USB-SATA interface convertors in SATA hard disc Write-protect system provided in an embodiment of the present invention, including:
USB joint, USB-SATA conversion chips and SATA interface;
The USB joint and the SATA interface are connected with the USB-SATA conversion chips respectively;The SATA interface It is connected with second SATA connector;The USB joint is connected with the user terminal.
The present invention has the advantages that:After user terminal sends out hard disk operation instruction, judge that the hard disk operation refers to Whether order belongs to write operation instruction, and when hard disk operation instruction belongs to write operation instruction, filters hard disk operation instruction, to Realize the write-protect of SATA hard disc.Technical solution provided in an embodiment of the present invention, what can be sent out for user terminal is all hard Disk operational order is judged solve non-guide subregion of the software write-protect in the prior art just for hard disk, and hard disk draws Lead the problem of subregion cannot carry out software write-protect.In addition, the program can also realize the space being hidden in SATA hard disc Write-protect.
Description of the drawings
Fig. 1 is the flow chart one for the SATA hard disc Write-protection method that the embodiment of the present invention 1 provides;
Fig. 2 is the flowchart 2 for the SATA hard disc Write-protection method that the embodiment of the present invention 1 provides;
Fig. 3 is the flow chart for the SATA hard disc Write-protection method that the embodiment of the present invention 2 provides;
Fig. 4 is the structural schematic diagram one for the SATA hard disc Write-protect system that the embodiment of the present invention 3 provides;
Fig. 5 is the structural schematic diagram two for the SATA hard disc Write-protect system that the embodiment of the present invention 3 provides;
Fig. 6 is the structural schematic diagram three for the SATA hard disc Write-protect system that the embodiment of the present invention 3 provides.
Specific implementation mode
Technical scheme of the present invention is further elaborated with reference to embodiment and attached drawing.
Embodiment 1
As shown in Figure 1, a kind of SATA hard disc Write-protection method is present embodiments provided, including:
Step 101, the hard disk operation instruction that the user terminal connected in advance is sent is received.
In the present embodiment, can directly be connected with user terminal, it can also be through USB-SATA interface convertors and user Terminal is connected, and this is no longer going to repeat them.The hard disk operation instruction received by step 101, may belong to access instruction, also may be used To belong to write operation instruction, other instructions are could also belong to, this is not restricted.
Step 102, judge whether hard disk operation instruction belongs to write operation instruction according to default write operation standard.
It in the present embodiment, can be in such a way that step 102 judges whether hard disk operation instruction belongs to write operation instruction To be matched hard disk operation instruction one by one with write operation standard, if successful match, hard disk operation instruction, which belongs to, writes behaviour It instructs.Specifically the step 102 includes:Hard disk operation instruction is analyzed, corresponding Frame Information Structure FIS is obtained;It will Frame Information Structure FIS is matched with default write operation standard, obtains matching result;Judge that hard disk operation refers to according to matching result Whether order belongs to write operation instruction.Particularly, when matching result is successful match, hard disk operation instruction belongs to write operation and refers to It enables;When matching result is that it fails to match, hard disk operation instruction is not belonging to write operation instruction.
In the present embodiment, when determining that hard disk operation instruction belongs to write operation instruction by step 102, step is executed 103。
Step 103, hard disk operation instruction is filtered.
In the present embodiment, it after the hard disk operation instruction of write operation instruction being belonged to by step 103 filtering, can hold again Row step 101 continues to hard disk operation instruction.
Further, as shown in Fig. 2, when determining that hard disk operation instruction is not belonging to write operation instruction by step 102, this Inventive embodiments provide SATA hard disc Write-protection method, further include:
Step 104, hard disk operation instruction is sent to corresponding SATA hard disc, the SATA hard disc is made to execute hard disk behaviour Make the corresponding operation of instruction.
In the present embodiment, can be connected in advance with one or more SATA hard discs, when hard disk operation instruction is not belonging to write When operational order, hard disk operation instruction is sent to by corresponding SATA hard disc in one or more hard disks by step 104, makes this SATA hard disc executes the corresponding operation of hard disk operation instruction.After executing step 104, step 101 can be continued to execute, is not made herein Limitation.
Particularly, loss of data in order to prevent, step 104 can first store hard disk operation instruction to pre-set In data buffer storage;Then hard disk operation instruction is called from data buffer storage successively, and the instruction of the hard disk operation of calling is sent to Corresponding SATA hard disc makes the SATA hard disc execute corresponding operation.
The present invention has the advantages that:After user terminal sends out hard disk operation instruction, judge that the hard disk operation refers to Whether order belongs to write operation instruction, and when hard disk operation instruction belongs to write operation instruction, filters hard disk operation instruction, to Realize the write-protect of SATA hard disc.Technical solution provided in an embodiment of the present invention, what can be sent out for user terminal is all hard Disk operational order is judged solve non-guide subregion of the software write-protect in the prior art just for hard disk, and hard disk draws Lead the problem of subregion cannot carry out software write-protect.In addition, the program can also realize the space being hidden in SATA hard disc Write-protect.
Embodiment 2
As shown in figure 3, present embodiments providing a kind of SATA hard disc Write-protection method, this method is similar to Fig. 2, and difference exists In further including:
Step 105, it is determined whether to enable hard disk write-protectings.
In the present embodiment, after receiving hard disk operation instruction by step 101, can be by step 105 judgement first No unlatching hard disk write-protecting;And when confirming unlatching, step 102 is executed;Otherwise, step 104 is executed.
In the present embodiment, if opening hard disk write-protecting, by step 102 and step 103 to belonging to write operation instruction Hard disk operation instruction be filtered;Otherwise, hard disk operation instruction is directly sent by step 104, no longer gone to live in the household of one's in-laws on getting married one by one herein It states.
The present invention has the advantages that:After user terminal sends out hard disk operation instruction, judge that the hard disk operation refers to Whether order belongs to write operation instruction, and when hard disk operation instruction belongs to write operation instruction, filters hard disk operation instruction, to Realize the write-protect of SATA hard disc.Technical solution provided in an embodiment of the present invention, what can be sent out for user terminal is all hard Disk operational order is judged solve non-guide subregion of the software write-protect in the prior art just for hard disk, and hard disk draws Lead the problem of subregion cannot carry out software write-protect.In addition, the program can also realize the space being hidden in SATA hard disc Write-protect.
Embodiment 3
As shown in figure 4, the embodiment of the present invention provides a kind of SATA hard disc Write-protect system, including:
At least one SATA hard disc 401, write protector 402 and user terminal 403;The write protector includes:At least One the first SATA connector 4021, fpga chip 4022 and the second SATA connector 4023;At least one first SATA connector It is connected respectively with the fpga chip with second SATA connector;Each SATA hard disc is connected with first SATA connector, The number of the SATA hard disc is corresponding with the number of the first SATA connector;Second SATA connector and the user terminal It is connected;The fpga chip, the hard disk operation instruction sent for receiving the user terminal;Sentenced according to default write operation standard Whether the disconnected hard disk operation instruction belongs to write operation instruction;If so, filtering hard disk operation instruction.
Further, as shown in figure 5, SATA hard disc Write-protect system provided in this embodiment, further includes:
USB-SATA interface convertors 404, the user terminal is through the USB-SATA interface convertors and described second SATA connector is connected.
At this point, as shown in fig. 6, the USB-SATA interface convertors include:
USB joint 4041, USB-SATA conversion chips 4042 and SATA interface 4043;The USB joint and the SATA Interface is connected with the USB-SATA conversion chips respectively;The SATA interface is connected with second SATA connector;The USB Connector is connected with the user terminal.
The present invention has the advantages that:After user terminal sends out hard disk operation instruction, judged by fpga chip Whether hard disk operation instruction belongs to write operation instruction, and when hard disk operation instruction belongs to write operation instruction, filters the hard disk Operational order, to realize the write-protect of SATA hard disc.Technical solution provided in an embodiment of the present invention can be directed to user terminal All hard disk operations instruction sent out is judged solve non-guide point of software write-protect in the prior art just for hard disk The problem of area, the boot partition of hard disk cannot carry out software write-protect.In addition, the program is to the space that is hidden in SATA hard disc It can also realize write-protect.
The sequencing of above example is only for ease of description, can not represent the quality of embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (7)

1. a kind of SATA hard disc Write-protection method, which is characterized in that including:
The hard disk operation instruction that the user terminal that S10, reception connect in advance is sent;
S20, judge whether the hard disk operation instruction belongs to write operation instruction according to default write operation standard;If so, executing S30;
S30, hard disk operation instruction is filtered, and re-executes the S10;
The S20, including:
S201, hard disk operation instruction is analyzed, obtains corresponding Frame Information Structure FIS;
S202, the Frame Information Structure FIS is matched with default write operation standard, obtains matching result;
S203 judges whether the hard disk operation instruction belongs to write operation instruction according to matching result.
2. SATA hard disc Write-protection method according to claim 1, which is characterized in that if hard disk operation instruction is not Belong to write operation instruction, further includes:
S40, hard disk operation instruction is sent to corresponding SATA hard disc, so that the SATA hard disc is executed the hard disk operation and refers to Enable corresponding operation.
3. SATA hard disc Write-protection method according to claim 2, which is characterized in that between the S10 and S20, also Including:
S11, it is determined whether to enable hard disk write-protectings;If opened, the S20 is executed;Otherwise, the S40 is executed.
4. SATA hard disc Write-protection method according to claim 2, which is characterized in that the S40, including:
If the instruction of S401, the hard disk operation is not write operation instruction, hard disk operation instruction is stored to pre-setting Data buffer storage in;
S402, hard disk operation instruction is called from the data buffer storage successively, and the instruction of the hard disk operation of calling is sent to pair The SATA hard disc answered makes the SATA hard disc execute corresponding operation.
5. a kind of SATA hard disc Write-protect system, which is characterized in that including:
At least one SATA hard disc, write protector and user terminal;
The write protector includes:At least one first SATA connector, fpga chip and the second SATA connector;Described at least one A first SATA connector and second SATA connector are connected with the fpga chip respectively;Each SATA hard disc with one first SATA connector is connected, and the number of the SATA hard disc is corresponding with the number of the first SATA connector;Second SATA connector It is connected with the user terminal;
The fpga chip, the hard disk operation instruction sent for receiving the user terminal;Sentenced according to default write operation standard Whether the disconnected hard disk operation instruction belongs to write operation instruction;If so, filtering hard disk operation instruction;
The basis presets write operation standard and judges whether the hard disk operation instruction belongs to write operation instruction, including:To described Hard disk operation instruction is analyzed, and corresponding Frame Information Structure FIS is obtained;By the Frame Information Structure FIS and default write operation Standard is matched, and matching result is obtained;Judge whether the hard disk operation instruction belongs to write operation instruction according to matching result.
6. SATA hard disc Write-protect system according to claim 5, which is characterized in that further include:
USB-SATA interface convertors, the user terminal is through the USB-SATA interface convertors and second SATA connector It is connected.
7. SATA hard disc Write-protect system according to claim 6, which is characterized in that the USB-SATA interface conversions Device, including:
USB joint, USB-SATA conversion chips and SATA interface;
The USB joint and the SATA interface are connected with the USB-SATA conversion chips respectively;The SATA interface and institute The second SATA connector is stated to be connected;The USB joint is connected with the user terminal.
CN201510043427.4A 2015-01-28 2015-01-28 SATA hard disc Write-protection method and system Active CN104573574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510043427.4A CN104573574B (en) 2015-01-28 2015-01-28 SATA hard disc Write-protection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510043427.4A CN104573574B (en) 2015-01-28 2015-01-28 SATA hard disc Write-protection method and system

Publications (2)

Publication Number Publication Date
CN104573574A CN104573574A (en) 2015-04-29
CN104573574B true CN104573574B (en) 2018-08-10

Family

ID=53089607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510043427.4A Active CN104573574B (en) 2015-01-28 2015-01-28 SATA hard disc Write-protection method and system

Country Status (1)

Country Link
CN (1) CN104573574B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106570428A (en) * 2016-10-17 2017-04-19 江苏南世桥信息技术有限公司 Selective hard disc write blocking card

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1163431A (en) * 1994-10-07 1997-10-29 邵通 Method and device for controlling read and write of hard disc in computer
CN101699413A (en) * 2009-10-30 2010-04-28 成都市华为赛门铁克科技有限公司 Hard disk data read-write control method, device and data storage system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8521976B1 (en) * 2009-01-07 2013-08-27 Marvell International Ltd. Method and system for improving disk drive performance
CN101853338A (en) * 2009-04-01 2010-10-06 深圳市鸥朴互动网络技术有限公司 Safe computer system for system disk fixation
CN201548955U (en) * 2009-10-23 2010-08-11 深圳市金胜电子科技有限公司 Solid state disk with hardware write-protection function
CN202422136U (en) * 2011-11-11 2012-09-05 德州学院 Wireless remote control solid state disk with protection function
CN202383695U (en) * 2011-12-19 2012-08-15 成都建安惠通科技有限公司 USB/ATA read only lock
CN204463134U (en) * 2015-01-28 2015-07-08 北京汉龙思琪数码科技有限公司 SATA hard disc Write-protect system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1163431A (en) * 1994-10-07 1997-10-29 邵通 Method and device for controlling read and write of hard disc in computer
CN101699413A (en) * 2009-10-30 2010-04-28 成都市华为赛门铁克科技有限公司 Hard disk data read-write control method, device and data storage system

Also Published As

Publication number Publication date
CN104573574A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US9535631B2 (en) Multi-path management
WO2015078294A1 (en) Kernel module loading method and apparatus
US9535619B2 (en) Enhanced reconstruction in an array of information storage devices by physical disk reduction without losing data
US8868793B2 (en) SAS expander system and method for dynamically allocating SAS addresses to SAS expander devices
CN110083399A (en) Small routine operation method, computer equipment and storage medium
US20150169249A1 (en) Path management techniques for storage networks
US20150113312A1 (en) System and method for detecting server removal from a cluster to enable fast failover of storage
CN104461526B (en) A kind of control visiting method and device of end application
CN104123495A (en) Method for neutralizing malicious software blocking computer operation
JP6266008B2 (en) Method of applying virtual machine image to computer system, information processing system, and computer program
CN108255542A (en) The serial ports parallel port management-control method and device of a kind of virtual machine
CN101236531A (en) Memory and its automatic protection realization method
CN104573574B (en) SATA hard disc Write-protection method and system
CN104657088B (en) A kind of acquisition methods and device of hard disk bad block message
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN107844304A (en) The hot upgrade method of virtual machine and device
US9213618B2 (en) Storage management systems and methods in hierarchical storage systems
US20130151886A1 (en) Computing device and method for switching physical links of a sas expander of the computing device
CN104793899B (en) The method and device that a kind of detection Raid disks based on virtual magnetic disc layer are extracted
CN104808953B (en) Control the method, device and mobile terminal of data storage
US9286302B2 (en) Inode reuse systems and methods
CN105260137B (en) Realize that HBA cards access the method and apparatus of SATA disks in SAS storage system
CN109271096A (en) NVME storage expansion system
CN204463134U (en) SATA hard disc Write-protect system
US8631177B1 (en) Multi-port device with controller for storage media device port

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant