CN103106049A - Portable storage device and access method thereof - Google Patents

Portable storage device and access method thereof Download PDF

Info

Publication number
CN103106049A
CN103106049A CN2013100485135A CN201310048513A CN103106049A CN 103106049 A CN103106049 A CN 103106049A CN 2013100485135 A CN2013100485135 A CN 2013100485135A CN 201310048513 A CN201310048513 A CN 201310048513A CN 103106049 A CN103106049 A CN 103106049A
Authority
CN
China
Prior art keywords
storage device
data
address
movable storage
access
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
CN2013100485135A
Other languages
Chinese (zh)
Other versions
CN103106049B (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201310048513.5A priority Critical patent/CN103106049B/en
Publication of CN103106049A publication Critical patent/CN103106049A/en
Application granted granted Critical
Publication of CN103106049B publication Critical patent/CN103106049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a portable storage device and an access method thereof. The access method includes the following steps: a portable storage device of a host is accessed by an interface; a data address of access of the host is judged whether in a physical cluster address scope of a guide section or not; if the physical cluster address scope of the guide section is exceeded, the host is judged to access data in network storage; by access address, virtual address of data is found from the network storage data; and corresponding data is accessed from the network storage by the virtual address of the network storage data. A file allocation table (FAT) area in the portable storage equipment is expanded to a physical cluster and a virtual cluster, and the physical cluster and the virtual cluster respectively correspond to addresses of the portable storage equipment and the network storage, and further data in the portable storage equipment or the network storage are further accessed to facilitate use of a user. Meanwhile, storage size of the portable storage equipment is expanded, and security of network storage data is improved.

Description

A kind of movable storage device and access method thereof
Technical field
The present invention relates to the mobile storage technical field, particularly a kind of movable storage device and access method thereof.
Background technology
Along with the development of embedded technology, wireless connections can be incorporated in movable storage device, thereby have produced a lot of new application.Automatically send user data to the internet, such as Eye-Fi or wireless SD storage card etc.Transparent the synchronizeing of memory device and cloud storage, for example, Imation Pro WX, Wireless USB hard disk drive etc.
Movable storage device is formatted as the FAT subregion usually at present, and can only conduct interviews by the traditional FAT file system of main process equipment.Traditional FAT file has limited the storage block that main frame can be accessed, and these addressable is only the data that physically are present in movable storage device.Such FAT restriction has retrained the use of the movable storage device with wireless connections widely.
Summary of the invention
Purpose of the present invention is intended to solve at least one of above-mentioned technological deficiency.
For achieving the above object, the embodiment of one aspect of the present invention proposes a kind of movable storage device, described movable storage device be formatted as have boot sector, reserve sector, FAT district, root directory area and data field, wherein, described FAT district has physical cluster zone and virtual cluster zone, and the part of described boot sector is for storing described physical cluster area domain addresses.
Movable storage device according to the embodiment of the present invention, expand to physical cluster and virtual cluster by the FAT district with movable storage device, and distinguish address corresponding and movable storage device and the network storage by physical cluster and virtual cluster, and then the data in access movable storage device or the network storage, be user-friendly to, expand simultaneously the storage size of movable storage device, improved the security of network stored data.
In one embodiment of the invention, described movable storage device also comprises: wireless sending module is used for carrying out data communication with the network storage.
For achieving the above object, embodiments of the invention propose a kind of access method of movable storage device on the other hand, comprise step: S1: main frame is by the described movable storage device of interface accessing; S2: judge that the data address of described host access is whether in the physical cluster address realm of described boot sector; S3: if exceed the physical cluster address realm of described boot sector, be judged as the data in the described host access network storage; S4: by the virtual address of described reference address data from described virtual cluster Network Search storage; And S5: by corresponding data in the described network storage of virtual address access of described network stored data.
Method according to the embodiment of the present invention, expand to physical cluster and virtual cluster by the FAT district with movable storage device, and distinguish address corresponding and movable storage device and the network storage by physical cluster and virtual cluster, and then the data in access movable storage device or the network storage, be user-friendly to, expand simultaneously the storage size of movable storage device, improved the security of network stored data.
In one embodiment of the invention, described method also comprises: during physical cluster address realm when the reference address of described main frame at described boot sector, by the data on the described movable storage device of address access of physical cluster in described boot sector.
In one embodiment of the invention, main frame is by the corresponding data of the wireless sending module described network storage of access of described movable storage device.
The aspect that the present invention adds and advantage part in the following description provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or the additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments and obviously and easily understand, wherein:
Fig. 1 is the schematic diagram of the FAT subregion of movable storage device according to an embodiment of the invention; And
Fig. 2 is the process flow diagram of the access method of movable storage device according to an embodiment of the invention.
Embodiment
The below describes embodiments of the invention in detail, and the example of embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.
Fig. 1 is the schematic diagram of the FAT subregion of movable storage device according to an embodiment of the invention.As shown in Figure 1, be formatted as according to the movable storage device of the embodiment of the present invention have boot sector, reserve sector, FAT district, root directory area and data field, wherein, the FAT district has physical cluster zone and virtual cluster zone, and the part of boot sector is used for storing the physical cluster area domain addresses.And store by the sending module accesses network of movable storage device, this network storage is cloud storage etc.
In one embodiment of the invention, virtual cluster only is recorded in bunch index in FAT district, does not in fact represent any physical storage block.Fig. 1 has shown the zoning of FAT-x.In FAT-x, FAT divides into two parts: FAT physical cluster and FAT virtual cluster.The FAT physical cluster is all physical cluster in management data district still, and the FAT virtual cluster is the configuration that is not present in virtual cluster in movable storage device physically.For example, FAT-x counts virtual cluster after the physical cluster position, if namely a movable storage device has 1000 physical cluster, the index of virtual cluster is since 1001.
In one embodiment of the invention, the movable storage device of format has two storage sizes, and the physics of reality that namely is exposed to the virtual store size of main process equipment and movable storage device is big or small.According to the FAT standard, instrument size (physical cluster of sector and the number of addresses of virtual cluster) is recorded in boot sector.The request of identifying main frame by number of addresses is access physical store or virtual store.Be not finished the boot sector of 512 bytes due to all FAT, therefore select near the actual physics size of the word record of 32 of boot sector end, i.e. the physical address number.
Movable storage device according to the embodiment of the present invention, expand to physical cluster and virtual cluster by the FAT district with movable storage device, and distinguish address corresponding and movable storage device and the network storage by physical cluster and virtual cluster, and then the data in access movable storage device or the network storage, be user-friendly to, expand simultaneously the storage size of movable storage device, improved the security of network stored data.
Fig. 2 is the process flow diagram of the access method of movable storage device according to an embodiment of the invention.As shown in Figure 2, the access method according to the movable storage device of the embodiment of the present invention comprises the following steps:
Step S101, main frame is by the interface accessing movable storage device.Can be connected with movable storage device by connecting interfaces such as USB interface, thus the access movable storage device.
Step S102 judges that the data address of host access is whether in the physical cluster address realm of boot sector.
In one embodiment of the invention, virtual cluster only is recorded in bunch index in FAT district, does not in fact represent any physical storage block.Fig. 1 has shown the zoning of FAT-x.In FAT-x, FAT divides into two parts: FAT physical cluster and FAT virtual cluster.The FAT physical cluster is all physical cluster in management data district still, and the FAT virtual cluster is the configuration that is not present in virtual cluster in movable storage device physically.For example, FAT-x counts virtual cluster after the physical cluster position, if namely a movable storage device has 1000 physical cluster, the index of virtual cluster is since 1001.When the address of host access surpasses physical cluster address 1000, be judged as the data of the host access network storage.
Step S103 if exceed the physical cluster address realm of boot sector, is judged as the data in the host access network storage.
In one embodiment of the invention, when the address of host access surpasses physical cluster address 1000, be judged as the data of the host access network storage.If the reference address of main frame when the physical cluster address realm of boot sector, be judged as host access with the data of that memory device.
Step S104 is by the virtual address of reference address data from the storage of virtual cluster Network Search.
In one embodiment of the invention, the maximum address of physical cluster is 1000, when the address of host access is 1500, seeks address 1500 in the address of virtual cluster.
Step S105 is by corresponding data in the virtual address accesses network storage of network stored data.
In one embodiment of the invention, although FAT-x allows any tradition of movable storage device to use, traditional FAT file system that virtual cluster itself can not be moved on main process equipment is distributed or is reclaimed.For fear of this problem, FAT-x predistribution all virtual cluster to one or more virtual files.These virtual files are regular files, and as seen, but its file operation from traditional main frame should be the special processing at movable storage device in legacy hosts.Read generally that file and change file attribute (comprising Rename file) normally allow; Writing in files depends on the engine from equipment (SD is from equipment/USB from equipment) of equipment; The alternative document operation especially creates new file and deleted file, must be refused from engine.
Operating from the simple block I/O of the common processing of engine in movable storage device, for example: only processing from the sector of main process equipment from engine of SD read and write request.In order to support main process equipment accesses virtual file, should identify the virtual cluster of the storage block I/O request of main frame from engine.Because FAT-x counts virtual cluster behind the physical cluster position, so can identify virtual cluster from engine.
Method according to the embodiment of the present invention, expand to physical cluster and virtual cluster by the FAT district with movable storage device, and distinguish address corresponding and movable storage device and the network storage by physical cluster and virtual cluster, and then the data in access movable storage device or the network storage, be user-friendly to, expand simultaneously the storage size of movable storage device, improved the security of network stored data.
Although the above has illustrated and has described embodiments of the invention, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art is not in the situation that break away from principle of the present invention and aim can change above-described embodiment within the scope of the invention, modification, replacement and modification.

Claims (5)

1. movable storage device, it is characterized in that, described movable storage device be formatted as have boot sector, reserve sector, FAT district, root directory area and data field, wherein, described FAT district has physical cluster zone and virtual cluster zone, and the part of described boot sector is for storing described physical cluster area domain addresses.
2. movable storage device as claimed in claim 1, is characterized in that, also comprises:
Wireless sending module is used for carrying out data communication with the network storage.
3. the access method as the described movable storage device of claim 1-2, is characterized in that, comprises the following steps:
S1: main frame is by the described movable storage device of interface accessing;
S2: judge that the data address of described host access is whether in the physical cluster address realm of described boot sector;
S3: if exceed the physical cluster address realm of described boot sector, be judged as the data in the described host access network storage;
S4: by the virtual address of described reference address data from described virtual cluster Network Search storage; And
S5: by corresponding data in the described network storage of virtual address access of described network stored data.
4. the access method of movable storage device as claimed in claim 3, it is characterized in that, also comprise: during physical cluster address realm when the reference address of described main frame at described boot sector, by the data on the described movable storage device of address access of physical cluster in described boot sector.
5. the access method of movable storage device as claimed in claim 3, is characterized in that, main frame is by the corresponding data of the wireless sending module described network storage of access of described movable storage device.
CN201310048513.5A 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof Active CN103106049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310048513.5A CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310048513.5A CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Publications (2)

Publication Number Publication Date
CN103106049A true CN103106049A (en) 2013-05-15
CN103106049B CN103106049B (en) 2016-08-03

Family

ID=48313945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310048513.5A Active CN103106049B (en) 2013-02-06 2013-02-06 A kind of movable storage device and access method thereof

Country Status (1)

Country Link
CN (1) CN103106049B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257364A (en) * 2017-05-27 2017-10-17 上海斐讯数据通信技术有限公司 Wireless mobile hard disk, wireless mobile hard disk collocation method and access method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303667A (en) * 2008-06-25 2008-11-12 炬力集成电路设计有限公司 Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN101882132A (en) * 2009-04-27 2010-11-10 深圳市闪联信息技术有限公司 Creating and reading method and device for virtual FAT file system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303667A (en) * 2008-06-25 2008-11-12 炬力集成电路设计有限公司 Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster
CN101882132A (en) * 2009-04-27 2010-11-10 深圳市闪联信息技术有限公司 Creating and reading method and device for virtual FAT file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257364A (en) * 2017-05-27 2017-10-17 上海斐讯数据通信技术有限公司 Wireless mobile hard disk, wireless mobile hard disk collocation method and access method

Also Published As

Publication number Publication date
CN103106049B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US11068455B2 (en) Mapper tree with super leaf nodes
US10402092B2 (en) Resizing namespaces for storage devices
KR100820263B1 (en) System and method for accessing data from a memory device
JP5129156B2 (en) Access device and write-once recording system
US11010079B2 (en) Concept for storing file system metadata within solid-stage storage devices
TW201205288A (en) Data protecting method, memory controller and portable memory storage device
US11269783B2 (en) Operating method for data storage device
CN106201652B (en) Data processing method and virtual machine
CN101582084B (en) Method and device for data storage
CN103677670A (en) Method and device for reading data
KR101618998B1 (en) Network booting system
CN110554843A (en) Method and system for storing file data by multiple storage devices
US9740408B1 (en) Using information specifying an organization of a data structure associated with a storage device
CN104133640B (en) From the fast quick-recovery of dormancy
US8595426B2 (en) Handling commands within a write-once read-many storage device configuration
CN107430546B (en) File updating method and storage device
CN103257928B (en) Flash memory device data managing method and system
US20200364140A1 (en) Memory system and non-transitory computer readable recording medium
CN111352865B (en) Write caching for memory controllers
CN110515861B (en) Memory device for processing flash command and method thereof
CN103106049B (en) A kind of movable storage device and access method thereof
US10585592B2 (en) Disk area isolation method and device
US20210303212A1 (en) Data processing method and memory controller utilizing the same
CN106227473A (en) A kind of using internal memory as the implementation method of disk read-write and device
CN103488584B (en) A kind of data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant