CN102236608B - Data access method and system, memory medium controller and storage system - Google Patents
Data access method and system, memory medium controller and storage system Download PDFInfo
- Publication number
- CN102236608B CN102236608B CN201010158897.2A CN201010158897A CN102236608B CN 102236608 B CN102236608 B CN 102236608B CN 201010158897 A CN201010158897 A CN 201010158897A CN 102236608 B CN102236608 B CN 102236608B
- Authority
- CN
- China
- Prior art keywords
- cut section
- storage device
- storage
- instruction
- data
- 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.)
- Active
Links
Landscapes
- Storage Device Security (AREA)
Abstract
The present invention provides a kind of data access method and system, memory medium controller and storage system.Wherein data access method; for writing data to storage device; wherein this storage device has memory cell, and this memory cell has a cut section, and the storage attribute of this cut section is set to write protection pattern and this storage device is electrically connected to the host computer system with operating system.This method communicates instructions to this storage device including the use of human interface device passage from host computer system and is writable pattern by the storage attribute setup of this cut section according to this instruction.This method also including the use of operating system built-in instruction by data storage into cut section.Base this, this method can in the case where user logs into operating system with the identity of limited user's authority to have been set to write protection pattern cut section carry out data write-in.
Description
Technical field
Related to the present invention relates to a kind of data access method and system and its memory medium controller and storage system, and especially
And a kind of data are accessed under limited user's permission mode of operating system in the cut section in write protection pattern
Method, use the method Data Data access system and its memory medium controller and storage system.
Background technology
When external storage device by connector (for example, USB (Universal SerialBus,
When USB)) being electrically connected to host computer system, the operating system (for example, Windows Windows XP) of host computer system can be by
External storage device carry (mount) is to a mount point, so that non-OS is built-in in operating system or host computer system
Application program access.Particularly, the tool applications that the manufacturer of storage device is developed can be installed by this
Point is ordered to storage device to transmit personal computer system interface (Small Computer System Interface, SCSI),
Storage device is set with the demand according to user.For example, implementing procedure can be used by the cut section of storage device in user
Storage attribute setup be forbid write data write protection (write protect) pattern or allow write data it is writeable
Enter pattern.
However, based on safety grounds, as user with limited user's permission mode (for example, Windows
Guests (Guest) pattern) operating system to be logined to use during host computer system, operating system can prevent non-OS is built-in from answering
Scsi command is directly transmitted to storage device by mount point with program.Accordingly, if user is with limited user's authority
Identity using this host computer system to operate during external storage device, user will be unable to by non-OS it is built-in should
External storage device is managed with program.For example, being set in external storage device under write protection pattern, with limited
The user that the identity of user's authority logs into operating system can not use what the manufacturer of external storage device was developed
External storage device is reset to writable pattern by tool applications.Base this, for limited user's authority
Identity to log into for the user of operating system be quite inconvenient.
The content of the invention
The present invention provides a kind of data access method and system, and it can be in user with the identity of limited user's authority
Log into the write-in for carrying out data in the case of operating system to the storage device that has been set to write protection pattern.
The present invention provides a kind of memory medium controller, and it can be logined in user with the identity of limited user's authority
Come from the instruction of host computer system to identification in the case of operating system and the property value of storage device is reset.
The present invention provides a kind of storage system, and it with the identity of limited user's authority can log into operation in user
Identification comes from the property value for instructing and resetting storage device of host computer system in the case of system.
The present invention proposes a kind of data access method, for writing data to a storage device, and wherein this storage device has
Have a memory cell, this memory cell has multiple physical blocks, map multiple logical blocks of this little physical blocks at least by
The first cut section is divided into, the storage attribute of this first cut section is set to write protection pattern and this storage device is electrical
It is connected to the host computer system with operating system.Notebook data access method includes the human interface device passage via host computer system
(Human Interface DevicePath) transmission first, which is instructed, gives this storage device.Notebook data access method also includes passing through
Storage device judges whether to receive the first instruction for meeting man-machine interface agreement and when receiving this first instruction by this
The storage attribute setup of first cut section is writable pattern according to the first instruction by storage device.Notebook data access method is also wrapped
Include via the built-in instruction of the operating system of the host computer system by the first data storage into the first cut section.Also, notebook data
Access method also includes receiving the second instruction for meeting mass storage device interfaces agreement by storage device and according to this
Two instructions are write first data into the first cut section.
The embodiment of the present invention proposes a kind of data access arrangement, and it includes host computer system and external storage device.Main frame
System has in-building type storage device, and wherein this in-building type storage device is provided with operating system with updating tool applications,
And this is updated tool applications and meets the first instruction that man-machine interface is reached an agreement on to be transmitted using HID passages.Circumscribed is deposited
Storage device includes connector, memory cell and memory medium controller.Connector is electrically connected to host computer system.Storage is single
Member has multiple physical locations, and at least part of this little physical blocks maps multiple logical blocks, and this little logical blocks is extremely
The first cut section is divided into less.Memory medium controller is electrically connected with so far memory cell, to judge whether to receive the
One instruction and when receiving the first instruction according to this first instruction by the storage attribute setup of the first cut section to be writable
Pattern.In addition, above-mentioned renewal tool applications also to the built-in instruction using operating system by the first data storage to the
In one cut section, and memory medium controller also meets the second instruction of mass storage device interfaces agreement simultaneously to receive
And write first data into according to this second instruction into the first cut section.
The embodiment of the present invention proposes a kind of memory medium controller, for managing a memory cell, wherein this memory cell
With multiple physical blocks, the multiple logical blocks for mapping this little physical blocks are at least divided into the first cut section, and
The storage attribute of one cut section is set to write protection pattern.This memory medium controller includes storage medium interface, main frame
Interface manages circuit with storage medium.Storage medium interface is electrically connected to memory cell.Storage medium management circuit electricity
Property connection storage medium interface and HPI, and meet to receive the first instruction of man-machine interface agreement and according to the
The storage attribute setup of first cut section is writable pattern by one instruction.In addition, storage medium manages circuit also to receive
Meet the second instruction of mass storage device interfaces agreement and write first data into according to this second instruction to first point
Cut in area.
The embodiment of the present invention proposes a kind of storage system, and it includes connector, memory cell and memory medium controller.Deposit
Storage unit has multiple physical blocks, and at least part of this little physical blocks maps multiple logical blocks, and this little logical blocks is extremely
The first cut section is divided into less, and the storage attribute of wherein this first cut section is set to write protection pattern.Storage medium
Controller is electrically connected to memory cell and connector, and meets the first instruction and the root that man-machine interface is reached an agreement on to receive
The storage attribute setup of the first cut section is write protection pattern by the first instruction accordingly.In addition, memory medium controller is received
Meet the second instruction of mass storage device interfaces agreement and write first data into according to this second instruction to first point
Cut in area.
The embodiment of the present invention proposes a kind of data access method, to write data to storage device, wherein this storage dress
Put with memory cell, this memory cell has multiple physical blocks, map multiple logical blocks of this little physical blocks at least
The first cut section is divided into, the storage attribute of this first cut section is set to write protection pattern.This data access method
Instructed including the use of human interface device passage transmission one first and give this storage device, the storage attribute of the first cut section is set
It is set to writable pattern.This data access method also instructs including the use of human interface device passage transmission the 3rd and gives this storage dress
Put, using by the storage attribute setup of the first cut section as write protection pattern.
Based on above-mentioned, data access method and system, memory medium controller and the storage system energy of the embodiment of the present invention
Enough in the case where user logs into operating system with the identity of limited user's authority to having been set to write protection pattern
Memory cell carry out data write-in.
For the features described above and advantage of the present invention can be become apparent, below especially exemplified by embodiment, and it is detailed to coordinate accompanying drawing to make
Carefully it is described as follows.
Brief description of the drawings
Figure 1A is the host computer system that the embodiment of the present invention uses storage device.
Figure 1B is the schematic diagram of the computer, input/output device and memory storage apparatus of the embodiment of the present invention.
Fig. 2 is the schematic block diagram of the storage device shown in Figure 1A.
Fig. 3 is the schematic block diagram of the memory medium controller of the embodiment of the present invention.
Fig. 4 is the schematic block diagram of the memory cell of the embodiment of the present invention.
Fig. 5 is the schematic diagram of the management logical blocks of the embodiment of the present invention.
Fig. 6 is the operation workflow figure of the renewal tool applications of the embodiment of the present invention.
Fig. 7 is according to the operation workflow figure for updating the instruction storage device that tool applications are transmitted.
Fig. 8 is the flow chart of the data access method of the embodiment of the present invention.
Main element symbol description:
1000:Host computer system; 1100:Computer;
1102:Microprocessor; 1104:Random access memory;
1106:Input/output device; 1108:System bus;
1110:Data transmission interface; 1112:In-building type storage device;
1112a:Operating system; 1202:Mouse;
1204:Keyboard; 1206:Display;
1208:Printer; 1212:Portable disk;
1216:Solid state hard disc; 100:Storage device;
102:Connector; 104:Memory medium controller;
106:Storage medium unit; 202:Storage medium manages circuit;
204:HPI; 206:Storage medium interface;
252:Buffer storage; 254:Electric power management circuit;
256:Error checking and correcting circuit; 402:Data field;
404:Spare area; 406:System area;
408:Replace area;304 (0)~304 (R):Physical blocks;
510 (0)~510 (H):Logical blocks; 1112b:Mount point;
550:First cut section; 560:Second cut section;
570:3rd cut section; 592:Application program;
594:Automatic execution file; 596:Loading program;
598:Update tool applications;
S601、S603、S605:Update the operation workflow of tool applications;
S701、S703、S705:The operation workflow of storage device;
S801、S803、S805、S807:The step of data access.
Embodiment
Figure 1A is the host computer system that the embodiment of the present invention uses storage device.
Figure 1A is refer to, host computer system 1000 generally comprises computer 1100 and input/output (input/output, I/O)
Device 1106.Computer 1100 includes microprocessor 1102, random access memory (random accessmemory, RAM)
1104th, system bus 1108, data transmission interface 1110 and in-building type storage device 1112.Input/output device 1106 includes
Such as Figure 1B mouse 1202, keyboard 1204, display 1206 and printer 1208.It will be appreciated that the device shown in Figure 1B
Unrestricted input/output device 1106, input/output device 1106 can also include other devices.
In embodiments of the present invention, storage device 100 be by data transmission interface 1110 and host computer system 1000 its
He is electrically connected with element.By microprocessor 1102, random access memory 1104, input/output device 1106 with being arranged on
The running of operating system 1112a in in-building type storage device 1112 can write data into storage device 100 or be filled from storage
Data are read in putting 100.
Fig. 2 is the schematic block diagram of the storage device shown in Figure 1A.
Fig. 2 is refer to, in the present embodiment, storage device 100 is external storage device and removably
It is electrically connected to host computer system 1000.For example, storage device 100 is portable disk 1212 or solid state hard disc as shown in Figure 1B
(Solid State Drive, SSD) 1216.Storage device 100 includes connector 102, memory medium controller 104 and storage
Unit 106.
In the present embodiment, connector 102 is USB (Universal Serial Bus, USB) connector.
However, it is necessary to be appreciated that, the invention is not restricted to this, connector 102 can also be Institute of Electrical and Electric Engineers
(Institute of Electrical and Electronic Engineers, IEEE) 1394 connectors, high-speed peripheral zero
It is part connecting interface (Peripheral Component Interconnect Express, PCI Express) connector, serial
Advanced Technology Attachment (Serial Advanced TechnologyAttachment, SATA) connector, secure digital (secure
Digital, SD) interface connector, memory stick (Memory Stick, MS) interface connector, multimedium storage card (Multi
Media Card, MMC) interface connector, compact flash (Compact Flash, CF) interface connector, integrated driving electronics
Interface (Integrated Device Electronics, IDE) connector or other suitable connectors.
Memory medium controller 104 to perform in the form of hardware or firmware formal operations multiple logic gates or control refer to
Order, and the write-in of data carried out in memory cell 106 according to the instruction of host computer system 1000, reads and erases etc. and operate.
Particularly, memory medium controller 104 can be used to coordinate with host computer system 1000 to perform the data access according to the present embodiment
Method and storage management method.
Memory cell 106 is electrically connected to memory medium controller 104, and is write to host system 1000
The data entered.In the present embodiment, memory cell 106 is type nonvolatile.For example, memory cell 106 is
Multilayered memory unit (Multi Level Cell, MLC) NAND quick-flash memory module.However, the invention is not restricted to this, storing
Unit 106 also can be individual layer memory cell (Single Level Cell, SLC) NAND quick-flash memory module, other flash memories
Reservoir module or other there is the memory module of identical characteristic.In addition, in an alternative embodiment of the invention, memory cell 106
It can be magnetic storage module or other storage modules to be.
Fig. 3 is the schematic block diagram of the memory medium controller of the embodiment of the present invention.
Fig. 3 is refer to, memory medium controller 104 includes storage medium management circuit 202, HPI 204 and storage
Media Interface Connector 206.
Storage medium manages overall operation of the circuit 202 to control memory medium controller 104.Specifically, store
Medium management circuit 202 has multiple control instructions, and when storage device 100 is operated, this little control instruction can be performed
Memory cell 106 is accessed and manages with the data access method according to the present embodiment and storage management method.Data access
Method will elaborate with storage management method in following cooperation figure.
In the present embodiment, the control instruction of storage medium management circuit 202 is operated in firmware form.For example, depositing
Storage media management circuit 202 has microprocessor unit (not shown) and read-only storage (not shown), and this little control refers to
Order is by imprinting so far read-only storage.When storage device 100 is operated, this little control instruction can by microprocessor unit Lai
Perform with host computer system 1000 to coordinate to complete data access method according to embodiments of the present invention and storage management method.
In an alternative embodiment of the invention, storage medium management circuit 202 control instruction can also procedure code form deposit
Storage is in the particular address of memory cell 106.In addition, storage medium management circuit 202 have microprocessor unit (not shown),
Read-only storage (not shown) and random access memory (not shown).Particularly, this read-only storage has driving code section, and
And when memory medium controller 104 is enabled, it is single will be stored in storage that microprocessor unit can first carry out this driving code section
Control instruction in member 106 is loaded into the random access memory of storage medium management circuit 202.Afterwards, microprocessor list
Member can operate this little control instruction with host computer system 1000 to coordinate to perform the data access method of the embodiment of the present invention with depositing
Reservoir management method.In addition, in an alternative embodiment of the invention, the control instruction of storage medium management circuit 202 can also one
Example, in hardware is operated.
HPI 204 is electrically connected to storage medium management circuit 202 and to receive and identification host computer system
1000 instructions transmitted and data.That is, the instruction that host computer system 1000 is transmitted can be by HPI with data
204 manage circuit 202 to be sent to storage medium.In the present embodiment, HPI 204 is that correspondence connector 102 connects for USB
Mouthful.However, it is necessary to be appreciated that, the invention is not restricted to this, HPI 204 can also be PATA interfaces, SATA interface, IEEE
1394 interfaces, PCI Express interfaces, SD interface, MS interfaces, MMC interfaces, CF interfaces, ide interface or other suitable data
Coffret.
Storage medium interface 206 is electrically connected to storage medium management circuit 202 and to access memory cell
106.That is, memory cell 106 can be converted to via storage medium interface 206 by being intended to write to the data of memory cell 106
The receptible form of institute.
In an embodiment of the present invention, memory medium controller 104 also includes buffer storage 252.Buffer storage 252
It is electrically connected to storage medium management circuit 202 and is configured to temporarily store the data for coming from host computer system 1000 and instruction or next
From in the data of memory cell 106.
In an embodiment of the present invention, memory medium controller 104 also includes electric power management circuit 254.Power management electricity
Road 254 is electrically connected to storage medium management circuit 202 and the power supply to control storage device 100.
In an embodiment of the present invention, memory medium controller 104 also includes error checking and correcting circuit 256.Mistake
Check and be electrically connected to storage medium management circuit 202 and to perform an error checking and correction with correcting circuit 256
Program is to ensure the correctness of data.Specifically, write when storage medium management circuit 202 is received from host computer system 1000
When entering to instruct, error checking can produce corresponding error checking and school with correcting circuit 256 for the data of this corresponding write instruction
Code (Error Checkingand Correcting Code, ECC Code), and storage medium management circuit 202 can be by
The data of this write instruction of correspondence are write into memory cell 106 with corresponding error checking and correcting code.Afterwards, when storage is situated between
Matter management circuit 202 can read the corresponding error checking of this data and correcting code simultaneously when data are read from memory cell 106,
And error checking can perform error correction journey according to this error checking and correcting code with correcting circuit 256 to the data read
Sequence.
The schematic block diagram of Fig. 4 depicted memory cell according to embodiments of the present invention.
Fig. 4 is refer to, memory cell 106 includes physical blocks 304 (0)~304 (R).Each physical blocks have multiple respectively
Several pages, wherein the physical page belonged in same physical blocks can be written independently and simultaneously be erased.It is more detailed
For thin, physical blocks are the least unit erased.That is, each physical blocks contain minimal amount be erased in the lump deposit
Storage unit.Physical page is the minimum unit of sequencing.That is, physical page is the minimum unit of write-in data.
In the present embodiment, storage medium management circuit 202 can be by physical blocks 304 (0)~304 of memory cell 106
(R) data field 402, spare area 404, system area 406 and substitution area 408 are logically grouped into.
The physical blocks of data field 402 and spare area 404 are to store the data for coming from host computer system 1000.Specifically
For, the physical blocks of data field 402 are the physical blocks of data storage, and the physical blocks of spare area 404 be to for
Change the physical blocks of data field 402.Therefore, the physical blocks of spare area 404 are empty or workable physical blocks, i.e. no record
Data or labeled as invalid data useless.That is, the physical blocks in spare area 404 have been performed fortune of erasing
Make, or the physical blocks extracted before the physical blocks in spare area 404 are extracted for data storage can be performed
Erase running.Therefore, the physical blocks of spare area 404 are the physical blocks that can be used.
The physical blocks for logically belonging to system area 406 are to be used to record system data, and wherein this system data includes closing
In the manufacturer of memory cell and model, the physical areas block number of memory cell, the physical page number of each physical blocks etc..
It is substitution physical blocks to logically belong to replace the physical blocks in area 408.For example, memory cell 106 is being dispatched from the factory
When can reserve 4% physical blocks and used as replacing.That is, when in data field 402, spare area 404 and system area 406
Physical blocks damage when, be reserved in substitution area 408 in physical blocks be used to replacing damaged physical blocks (that is, bad thing
Manage block (bad block)).Therefore, if still having normal physical blocks in substitution area 408 and occurring physical blocks damage
When, storage medium management circuit 202 can extract normal physical blocks to change the physical blocks of damage from substitution area 408.
If replace in area 408 without normal physical blocks and occur physical blocks damage, then storage medium management circuit 202 can be by
Storage device 100 is declared as write protection (write protect) state, and can not write data again.
It will be appreciated that in the running of storage device 100, physical blocks associate to data field 402, spare area 404,
System area 406 is with replacing the packet relation in area 408 dynamically to change.For example, when in spare area 404 physical blocks damage and
During the physical blocks substitution in substituted area 408, then the physical blocks in the area 408 of substitution originally can be associated to spare area 404.
As described above, the physical blocks of data field 402 and spare area 404 are to carry out host system 1000 in the mode of rotating
The data write.In the present embodiment, storage medium management circuit 202 can declare that it includes man-machine interface for one to main frame
(Human Interface Device, HID) and store function (MassStorage) composite device (composite
device).In addition, storage medium management circuit 202 can configure logical blocks 510 (0)~510 (H), with sharp host computer system 1000
Data access is carried out in the physical blocks for carrying out data storage in the above-mentioned mode of rotating.For example, when storage device 100 is initialised
When (for example, format), logical blocks 510 (0)~510 (H) respectively map to the physical blocks 304 (0) of data field 402~
304(D).That is, a logical blocks can map a physical blocks in data field 402.Here, storage medium is managed
Circuit 202 can set up logical blocks-physical blocks mapping table (logicalblock-physical block mapping
Table), to record the mapping relations between logical blocks and physical blocks.
Fig. 5 is the schematic diagram of the management logical blocks of the embodiment of the present invention.
Fig. 5 is refer to, logical blocks 510 (0)~510 (H), which can be formatted, is divided into the first cut section 550 and second
Cut section 560.For example, logical blocks 510 (0)~510 (D1) belongs to the second cut section 560, and logical blocks 510 (D1+1)
~510 (D2) belong to the first cut section 550.
First cut section 550 is stored with the second data.For example, the second data are developed by the manufacturer of storage device 100
Application program 592.Application program 592 is provided for that storage device 100 can be carried out the operation of correlation with setting to user
It is fixed.Particularly, the storage attribute setup of the first cut section 550 is initially write protection mould by storage medium management circuit 202
Formula (that is, read-only).Specifically, when storage device 100 is electrically connected to host computer system 1000, storage medium management circuit
202 can declare the first cut section 550 to host computer system 1000 for the cut section of mass storage device and not allow main frame system
System 1000 writes data to the first cut section 550.It should be noted that, " mass storage device " described herein refers to that tool is appointed
The storage device of what capacity, and including (removable) or non-removable (non-removable) medium can be removed.
Second cut section 560 is multimedium cut section.Specifically, when storage device 100 is electrically connected to host computer system
When 1000, storage medium management circuit 202 can declare point of second cut section 560 for optical storage to host computer system 1000
Cut area's (also known as CD cut section).For example, the second cut section 560 can be modeled as CD-ROM device, digital video disc (Digital
Video Disc, DVD) or Blu-ray Disc machine (Blue-Ray Disc drive) cut section.Particularly, the second cut section 560
The automatic execution file that is stored with 594 and loading program 596.Here, automatic execution file 594, which is one kind, can make operating system 1112a certainly
Move the description archives (for example, description shelves (script file) of shelves entitled " Autorun.inf ") performed and performing automatically
The description language for performing loading program 596 is included in the content of shelves 594.In addition, loading program 596 is used in the first cut section
550 search and perform application program 592.
Except the above-mentioned cut section 560 of first cut section 550 and second, logical blocks 510 (0)~510 (H) after formatting
The 3rd cut section 570 can also be included.For example, the 3rd cut section 570 is made up of logical blocks 510 (D2+1)~510 (H).
For example, the 3rd cut section 570 is general storage cut section and storage medium manages circuit 202 initially by the 3rd
The storage attribute setup of cut section 570 is writable pattern.Specifically, when storage device 100 is electrically connected to host computer system
When 1000, storage medium management circuit 202 can declare that the 3rd cut section 570 is mass storage device to host computer system 1000
Cut section, and allow host computer system 1000 to write data in the 3rd cut section 570.
In the present embodiment, when storage device 100 is electrically connected to host computer system 1000, operating system 1112a can be to
The inquiry unit feature of storage device 100 and the response configuration HID paths according to storage medium management circuit 202 and required peace
Decorate 1112b and the first cut section 550, the second cut section 560 are respectively mounted to corresponding peace with the 3rd cut section 570
Decorate.For example, for Microsft Windows operating system, mount point is the driving machine code (drive for mapping a specific device
letter).For example, for Macintosh system (Mac), mount point is an address in system directory (for example, driving machine connects
Mouth (driver interface) or UNIX mount points (mount points).For example, window (Windows) operating system
1112a can configure mount point " D:" give the second cut section 560, configuration mount point " E:" give the first cut section 550 and configure peace
Decorate " F:" give the 3rd cut section 570.Particularly, when storage device 100 is electrically connected to host computer system 1000, operation system
System 1112a can recognize the optical storage simulated with the second cut section 560 and meeting is according to mount point " D:" perform second point
Cut the automatic execution file 594 in area 560.Afterwards, automatic execution file 594 can perform loading program 596, and be loaded into program 596
It can search according to mount point " E " and perform the application program 592 in the first cut section 550.That is, when storage device 100
When being electrically connected to host computer system 1000, application program 592 can be performed automatically.
In the present embodiment, there are renewal tool applications in the in-building type storage device 1112 of host computer system 1000
598.Tool applications 598 are updated to use a human interface device (HumanInterface Device, HID) passage
Pass through the mount point " E of the first cut section 550 of correspondence:" transmission meets first instructing to storage device 100 for man-machine interface agreement.
Particularly, the storage attribute setup of the first cut section 550 is writeable according to this first instruction by the meeting of storage medium management circuit 202
Enter pattern.In the present embodiment, human interface device passage is the mode that host computer system is positioned in logic to human interface device,
Correctly to transmit instruction or data to specified human interface device.
Specifically, as user with limited user's permission mode (for example, the guests (Guest) of Windows
Pattern) operating system 1112a is logined to use during host computer system 1000, operating system 1112a can prevent non-OS 1112a
Built-in application program directly transmits mass storage device interfaces order by mount point, such as SCSI or IDE/ATA orders,
To storage device 100.Because HID passages are generally used for the data transfer of the I/O devices such as keyboard, mouse, therefore make limited
Operating system 1112a will not prevent the data transmitted via HID passages under user's permission mode.Base this, storage medium management electricity
Road 202 can receive the first instruction and according to this first instruction depositing the first cut section 550 from host computer system 1000
Storage attribute setup is writable pattern.
In the case where the storage attribute of the first cut section 550 has been set to writable pattern, new data (for example, with it is upper
State the first different data of the second data) (it can be referred to by using operating system 1112a built-in instruction for example, replicating (Copy)
Make, stick (Paste) instruction) it can lead to store into the first cut section 550 or be stored in the data in the first cut section 550
Operating system 1112a built-in instruction is crossed to update.Specifically, when the built-in instruction that new data passes through operating system 1112a
When being stored to the first cut section 550, host computer system 1000 can transmit meet mass storage device interfaces agreement instruction to
Storage device 100, and storage medium management circuit 202 writes new data into the first cut section 550 and reflected according to this instruction
In the physical blocks penetrated.For example, the application program (not illustrating) of new edition can be stored by operating system 1112a built-in instruction
Into the first cut section 550, with Replacing program 592.
Fig. 6 is the operation workflow figure of the renewal tool applications of the embodiment of the present invention.
Fig. 6 is refer to, in step s 601, tool applications 598 is updated and meets man-machine interface using the transmission of HID passages
Agreement first is instructed to storage device 100, using by the storage attribute setup of the first cut section 550 as writable pattern.
Then, in step S603, tool applications 598 are updated using operating system 1112a built-in instruction by the
One data storage is into the first cut section 550.
Finally, in step s 605, update tool applications 598 and meet man-machine interface agreement using the transmission of HID passages
The 3rd instruct to storage device 100, using by the storage attribute setup of the first cut section 550 as write protection pattern.
Fig. 7 is according to the operation workflow figure for updating the instruction storage device that tool applications are transmitted.
Refer to Fig. 7, in step s 701 memory medium controller 104 storage medium management circuit 202 can judge be
No reception meets the first instruction of man-machine interface agreement.
When not receiving the first instruction for meeting man-machine interface agreement, then step S701 is performed repeatedly.
When receiving the first instruction for meeting man-machine interface agreement, storage medium manages circuit 202 in step S703
It is writable pattern that can be instructed according to first by the storage attribute setup of the first cut section 550.
Afterwards, in step S705 storage medium management circuit 202 can receive meet mass storage device interfaces agreement
Second instruction and according to second instruction write first data into the first cut section 550.
In addition, updating tool applications 598 also to using installation of the HID passages by the first cut section 550 of correspondence
Point " E:" transmission meets the 3rd of man-machine interface agreement and instructed to storage device 100 and the storage medium management meeting root of circuit 202
The storage attribute setup of the first cut section 550 is write protection pattern by the 3rd instruction accordingly.
In embodiments of the present invention, update tool applications 598 can by user via Internet from institute of manufacturer
The download point of offer is downloaded and stored into in-building type storage device 1112.In addition, in an alternative embodiment of the invention, updating work
Tool application program 598, which can be also previously stored in the first cut section 550 by manufacturer and be copied to in-building type by user, deposits
Performed in storage device 1112.
Fig. 8 is the flow chart of the data access method of the embodiment of the present invention.
Fig. 8 is refer to, storage device 100 is electrically connected to host computer system 1000 in step S801.
In step S803, performed in host computer system 1000 and update tool applications 598 and more new tool application
Program 598 meets the first instruction that man-machine interface is reached an agreement on using HID passages by the mount point transmission of the first cut section 550 of correspondence
To storage device 100.
In step S805, the memory medium controller 104 of storage device 100 receives the first instruction and referred to according to first
The storage attribute setup of first cut section 550 is writable pattern by order.
In step S807, tool applications 598 are updated using operating system 1112a built-in instruction by the first data
Store into the first cut section 550.
It is noted that in the first data for new application program and to replace answering in the first cut section 550
In example with program 592, because application program 592 can be via automatic execution file 594 with being loaded into program 596 in step S801
Automatically it is performed.Therefore, the application program 592 of executed need to be turned off to avoid access from disobeying before step S807 is performed
Rule.
In an alternative embodiment of the invention, the flow chart approach shown in Fig. 8 is additionally included in after step S807 in main frame system
Performed in system 1000 and update tool applications 598 to transmit by the mount point of the first cut section 550 of correspondence using HID passages
3rd instructs and receives the 3rd instruction and according to the to the memory medium controller 104 of storage device 100 and storage device 100
The storage attribute setup of first cut section 550 is write protection pattern by three instructions.Base this, the number in the first cut section 550
According to being updated and the storage attribute of the first cut section 550 is set to after write protection pattern, memory medium controller 104 will not
1000 pair of first cut section 550 of host computer system is allowed to write, to prevent that the data being stored in the first cut section 550 from being missed
Delete.
In summary, data access method according to embodiments of the present invention is to transmit to meet human-machine interface using HID passages
The instruction of mouth agreement is set the cut section for being set to write protection pattern with the memory medium controller for indicating storage device
It is set to writable pattern, and the data write-in that updates is intended to so far in cut section by the built-in instruction of operating system.Base this,
When user logins operating system to use host computer system with limited user's permission mode, user still can successfully update
It is stored in the data being set in the cut section of write protection pattern.
Although the present invention is disclosed as above with embodiment, so it is not limited to the present invention, any art
Technical staff, without departing from the spirit and scope of the present invention, when can make a little change with retouching, therefore the present invention protection
Scope is worked as to be defined depending on the scope that appended claims are protected.
Claims (11)
1. a kind of data access method, for writing data to a storage device, wherein the storage device has a memory cell,
The memory cell has multiple physical blocks, and the multiple logical blocks for mapping the multiple physical blocks are at least divided into one the
One cut section, a storage attribute of first cut section is set to a write protection pattern and the storage device is to electrical
The host computer system with an operating system is connected to, the data access method includes:
When the storage device is electrically connected to the host computer system, a human interface device is configured according to the response of the storage device
Passage and the first mount point, and first cut section is mounted to first mount point;
Via the host computer system the human interface device passage by should the first cut section first mount point from this
Transmission meets the one first of man-machine interface agreement and instructs and give the storage device in host computer system;
Judge whether to receive first instruction in the storage device;
When receiving first instruction, according to first instruction by the storage attribute of first cut section in the storage device
It is set as a writable pattern;
When at least one built-in instruction of the operating system of the host computer system performs one first data of storage to first cut section
When, send one second instruction for meeting mass storage device interfaces agreement to the storage device from the host computer system,
Wherein second instruction indicates to store first data;And
Second instruction is received in the storage device and is write first data to this first point according to second instruction
Cut in area.
2. data access method according to claim 1, in addition to:
Via the human interface device passage by should first mount point of the first cut section passed from the host computer system
Send and meet the one the 3rd of man-machine interface agreement and instruct and give the storage device;
Judge whether to receive the 3rd instruction in the storage device;And
When receiving the 3rd instruction, according to second instruction by the storage attribute of first cut section in the storage device
It is set as the write protection pattern.
3. data access method according to claim 1, wherein the multiple logical blocks be at least divided into this first
Cut section, one second cut section and one the 3rd cut section,
Wherein the data access method also includes second cut section is modeled as into a CD cut section simultaneously by the storage device
And be the writable pattern by a storage attribute setup of the 3rd cut section.
4. data access method according to claim 3,
Wherein first data are an application program, and an automatic execution file is loaded into program storage in second cut section with one
In,
Wherein the automatic execution file can be automatically carried out by the operating system of the host computer system,
Wherein the automatic execution file is to perform the loading program and the loading program to perform the application program.
5. data access method according to claim 1, wherein first cut section store one second data,
At least one built-in instruction of the wherein operating system of the host computer system perform store first data storage to this
The step of one cut section, includes:
Using the operating system this at least one it is built-in instruction by first data storage into first cut section and with this
First data replace second data.
6. a kind of data access arrangement, for writing data to a storage device, wherein the storage device has a memory cell,
The memory cell has multiple physical blocks, and the multiple logical blocks for mapping the multiple physical blocks are at least divided into one the
One cut section, a storage attribute of first cut section is set to a write protection pattern and the storage device is to electrical
The host computer system with an operating system is connected to, the data access arrangement includes:
One first module, when the storage device is electrically connected to the host computer system, to be matched somebody with somebody according to the response of the storage device
A human interface device passage and the first mount point are put, and first cut section is mounted to first mount point;
One second module, to the human interface device passage via the host computer system by should the first cut section be somebody's turn to do
First mount point is transmitted from the host computer system to be met the one first of man-machine interface agreement and instructs and give the storage device;
One the 3rd module, to judge whether to receive first instruction in the storage device;
One the 4th module, to when receive this first instruction when, in the storage device according to this first instruction by this first
The storage attribute setup of cut section is a writable pattern;
One the 5th module, storage one first is performed at least one built-in instruction when the operating system via the host computer system
During data to first cut section, one second instruction of mass storage device interfaces agreement will be met from the host computer system
Send the storage device to, wherein second instruction indicates to store first data;And
One the 6th module, to receive second instruction in the storage device and according to second instruction by first data
Write-in is into first cut section.
7. data access arrangement according to claim 6, in addition to:
One the 7th module, to using the human interface device passage by should the first cut section first mount point from
Transmission meets the one the 3rd of man-machine interface agreement and instructs and give the storage device in the host computer system;
One the 8th module, to judge whether to receive the 3rd instruction, and;
One the 9th module, when receiving the 3rd instruction, to be belonged to the storage of first cut section according to the 3rd instruction
Property is set as a write protection pattern.
8. data access arrangement according to claim 6, wherein the multiple logical blocks be at least divided into this first
Cut section, one second cut section and one the 3rd cut section,
Wherein the data access arrangement also includes:
The tenth module, second cut section is modeled as into a CD cut section and by a storage of the 3rd cut section
Attribute setup is the writable pattern.
9. data access arrangement according to claim 8, wherein first data are an application program,
Wherein second cut section stores an automatic execution file and is loaded into program with one,
Wherein when the storage device is electrically connected to the host computer system, the operating system of the host computer system automatically carries out this
Automatic execution file,
Wherein the automatic execution file is to perform the loading program and the loading program to perform the application program.
10. data access arrangement according to claim 6, wherein first cut section store one second data,
Wherein at least one built-in instruction of the operating system by first data storage to first cut section with replace this
Two data.
11. a kind of data access method, to write data to a storage device, wherein the storage device has a storage single
Member, the memory cell has multiple physical blocks, and the multiple logical blocks for mapping the multiple physical blocks are at least divided into
One first cut section, a storage attribute of first cut section is set to a write protection pattern and the storage device is used to
A host computer system is electrically connected to, the data access method includes:
When the storage device is electrically connected to the host computer system, a human interface device is configured according to the response of the storage device
Passage and the first mount point, and first cut section is mounted to first mount point;Use the human interface device passage
By to should first mount point of the first cut section one first transmitted from the host computer system instruct and give the storage device, with
It is a writable pattern by the storage attribute setup of first cut section;And
Using the human interface device passage by should first mount point of the first cut section passed from the host computer system
Send one the 3rd to instruct and give the storage device, using by the storage attribute setup of first cut section as the write protection pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010158897.2A CN102236608B (en) | 2010-04-23 | 2010-04-23 | Data access method and system, memory medium controller and storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010158897.2A CN102236608B (en) | 2010-04-23 | 2010-04-23 | Data access method and system, memory medium controller and storage system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102236608A CN102236608A (en) | 2011-11-09 |
CN102236608B true CN102236608B (en) | 2017-10-27 |
Family
ID=44887274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010158897.2A Active CN102236608B (en) | 2010-04-23 | 2010-04-23 | Data access method and system, memory medium controller and storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102236608B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103455426B (en) * | 2012-05-28 | 2018-08-10 | 联想(北京)有限公司 | Data processing method and device |
CN116700740B (en) * | 2022-09-29 | 2024-06-04 | 荣耀终端有限公司 | Software repairing method and related device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038569A (en) * | 2006-03-15 | 2007-09-19 | 日立软件工程株式会社 | User terminal and method of managing a secondary storage unit in a user terminal |
CN101571833A (en) * | 2008-04-29 | 2009-11-04 | 深圳市朗科科技股份有限公司 | Method and device for protecting storage medium |
CN101632083A (en) * | 2007-05-09 | 2010-01-20 | 国际商业机器公司 | A method and data processing system to prevent manipulation of computer systems |
-
2010
- 2010-04-23 CN CN201010158897.2A patent/CN102236608B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038569A (en) * | 2006-03-15 | 2007-09-19 | 日立软件工程株式会社 | User terminal and method of managing a secondary storage unit in a user terminal |
CN101632083A (en) * | 2007-05-09 | 2010-01-20 | 国际商业机器公司 | A method and data processing system to prevent manipulation of computer systems |
CN101571833A (en) * | 2008-04-29 | 2009-11-04 | 深圳市朗科科技股份有限公司 | Method and device for protecting storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102236608A (en) | 2011-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI515735B (en) | Data erasing method, memory control circuit unit and memory storage apparatus | |
CN104732153B (en) | Data erasing method, memorizer control circuit unit and memory storage apparatus | |
TWI423026B (en) | Data writing method, memory controller and memory storage apparatus | |
US8255656B2 (en) | Storage device, memory controller, and data protection method | |
TWI421686B (en) | Data access method and system, storage medium controller and storage system | |
US9442834B2 (en) | Data management method, memory controller and memory storage device | |
US9032135B2 (en) | Data protecting method, memory controller and memory storage device using the same | |
US8812772B2 (en) | Data merging method for non-volatile memory and controller and storage apparatus using the same | |
TW201344434A (en) | Memory formatting method, memory controller and memory storage apparatus | |
CN102200946B (en) | Data access method, memory controller and storage system | |
CN102446137B (en) | Method for writing data, Memory Controller and memorizer memory devices | |
CN102736861B (en) | Memory configuration method, Memory Controller and memorizer memory devices | |
US9501397B2 (en) | Data writing method, memory controller, and memory storage apparatus | |
CN103389941B (en) | Storer formatting method, Memory Controller and memory storage apparatus | |
CN102236608B (en) | Data access method and system, memory medium controller and storage system | |
CN102109965B (en) | Flash memory system, flash controller, computer system and analogy method | |
US8589620B2 (en) | Data writing method, memory controller, and memory storage apparatus | |
TWI454908B (en) | Memory configuring method, memory controller and memory storage apparatus | |
CN103870209B (en) | Working mode switching method, Memory Controller and memorizer memory devices | |
CN102650971B (en) | Memory managing method, memory controller and memory storing device | |
CN102043724B (en) | For the block management method of flash memory, controller and storage system | |
TWI451250B (en) | Memory configuring method, memory controller and memory storage apparatus | |
US20100313097A1 (en) | Flash Memory Organization | |
CN102736985B (en) | data merging method, controller and storage device | |
CN103955434B (en) | Data writing-in method, memory controller and memory storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |