CN100478919C - Method for changing mobile storage device function or status - Google Patents
Method for changing mobile storage device function or status Download PDFInfo
- Publication number
- CN100478919C CN100478919C CNB2003101174572A CN200310117457A CN100478919C CN 100478919 C CN100478919 C CN 100478919C CN B2003101174572 A CNB2003101174572 A CN B2003101174572A CN 200310117457 A CN200310117457 A CN 200310117457A CN 100478919 C CN100478919 C CN 100478919C
- Authority
- CN
- China
- Prior art keywords
- storage device
- movable storage
- file
- function
- state
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000008023 solidification Effects 0.000 claims description 28
- 230000008859 change Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003756 stirring Methods 0.000 description 2
- 101100226366 Arabidopsis thaliana EXT3 gene Proteins 0.000 description 1
- 102100029074 Exostosin-2 Human genes 0.000 description 1
- 101000918275 Homo sapiens Exostosin-2 Proteins 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 208000034420 multiple type III exostoses Diseases 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
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/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0634—Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
-
- 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/0605—Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
-
- 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/0629—Configuration or reconfiguration of storage systems
- G06F3/0632—Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This invention relates to a method for altering function or status of mobile storage devices without mechanical toggle switch including the following steps: setting solidified software and writing in specific files in said storage device. Said mobile storage device sets the information of the specific file. Said solidified software judges and carries out the being realized function or status of said mobile storage device in terms of the information of the specific file. This invention alters the function or status of the mobile storage device by soft realization method to simplify its structure.
Description
[technical field]
The invention relates to a kind of method that changes movable storage device function or state, particularly about a kind of change movable storage device function of mechanical type toggle switch or method of state of need not.
[background technology]
Along with the development of infotech, the data processing storage is close day by day with people's work life relation, and movable storage device becomes data storage and one of important means of carrying with its convenient, flexible characteristics.Along with the day by day raising of people to the movable storage device requirement; various memory devices emerge in an endless stream; the flash disk that uses up till now from early stage floppy disk, CF card, mmc card, SM card, SD card etc.; the volume of memory device is more and more littler; the function that realizes is more and more; as write-protect, hide, encrypt, and multi partition etc., wherein write-protect is present in various movable storage devices as a basic function of movable storage device.Early stage floppy disk uses a mechanical type toggle switch, and driver is realized this function of write-protect by the position of mechanical hook-up detection write-protect switch.Though present movable storage device has littler volume and more function, the method for the realization of its write-protect and other function selecting still is similar to early stage floppy disk, promptly realizes by stirring similar mechanical switch.So just make memory device two even more switches occur, this has increased the workload of Mould design difficulty and appearance design beyond doubt, and then increases hardware cost.And it takies space bigger on the pcb board, becomes one of bottleneck that influences the memory device miniaturization.In addition, also exist function selecting single, defective such as serviceable life is short.
[summary of the invention]
The objective of the invention is to provides a kind of need not to stir the change movable storage device function of mechanical switch or the method for state for movable storage device.
The objective of the invention is to realize by following technical proposal: the method that the present invention changes movable storage device function or state may further comprise the steps: in described movable storage device solidification software is set, described solidification software comprises that a plurality of functions realize module and file polling module; In described movable storage device, write specific file; By the host computer operating system that described movable storage device connected the information of described specific file is set; The information that described solidification software is inquired about described specific file by the file polling module, and judge function or the state that described movable storage device desire realizes according to the information of described specific file; Described solidification software calling function realizes that module realizes function or state that described movable storage device desire realizes.
Compared with prior art, the present invention adopts soft implementation method to change the function or the state of movable storage device, thereby saved industry mechanical switching device commonly used, and then reached simplified structure, expanded function and the effect that reduces cost and easy to use flexible.
[description of drawings]
Fig. 1 is the file allocation table that the present invention changes the host computer operating system of first embodiment in the method for movable storage device function or state.
Fig. 2 is the process flow diagram that the present invention changes the solidification software work in the movable storage device described in method first embodiment of movable storage device function or state.
Fig. 3 is the process flow diagram that the present invention changes the solidification software work in the movable storage device described in another embodiment of method of movable storage device function or state.
[embodiment]
First embodiment that the present invention changes the method for movable storage device function or state may further comprise the steps: in described movable storage device solidification software is set; Write specific file to described movable storage device; Described specific file attribute is set; Described solidification software judges and carries out the function or the state of described movable storage device desire realization by described specific file attribute.
Comprise in the described solidification software that various functions realize module and file polling module, described function realizes that module comprises that write-protect, subregion, encryption reach function realization modules such as hiding, and described file polling module is used for inquiring about the attribute of described specific file.
Writing specific file to movable storage device is the fixed position that described specific file is write described movable storage device by movable storage device format instrument, described specific file can be various types of files, described glue file also can be write by operating system voluntarily by the user, more helps inquiry to described specific file but by the format instrument described specific file is write the fixed position.
Described specific file attribute set comprise: the attribute of described specific file is set by the host computer operating system that described movable storage device connects.Be that example describes with windows 2000 operating systems in the present embodiment, but be not limited to this operating system.File in Windows 2000 operating systems generally has attributes such as " read-only ", " hiding ", " file ".When the attribute of described specific file is set, only need to be undertaken by the operating process of windows 2000 operating systems, be that click right enters file " attribute " and sets window, in the attributes such as wherein " read-only ", " hiding ", " file " one or more selected setting.To the setting of described specific file attribute carry out " determining " operation after, the attribute change of described specific file promptly is reflected in the file system of operating system, file system described in the present embodiment is that example describes with FAT16, but is not limited to this document system.As shown in Figure 1, Fig. 1 is the file allocation table of FAT16 file system, and wherein first hurdle " offset " represents the offset address of file storage, and second hurdle " 0~F " is the fileinfo position, and the content of each information bit is all represented by one 2 16 ary codes.The offset address of now supposing described specific file is 9679E0, file is called " 0000.txt ", attribute is " file ", then the corresponding offset address of the filename of described specific file " 0000 " is 9679E0, the fileinfo position is 4 16 ary codes " 20 20 20 20 " of 4-7, its extension name " TXT " respective file information bit is 3 16 ary codes " 54 58 54 " of 8-A, its attribute " file " respective file information bit is 16 ary codes " 20 " of B, the corresponding binary code of described 16 ary codes " 20 " is " xx1x xxxx " (" x " do not need to represent the position judged), promptly " file " attribute-bit position is 1, when file attribute is " read-only ", corresponding binary code is " xxxx xxx1 ", promptly " read-only " attribute-bit position is 1, when file attribute is " hiding ", corresponding binary code is " xxxxxx1x ", promptly " hiding " the attribute-bit position is 1, can find out thus, described " hiding ", " read-only " reaches three flag in the binary code of information bit that " file " three kinds of file attributes correspond respectively in the described file management table expression file attribute, each zone bit has " 0 " and " 1 " two states, and these three flag combinations can be represented 2 of file
3I.e. 8 kinds of states.
Described solidification software judges by the attribute of described specific file and carry out that function or state that described movable storage device desire realizes comprise: described movable storage device is being connected with host computer or during executable operations, as shown in Figure 2, described solidification software carries out initialization to described movable storage device earlier; Whether follow described file polling module and detect described specific file and exist, if there is no process ends then is if exist then detect the attribute of described specific file with the file allocation table of crossing described host computer operating system; Judge function or the state that described movable storage device desire realizes according to the attribute of described specific file then, can set 8 kinds of functions or state, described function or state can be but be not limited to write-protect, hide, encryption and subregion or the like; Afterwards, described solidification software calls function corresponding realization module according to function or the state that described mobile storage module desire realizes.
Be that example describes now with " write-protect " function that realizes described mobile storage module; in described movable storage device, solidification software is set; comprise in the described solidification software that described file polling module and various function realize module, each function realization module of functions such as described function realizes that module comprises the write-protect that realizes described movable storage device, hides, encryption and subregion.In described movable storage device, write specific file by the format tool software.Described mobile storage module is connected with host computer; enter described host computer operating system and be windows 2000 operating systems in the present embodiment; choose described specific file; the right button popup menu of clicking the mouse; in menu, select " attribute " just to enter file attribute and set frame; file attribute is set in the frame and is demonstrated " read-only "; " hide " and reach " file " three alternative file attributes; select " read-only " attribute with mouse; described solidification software is then inquired about the attribute of described specific file by the file allocation table of operating system, call " write-protect " functional module.The functional module of each file attribute correspondence can be set in described solidification software; user's use for convenience in this example; with direct " write-protect " function of corresponding described movable storage device of " read-only " attribute of described specific file; also can set " hiding " or " file "; promptly when " hiding " in the described file system or " file " flag when being 1; call " write-protect " function; also can set when " read-only ", " hiding " reach wherein certain two or more combinations of attributes of " file " attribute, call " write-protect " function.When realizing other functions of described movable storage device such as subregion, encrypt and hiding, only need change the attribute of described specific file in a manner described, the function that realizes by the described movable storage device desire of the determined property of described specific file by the described file polling module of described solidification software again, and call function corresponding and realize that module gets final product.
Described specific file also can write in certain subregion of described movable storage device, thereby realizes function or State Selection to certain subregion of described movable storage device.
Another embodiment that the present invention changes the method for movable storage device function or state may further comprise the steps: in described movable storage device solidification software is set; Write specific file to movable storage device; Described specific file content is set; The function or the state of described movable storage device desire realization judged and carried out to described solidification software by described specific file content.
Comprise in the described solidification software that various functions realize module and file polling module, described function realizes that module comprises that write-protect, subregion, encryption reach function realization modules such as hiding, and described file polling module is used for inquiring about the content of described specific file.
Writing specific file to movable storage device is to write by movable storage device format instrument, and wherein said specific file can be various editable files.
Described solidification software judges by described specific file content and carry out that function or state that described movable storage device desire realizes comprise: as shown in Figure 3, after the beginning, the solidification software of described movable storage device carries out initialization to described movable storage device; After the initialization, whether described solidification software detects described specific file and exists, and if there is no process ends then is if exist then inquire about the position of described specific file and read the content of described specific file; Then, judge function or the state that described movable storage device desire realizes according to the content of described specific file, described function or state include but not limited to write-protect, hide, encryption and subregion; Then, function or the state of realizing according to described movable storage device desire calls function corresponding realization module.
Described specific file also can write in certain subregion of described movable storage device, thereby realizes function or State Selection to certain subregion of described movable storage device.
Host computer operating system of the present invention can be any in the windows series operating system, for example windows 98, windows me, windows 2000, windows XP and follow-up windows operating system, also can be other type operation system, as operating systems such as MAC OSX, Unix, Linux.When the operating system of host computer described in the present invention was windows, corresponding described file system included but not limited to FAT12, VFAT, FAT16, FAT32, CDFS, NTFS.When the operating system of host computer described in the present invention was Linux, corresponding described file system included but not limited to EXT2, EXT3, JFS, NFS, RAMFS, RAMFS, HPFS, CRAMFS.Described movable storage device can be flash disk, CF card, mmc card, SM card, SD card etc., but is not limited to above-mentioned movable storage device; Function that described movable storage device is realized or state include but not limited to write-protect, hide, encryption and subregion etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (6)
1. a method that changes movable storage device function or state is characterized in that, may further comprise the steps:
In described movable storage device solidification software is set, described solidification software comprises that a plurality of functions realize module and file polling module;
Write specific file at described movable storage device;
By the host computer operating system that movable storage device connected the information of described specific file is set;
The information that described solidification software is inquired about described specific file by the file polling module, and judge function or the state that described movable storage device desire realizes according to the information of described specific file;
Described solidification software calling function realizes that module realizes function or state that described movable storage device desire realizes.
2. the method for change movable storage device function as claimed in claim 1 or state is characterized in that: it is to write by movable storage device format instrument that described movable storage device is write specific file.
3. the method for change movable storage device function as claimed in claim 1 or state is characterized in that: it is to be write by operating system by the user that described movable storage device is write specific file.
4. the method for change movable storage device function as claimed in claim 1 or state is characterized in that: described solidification software is to judge function or the state that described movable storage device desire realizes by the file system of described host computer operating system.
5. the method for change movable storage device function as claimed in claim 1 or state is characterized in that: described specific file writes in certain subregion of described movable storage device.
6. as the method for any described change movable storage device function or state in the claim 1 to 5, it is characterized in that the information of described specific file comprises: the attribute of file or the content of file.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101174572A CN100478919C (en) | 2003-12-16 | 2003-12-16 | Method for changing mobile storage device function or status |
PCT/CN2004/001445 WO2005059755A1 (en) | 2003-12-16 | 2004-12-14 | A method of changing the functions or status of a removal storage device |
HK05111705.8A HK1079894A1 (en) | 2003-12-16 | 2005-12-19 | A method for changing function or state of a portable storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2003101174572A CN100478919C (en) | 2003-12-16 | 2003-12-16 | Method for changing mobile storage device function or status |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1629977A CN1629977A (en) | 2005-06-22 |
CN100478919C true CN100478919C (en) | 2009-04-15 |
Family
ID=34683156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2003101174572A Expired - Lifetime CN100478919C (en) | 2003-12-16 | 2003-12-16 | Method for changing mobile storage device function or status |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN100478919C (en) |
HK (1) | HK1079894A1 (en) |
WO (1) | WO2005059755A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8078740B2 (en) | 2005-06-03 | 2011-12-13 | Microsoft Corporation | Running internet applications with low rights |
US8185737B2 (en) | 2006-06-23 | 2012-05-22 | Microsoft Corporation | Communication across domains |
US8166220B2 (en) | 2008-08-04 | 2012-04-24 | Sandisk Il Ltd. | Device for connection with a storage device and a host |
US8250247B2 (en) | 2008-08-06 | 2012-08-21 | Sandisk Il Ltd. | Storage device for mounting to a host |
CN109840435A (en) * | 2017-11-27 | 2019-06-04 | 深圳市朗科科技股份有限公司 | A kind of data guard method storing equipment |
CN110032542B (en) * | 2019-04-19 | 2021-04-27 | 宁波三星医疗电气股份有限公司 | Cramfs file system management method and device and electronic equipment |
CN112291206B (en) * | 2020-10-14 | 2023-08-15 | 北京安石科技有限公司 | Method for improving operating system safety through main control chip |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2990609B2 (en) * | 1990-01-19 | 1999-12-13 | 富士ゼロックス株式会社 | Computer system |
JP2000253344A (en) * | 1999-03-04 | 2000-09-14 | Olympus Optical Co Ltd | Electronic album device and electronic camera |
US20020078366A1 (en) * | 2000-12-18 | 2002-06-20 | Joseph Raice | Apparatus and system for a virus-resistant computing platform |
KR20010044706A (en) * | 2001-03-19 | 2001-06-05 | 이종우 | Method and System for preventing Computer Virus Program |
-
2003
- 2003-12-16 CN CNB2003101174572A patent/CN100478919C/en not_active Expired - Lifetime
-
2004
- 2004-12-14 WO PCT/CN2004/001445 patent/WO2005059755A1/en active Application Filing
-
2005
- 2005-12-19 HK HK05111705.8A patent/HK1079894A1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
HK1079894A1 (en) | 2006-04-13 |
CN1629977A (en) | 2005-06-22 |
WO2005059755A1 (en) | 2005-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9696907B2 (en) | Remove-on-delete technologies for solid state drive optimization | |
CN101345077B (en) | A PC flash memory system structure based on USB | |
CN103383669A (en) | Method for identifying universal serial bus host, and electronic device thereof | |
US9697085B2 (en) | Presenting a file system for a file containing items | |
CN100478919C (en) | Method for changing mobile storage device function or status | |
CN102171668A (en) | A storage device for mounting to a host | |
CN104699423A (en) | Method and device for binding disk drive in Linux system | |
CN103299285A (en) | Host device coupled to a USB peripheral and method of operating the same | |
CN1848087A (en) | Using usb memory device to recover operating system | |
CN104040496A (en) | Terminal And Application Program Restoration Method | |
CN105677148A (en) | Terminal application searching method and device | |
CN110175301A (en) | A kind of navigation bar configuration method and device, computer equipment and storage medium | |
CN104715026A (en) | Folder management method and intelligent terminal | |
CN101256498A (en) | Method and device for unloading terminal drive | |
CN108399002A (en) | A kind of file switching method and device | |
CN106020701A (en) | Letter index bar display method and device and electronic equipment | |
CN100422992C (en) | Dynamic switchover method and device of MTP protocol and MSC mode of portable multimedia device | |
CN112506526B (en) | Data presentation software deployment method and device and electronic equipment | |
CN103714186A (en) | System and method for managing file resource | |
CN111523287B (en) | File view list display method and device, storage medium and electronic device | |
CN114675776A (en) | Resource storage method and device, storage medium and electronic equipment | |
CN109491983B (en) | Data information management method and device and computer readable storage medium | |
WO2017075194A1 (en) | Efficient differential techniques for metafiles | |
CN106557698B (en) | A kind of component detection method and apparatus in application | |
CN100464298C (en) | Communication device and its start method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1079894 Country of ref document: HK |
|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1079894 Country of ref document: HK |
|
CX01 | Expiry of patent term |
Granted publication date: 20090415 |
|
CX01 | Expiry of patent term |