CN112506822A - Method for mounting hard disk by PCIE card - Google Patents

Method for mounting hard disk by PCIE card Download PDF

Info

Publication number
CN112506822A
CN112506822A CN202011409560.4A CN202011409560A CN112506822A CN 112506822 A CN112506822 A CN 112506822A CN 202011409560 A CN202011409560 A CN 202011409560A CN 112506822 A CN112506822 A CN 112506822A
Authority
CN
China
Prior art keywords
hard disk
operating system
windows operating
parameters
sending
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.)
Granted
Application number
CN202011409560.4A
Other languages
Chinese (zh)
Other versions
CN112506822B (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.)
Xly Salvationdata Technology Inc
Original Assignee
Xly Salvationdata Technology Inc
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 Xly Salvationdata Technology Inc filed Critical Xly Salvationdata Technology Inc
Priority to CN202011409560.4A priority Critical patent/CN112506822B/en
Publication of CN112506822A publication Critical patent/CN112506822A/en
Application granted granted Critical
Publication of CN112506822B publication Critical patent/CN112506822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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 adopting 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: sending an instruction to the virtual miniport driver, filling the parameters into a structural body of the Windows operating system, and sending a notification of equipment change to the virtual miniport driver after filling; s300: and after the virtual micro-port driver receives the notification of the equipment change, the virtual micro-port 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

Method for mounting hard disk by PCIE card
Technical Field
The invention belongs to the field of system access and the field of data recovery, and relates to a method for mounting a hard disk by adopting a PCIE card.
Background
In the process of data recovery, if a failed hard disk is accessed to a computer of a Windows operating system, the Windows operating system is easily blocked. However, if the switching device card (for example, PCIE card) and the device card control driver are used 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, the hard disk cannot be viewed and operated in the Windows operating system. If we need to check and operate the fault hard disk inserted in the switching equipment card on the Windows operating system, the hard disk needs 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 failed hard disk are filled into a structural body of a Windows operating system, a notice of equipment change is sent to a virtual micro port driver, the Windows operating system mounts the failed hard disk to the Windows operating system according to the filled structural body, and the virtualization technology of the Windows operating system is utilized to mount the failed hard disk to the Windows operating system, so that the failed hard disk is normally identified in the Windows operating system. 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: sending an instruction to the virtual miniport driver, filling the parameters into a structural body of a Windows operating system, and sending a notification of equipment change to the virtual miniport driver after filling;
s300: and after the virtual micro-port driver receives the notification of the equipment change, the virtual micro-port 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: sending an instruction for acquiring parameters of the hard disk to acquire the parameters of the hard disk, wherein the parameters comprise hard disk capacity, module information and a hard disk serial number;
s102: and sending the acquired parameters of the hard disk as a mounting request to the virtual miniport driver.
Preferably, the step S200 includes the steps of:
s201: the virtual micro port driver receives a mounting request, searches an unused memory space for storing parameters of a hard disk to be mounted, wherein the size of the memory space is not less than the size of a structure body INQUIRYDATA of a Windows operating system;
s202: writing an InQUIRYDATA structure into the memory space: the InQUIRYDATA structural body is used for describing the parameters of the hard disk, and the members required to be written into the InQUIRYDATA structural body and the corresponding meanings are shown in a table 1;
table 1: members to be written into an InQUIRYDATA structure and corresponding meanings
Figure BDA0002818849520000021
Figure BDA0002818849520000031
S203: sending a notification of a device change.
Preferably, the step S300 includes the steps of:
s301: the virtual miniport drives a trigger 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.
The invention has the beneficial effects that: the method solves the technical problem that in the prior art, after the PCIE card is adopted to mount the fault hard disk, the fault hard disk cannot be checked and operated under a Windows operating system.
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 present 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: sending an instruction (A0, EC) for acquiring parameters of the hard disk, wherein the parameters comprise hard disk capacity, module information and a hard disk serial number;
s102: and sending the acquired parameters of the hard disk to the virtual miniport driver as a mounting request.
S200: sending an instruction to the virtual miniport driver, filling the parameters into a structural body of the Windows operating system, and sending a notification of equipment change to the virtual miniport driver after filling;
step S200 includes the steps of:
s201: the virtual micro port driver receives the mounting request, searches an unused memory space for storing parameters of the hard disk to be mounted, wherein the size of the memory space is not less than the size of a structure body INQUIRYDATA of a Windows operating system;
s202: writing an InQUIRYDATA structure into a memory space: the INQUIRYDATA structure is used for describing hard disk parameters, and it is noted that not all members of the INQUIRYDATA structure need to be written, and the members needing to be written into the INQUIRYDATA structure and corresponding meanings thereof are shown in table 1;
table 1: members to be written into an InQUIRYDATA structure and corresponding meanings
Figure BDA0002818849520000041
Figure BDA0002818849520000051
S203: sending a notification of a device change.
S300: and after the virtual micro-port driver receives the notification of the equipment change, the virtual micro-port 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 drives a trigger 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 parameters of the hard disk 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, but that modifications and variations are possible to those skilled in the art in light of the above teachings, and that all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (4)

