CN112506822B - Method for mounting hard disk by PCIE card - Google Patents
Method for mounting hard disk by PCIE card Download PDFInfo
- Publication number
- CN112506822B CN112506822B CN202011409560.4A CN202011409560A CN112506822B CN 112506822 B CN112506822 B CN 112506822B CN 202011409560 A CN202011409560 A CN 202011409560A CN 112506822 B CN112506822 B CN 112506822B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- operating system
- parameters
- windows operating
- virtual
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for mounting a hard disk by using a PCIE card, which is characterized by comprising the following steps of S100: connecting the hard disk to a computer of a Windows operating system through a PCIE card, acquiring parameters of the hard disk and sending the parameters to a virtual micro port driver; s200: transmitting an instruction to the virtual micro port driver, filling parameters into a structural body of the Windows operating system, and transmitting a notification of equipment change to the virtual micro port driver after filling; s300: after the virtual miniport driver receives the notification of the equipment change, the virtual miniport driver sends the received data to the Windows operating system, and the Windows operating system mounts the hard disk to the Windows operating system according to the filled structure.
Description
Technical Field
The invention belongs to the field of system access and data recovery, and relates to a method for mounting a hard disk by using a PCIE card.
Background
In the process of data recovery, if a fault hard disk is accessed to a computer of a Windows operating system, the Windows operating system is easy to be blocked. But if we use the transit device card (e.g., PCIE card) and the device card control driver to access the failed hard disk, the failed hard disk can be accessed without affecting the normal operation of the Windows operating system. However, the problems in the prior art are: although we can operate a failed hard disk by controlling the drive, it is not possible to view and operate the hard disk in the Windows operating system. If the fault hard disk inserted in the adapter device card is required to be checked and operated on the Windows operating system, the hard disk is required to be mounted on the Windows operating system, so that various operations can be directly carried out on the hard disk in the system.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method for mounting a hard disk by adopting a PCIE card, which is characterized in that parameters of a fault hard disk are filled into a structural body of a Windows operating system, a notification of equipment change is sent to a virtual miniport driver, the Windows operating system mounts the fault hard disk to the Windows operating system according to the filled structural body, and the fault hard disk is mounted on the Windows operating system by utilizing the virtualization technology of the Windows operating system, so that the normal identification of the fault hard disk in the Windows operating system is realized. The application of the invention comprises the following steps:
s100: connecting the hard disk to a computer of a Windows operating system through a PCIE card, acquiring parameters of the hard disk and sending the parameters to a virtual micro port driver;
s200: transmitting an instruction to the virtual micro port driver, filling the parameters into a structural body of a Windows operating system, and transmitting a notification of equipment change to the virtual micro port driver after filling;
s300: after the virtual miniport driver receives the notification of equipment change, the virtual miniport driver sends the received data to a Windows operating system, and the Windows operating system mounts the hard disk to the Windows operating system according to the filled structure.
Preferably, the step S100 includes the steps of:
s101: transmitting an instruction for acquiring parameters of a hard disk to acquire the parameters of the hard disk, wherein the parameters comprise the capacity of the hard disk, module information and serial numbers of the hard disk;
s102: and sending the acquired parameters of the hard disk to the virtual micro port driver as a mounting request.
Preferably, the step S200 includes the steps of:
s201: the virtual miniport driver receives the mounting request, searches an unused memory space and is used for storing parameters of a hard disk to be mounted, wherein the size of the memory space is not smaller than that of a structure INQUIRYDATA of a Windows operating system;
s202: writing INQUIRYDATA structure into the memory space: the INQUIRYDATA structure is used for describing the hard disk parameters, and members required to be written into the INQUIRYDATA structure and corresponding meanings are shown in table 1;
table 1: members of the structure to be written in INQUIRYDATA and their corresponding meanings
S203: a notification of the device change is sent.
Preferably, the step S300 includes the steps of:
s301: the virtual miniport driver triggers a response function and queries a response function SCSOP_INQUIRY;
s302: and sending the written structure INQUIRYDATA to a Windows operating system, and identifying and analyzing the hard disk parameters and mounting the hard disk by the Windows operating system.
The beneficial effects of the invention are as follows: the technical problem that in the prior art, after a fault hard disk is mounted by adopting a PCIE card, the fault hard disk cannot be checked and operated under a Windows operating system is solved.
Drawings
FIG. 1 is a general flow chart of the method provided by the present invention.
Detailed Description
Fig. 1 shows a general flow chart of the method provided by the invention. As shown in fig. 1, the method comprises the following steps:
s100: connecting the hard disk to a computer of a Windows operating system through a PCIE card, acquiring parameters of the hard disk and sending the parameters to a virtual micro port driver;
step S100 includes the steps of:
s101: transmitting an instruction (A0, EC) for acquiring parameters of the hard disk, wherein the instruction is used for acquiring the parameters of the hard disk, and the parameters comprise the capacity of the hard disk, module information and serial numbers of the hard disk;
s102: and sending the acquired parameters of the hard disk to the virtual micro port driver as a mounting request.
S200: transmitting an instruction to the virtual micro port driver, filling parameters into a structural body of the Windows operating system, and transmitting a notification of equipment change to the virtual micro port driver after filling;
step S200 includes the steps of:
s201: the virtual miniport driver receives the mounting request, searches an unused memory space and is used for storing parameters of a hard disk to be mounted, wherein the size of the memory space is not smaller than the size of a structural body INQUIRYDATA of the Windows operating system;
s202: writing INQUIRYDATA structure into the memory space: the INQUIRYDATA structure is used to describe the hard disk parameters, and it is noted that not all members of the INQUIRYDATA structure need to be written, and the members of the INQUIRYDATA structure and their corresponding meanings are shown in Table 1;
table 1: members of the structure to be written in INQUIRYDATA and their corresponding meanings
S203: a notification of the device change is sent.
S300: after the virtual miniport driver receives the notification of the equipment change, the virtual miniport driver sends the received data to the Windows operating system, and the Windows operating system mounts the hard disk to the Windows operating system according to the filled structure.
Step S300 includes the steps of:
s301: the virtual miniport driver triggers a response function and queries a response function scsiop_INQUIRY;
s302: and sending the written structure INQUIRYDATA to a Windows operating system, and identifying and analyzing the hard disk parameters and mounting the hard disk by the Windows operating system.
It is to be understood that the invention is not limited to the examples described above, and that modifications and variations may be effected in light of the above teachings by those skilled in the art, all of which are intended to be within the scope of the invention as defined in the appended claims.
Claims (4)
1. The method for mounting the hard disk by adopting the PCIE card is characterized by comprising the following steps of:
s100: connecting the hard disk to a computer of a Windows operating system through a PCIE card, acquiring parameters of the hard disk and sending the parameters to a virtual micro port driver;
s200: transmitting an instruction to the virtual micro port driver, filling the parameters into a structural body of a Windows operating system, and transmitting a notification of equipment change to the virtual micro port driver after filling;
s300: after the virtual miniport driver receives the notification of equipment change, the virtual miniport driver sends the received data to a Windows operating system, and the Windows operating system mounts the hard disk to the Windows operating system according to the filled structure.
2. The method for mounting a hard disk with a PCIE card according to claim 1, wherein said step S100 includes the steps of:
s101: transmitting an instruction for acquiring parameters of a hard disk to acquire the parameters of the hard disk, wherein the parameters comprise the capacity of the hard disk, module information and serial numbers of the hard disk;
s102: and sending the acquired parameters of the hard disk to the virtual micro port driver as a mounting request.
3. The method for mounting a hard disk with a PCIE card according to claim 1, wherein the step S200 includes the steps of:
s201: the virtual miniport driver receives the mounting request, searches an unused memory space and is used for storing parameters of a hard disk to be mounted, wherein the size of the memory space is not smaller than that of a structure INQUIRYDATA of a Windows operating system;
s202: writing INQUIRYDATA structure into the memory space: the INQUIRYDATA structure is used for describing the hard disk parameters, and members required to be written into the INQUIRYDATA structure and corresponding meanings are shown in table 1;
table 1: members of the structure to be written in INQUIRYDATA and their corresponding meanings
S203: a notification of the device change is sent.
4. The method for mounting a hard disk with a PCIE card according to claim 1, wherein said step S300 includes the steps of:
s301: the virtual miniport driver triggers a response function and queries a response function SCSOP_INQUIRY;
s302: and sending the written structure INQUIRYDATA to a Windows operating system, and identifying and analyzing the hard disk parameters and mounting the hard disk by the Windows operating system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011409560.4A CN112506822B (en) | 2020-12-04 | 2020-12-04 | Method for mounting hard disk by PCIE card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011409560.4A CN112506822B (en) | 2020-12-04 | 2020-12-04 | Method for mounting hard disk by PCIE card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112506822A CN112506822A (en) | 2021-03-16 |
CN112506822B true CN112506822B (en) | 2023-06-02 |
Family
ID=74971784
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011409560.4A Active CN112506822B (en) | 2020-12-04 | 2020-12-04 | Method for mounting hard disk by PCIE card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112506822B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625645A (en) * | 2009-08-11 | 2010-01-13 | 成都市华为赛门铁克科技有限公司 | Solid state disk, BIOS device, and method and equipment for booting operating system |
CN201828901U (en) * | 2010-05-20 | 2011-05-11 | 北京盛讯美恒科技发展有限公司 | Card with memory function |
CN102880498A (en) * | 2012-09-13 | 2013-01-16 | 深圳市佳创软件有限公司 | Method of virtual SD (Security Digital) card on device with android system |
CN106886412A (en) * | 2017-02-20 | 2017-06-23 | 苏州蜗牛数字科技股份有限公司 | The SATA hard disc device of carry in a kind of Android operation system |
CN110647292A (en) * | 2019-08-16 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Method and system for expanding storage capacity in server system |
CN111198663A (en) * | 2020-01-03 | 2020-05-26 | 苏州浪潮智能科技有限公司 | Method, system, apparatus and storage medium for controlling data access operation |
CN111966613A (en) * | 2020-07-20 | 2020-11-20 | 深圳市广和通无线股份有限公司 | Communication module data processing method and device, computer equipment and storage medium |
CN112015352A (en) * | 2020-10-21 | 2020-12-01 | 北京首都在线科技股份有限公司 | Storage block device identification device, system and storage block device reading and writing method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150067399A1 (en) * | 2013-08-28 | 2015-03-05 | Jon Jaroker | Analysis, recovery and repair of devices attached to remote computing systems |
US9921765B2 (en) * | 2013-12-26 | 2018-03-20 | AVAST Software s.r.o. | Partial snapshots in virtualized environments |
US20150281126A1 (en) * | 2014-03-31 | 2015-10-01 | Plx Technology, Inc. | METHODS AND APPARATUS FOR A HIGH PERFORMANCE MESSAGING ENGINE INTEGRATED WITHIN A PCIe SWITCH |
-
2020
- 2020-12-04 CN CN202011409560.4A patent/CN112506822B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625645A (en) * | 2009-08-11 | 2010-01-13 | 成都市华为赛门铁克科技有限公司 | Solid state disk, BIOS device, and method and equipment for booting operating system |
CN201828901U (en) * | 2010-05-20 | 2011-05-11 | 北京盛讯美恒科技发展有限公司 | Card with memory function |
CN102880498A (en) * | 2012-09-13 | 2013-01-16 | 深圳市佳创软件有限公司 | Method of virtual SD (Security Digital) card on device with android system |
CN106886412A (en) * | 2017-02-20 | 2017-06-23 | 苏州蜗牛数字科技股份有限公司 | The SATA hard disc device of carry in a kind of Android operation system |
CN110647292A (en) * | 2019-08-16 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Method and system for expanding storage capacity in server system |
CN111198663A (en) * | 2020-01-03 | 2020-05-26 | 苏州浪潮智能科技有限公司 | Method, system, apparatus and storage medium for controlling data access operation |
CN111966613A (en) * | 2020-07-20 | 2020-11-20 | 深圳市广和通无线股份有限公司 | Communication module data processing method and device, computer equipment and storage medium |
CN112015352A (en) * | 2020-10-21 | 2020-12-01 | 北京首都在线科技股份有限公司 | Storage block device identification device, system and storage block device reading and writing method |
Non-Patent Citations (2)
Title |
---|
Jeffrey Taylor."VMware Virtual SAN Cookbook".《PACKT》.2015,第1-183页. * |
陈浩等."基于PCIe接口SSD的Linux驱动设计与研究".《第十六届计算机工程与工艺年会暨第二届微处理器技术论坛论文集》.2012,第330-335页. * |
Also Published As
Publication number | Publication date |
---|---|
CN112506822A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1282066C (en) | Method and system for accessing tape devices in computer system | |
US8838892B2 (en) | Data storage method and storage device | |
US6922738B2 (en) | ATA/SATA combined controller | |
US10747443B2 (en) | Electronic system with storage management mechanism and method of operation thereof | |
US7805543B2 (en) | Hardware oriented host-side native command queuing tag management | |
US6408369B1 (en) | Internal copy for a storage controller | |
US9092426B1 (en) | Zero-copy direct memory access (DMA) network-attached storage (NAS) file system block writing | |
US10802734B2 (en) | Method for fast boot read | |
CN101840306B (en) | Method and system for driving SATA (Serial Advanced Technology Attachment) device in VxWorks operating system | |
US20060101222A1 (en) | Memory control device and method for controlling the same | |
CN107515827B (en) | PCIE SSD custom log storage method and device and SSD | |
US7774514B2 (en) | Method of transmitting data between storage virtualization controllers and storage virtualization controller designed to implement the method | |
CN116431530B (en) | CXL memory module, memory processing method and computer system | |
US7225290B2 (en) | ATA and SATA compliant controller | |
EP1537473A2 (en) | Ata/sata combined controller | |
JPH10232824A (en) | Portable recording medium and access method | |
CN111124985A (en) | Read-only control method and device for mobile terminal | |
CN112506822B (en) | Method for mounting hard disk by PCIE card | |
US20080040462A1 (en) | Apparatus system and computer readable medium for booting a server from a shared storage system | |
US20070226451A1 (en) | Method and apparatus for full volume mass storage device virtualization | |
CN101561760B (en) | Method for upgrading firmware of interface card | |
US20040181601A1 (en) | Peripheral device sharing | |
KR102423278B1 (en) | Memory system and operating method thereof | |
CN1350295A (en) | Method and apparatus for executing up date of disk array controller based on driver | |
KR20200143922A (en) | Memory card and method for processing data using the card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |