CN104407994A - Method and device for identifying storage equipment inserted into slots of computer - Google Patents
Method and device for identifying storage equipment inserted into slots of computer Download PDFInfo
- Publication number
- CN104407994A CN104407994A CN201410604781.5A CN201410604781A CN104407994A CN 104407994 A CN104407994 A CN 104407994A CN 201410604781 A CN201410604781 A CN 201410604781A CN 104407994 A CN104407994 A CN 104407994A
- Authority
- CN
- China
- Prior art keywords
- slot
- memory device
- preset
- profile
- feedback message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012544 monitoring process Methods 0.000 claims description 14
- 239000000284 extract Substances 0.000 claims description 5
- 101150089458 Usb1 gene Proteins 0.000 description 6
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- ZPUCINDJVBIVPJ-LJISPDSOSA-N cocaine Chemical compound O([C@H]1C[C@@H]2CC[C@@H](N2C)[C@H]1C(=O)OC)C(=O)C1=CC=CC=C1 ZPUCINDJVBIVPJ-LJISPDSOSA-N 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
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/10—Program control for peripheral devices
- G06F13/105—Program control for peripheral devices where the programme performs an input/output emulation function
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method and a device for identifying storage equipment inserted into slots of a computer. The method comprises the following steps of detecting whether a first preset file with a first preset characteristic exists under a first preset directory; if the first preset file exists, acquiring the first position information of a first slot into which the storage equipment is inserted before an operating system is started according to the first preset file; acquiring a second preset file under a directory of the first preset file, and acquiring a first equipment name corresponding to the storage equipment inserted into the first slot under a second preset directory according to the second preset file, so that the storage equipment inserted into the first slot is identified according to the first position information and the first equipment name which are acquired, and is operated. According to the method, the problems that the storage equipment inserted into the slot before the system is started cannot be identified and the changed slot position cannot be adaptively identified in the prior art can be solved, the identification efficiency can be improved, and the operation efficiency of the identified storage equipment is improved.
Description
Technical field
The present invention relates to computer realm, particularly a kind of method and device identifying the memory device that computer slot inserts.
Background technology
Nowadays the use of computing machine is more and more general, computing machine can be provided with multiple slot for inserting memory device, when arbitrary slot is inserted into, the operating system of computing machine needs the memory device to inserting this slot to identify, then carries out subsequent operation (such as read, write, the essential information obtaining this memory device etc.) to this memory device.
Along with the fast development of electronic information industry, incident Information Crimes activity also gets more and more, and Information Crimes can relate to the memory device storing Crime Information usually, and therefore, the information how in quick obtaining memory device is very important.
First the information obtained in memory device need the memory device to inserting in slot to identify, at present, what adopt in windows operating system is hardware binding scheme, namely the slot position information in operating system and pre-configured slots are identified one_to_one corresponding to get up, but this kind is based on the scheme of Windows operating system, and there are the following problems: one when being the slot position change when slot position is artificially changed, slot damage, system upgrade etc. cause, then cannot slot again after recognizing site change according to original corresponding relation; Two are, the memory device that the usual None-identified of system has just inserted before system starts; Three are, because Windows operating system is a closed operating system, the customizability difference of user and need to pay, therefore, above-mentioned hardware binding scheme is difficult to change according to user's request.
In a word, the scheme of the memory device existing identification computer slot inserted is desirable not enough.
Summary of the invention
The invention provides a kind of method and the device that identify the memory device that computer slot inserts, based on (SuSE) Linux OS, existing None-identified can be solved before system starts, be inserted into memory device in slot and cannot the problem of slot position that changes of adaptive identification, can recognition efficiency be improved, and then improve the efficiency that the memory device identified is operated.
According to an aspect of the present invention, the present invention proposes a kind of method identifying the memory device that computer slot inserts, wherein, the operating system of computing machine is linux system, be provided with in advance in a computer to preset and identify application, computing machine operating system and preset identify application be all in starting state under, described method comprises:
First profile with the first preset features whether is there is under detecting the first preset catalogue;
If there is the first profile, then obtain the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile;
Obtain the second profile under the catalogue of the first profile, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
Further, described method also comprises:
Second profile with the second preset features whether is there is under detecting the first preset catalogue;
If there is the second profile, then obtain the second place information of the slot that operating system hard disk inserts according to described second profile;
Described second place information is stored in the first preset configuration file, so that by reading described first preset configuration file to identify the position of the slot of update system disk.
Further, described method also comprises:
If there is not the first profile, then monitor the first feedback message by calling preset function, described first feedback message is feedback message when indicating that the event that memory device inserts occurs;
If capture described first feedback information, then define the second place information of the second slot that memory device inserts according to described first feedback message and insert memory device in the second slot implementor name corresponding in systems in which.
Further, described method also comprises:
Monitor the second feedback message by calling preset function, described second feedback message is feedback message when indicating that the event that memory device extracts occurs;
If capture described second feedback message, then the 3rd positional information defining the 3rd slot that memory device is extracted according to described second feedback message and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
Further, described method also comprises:
The positional information of slot by monitoring the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering are stored in preset second configuration file, to obtain the positional information of slot by reading described second configuration file.
According to a further aspect in the invention, the invention allows for a kind of device identifying the memory device that computer slot inserts, wherein, the operating system of computing machine is linux system, is provided with in advance in a computer to preset to identify application,
Described device comprises:
First detecting unit, for computing machine operating system and under presetting and identifying that application is all in starting state, detect under the first preset catalogue whether there is first profile with the first preset features;
First acquiring unit, for when existence the first profile, then obtains the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile;
Second acquisition unit, for obtain the first profile catalogue under the second profile, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
Further, described device also comprises:
Whether the second detecting unit, exist second profile with the second preset features under detecting the first preset catalogue;
3rd acquiring unit, for when existence the second profile, then obtains the second place information of the slot that operating system hard disk inserts according to described second profile;
First storage unit, for described second place information being stored in the first preset configuration file, so that by reading described first preset configuration file to identify the position of the slot of update system disk.
Further, described device also comprises:
First monitoring unit, for when there is not the first profile, then monitors the first feedback message by calling preset function, and described first feedback message is feedback message when indicating that the event that memory device inserts occurs;
First determining unit, for when capturing described first feedback information, then defines the second place information of the second slot that memory device inserts according to described first feedback message and inserts memory device in the second slot implementor name corresponding in systems in which.
Further, described device also comprises:
Second monitoring unit, for monitoring the second feedback message by calling preset function, described second feedback message is feedback message when indicating that the event that memory device extracts occurs;
Second determining unit, for when getting described second feedback message, then the 3rd positional information defining the 3rd slot that memory device is extracted according to described second feedback message and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
Further, described device also comprises:
Second storage unit, for the positional information of slot by monitoring the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering are stored in preset second configuration file, to obtain the positional information of slot by reading described second configuration file.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The method of the memory device that the identification computer slot of the embodiment of the present invention inserts and device, the realization of the method and device is based on (SuSE) Linux OS, take full advantage of increasing income of linux system, the characteristic that customizability is strong and free, the positional information of the slot inserting memory device is obtained by preset catalogue and profile, the implementor name of memory device also identifies the memory device inserted in slot accordingly, to carry out associative operation to memory device, not only can solve None-identified in prior art before system starts, be inserted into memory device in slot and cannot the problem of slot position that changes of adaptive identification, also recognition efficiency can be improved, and then improve the efficiency that the memory device identified is operated.
Certainly, implement arbitrary product of the present invention might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the embodiment of the method for the memory device that identification computer slot of the present invention inserts;
Fig. 2 is the structural representation of the device embodiment of the memory device that identification computer slot of the present invention inserts.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of the application's protection.
" first ", " second " etc. in below illustrating is only used to clearer being described the step in the embodiment of the present invention and not plays restriction (be such as not restricted in sequence meaning first, second etc.).
Referring to Fig. 1, it is the schematic flow sheet of the embodiment of the method for memory device that identification computer slot of the present invention inserts.
In this embodiment, the operating system of computing machine is linux system, and the default identification application be provided with in advance in computing machine for identifying the memory device inserted in computer slot, linux system is used to be to make full use of the increasing income of linux system, characteristic that customizability is strong and completely free, the problem brought with the hardware binding scheme solved in existing Window system.
Computing machine operating system and preset identify application be all in starting state under, the method comprises the steps:
Whether S101, exist first profile with the first preset features under detecting the first preset catalogue.
Known by the characteristic studying linux system, (before being included in os starting, memory device is inserted into the situation in slot) insert memory device in the slot of computing machine after and then can produces the file with the first preset features under "/sys " catalogue, the file of " 0:0:0:0 " under the catalogue of such as "/sys/bus/scis/devices ", wherein, the positional information that the file path of display then can indicate this memory device to store after " 0:0:0:0 ".
Therefore, "/sys " catalogue can be the first preset catalogue, and " 0:0:0:0 " can be the first preset features, whether has the first profile that form is " 0:0:0:0 " under can detecting "/sys " catalogue accordingly.
S102, if there is the first profile, then obtains the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile.
This first profile such as can be as follows:
Lrwxrwxrwx 1 root root 0 09:15 0:0:0:0->../../../devices/pci0000:00/0000:00:1f.2/host0/tatget0:0:0/000: 000 in July 18
Wherein, " devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0: the 0 primary importance information being existing memory device and inserting first slot of (having inserted before being included in os starting).
S103, obtain the second profile under the first profile catalogue, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
" block " file is also comprised; then should comprise the implementor name (by known to linux system research, then can generate corresponding implementor name now at "/dev " after inserting memory device in slot) that the memory device that inserts in the first slot is corresponding under "/dev " catalogue under " block " file under the catalogue of the first profile (namely/sys " form under catalogue be " 0:0:0:0 " file).
Such as " block " file can be the second profile under the first profile catalogue, "/dev " catalogue can be the second preset catalogue, then first can obtain " block " file under " 0:0:0:0 " file directory, in the first implementor name that the memory device be inserted into according to " block " file acquisition got in the first slot produces in "/dev " catalogue correspondence.
Be somebody's turn to do " block " file, such as can be as follows:
Drwxr-xr-x 10 root root 0 08:47sda in July 18
Wherein, " sda " is the first implementor name.
Primary importance information " devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0: 0 " and first implementor name " sda " of the first slot inserted according to the existing memory device obtained can identify the memory device inserted in the first slot fast, after identifying this memory device, then can read this memory device, write, obtain the operations such as essential information.
Further, whether there is second profile with the second preset features under also can detecting the first preset catalogue.
In linux system, usually under the first preset catalogue (i.e. "/sys " catalogue), the file with the second preset features can also be produced, the file of " 7:0:0:0 " under the catalogue of such as "/sys/bus/scis/devices ", wherein, the positional information of the slot that the file path shown after " 7:0:0:0 " then can indicate operating system hard disk to insert.
Therefore, " 7:0:0:0 " can be the second preset features, whether has the second profile that form is " 7:0:0:0 " under can detecting "/sys " catalogue.
If there is the second profile, then insert according to described second profile acquisition operating system hard disk
The second place information of slot.
This second profile such as can be as follows:
Lrwxrwxrwx 1 toot root 0 09:19 7:0:0:0 in July 18->../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3: 1.0/host7/target7:0:0/7:0:0:0
Wherein, " devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/host7/target/:0:0/7:0:0:0 " is then the second place information of the slot of operating system hard disk insertion.
And then the second place information of acquisition is stored in the first preset configuration file of operating system, so that by reading this first preset configuration file to identify the position of the slot of update system disk, and this slot and the slot zone of inserting other memory devices are separated, avoid this slot and the slot inserting other memory devices to obscure mutually.
In addition, after the detection of S101, if for there is not the first profile in testing result, then represent in the slot of computing machine and also do not have memory device to insert, now can utilize to preset and identify that application is monitored the first feedback message of preset function, by getting the first feedback message to know that the event having memory device to insert people occurs.
In linux system, when after os starting, by calling preset function, the event having memory device to insert in slot is monitored, concrete, by call preset function to for represent in slot have memory device to insert event occur the first feedback message monitor, then mean in slot that the event having memory device to insert occurs when capturing the first feedback message, and the implementor name that the memory device of the second place information of second slot that can insert according to the first feedback message determination memory device and insertion the second slot is corresponding in systems in which.
This preset function such as can be " socket (PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT) ", and the first feedback message captured, can comprise following content:
…
ACTION=add
DEVPATH=devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1.3:1.0/host7/target7:0:0/7:0:0:0/block/sdb
SUBSYSTEM=block
…
DEVNAME=sdb
DEVTYPE=disk
…
Wherein, " add " can indicate that memory device inserts, " devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1.3:1.0/h ost7/target7:0:0/7:0:0:0/block " can represent the second place information of the second slot that memory device inserts, and " sdb " can represent the implementor name that the memory device be inserted in the second slot is corresponding in systems in which.
In addition, also by calling above-mentioned preset function " socket (PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT) " event that the memory device in slot is extracted is monitored, concrete, by call above-mentioned preset function to for represent in slot have memory device to extract event occur the second feedback message monitor, when capturing the second feedback message, then mean in slot that the time having memory device to extract occurs, and the 3rd positional information that can define according to this second feedback information the 3rd slot that memory device is extracted and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
In this second feedback message, following content can be comprised:
…
ACTION=remove
DEVPATH=devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1.3:1.0/host7/target7:0:0/7:0:0:0/block/sdb
SUBSYSTEM=block
…
DEVNAME=sdb
DEVTYPE=disk
Wherein, " remove " can indicate that memory device is extracted, " devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1.3:1.0/h ost7/target7:0:0/7:0:0:0/block " can represent the 3rd positional information of the 3rd slot that memory device inserts, and " sdb " can represent the implementor name that the memory device be inserted in the 3rd slot is corresponding in systems in which.
Further, also can will be stored in preset second configuration file above by the positional information of slot monitored the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering, to obtain the positional information of slot by reading described second configuration file, and when the positional information of slot changes, only need modify to this preset second configuration file, and the problem that the positional information without the need to being solved slot by update routine is changed and brings, better tackle due to system upgrade with this, the problem of the positional information change of the slot that hardware change etc. bring.
The method of the memory device that the identification computer slot of the embodiment of the present invention inserts, the realization of the method is based on (SuSE) Linux OS, take full advantage of increasing income of linux system, the characteristic that customizability is strong and free, the positional information of the slot inserting memory device is obtained by preset catalogue and profile, the implementor name of memory device also identifies the memory device inserted in slot accordingly, to carry out associative operation to memory device, not only can solve None-identified in prior art before system starts, be inserted into memory device in slot and cannot the problem of slot position that changes of adaptive identification, also recognition efficiency can be improved, and then improve the efficiency that the memory device identified is operated, be particularly useful for the evidence obtaining to evidence of crime, can greatly improve evidence obtaining efficiency.
The embodiment of the method for the memory device that corresponding the invention described above identification computer slot inserts, additionally provides the device embodiment identifying the memory device that computer slot inserts, is specifically described below in conjunction with accompanying drawing.
Fig. 2 shows the structural representation of the device embodiment of the memory device that the other computer slot of the present invention inserts.
In this embodiment, the operating system of computing machine is linux system, and is provided with the default identification application for identifying the memory device inserted in computer slot in computing machine in advance.
This device comprises:
First detecting unit 21, for computing machine operating system and under presetting and identifying that application is all in starting state, detect under the first preset catalogue whether there is first profile with the first preset features.
First acquiring unit 22, for when existence the first profile, then obtains the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile.
Second acquisition unit 23, for obtain the first profile catalogue under the second profile, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
Further, this device also can comprise:
Whether the second detecting unit, exist second profile with the second preset features under detecting the first preset catalogue.
3rd acquiring unit, for when existence the second profile, then obtains the second place information of the slot that operating system hard disk inserts according to described second profile.
First storage unit, for described second place information being stored in the first preset configuration file, so that by reading described first preset configuration file to identify the position of the slot of update system disk.
Further, this device also can comprise:
First monitoring unit, for when there is not the first profile, then monitors the first feedback message by calling preset function, and described first feedback message is feedback message when indicating that the event that memory device inserts occurs.
First determining unit, for when capturing described first feedback information, then defines the second place information of the second slot that memory device inserts according to described first feedback message and inserts memory device in the second slot implementor name corresponding in systems in which.
Further, this device also can comprise:
Second monitoring unit, for monitoring the second feedback message by calling preset function, described second feedback message is feedback message when indicating that the event that memory device extracts occurs.
Second determining unit, for when capturing described second feedback message, then the 3rd positional information defining the 3rd slot that memory device is extracted according to described second feedback message and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
In addition, this device also can comprise:
Second storage unit, for the positional information of slot by monitoring the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering are stored in preset second configuration file, to obtain the positional information of slot by reading described second configuration file.
The device of the memory device that the identification computer slot of the embodiment of the present invention inserts, the realization of this device is based on (SuSE) Linux OS, take full advantage of increasing income of linux system, the characteristic that customizability is strong and free, the positional information of the slot inserting memory device is obtained by preset catalogue and profile, the implementor name of memory device also identifies the memory device inserted in slot accordingly, to carry out associative operation to memory device, not only can solve None-identified in prior art before system starts, be inserted into memory device in slot and cannot the problem of slot position that changes of adaptive identification, also recognition efficiency can be improved, and then improve the efficiency that the memory device identified is operated, be particularly useful for the evidence obtaining to evidence of crime, can greatly improve evidence obtaining efficiency.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or device embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Device described above and device embodiment are only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Above the method for the memory device that identification computer slot provided by the present invention inserts and device are described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications.In sum, this description should not be construed as the restriction to the application.
Claims (10)
1. one kind identifies the method for the memory device that computer slot inserts, it is characterized in that, the operating system of computing machine is linux system, is provided with in advance in a computer to preset to identify application, computing machine operating system and preset identify application be all in starting state under, described method comprises:
First profile with the first preset features whether is there is under detecting the first preset catalogue;
If there is the first profile, then obtain the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile;
Obtain the second profile under the catalogue of the first profile, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
2. the method for claim 1, is characterized in that, also comprises:
Second profile with the second preset features whether is there is under detecting the first preset catalogue;
If there is the second profile, then obtain the second place information of the slot that operating system hard disk inserts according to described second profile;
Described second place information is stored in the first preset configuration file, so that by reading described first preset configuration file to identify the position of the slot of update system disk.
3. the method for claim 1, is characterized in that, also comprises:
If there is not the first profile, then monitor the first feedback message by calling preset function, described first feedback message is feedback message when indicating that the event that memory device inserts occurs;
If capture described first feedback information, then define the second place information of the second slot that memory device inserts according to described first feedback message and insert memory device in the second slot implementor name corresponding in systems in which.
4. method as claimed in claim 3, is characterized in that, also comprise:
Monitor the second feedback message by calling preset function, described second feedback message is feedback message when indicating that the event that memory device extracts occurs;
If capture described second feedback message, then the 3rd positional information defining the 3rd slot that memory device is extracted according to described second feedback message and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
5. method as claimed in claim 4, is characterized in that, also comprise:
The positional information of slot by monitoring the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering are stored in preset second configuration file, to obtain the positional information of slot by reading described second configuration file.
6. identify a device for the memory device that computer slot inserts, it is characterized in that, the operating system of computing machine is linux system, is provided with in advance in a computer to preset to identify application,
Described device comprises:
First detecting unit, for computing machine operating system and under presetting and identifying that application is all in starting state, detect under the first preset catalogue whether there is first profile with the first preset features;
First acquiring unit, for when existence the first profile, then obtains the primary importance information of the first slot that existing memory device inserts before os starting according to described first profile;
Second acquisition unit, for obtain the first profile catalogue under the second profile, and obtain the first corresponding under the second preset catalogue implementor name of the memory device that is inserted in described first slot according to described second profile, to identify the memory device that inserts in the first slot according to getting primary importance information and the first implementor name and to operate described memory device.
7. device as claimed in claim 6, is characterized in that, also comprise:
Whether the second detecting unit, exist second profile with the second preset features under detecting the first preset catalogue;
3rd acquiring unit, for when existence the second profile, then obtains the second place information of the slot that operating system hard disk inserts according to described second profile;
First storage unit, for described second place information being stored in the first preset configuration file, so that by reading described first preset configuration file to identify the position of the slot of update system disk.
8. device as claimed in claim 6, is characterized in that, also comprise:
First monitoring unit, for when there is not the first profile, then monitors the first feedback message by calling preset function, and described first feedback message is feedback message when indicating that the event that memory device inserts occurs;
First determining unit, for when capturing described first feedback information, then defines the second place information of the second slot that memory device inserts according to described first feedback message and inserts memory device in the second slot implementor name corresponding in systems in which.
9. device as claimed in claim 8, is characterized in that, also comprise:
Second monitoring unit, for monitoring the second feedback message by calling preset function, described second feedback message is feedback message when indicating that the event that memory device extracts occurs;
Second determining unit, for when getting described second feedback message, then the 3rd positional information defining the 3rd slot that memory device is extracted according to described second feedback message and the corresponding in systems in which implementor name of the memory device extracted from the 3rd slot.
10. device as claimed in claim 9, is characterized in that, also comprise:
Second storage unit, for the positional information of slot by monitoring the first feedback message and second feedback message of preset function and determine and the corresponding relation of preset slot numbering are stored in preset second configuration file, to obtain the positional information of slot by reading described second configuration file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410604781.5A CN104407994B (en) | 2014-10-31 | 2014-10-31 | The method and device for the storage device inserted on identification computer slot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410604781.5A CN104407994B (en) | 2014-10-31 | 2014-10-31 | The method and device for the storage device inserted on identification computer slot |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104407994A true CN104407994A (en) | 2015-03-11 |
CN104407994B CN104407994B (en) | 2017-12-01 |
Family
ID=52645627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410604781.5A Expired - Fee Related CN104407994B (en) | 2014-10-31 | 2014-10-31 | The method and device for the storage device inserted on identification computer slot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104407994B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110308938A (en) * | 2019-07-01 | 2019-10-08 | 青岛海信传媒网络技术有限公司 | Plug the management method and device of peripheral hardware event |
WO2020035061A1 (en) * | 2018-08-17 | 2020-02-20 | 青岛海信电器股份有限公司 | Method and device for identifying type of memory device externally connected to smart television |
CN113608790A (en) * | 2021-07-14 | 2021-11-05 | 深圳市科陆电子科技股份有限公司 | Linux system based self-adaptive management method and system for serial device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685386A (en) * | 2012-09-12 | 2014-03-26 | 北京百度网讯科技有限公司 | Method and equipment for determining positional information of calculation equipment in complete machine cabinet |
CN103763129A (en) * | 2013-12-31 | 2014-04-30 | 华为技术有限公司 | PCIe equipment management method and device |
-
2014
- 2014-10-31 CN CN201410604781.5A patent/CN104407994B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685386A (en) * | 2012-09-12 | 2014-03-26 | 北京百度网讯科技有限公司 | Method and equipment for determining positional information of calculation equipment in complete machine cabinet |
CN103763129A (en) * | 2013-12-31 | 2014-04-30 | 华为技术有限公司 | PCIe equipment management method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020035061A1 (en) * | 2018-08-17 | 2020-02-20 | 青岛海信电器股份有限公司 | Method and device for identifying type of memory device externally connected to smart television |
CN110308938A (en) * | 2019-07-01 | 2019-10-08 | 青岛海信传媒网络技术有限公司 | Plug the management method and device of peripheral hardware event |
CN110308938B (en) * | 2019-07-01 | 2022-03-22 | 青岛海信传媒网络技术有限公司 | Management method and device for plugging and unplugging peripheral events |
CN113608790A (en) * | 2021-07-14 | 2021-11-05 | 深圳市科陆电子科技股份有限公司 | Linux system based self-adaptive management method and system for serial device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104407994B (en) | 2017-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108804299B (en) | Application program exception handling method and device | |
WO2017032265A1 (en) | Application push method and apparatus, and a serving device | |
AU2021204579A1 (en) | Method For Processing Snapshots And Distributed Block Storage System | |
EP3111359B1 (en) | Method and system for extracting characteristic information | |
CN111368619B (en) | Suspicious person detection method, suspicious person detection device and suspicious person detection equipment | |
CN109614045B (en) | Metadata dropping method and device and related equipment | |
CN107239238B (en) | Storage IO operation method and device based on distributed lock | |
WO2015196981A1 (en) | Method and device for recognizing picture junk files | |
CN104407994A (en) | Method and device for identifying storage equipment inserted into slots of computer | |
CN110399171A (en) | A kind of hard disk management method, system and associated component | |
CN113472803A (en) | Vulnerability attack state detection method and device, computer equipment and storage medium | |
CN109271228A (en) | Interface function recognition methods, device and the electronic equipment of application | |
US9223739B2 (en) | Detection method and apparatus for hot-swapping of SD card | |
CN105207830A (en) | Detection method and apparatus for terminal information, and terminal | |
CN104102582A (en) | Application program running detecting device and terminal | |
CN106507300A (en) | A kind of method for giving loss terminal for change, device and terminal | |
CN107453937B (en) | Management method of network connection pool, network access method and related equipment | |
CN110337017B (en) | Television and log processing method thereof, log processing device and readable storage medium | |
WO2015112612A1 (en) | System and method for implementing screen capture | |
CN104915286B (en) | The mthods, systems and devices that power rating changes for identification | |
CN103714179A (en) | Multi-language supporting method and system for system blog | |
CN106227502A (en) | A kind of method and device obtaining hard disk firmware version | |
CN107818136B (en) | Method and device for recycling garbage object data | |
CN104268231A (en) | File access method, device and intelligent file system | |
CN109558288A (en) | Detection method, device, system and the storage medium of NVME hard disk life-span |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171201 |