1. A method for mounting a hard disk by adopting a PCIE card is characterized by comprising 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: sending an instruction to the virtual miniport driver, filling the parameters into a structural body of a Windows operating system, and sending a notification of equipment change to the virtual miniport driver after filling;
s300: and after the virtual micro-port driver receives the notification of the equipment change, the virtual micro-port 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 according to claim 1, wherein the step S100 includes the following steps:
s101: sending an instruction for acquiring parameters of the hard disk to acquire the parameters of the hard disk, wherein the parameters comprise hard disk capacity, module information and a hard disk serial number;
s102: and sending the acquired parameters of the hard disk as a mounting request to the virtual miniport driver.
3. The method according to claim 1, wherein the step S200 includes the following steps:
s201: the virtual micro port driver receives a mounting request, searches an unused memory space for storing parameters of a hard disk to be mounted, wherein the size of the memory space is not less than the size of a structure body INQUIRYDATA of a Windows operating system;
s202: writing an InQUIRYDATA structure into the memory space: the InQUIRYDATA structural body is used for describing the parameters of the hard disk, and the members required to be written into the InQUIRYDATA structural body and the corresponding meanings are shown in a table 1;
table 1: members to be written into an InQUIRYDATA structure and corresponding meanings
Figure FDA0002818849510000021
S203: sending a notification of a device change.
4. The method according to claim 1, wherein the step S300 includes the following steps:
s301: the virtual miniport drives a trigger 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.
CN202011409560.4A 2020-12-04 2020-12-04 Method for mounting hard disk by PCIE card Active CN112506822B (en)

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 true CN112506822A (en) 2021-03-16
CN112506822B 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 (11)

* Cited by examiner, † Cited by third party
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
US20150067399A1 (en) * 2013-08-28 2015-03-05 Jon Jaroker Analysis, recovery and repair of devices attached to remote computing systems
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
US20160019002A1 (en) * 2013-12-26 2016-01-21 AVAST Software s.r.o. Partial snapshots in virtualized environments
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
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
US20150067399A1 (en) * 2013-08-28 2015-03-05 Jon Jaroker Analysis, recovery and repair of devices attached to remote computing systems
US20160019002A1 (en) * 2013-12-26 2016-01-21 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
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)

* Cited by examiner, † Cited by third party
Title
JEFFREY TAYLOR: ""VMware Virtual SAN Cookbook"" *
陈浩等: ""基于PCIe接口SSD的Linux驱动设计与研究"" *

Also Published As

Publication number Publication date
CN112506822B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US8838892B2 (en) Data storage method and storage device
CN1282066C (en) Method and system for accessing tape devices in computer system
US7562249B2 (en) RAID system, RAID controller and rebuilt/copy back processing method thereof
US10747443B2 (en) Electronic system with storage management mechanism and method of operation thereof
US6549978B2 (en) Method for storage controllers with different data formats to access common storage configuration information
KR100648544B1 (en) Information processing system and primary storage device
US10802734B2 (en) Method for fast boot read
CN107515827B (en) PCIE SSD custom log storage method and device and SSD
JP2001256003A (en) Disk array controller, its disk array control unit and its expanding method
US10420246B2 (en) Modular computer system and server module
CN111198663B (en) Method, system, apparatus and storage medium for controlling data access operation
US10956326B2 (en) Storage system with data management and protection mechanism and method of operation thereof
US20070041050A1 (en) Memory management method and system
CN107526616B (en) Method and device for writing and reading data of BMC by host
CN116431530B (en) CXL memory module, memory processing method and computer system
US9535717B2 (en) Apparatus, system, and computer readable medium for booting a server from a shared storage system
CN112506822B (en) Method for mounting hard disk by PCIE card
US20060179167A1 (en) Apparatus, system, and method for performing storage device maintenance
CN101673242A (en) Method and device for formatting hard disk
CN101561760B (en) Method for upgrading firmware of interface card
CN1350295A (en) Method and apparatus for executing up date of disk array controller based on driver
JP2007018539A (en) Disk array control device, and disk array control unit
CN112286446B (en) Storage device and control method thereof
CN109634581B (en) Data storage method based on STM32F103ZET6 and eMMC card
JP4075790B2 (en) Compound computer system and compound I / O system

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