CN109388342A - The multifile system recognition methods of movable storage device and system, car-mounted terminal - Google Patents
The multifile system recognition methods of movable storage device and system, car-mounted terminal Download PDFInfo
- Publication number
- CN109388342A CN109388342A CN201811012219.8A CN201811012219A CN109388342A CN 109388342 A CN109388342 A CN 109388342A CN 201811012219 A CN201811012219 A CN 201811012219A CN 109388342 A CN109388342 A CN 109388342A
- Authority
- CN
- China
- Prior art keywords
- storage device
- movable storage
- file
- format information
- movable
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
- G06F9/4413—Plug-and-play [PnP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
Abstract
The present invention is suitable for vehicle technology field, provides a kind of multifile system recognition methods of movable storage device, comprising: when detecting movable storage device, obtains the storage mark of the movable storage device;According to the format information of the file system in the storage mark, judge whether current system supports the file in the movable storage device;If supporting, the file in the movable storage device is read, completes the file identification to movable storage device;If not supporting, file system is prompted not support, file reads failure.The embodiment of the present invention can be when detecting movable storage device, automatically the storage mark of the movable storage device is obtained, and judge whether current system supports the file in the movable storage device with this, if supporting, then it is automatically performed the identification to file in movable storage device, the problem of existing car-mounted terminal is solved in extrapolation movable storage device, can only identify single file format.
Description
Technical field
The invention belongs to the multifile system recognition methods of vehicle technology field more particularly to a kind of movable storage device and
System, car-mounted terminal.
Background technique
Present car-mounted terminal, support extrapolation movable storage device, and mobile device at this stage, towards large capacity
Direction develop and use, such as common 128G, 512G even 1TB be also more commonly used movable storage device.
User often carries out fining Classification Management when actually using movable storage device, such as by movable storage device
Multiple subregions are carried out, and establishes different files in each subregion and saves different types of file.But in existing vehicle
For mounted terminal when identification extrapolation is such as the movable storage device of SD card or USB flash disk, car-mounted terminal can only identify single file format,
It can not identify alternative document format.
Summary of the invention
Technical problem to be solved by the present invention lies in provide a kind of multifile system recognition methods of movable storage device
And system, car-mounted terminal, it is intended to solve the car-mounted terminal of the prior art in extrapolation movable storage device, can only identify single
File format, the problem of can not identifying alternative document format.
The invention is realized in this way a kind of multifile system recognition methods of movable storage device, comprising:
When detecting movable storage device, the storage mark of the movable storage device is obtained;
According to the format information of the file system in the storage mark, judge whether current system supports the movement to deposit
Store up the file in equipment;
If supporting, the file in the movable storage device is read, completes the file identification to movable storage device;
If not supporting, file system is prompted not support, file reads failure.
Further, described when detecting movable storage device, obtain the storage mark packet of the movable storage device
It includes:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, judgement is
It is no to have movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
Further, whether the format information according to the file system in the storage mark, judge current system
Before supporting the file in the movable storage device, further includes:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format letter of the file system in the storage mark is obtained
Breath;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
The format information of system.
Further, the storage mark is stored in the firmware of the movable storage device;
The format information according to the file system in the storage mark, judges whether current system supports the shifting
Moving the file stored in equipment includes:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data, end mark altogether
For 0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, whether judges current system
Support the file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports institute
The file of movable storage device is stated, if not, it is determined that current system does not support the file of the movable storage device.
Further, the multifile system recognition methods further include:
If not supporting, the corresponding application program of the format information is obtained;
After the installation for completing the application program, the file in the movable storage device is read, completes to deposit movement
Store up the file identification of equipment.
The embodiment of the invention also provides a kind of multifile system identifying systems of movable storage device, comprising:
Acquiring unit, the storage for when detecting movable storage device, obtaining the movable storage device identify;
Whether judging unit judges current system for the format information according to the file system in the storage mark
It supports the file in the movable storage device, if supporting, reads the file in the movable storage device, complete to movement
The file identification of storage equipment prompts file system not support if not supporting, file reads failure.
Further, the acquiring unit is specifically used for:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, judgement is
It is no to have movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
Further, the multifile system identifying system further includes analytical unit and installation unit;
The analytical unit is used for:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format letter of the file system in the storage mark is obtained
Breath;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
The format information of system;
The installation unit is used for:
If the judging unit judges that current system does not support the file in the movable storage device, the lattice are obtained
The corresponding application program of formula information;
After the installation for completing the application program, the file in the movable storage device is read, completes to deposit movement
Store up the file identification of equipment
Further, the storage mark is stored in the firmware of the movable storage device;
The judging unit is specifically used for:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data, end mark altogether
For 0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, whether judges current system
Support the file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports institute
The file of movable storage device is stated, if not, it is determined that current system does not support the file of the movable storage device.
The embodiment of the invention also provides a kind of car-mounted terminals, including multifile system identifying system described above.
Compared with prior art, the present invention beneficial effect is: the embodiment of the present invention, which is worked as, detects that the mobile storage of insertion is set
When standby, the storage mark of the movable storage device is obtained, according to the format information of the file system in the storage table, judgement is current
Whether system supports the file in the movable storage device, if supporting, the file in the movable storage device is read, if not propping up
It holds, then prompts to read failure.The embodiment of the present invention can obtain automatically the movement storage and set when detecting movable storage device
Standby storage mark, and judge whether current system supports the file in the movable storage device with this, it is automatic complete if supporting
The identification of file, solves existing car-mounted terminal in extrapolation movable storage device, Zhi Nengshi in pairs of movable storage device
The problem of not single file format.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the multifile system recognition methods of movable storage device provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of the multifile system identifying system of movable storage device provided in an embodiment of the present invention
Figure.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows a kind of multifile system recognition methods of movable storage device provided in an embodiment of the present invention, comprising:
S101 obtains the storage mark of the movable storage device when detecting movable storage device;
It is described to judge whether current system is supported according to the format information of the file system in the storage mark by S102
File in movable storage device;
S103 reads the file in the movable storage device if supporting, completes to know the file of movable storage device
Not;
S104 prompts file system not support if not supporting, file reads failure.
In embodiments of the present invention, movable storage device includes USB flash disk, mobile hard disk, SD card, the hand with store function
Machine, plate etc., in step s101, when user will directly move by USB flash disk or SD card insertion car-mounted terminal, or by data line
When hard disk, mobile phone, plate etc. are inserted into car-mounted terminal, car-mounted terminal will acquire the storage mark of the movable storage device, the storage
Mark includes the format information and other information of the file system of the movable storage device.
In step s 102, car-mounted terminal according to movable storage device storage mark in file system format information,
Judge whether the currently running system of car-mounted terminal supports the file in the movable storage device.Specifically, if current vehicle-mounted end
End operation is linux system, and the file system stored in the movable storage device being inserted into includes different file format,
In this step, car-mounted terminal needs the format to the file system in movable storage device to judge, to determine current system
Whether the file in the movable storage device is read in support.
In step S103 and step S104, car-mounted terminal determines current operation according to the format information of movable storage device
System can support read movable storage device file, then complete the reading and identification of file, so as to user carry out it is subsequent
Operation.The subsequent operation includes playing video, audio etc., if not supporting, in the current fortune of display unit prompt of car-mounted terminal
Capable system does not support the movable storage device of insertion, reads failure to the file of the movable storage device of the insertion.
The multifile system recognition methods provided through the embodiment of the present invention, car-mounted terminal can pass through movable storage device
Storage mark judge automatically whether currently running system can be supported to carry out file reading and knowledge to the movable storage device
Not, single file format in the movable storage device of insertion can only be identified by solving existing car-mounted terminal, realize multifile system
The identification of system.The type of file system mentioned in the embodiment of the present invention respectively includes exFAT, FAT32, NTFS or other texts
Part system can be realized the identification to above-mentioned file system through the embodiment of the present invention, to reach identification movable storage device
File purpose.
Further, in order to solve the text that the currently running system of car-mounted terminal can not identify the movable storage device of insertion
The problem of part, the present invention additionally provide second embodiment on the basis of first embodiment shown in fig. 1:
If current system does not support the file in the movable storage device, it is corresponding using journey to obtain the format information
Sequence;
After the installation for completing the application program, the file in the movable storage device is read, completes to deposit movement
Store up the file identification of equipment.
In the present embodiment, if the currently running system of car-mounted terminal is unable to complete the text to the movable storage device of insertion
Part is read and identification, and even car-mounted terminal judges that there is no the application journeys that can identify the movable storage device in current system
It is corresponding such as to obtain the format information from preset website or application database then by preset acquiring way for sequence
Application program, and the application program is installed automatically, after the installation of application program, file in the movable storage device will be read,
Complete the identification to file.Through this embodiment, corresponding application program can be installed according to the file of movable storage device, with
Completion provides other the file identification of the movable storage device when current system can not support movable storage device
Implementation method.It should be noted that car-mounted terminal provided in an embodiment of the present invention can be in such a way that application program be installed
The recognition capability of file system is extended, it in a particular application, can be by way of being mounted directly application program, to solve vehicle
The problem of currently running system of mounted terminal does not support the file system of movable storage device, can also be by modifying current operation
The bottom code of system, to achieve the effect that support a variety of file system formats.
Further, in step s101, it specifically includes:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, judgement is
It is no to have movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
Specifically, in step s101, when movable storage device equipment is inserted into car-mounted terminal, the USB of car-mounted terminal is driven
Dynamic model block carries out whole identification to the equipment of insertion, and generates such as/sys/dev/block/*:* class file in Linux system
Node finds USB device or mobile device success.More specifically, movable storage device is inserted by USB interface in this way, it is vehicle-mounted
The hardware based USB specification data pin differential voltage of terminal, for whether being inserted into movable storage device and judging, if judgement
When no equipment or movable storage device damage, into abnormality processing, stop detection service, if in the presence of judging mobile device,
Then obtain the storage mark of the movable storage device.
In the prior art, movable storage device is all generally the storage equipment of large capacity, while user is actually using
In like carrying out subregion to the movable storage device of large capacity, mobile hard disk such as is divided into several subregions, each subregion is stored not
The file of same type, therefore, the embodiment of the present invention is before executing step S102, further includes:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format letter of the file system in the storage mark is obtained
Breath;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
The format information of system.
Specifically, the storage of movable storage device identifies other than including the format information of file system, also includes
The partition information of movable storage device.Car-mounted terminal will acquire the movable storage device after determining insertion movable storage device
Storage mark, according to the storage mark in partition information judge, under normal circumstances, if storage mark in do not include subregion
Information, then defaulting the movable storage device being currently inserted into is only single subregion, directly obtains the movement from storage mark and deposits
The format information of the file system of equipment is stored up, if including partition information in storage mark, it is determined that the movement being currently inserted into
Storing equipment, there are multi partitions, then according to the format information and partition information in storage mark, determine that each subregion is corresponding
The format information of file system.In the present embodiment, before the judgement of step S102, point of the movable storage device is first obtained
Area's information avoids movable storage device there are multi partition and there are errors in judgement accurately to be judged.
Further, storage mark is stored in the firmware of the movable storage device;
Step S102 is specifically included:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data, end mark altogether
For 0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, whether judges current system
Support the file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports institute
The file of movable storage device is stated, if not, it is determined that current system does not support the file of the movable storage device.
Specifically, in the present embodiment, car-mounted terminal reads information from the disk of movable storage device, opens from address 0
Begin to read, read 512byte data altogether, the data read out are converted to car-mounted terminal and currently propped up by end mark 0x55AA
The first file system format held: vfat format specifically includes:
Second of file system format that car-mounted terminal is supported: exfat format specifically includes:
The third file format that car-mounted terminal is supported: ntfs format specifically includes:
The format information of car-mounted terminal acquisition file system:
Zh_p0=(struct vfat_partition*) (data+ZH_BLKID_VFAT_PT_OFFSET);
Circulation discriminate whether be current system support file system:
It whether is one kind in vfat
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic=" MSWIN ")
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic=" FAT32 ")
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic=" MSDOS ")
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic=" FAT16 ")
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic=" FAT12 ")
It whether is exfat
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic!=" exfat ")
It whether is ntfs
if(zh_p0->zh_boot_ind!=0&&zh_p0- > magic!=" NTFS ")
Wherein, it is main partition or extension partitioning step that car-mounted terminal, which parses the movable storage device:
Circulation
{
Obtain subregion initial address
Obtain number of partitions
(if partition size is not zero)
It continues cycling through;
File partition table is added into linux vehicle-mounted terminal system
}
Circulation
{
Obtain subregion initial address
Obtain number of partitions
(if partition size is not zero)
It continues cycling through;
It is main partition that the subregion, which is arranged,
}
Circulation
{
Subregion initial address is obtained
Obtain number of partitions
(if partition size is not zero)
It continues cycling through;
It is main partition that the subregion, which is arranged,
}
Circulation
{
Subregion initial address is obtained
Obtain number of partitions
(if partition size is not zero)
It continues cycling through;
It is logical partition that the subregion, which is arranged,
}
It repeats the above steps, so completes the subregion of movable storage device and the identification of file system.
The multi partition multifile system that the embodiment of the present invention is realized is clearly in the advantage that car-mounted terminal is possessed
, embodiment, which solves existing car-mounted terminal, when of the invention cannot identify that daily large capacity is mobile there are single subregion, obviously
The problem of hard disk.And backward compatible function may be implemented based on USB specification, it is converted certainly for mobile USB flash disk and card reader
USB flash disk, can be identified, realize backward compatible design, here backward compatible is specifically described as from supporting certain single point
To multi partition and multifile system, information is read out the single file system in area by the firmware information in movable storage device.
The embodiment of the invention also provides a kind of multifile system identifying system of movable storage device as shown in Figure 2,
Include:
Acquiring unit 201, for when detecting movable storage device, obtaining the storage mark of the movable storage device
Know;
Judging unit 202 judges that current system is for the format information according to the file system in the storage mark
The no file supported in the movable storage device reads the file in the movable storage device if supporting, completes to shifting
The file identification of dynamic storage equipment prompts file system not support if not supporting, file reads failure.
Further, acquiring unit 201 is specifically used for:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, judgement is
It is no to have movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
Further, the multifile system identifying system further includes analytical unit 203 and installation unit 204;
Analytical unit 203 is used for:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format letter of the file system in the storage mark is obtained
Breath;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
The format information of system;
Installation unit 204 is used for:
If judging unit 202 judges that current system does not support the file in the movable storage device, the lattice are obtained
The corresponding application program of formula information;
After the installation for completing the application program, the file in the movable storage device is read, completes to deposit movement
Store up the file identification of equipment
Further, the storage mark is stored in the firmware of the movable storage device;
Judging unit 202 is specifically used for:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data, end mark altogether
For 0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, whether judges current system
Support the file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports institute
The file of movable storage device is stated, if not, it is determined that current system does not support the file of the movable storage device.
The embodiment of the invention also provides a kind of car-mounted terminals, including multifile system identifying system shown in Fig. 2.
The embodiment of the invention also provides a kind of terminal, including memory, processor and storage on a memory and are being located
The computer program run on reason device realizes the more of movable storage device as shown in Figure 1 when processor executes computer program
Each step of file system recognition methods.
A kind of readable storage medium storing program for executing is also provided in the embodiment of the present invention, is stored thereon with computer program, the computer
When program is executed by processor, each step of the multifile system recognition methods of movable storage device as shown in Figure 1 is realized.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of multifile system recognition methods of movable storage device characterized by comprising
When detecting movable storage device, the storage mark of the movable storage device is obtained;
According to the format information of the file system in the storage mark, judge whether current system supports the mobile storage to set
File in standby;
If supporting, the file in the movable storage device is read, completes the file identification to movable storage device;
If not supporting, file system is prompted not support, file reads failure.
2. multifile system recognition methods as described in claim 1, which is characterized in that described to detect movable storage device
When, the storage mark for obtaining the movable storage device includes:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, is judged whether there is
Movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
3. multifile system recognition methods as described in claim 1, which is characterized in that described according in storage mark
The format information of file system, before judging whether current system supports the file in the movable storage device, further includes:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format information of the file system in the storage mark is obtained;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
Format information.
4. multifile system recognition methods as described in claim 1, which is characterized in that the storage mark is stored in the shifting
In the firmware of dynamic storage equipment;
The format information according to the file system in the storage mark, judges whether current system supports the movement to deposit
Storage equipment in file include:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data altogether, end mark is
0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, judges whether current system is supported
The file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports the shifting
The file of dynamic storage equipment, if not, it is determined that current system does not support the file of the movable storage device.
5. multifile system recognition methods as described in claim 1, which is characterized in that the multifile system recognition methods is also
Include:
If not supporting, the corresponding application program of the format information is obtained;
After the installation for completing the application program, the file in the movable storage device is read, completes to set mobile storage
Standby file identification.
6. a kind of multifile system identifying system of movable storage device characterized by comprising
Acquiring unit, the storage for when detecting movable storage device, obtaining the movable storage device identify;
Judging unit judges whether current system is supported for the format information according to the file system in the storage mark
File in the movable storage device reads the file in the movable storage device if supporting, completes to store to mobile
The file identification of equipment prompts file system not support if not supporting, file reads failure.
7. multifile system identifying system as claimed in claim 6, which is characterized in that the acquiring unit is specifically used for:
When detecting the insertion operation of movable storage device, it is based on USB specification data pin differential voltage, is judged whether there is
Movable storage device insertion;
If detected movable storage device insertion, judge whether the movable storage device is normal;
If judging, the movable storage device is abnormal, enters abnormality processing step, stops detection;
If judging, most movable storage devices are normal, obtain the storage mark of the movable storage device.
8. multifile system identifying system as claimed in claim 6, which is characterized in that the multifile system identifying system is also
Including analytical unit and installation unit;
The analytical unit is used for:
It is identified according to the storage, judges the movable storage device with the presence or absence of multi partition;
If there are single subregions for the movable storage device, the format information of the file system in the storage mark is obtained;
If there are multi partitions for the movable storage device, the storage mark is read, the file system of each subregion is obtained
Format information;
The installation unit is used for:
If the judging unit judges that current system does not support the file in the movable storage device, the format letter is obtained
Cease corresponding application program;
After the installation for completing the application program, the file in the movable storage device is read, completes to set mobile storage
Standby file identification.
9. multifile system identifying system as claimed in claim 6, which is characterized in that the storage mark is stored in the shifting
In the firmware of dynamic storage equipment;
The judging unit is specifically used for:
It is read since the address 0 of the firmware of the movable storage device, reads 512byte data altogether, end mark is
0x55AA;
The data of reading are converted, the format information of file system is obtained;
It is searched in the format information list of preservation according to the format information being converted to, judges whether current system is supported
The file of the movable storage device;
If finding the format information being converted in the format information list, it is determined that current system supports the shifting
The file of dynamic storage equipment, if not, it is determined that current system does not support the file of the movable storage device.
10. a kind of car-mounted terminal, which is characterized in that including claim 6 to 9 described in any item multifile system identifications system
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811012219.8A CN109388342A (en) | 2018-08-31 | 2018-08-31 | The multifile system recognition methods of movable storage device and system, car-mounted terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811012219.8A CN109388342A (en) | 2018-08-31 | 2018-08-31 | The multifile system recognition methods of movable storage device and system, car-mounted terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109388342A true CN109388342A (en) | 2019-02-26 |
Family
ID=65417695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811012219.8A Pending CN109388342A (en) | 2018-08-31 | 2018-08-31 | The multifile system recognition methods of movable storage device and system, car-mounted terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109388342A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212041A (en) * | 2019-12-24 | 2020-05-29 | 贵州航天计量测试技术研究所 | Mobile storage medium illegal external connection alarm system and method |
CN112860187A (en) * | 2021-02-09 | 2021-05-28 | 联想(北京)有限公司 | Access method and device of external storage equipment, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598453A (en) * | 2013-10-31 | 2015-05-06 | 中国银联股份有限公司 | Data migration method based on data buffering |
CN104639553A (en) * | 2015-02-13 | 2015-05-20 | 福州瑞芯微电子有限公司 | Data interaction method, data interaction device and data interaction system |
CN105868820A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | U disk device identification method and apparatus, and mobile device |
CN207133849U (en) * | 2017-08-25 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of readily identified USB flash disk |
-
2018
- 2018-08-31 CN CN201811012219.8A patent/CN109388342A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598453A (en) * | 2013-10-31 | 2015-05-06 | 中国银联股份有限公司 | Data migration method based on data buffering |
CN104639553A (en) * | 2015-02-13 | 2015-05-20 | 福州瑞芯微电子有限公司 | Data interaction method, data interaction device and data interaction system |
CN105868820A (en) * | 2015-12-15 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | U disk device identification method and apparatus, and mobile device |
CN207133849U (en) * | 2017-08-25 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of readily identified USB flash disk |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212041A (en) * | 2019-12-24 | 2020-05-29 | 贵州航天计量测试技术研究所 | Mobile storage medium illegal external connection alarm system and method |
CN111212041B (en) * | 2019-12-24 | 2022-05-20 | 贵州航天计量测试技术研究所 | Mobile storage medium illegal external connection alarm system and method |
CN112860187A (en) * | 2021-02-09 | 2021-05-28 | 联想(北京)有限公司 | Access method and device of external storage equipment, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107453960B (en) | Method, device and system for processing test data in service test | |
US20130179495A1 (en) | System and method for alerting leakage of personal information in cloud computing environment | |
CN109885597B (en) | User grouping processing method and device based on machine learning and electronic terminal | |
CN103220411B (en) | A kind of hot plug detection method, device and mobile terminal | |
CN110334144B (en) | Message display method, device, computer equipment and storage medium | |
CN109343885B (en) | System upgrading method and multi-system equipment | |
CN109388342A (en) | The multifile system recognition methods of movable storage device and system, car-mounted terminal | |
CN103220352A (en) | Terminal, server, file storage system and file storage method | |
CN109101435A (en) | The multi partition recognition methods of movable storage device and system, car-mounted terminal | |
CN110427375A (en) | The recognition methods of field classification and device | |
CN109246280B (en) | Address book cloud processing method and device, computer equipment and readable storage medium | |
US9223739B2 (en) | Detection method and apparatus for hot-swapping of SD card | |
CN112631842B (en) | System memory identification test method, system and electronic equipment | |
CN107491332B (en) | Method and device for identifying false installation of application program and server | |
CN105095098A (en) | Method and device for controlling memories having different capacities | |
CN114237719B (en) | USB flash disk identification method, system, computer equipment and storage medium | |
CN110209351B (en) | Distributed storage data processing method and device | |
CN113194161A (en) | Method and device for setting MMIO base address of server system | |
CN106502863B (en) | software version prompting method and device | |
CN113127479A (en) | Method and device for loading Elasticissearch index, computer equipment and storage medium | |
CN110677353A (en) | Data access method and system | |
CN110569059A (en) | USB-based system partition upgrading method under uboot | |
CN112463486A (en) | Disk quality inspection method, system, terminal and storage medium | |
CN107479910B (en) | Document repairing method, system, readable storage medium and computer equipment | |
CN110580243A (en) | file comparison method and device, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190226 |
|
RJ01 | Rejection of invention patent application after publication |