CN102236608A - Data access method, system, storage medium controller and storage system - Google Patents

Data access method, system, storage medium controller and storage system Download PDF

Info

Publication number
CN102236608A
CN102236608A CN2010101588972A CN201010158897A CN102236608A CN 102236608 A CN102236608 A CN 102236608A CN 2010101588972 A CN2010101588972 A CN 2010101588972A CN 201010158897 A CN201010158897 A CN 201010158897A CN 102236608 A CN102236608 A CN 102236608A
Authority
CN
China
Prior art keywords
cut section
instruction
storage
memory
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.)
Granted
Application number
CN2010101588972A
Other languages
Chinese (zh)
Other versions
CN102236608B (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.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
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 Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN201010158897.2A priority Critical patent/CN102236608B/en
Publication of CN102236608A publication Critical patent/CN102236608A/en
Application granted granted Critical
Publication of CN102236608B publication Critical patent/CN102236608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a data access method, a data access system, a storage medium controller and a storage system. The data access method is used for writing data into a storage device. The storage device has a storage unit, and the storage unit has a partition of which a storage attribute is set into a write protect mode. The storage device is electrically connected to a host system with an operating system. The method comprises the steps of transmitting an instruction to the storage device from the host system by using a human interface device path and setting the storage attribute of the partition into a writable mode according to the instruction, and also comprises the step of storing the data into the partition by using a built-in instruction of the operating system. Therefore, by the method, a user can write the data into the partition set into the write protect mode under the condition of logging in the operating system by using identity with finite user rights.

Description

Data access method and system, memory medium controller and storage system
Technical field
The present invention relates to a kind of data access method and system and memory medium controller thereof and storage system, and be particularly related to a kind of in the cut section that is being in the write protection pattern under limited user's permission mode of operating system access data method, use the method data data access arrangement with and memory medium controller and storage system.
Background technology
When external storage device (for example passes through connector, USB (universal serial bus) (Universal SerialBus, when USB)) being electrically connected to host computer system, the operating system of host computer system (for example, Windows Windows XP) can come access for the built-in application program of not operation system in operating system or the host computer system with external storage device carry (mount) to a mounting points.Particularly, the tool applications that manufacturer developed of memory storage can transmit personal computer system interface (Small Computer System Interface by this mounting points, SCSI) memory storage is given in order, sets memory storage with the demand according to the user.For example, but user's tool using program is set at write protection (write protect) pattern of forbidding writing data or the write pattern that allows to write data with the memory attribute of the cut section of memory storage.
Yet, consider based on safety, when the user with limited user's permission mode (for example, when the guests of Windows (Guest) pattern) logining operating system and use host computer system, operating system can stop the built-in application program of not operation system directly to transmit scsi command by mounting points to give memory storage.In view of the above, if the user uses this host computer system with operation during external storage device with the identity of limited user's authority, the user can't manage external storage device by the built-in application program of not operation system.For example; be set under the write protection pattern at external storage device, login to the user of operating system with the identity of limited user's authority and can't use the tool applications that manufacturer was developed of external storage device that external storage device is reset to the pattern that can write.The base this, for login with the identity of limited user's authority to the user of operating system be quite inconvenience.
Summary of the invention
The invention provides a kind of data access method and system, it can be logined with the identity of limited user's authority to the situation of operating system the user memory storage that is set at the write protection pattern is carried out writing of data.
The invention provides a kind of memory medium controller, it can be logined to the situation of operating system identification the user and come from the instruction of host computer system and the property value of memory storage is reset with the identity of limited user's authority.
The invention provides a kind of storage system, it can be logined with the identity of limited user's authority to the situation of operating system the user and discern the property value that comes from the instruction of host computer system and reset memory storage.
The present invention proposes a kind of data access method; be used to write data to a memory storage; wherein this memory storage has a storage unit; this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon these a little physical blocks are divided into first cut section at least, and the memory attribute of this first cut section is set to the write protection pattern and this memory storage is electrically connected to the host computer system with operating system.The notebook data access method comprises that the human interface device passage (Human Interface DevicePath) via host computer system transmits first instruction and gives this memory storage.The notebook data access method also comprises by memory storage and judges whether to receive first instruction that meets man-machine interface agreement and instruct the memory attribute with first cut section to be set at the pattern that can write by this memory storage according to first when receiving this first instruction.The notebook data access method comprises that also built-in instruction via the operating system of this host computer system is with in first data storage to the first cut section.And the notebook data access method also comprises by memory storage and receives second instruction meet the mass storage device interfaces agreement and according to this two instruction first data are write in first cut section.
The embodiment of the invention proposes a kind of data access arrangement, and it comprises host computer system and external storage device.Host computer system has the in-building type memory storage, and wherein this in-building type memory storage is equipped with operating system and upgrades tool applications, and this upgrades tool applications meets the man-machine interface agreement in order to use HID channel transfer first instruction.External storage device comprises connector, storage unit and memory medium controller.Connector is in order to be electrically connected to host computer system.Storage unit has a plurality of physical locations, a plurality of logical blocks of part mapping at least of these a little physical blocks, and these a little logical blocks are divided into first cut section at least.Memory medium controller electrically connects storage unit so far, in order to judge whether to receive first instruction and first to instruct the memory attribute with first cut section to be set at the pattern that can write according to this when receiving first instruction.In addition, above-mentioned renewal tool applications also in order to the built-in instruction of using operating system with in first data storage to the first cut section, and memory medium controller also meets second instruction of mass storage device interfaces agreement in order to reception and according to this second instruction first data is write in first cut section.
The embodiment of the invention proposes a kind of memory medium controller; be used to manage a storage unit; wherein this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon these a little physical blocks are divided into first cut section at least, and the memory attribute of first cut section is set to the write protection pattern.This memory medium controller comprises storage medium interface, host interface and storage medium management circuit.Storage medium interface is in order to be electrically connected to storage unit.The storage medium management circuit electrically connects storage medium interface and host interface, and meets first instruction of man-machine interface agreement and according to first instruction memory attribute of first cut section is set at the pattern that can write in order to reception.In addition, the storage medium management circuit also meets second instruction of mass storage device interfaces agreement in order to reception and according to this second instruction first data is write in first cut section.
The embodiment of the invention proposes a kind of storage system, and it comprises connector, storage unit and memory medium controller.Storage unit has a plurality of physical blocks, a plurality of logical blocks of part mapping at least of these a little physical blocks, and these a little logical blocks are divided into first cut section at least, and wherein the memory attribute of this first cut section is set to the write protection pattern.Memory medium controller is electrically connected to storage unit and connector, and meets first instruction of man-machine interface agreement and according to this first instruction the memory attribute of first cut section is set at the write protection pattern in order to reception.In addition, the memory medium controller reception meets second instruction of mass storage device interfaces agreement and according to this second instruction first data is write in first cut section.
The embodiment of the invention proposes a kind of data access method; in order to write data to memory storage; wherein this memory storage has storage unit; this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon these a little physical blocks are divided into first cut section at least, and the memory attribute of this first cut section is set to the write protection pattern.This data access method comprises uses one first instruction of human interface device channel transfer to give this memory storage, is set at the pattern that can write with the memory attribute with first cut section.This data access method also comprises uses the 3rd instruction of human interface device channel transfer to give this memory storage, is set at the write protection pattern with the memory attribute with first cut section.
Based on above-mentioned, the data access method of the embodiment of the invention and system, memory medium controller and storage system can be logined with the identity of limited user's authority to the situation of operating system the user storage unit that is set at the write protection pattern is carried out writing of data.
For above-mentioned feature and advantage of the present invention can be become apparent, below especially exemplified by embodiment, and conjunction with figs. is described in detail below.
Description of drawings
Figure 1A is the host computer system that the embodiment of the invention is used memory storage.
Figure 1B is the synoptic diagram of computer, input/output device and the memory storage apparatus of the embodiment of the invention.
Fig. 2 is the summary calcspar of the memory storage shown in Figure 1A.
Fig. 3 is the summary calcspar of the memory medium controller of the embodiment of the invention.
Fig. 4 is the summary calcspar of the storage unit of the embodiment of the invention.
Fig. 5 is the synoptic diagram of the management logic block of the embodiment of the invention.
Fig. 6 is the operation workflow figure of the renewal tool applications of the embodiment of the invention.
Fig. 7 is according to the operation workflow figure that upgrades the instruction storage device that tool applications transmitted.
Fig. 8 is the process flow diagram of the data access method of the embodiment of the invention.
The 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: the in-building type memory storage;
1112a: operating system; 1202: mouse;
1204: keyboard; 1206: display;
1208: printer; 1212: coil with oneself;
1216: solid state hard disc; 100: memory storage;
102: connector; 104: memory medium controller;
106: the storage medium unit; 202: the storage medium management circuit;
204: host interface; 206: storage medium interface;
252: memory buffer; 254: electric power management circuit;
256: bug check and correcting circuit; 402: the data field;
404: the spare area; 406: system region;
408: replace the district; 304 (0)~304 (R): physical blocks;
510 (0)~510 (H): logical blocks; 1112b: mounting points;
550: the first cut sections; 560: the second cut sections;
570: the three cut sections; 592: application program;
594: automatic execution file; 596: loader;
598: upgrade tool applications;
S601, S603, S605: the operation workflow of upgrading tool applications;
S701, S703, S705: the operation workflow of memory storage;
S801, S803, S805, S807: the step of data access.
Embodiment
Figure 1A is the host computer system that the embodiment of the invention is used memory storage.
Please refer to Figure 1A, host computer system 1000 generally comprises computer 1100 and I/O (input/output, I/O) device 1106.Computer 1100 comprise microprocessor 1102, random access memory (random accessmemory, RAM) 1104, system bus 1108, data transmission interface 1110 and in-building type memory storage 1112.Input/output device 1106 comprises mouse 1202, keyboard 1204, the display 1206 and printer 1208 as Figure 1B.It must be appreciated, the unrestricted input/output device 1106 of the device shown in Figure 1B, input/output device 1106 can also comprise other devices.
In embodiments of the present invention, memory storage 100 is to electrically connect by data transmission interface 1110 other elements with host computer system 1000.Data can be write to memory storage 100 or reading of data from memory storage 100 by microprocessor 1102, random access memory 1104, input/output device 1106 with the running that is installed in the operating system 1112a in the in-building type memory storage 1112.
Fig. 2 is the summary calcspar of the memory storage shown in Figure 1A.
Please refer to Fig. 2, in the present embodiment, memory storage 100 is for external storage device and be electrically connected to host computer system 1000 removably.For example, memory storage 100 is carry-on dish 1212 or solid state hard disc (Solid State Drive, SSD) 1216 shown in Figure 1B.Memory storage 100 comprises connector 102, memory medium controller 104 and storage unit 106.
In the present embodiment, connector 102 is USB (universal serial bus) (Universal Serial Bus, a USB) connector.Yet, it must be appreciated, 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 component 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 electrical interface (Integrated Device Electronics, IDE) connector or other connectors that is fit to.
Memory medium controller 104 is in order to carrying out a plurality of logic locks or the steering order with example, in hardware or firmware formal operations, and carries out the runnings such as writing, read and erase of data in storage unit 106 according to the instruction of host computer system 1000.Particularly, memory medium controller 104 can be in order to cooperate with host computer system 1000 to carry out data access method and the storage management method according to present embodiment.
Storage unit 106 is to be electrically connected to memory medium controller 104, and the data that write in order to host system 1000.In the present embodiment, storage unit 106 is the duplicative nonvolatile memory.For example, storage unit 106 is multilayer storage unit (Multi Level Cell, MLC) a NAND flash memory module.Yet, the invention is not restricted to this, storage unit 106 also the individual layer storage unit (Single Level Cell, SLC) NAND flash memory module, other flash memory modules or other have the memory module of identical characteristics.In addition, in another embodiment of the present invention, storage unit 106 is can be magnetic storage module or other storage modules.
Fig. 3 is the summary calcspar of the memory medium controller of the embodiment of the invention.
Please refer to Fig. 3, memory medium controller 104 comprises storage medium management circuit 202, host interface 204 and storage medium interface 206.
Storage medium management circuit 202 is in order to the overall operation of control store medium controller 104.Specifically, storage medium management circuit 202 has a plurality of steering orders, and when memory storage 100 runnings, these a little steering orders can be performed with data access method and storage management method according to present embodiment comes access and managed storage unit 106.Data access method will elaborate in the following figure of cooperation with storage management method.
In the present embodiment, the steering order of storage medium management circuit 202 is to operate with the firmware form.For example, storage medium management circuit 202 has microprocessor unit (not shown) and ROM (read-only memory) (not shown), and these a little steering orders are by imprinting so far in the ROM (read-only memory).When memory storage 100 runnings, these a little steering orders can be carried out to cooperate data access method and the storage management method of finishing according to the embodiment of the invention with host computer system 1000 by microprocessor unit.
In another embodiment of the present invention, the steering order of storage medium management circuit 202 can also the procedure code form be stored in the particular address of storage unit 106.In addition, storage medium management circuit 202 has microprocessor unit (not shown), ROM (read-only memory) (not shown) and random access memory (not shown).Particularly, this ROM (read-only memory) has the sign indicating number of driving section, and when memory medium controller 104 was enabled, microprocessor unit can be carried out this driving yard steering order that section will be stored in the storage unit 106 earlier and be loaded in the random access memory of storage medium management circuit 202.Afterwards, microprocessor unit can turn round these a little steering orders to cooperate data access method and the storage management method of carrying out the embodiment of the invention with host computer system 1000.In addition, in another embodiment of the present invention, the steering order of storage medium management circuit 202 can also an example, in hardware be operated.
Host interface 204 is instruction and the data that are electrically connected to storage medium management circuit 202 and transmitted in order to reception and identification host computer system 1000.That is to say that instruction that host computer system 1000 is transmitted and data can be sent to storage medium management circuit 202 by host interface 204.In the present embodiment, host interface 204 is that corresponding connector 102 is USB interface.Yet, it must be appreciated to the invention is not restricted to this that host interface 204 can also be PATA interface, SATA interface, IEEE 1394 interfaces, PCI Express interface, SD interface, MS interface, MMC interface, CF interface, ide interface or other data transmission interfaces that is fit to.
Storage medium interface 206 is to be electrically connected to storage medium management circuit 202 and in order to access memory cell 106.That is to say that the data of desiring to write to storage unit 106 can be converted to 106 receptible forms of storage unit via storage medium interface 206.
In an embodiment of the present invention, memory medium controller 104 also comprises memory buffer 252.Memory buffer 252 is to be electrically connected to storage medium management circuit 202 and in order to the temporary data that come from the data and instruction of host computer system 1000 or come from storage unit 106.
In an embodiment of the present invention, memory medium controller 104 also comprises electric power management circuit 254.Electric power management circuit 254 is to be electrically connected to storage medium management circuit 202 and in order to the power supply of control store device 100.
In an embodiment of the present invention, memory medium controller 104 also comprises bug check and correcting circuit 256.Bug check and correcting circuit 256 are to be electrically connected to storage medium management circuit 202 and in order to carry out a bug check and correction program to guarantee the correctness of data.Specifically, when receiving, storage medium management circuit 202 writes when instruction from host computer system 1000, bug check can produce corresponding bug check and correcting code (Error Checkingand Correcting Code for the corresponding data that this writes instruction with correcting circuit 256, ECC Code), and storage medium management circuit 202 the corresponding data that this writes instruction can be write in the storage unit 106 with corresponding bug check and correcting code.Afterwards, when storage medium management circuit 202 can read the bug check and the correcting code of this data correspondence during reading of data simultaneously from storage unit 106, and bug check and correcting circuit 256 can be according to this bug check and correcting code the data execution error correction program to being read.
Fig. 4 is according to the summary calcspar of the storage unit that the embodiment of the invention illustrated.
Please refer to Fig. 4, storage unit 106 comprises physical blocks 304 (0)~304 (R).Each physical blocks has a plurality of pages respectively, and the physical page that wherein belongs in same physical blocks can be write and side by side be erased independently.In more detail, physical blocks is the least unit of erasing.That is each physical blocks contains the storage unit of being erased in the lump of minimal amount.Physical page is the minimum unit of sequencing.That is, physical page is the minimum unit that writes data.
In the present embodiment, storage medium management circuit 202 can logically be grouped into the physical blocks 304 (0)~304 (R) of storage unit 106 data field 402, spare area 404, system region 406 and replace district 408.
Data field 402 is the data that come from host computer system 1000 in order to storage with the physical blocks of spare area 404.Specifically, the physical blocks of data field 402 is the physical blocks of having stored data, and the physical blocks of spare area 404 is the physical blocks in order to replacement data district 402.Therefore, the physical blocks of spare area 404 is empty or spendable physical blocks, i.e. no record data or be labeled as invalid data useless.That is to say that the physical blocks in spare area 404 has been performed the running of erasing, perhaps the physical blocks in spare area 404 is extracted the physical blocks that is used to be extracted before storing data and can be performed the running of erasing.Therefore, the physical blocks of the physical blocks of spare area 404 for being used.
The physical blocks that belongs to system region 406 in logic is in order to the register system data, and wherein this system data comprises about the manufacturer of storage unit and model, the physical blocks number of storage unit, physical page number of each physical blocks etc.
Belonging to the physical blocks that replaces in the district 408 in logic is to replace physical blocks.For example, storage unit 106 can be reserved 4% physical blocks and uses as changing when dispatching from the factory.That is to say that when data field 402, spare area 404 were damaged with the physical blocks in the system region 406, being reserved in the physical blocks that replaces in the district 408 was in order to replacing damaged physical blocks (that is bad physical blocks (bad block)).Therefore, if replace when still having normal physical blocks in the district 408 and the physical blocks damage taking place, storage medium management circuit 202 can extract the physical blocks that normal physical blocks is changed damage from replace district 408.If when no normal physical blocks and generation physical blocks were damaged in the replacement district 408, then storage medium management circuit 202 can be declared as write protection (write protect) state with memory storage 100, and can't write data again.
It must be appreciated that in the running of memory storage 100, the grouping relation that physical blocks is associated to data field 402, spare area 404, system region 406 and replacement district 408 can dynamically change.For example, damage and the physical blocks that is substituted district 408 when replacing when the physical blocks in the spare area 404, the physical blocks that then replaces district 408 originally can be associated to spare area 404.
As mentioned above, data field 402 is the data of coming host system 1000 to be write in the mode of rotating with the physical blocks of spare area 404.In the present embodiment, storage medium management circuit 202 can to main frame declare its be one comprise man-machine interface (Human Interface Device, HID) and the composite device of memory function (MassStorage) (composite device).In addition, storage medium management circuit 202 meeting configuration logic blocks 510 (0)~510 (H) carry out data access in order to host computer system 1000 in the physical blocks of storing data in the above-mentioned mode of rotating.For example, when memory storage 100 was initialised (for example, format), logical blocks 510 (0)~510 (H) mapped to the physical blocks 304 (0)~304 (D) of data field 402 respectively.That is to say logical blocks physical blocks in can mapping (enum) data district 402.At this, storage medium management circuit 202 can be set up logical blocks-physical blocks mapping table (logicalblock-physical block mapping table), with the mapping relations between record logical blocks and physical blocks.
Fig. 5 is the synoptic diagram of the management logic block of the embodiment of the invention.
Please refer to Fig. 5, logical blocks 510 (0)~510 (H) can formatted first cut section 550 and second cut section 560 of being divided into.For example, logical blocks 510 (0)~510 (D1) belongs to second cut section 560, and logical blocks 510 (D1+1)~510 (D2) belongs to first cut section 550.
First cut section 550 stores second data.For example, second data are the application program that manufacturer developed 592 of memory storage 100.Application program 592 is in order to offer operation and the setting that the user can be correlated with to memory storage 100.Particularly, storage medium management circuit 202 initially is set at write protection pattern (that is, read-only) with the memory attribute of first cut section 550.Specifically, when memory storage 100 was electrically connected to host computer system 1000, storage medium management circuit 202 can be to host computer system 1000 declarations first cut section 550 for the cut section of mass storage device and do not allow host computer system 1000 to write data to the first cut section 550.Mandatory declaration be that " mass storage device " described herein is meant the memory storage of any capacity of tool, and comprises removable (removable) or non-removable (non-removable) medium.
Second cut section 560 is the multimedium cut section.Specifically, when memory storage 100 was electrically connected to host computer system 1000, storage medium management circuit 202 can be the cut section of optical storage (also claiming the CD cut section) to host computer system 1000 declarations second cut section 560.For example, second cut section 560 can be modeled as CD-ROM device, digital video disc (Digital Video Disc, DVD) or the cut section of Blu-ray Disc machine (Blue-Ray Disc drive).Particularly, second cut section 560 stores automatic execution file 594 and loader 596.At this, automatic execution file 594 is a kind of description archives that operating system 1112a is automatically performed (for example, the description shelves (script file) of shelves " Autorun.inf " by name) and comprises the descriptive language of carrying out loader 596 in the content of automatic execution file 594.In addition, loader 596 is in order to search and executive utility 592 at first cut section 550.
Except above-mentioned first cut section 550 and second cut section 560, the logical blocks 510 (0)~510 (H) after the format can also comprise the 3rd cut section 570.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 for generally storage cut section and storage medium management circuit 202 initially are set at the pattern that can write with the memory attribute of the 3rd cut section 570.Specifically, when memory storage 100 is electrically connected to host computer system 1000, storage medium management circuit 202 can be the cut section of mass storage device to host computer system 1000 declarations the 3rd cut section 570, and allows host computer system 1000 to write in data to the three cut sections 570.
In the present embodiment, when memory storage 100 was electrically connected to host computer system 1000, operating system 1112a can be mounted to corresponding mounting points with the 3rd cut section 570 respectively to memory storage 100 inquiry unit features and according to the response of storage medium management circuit 202 configuration HID path and required mounting points 1112b and with first cut section 550, second cut section 560.For example, with Microsft Windows operating system, mounting points is in order to the driving machine code that shines upon a specific device (drive letter).For example, with Macintosh system (Mac), mounting points is an address (for example, driving machine interface (driver interface) or the UNIX mounting points (mount points) in the system directory.For example, window (Windows) operating system 1112a can dispose mounting points " D: " and give second cut section 560, and configuration mounting points " E: " gives the 3rd cut section 570 for first cut section 550 and configuration mounting points " F: ".Particularly, when memory storage 100 was electrically connected to host computer system 1000, operating system 1112a can discern the optical storage of being simulated with second cut section 560 also can be according to the automatic execution file 594 in mounting points " D: " execution second cut section 560.Afterwards, automatic execution file 594 can be carried out loaders 596, and application program 592 in first cut section 550 be searched and be carried out to loader 596 can according to mounting points " E ".That is to say that when memory storage 100 was electrically connected to host computer system 1000, application program 592 can automatically be carried out.
In the present embodiment, there is the tool applications 598 of renewal in the in-building type memory storage 1112 of host computer system 1000.(HumanInterface Device, HID) passage meets first instruction of man-machine interface agreement to memory storage 100 by mounting points " the E: " transmission of corresponding first cut section 550 in order to use a human interface device to upgrade tool applications 598.Particularly, storage medium management circuit 202 can be set at the pattern that can write with the memory attribute of first cut section 550 according to this first instruction.In the present embodiment, the human interface device passage is the mode that host computer system is located in logic to human interface device, in order to move instruction correctly or the data human interface device to appointment.
Specifically, when the user with limited user's permission mode (for example, when the guests of Windows (Guest) pattern) logining operating system 1112a and use host computer system 1000, operating system 1112a can stop the built-in application program of the 1112a of not operation system directly to transmit the mass storage device interfaces order by mounting points, as SCSI or IDE/ATA order, give memory storage 100.Because the HID passage generally is the data transmission that is used for I/O devices such as keyboard, mouse, therefore operating system 1112a can not stop data via the HID channel transfer under limited user's permission mode.Base this, storage medium management circuit 202 can receive first instruction and according to this first instruction the memory attribute of first cut section 550 is set at the pattern that can write from host computer system 1000.
Memory attribute at first cut section 550 has been set under the situation of the pattern that can write, new data (for example, the data that first data different with above-mentioned second data) can be stored in first cut section 550 by the built-in instruction (for example, duplicate (Copy) and instruct, stick (Paste) instruction) of using operating system 1112a or be stored in first cut section 550 can be upgraded by the built-in instruction of operating system 1112a.Specifically, when the built-in instruction of new data by operating system 1112a is stored to first cut section 550, host computer system 1000 can transmit the instruction that meets the mass storage device interfaces agreement and give memory storage 100, and storage medium management circuit 202 writes to new data in the physical blocks that first cut section 550 shone upon according to this instruction.For example, the application program of new edition (not illustrating) can be stored to by the built-in instruction of operating system 1112a in first cut section 550, to replace application program 592.
Fig. 6 is the operation workflow figure of the renewal tool applications of the embodiment of the invention.
Please refer to Fig. 6, in step S601, memory storage 100 is given in first instruction that renewal tool applications 598 uses the HID channel transfers to meet the man-machine interface agreement, is set at the pattern that can write with the memory attribute with first cut section 550.
Then, in step S603, upgrade tool applications 598 and use the built-in instruction of operating system 1112a in first data storage to the first cut section 550.
At last, in step S605, memory storage 100 is given in the 3rd instruction that renewal tool applications 598 uses the HID channel transfers to meet the man-machine interface agreement, is set at the write protection pattern with the memory attribute with first cut section 550.
Fig. 7 is according to the operation workflow figure that upgrades the instruction storage device that tool applications transmitted.
Please refer to Fig. 7, the storage medium management circuit 202 of memory medium controller 104 can judge whether to receive first instruction that meets the man-machine interface agreement in step S701.
When not receiving first instruction that meets man-machine interface agreement, execution in step S701 repeatedly then.
When receiving first instruction that meets man-machine interface agreement, storage medium management circuit 202 can be set at the pattern that can write with the memory attribute of first cut section 550 according to first instruction in step S703.
Afterwards, the 202 meeting receptions of storage medium management circuit meet second instruction of mass storage device interfaces agreement and according to second instruction first data are write in first cut section 550 in step S705.
In addition, upgrading tool applications 598 also can the 3rd instruct the memory attribute with first cut section 550 to be set at the write protection pattern according to this for memory storage 100 and storage medium management circuit 202 in order to use the mounting points " E: " of HID passage by corresponding first cut section 550 to transmit the 3rd instruction that meets the man-machine interface agreement.
In embodiments of the present invention, upgrading tool applications 598 can be downloaded and be stored to the in-building type memory storage 1112 from the download point that manufacturer provided via Internet by the user.In addition, in another embodiment of the present invention, upgrade tool applications 598 and also can be stored in first cut section 550 in advance and be copied in the in-building type memory storage 1112 and carry out by manufacturer by the user.
Fig. 8 is the process flow diagram of the data access method of the embodiment of the invention.
Please refer to Fig. 8, in step S801, memory storage 100 is electrically connected to host computer system 1000.
In step S803, in host computer system 1000, carry out to upgrade tool applications 598 and upgrade tool applications 598 and use the mounting points of HID passages by corresponding first cut section 550 to transmit first instruction that meets the man-machine interface agreement to give memory storage 100.
In step S805, the memory medium controller of memory storage 100 104 receives first instruction and according to first instruction memory attribute of first cut section 550 is set at the pattern that can write.
In step S807, upgrade tool applications 598 and use the built-in instruction of operating system 1112a in first data storage to the first cut section 550.
What deserves to be mentioned is, first data be new application program and in order to the example that replaces the application program 592 in first cut section 550 in because application program 592 can automatically be performed via automatic execution file 594 and loader 596 in step S801.Therefore, executed application program 592 need be closed to avoid access in violation of rules and regulations before execution in step S807.
In another embodiment of the present invention, flow chart approach shown in Figure 8 also is included in to carry out in host computer system 1000 after the step S807 to be upgraded tool applications 598 and receives the 3rd instruction and according to the 3rd instruction the memory attribute of first cut section 550 is set at the write protection pattern to use the mounting points of HID passage by corresponding first cut section 550 to transmit memory medium controller 104 that the 3rd instruction gives memory storage 100 and memory storage 100.The base this; after data in first cut section 550 are updated and the memory attribute of first cut section 550 is set to the write protection pattern; memory medium controller 104 can not allow 1000 pairs first cut sections 550 of host computer system to write, to prevent that the data that are stored in first cut section 550 from being deleted by mistake.
In sum; the instruction that is to use the HID passage to transmit to meet the man-machine interface agreement according to the data access method of the embodiment of the invention is set at the pattern that can write with the cut section that the memory medium controller of indication memory storage will be set to the write protection pattern, and will desire data updated by the built-in instruction of operating system and write so far in the cut section.Base this, when the user logined operating system and uses host computer system with limited user's permission mode, the user still can successfully update stored in the data in the cut section that is set to the write protection pattern.
Though the present invention discloses as above with embodiment; right its is not in order to limit the present invention; any person of ordinary skill in the field; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking the scope that the accompanying Claim book protected.

Claims (20)

1. data access method; be used to write data to a memory storage; wherein this memory storage has a storage unit; this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon described a plurality of physical blocks are divided into one first cut section at least; one memory attribute of this first cut section is set to a write protection pattern and this memory storage in order to be electrically connected to the host computer system with an operating system, and this data access method comprises:
Human interface device channel transfer via this host computer system meets one first instruction of man-machine interface agreement to this memory storage;
Judge whether to receive this first instruction by this memory storage;
When receiving this first when instruction, according to this first instruction the memory attribute of this first cut section is set at one by this memory storage and can writes pattern;
Via at least one built-in instruction of this operating system of this host computer system with one first data storage to this first cut section; And
Receive one second instruction that meets mass storage device interfaces agreement and these first data are write in this first cut section by this memory storage according to this two instruction.
2. data access method according to claim 1 also comprises:
This memory storage is given in one the 3rd instruction that meets this man-machine interface agreement via this human interface device channel transfer;
Judge whether to receive the 3rd instruction by this memory storage; And
When receiving for the 3rd when instruction, according to this second instruction the memory attribute of this first cut section is set at this write protection pattern by this memory storage.
3. data access method according to claim 1, wherein said a plurality of logical blocks are divided into this first cut section, one second cut section and one the 3rd cut section at least,
Wherein this data access method also comprises by this memory storage this second cut section being modeled as a CD cut section and a memory attribute of the 3rd cut section being set at this and can write pattern.
4. data access method according to claim 3,
Wherein these first data are an application program, and an automatic execution file and a loader be stored in this second cut section,
Wherein this automatic execution file can automatically be carried out by this operating system of this host computer system,
Wherein this automatic execution file is in order to carry out this loader and this loader in order to carry out this application program.
5. data access method according to claim 1, wherein this first cut section is stored one second data,
Wherein this at least one built-in instruction via this operating system of this host computer system comprises this first data storage to the step in this first cut section:
Use this at least one built-in instruction of this operating system that this first data storage is replaced this second data to this first cut section and with these first data.
6. data access arrangement comprises:
One host computer system, has an in-building type memory storage, wherein this in-building type memory storage is equipped with an operating system and a renewal tool applications, and this renewal tool applications meets one first instruction of man-machine interface agreement in order to use a human interface device channel transfer; And
One external storage device comprises:
A connector is in order to be electrically connected to this host computer system;
One storage unit has a plurality of physical blocks, a plurality of logical blocks of part mapping at least of described a plurality of physical blocks, and described a plurality of logical blocks is divided into one first cut section at least; And
One memory medium controller is electrically connected to this storage unit, in order to carry out follow procedure at least:
Judge whether to receive meet this first the instruction; And
When receiving this first when instruction, according to this first instruction the memory attribute of this first cut section is set at one and can writes pattern,
Wherein this renewal tool applications also in order at least one built-in instruction of using this operating system with one first data storage to this first cut section,
Wherein this memory medium controller also meets one second instruction of mass storage device interfaces agreement in order to reception and according to this second instruction these first data is write in this first cut section.
7. data access arrangement according to claim 6,
Wherein this renewal tool applications is also given this external storage device in order to one the 3rd instruction of using this human interface device channel transfer to meet this man-machine interface agreement,
Wherein this memory medium controller is also in order to judging whether to receive the 3rd instruction, and when receiving the 3rd instruction, according to the 3rd instruction the memory attribute of this first cut section is set at a write protection pattern.
8. data access arrangement according to claim 6, wherein said a plurality of logical blocks are divided into this first cut section, one second cut section and one the 3rd cut section at least,
Wherein this memory medium controller also can write pattern in order to this second cut section is modeled as a CD cut section and a memory attribute of the 3rd cut section is set at this.
9. data access arrangement according to claim 8, wherein these first data are an application program,
Wherein this second cut section is stored an automatic execution file and a loader,
Wherein when this external storage device was electrically connected to this host computer system, this operating system of this host computer system was automatically carried out this automatic execution file,
Wherein this automatic execution file is in order to carry out this loader and this loader in order to carry out this application program.
10. data access arrangement according to claim 6, wherein this first cut section is stored one second data,
Wherein this at least one built-in instruction of using this operating system of this renewal tool applications with this first data storage to this first cut section to replace this second data.
11. data access arrangement according to claim 6, wherein each physical blocks has a plurality of physical pages and described a plurality of physical page can be written into and side by side be erased independently.
12. memory medium controller; be used to manage a storage unit; wherein this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon described a plurality of physical blocks are divided into one first cut section at least; and a memory attribute of this first cut section is set to a write protection pattern, and this memory medium controller comprises:
One storage medium interface is in order to electrically connect this storage unit;
One host interface; And
One storage medium management circuit electrically connects this storage medium interface and this host interface, in order to carry out follow procedure at least:
Reception meets one first instruction of man-machine interface agreement;
According to this first instruction the memory attribute of this first cut section is set at one and can writes pattern; And
Reception meets one second instruction of mass storage device interfaces agreement and according to this second instruction one first data is write in this first cut section.
13. memory medium controller according to claim 12, wherein this storage medium management circuit also meets one the 3rd instruction of this man-machine interface agreement and according to the 3rd instruction the memory attribute of this first cut section is set at this write protection pattern in order to reception.
14. memory medium controller according to claim 12, wherein said a plurality of logical blocks are divided into this first cut section, one second cut section and one the 3rd cut section at least,
Wherein this storage medium management circuit also can write pattern in order to this second cut section is modeled as a CD cut section and a memory attribute of the 3rd cut section is set at this.
15. a storage system comprises:
A connector;
One storage unit, have a plurality of physical blocks, at least a plurality of logical blocks of part mapping of described a plurality of physical blocks, and described a plurality of logical blocks is divided into one first cut section at least, and wherein a memory attribute of this first cut section is set to a write protection pattern; And
One memory medium controller is electrically connected to this storage unit and this connector, in order to carry out follow procedure at least:
Reception meets one first instruction of man-machine interface agreement;
According to this first instruction the memory attribute of this first cut section is set at one and can writes pattern; And
Reception meets one second instruction of mass storage device interfaces agreement and according to this second instruction one first data is write in this first cut section.
16. storage system according to claim 15, wherein this memory medium controller also meets one the 3rd instruction of this man-machine interface agreement and according to the 3rd instruction the memory attribute of this first cut section is set at this write protection pattern in order to reception.
17. storage system according to claim 15, wherein said a plurality of logical blocks are divided into this first cut section, one second cut section and one the 3rd cut section at least,
Wherein this memory medium controller also can write pattern in order to this second cut section is modeled as a CD cut section and a memory attribute of the 3rd cut section is set at this.
18. storage system according to claim 17, wherein this first cut section is stored an application program, this second cut section is stored an automatic execution file and a loader, and this automatic execution file is in order to carry out this loader and this loader in order to carry out this application program.
19. storage system according to claim 15, wherein each physical blocks has a plurality of physical pages and described a plurality of physical page can be written into and side by side be erased independently.
20. data access method; in order to write data to a memory storage; wherein this memory storage has a storage unit; this storage unit has a plurality of physical blocks; a plurality of logical blocks of shining upon described a plurality of physical blocks are divided into one first cut section at least; one memory attribute of this first cut section is set to a write protection pattern, and this data access method comprises:
Use a human interface device channel transfer one first instruction to give this memory storage, be set at one with memory attribute and can write pattern this first cut section; And
Use this human interface device channel transfer 1 the 3rd instruction to give this memory storage, be set at this write protection pattern with memory attribute with this first cut section.
CN201010158897.2A 2010-04-23 2010-04-23 Data access method and system, memory medium controller and storage system Active CN102236608B (en)

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 true CN102236608A (en) 2011-11-09
CN102236608B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455426A (en) * 2012-05-28 2013-12-18 联想(北京)有限公司 Data processing method and device
CN116700740A (en) * 2022-09-29 2023-09-05 荣耀终端有限公司 Software repairing method and related device

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455426A (en) * 2012-05-28 2013-12-18 联想(北京)有限公司 Data processing method and device
CN103455426B (en) * 2012-05-28 2018-08-10 联想(北京)有限公司 Data processing method and device
CN116700740A (en) * 2022-09-29 2023-09-05 荣耀终端有限公司 Software repairing method and related device

Also Published As

Publication number Publication date
CN102236608B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
US8230160B2 (en) Flash memory storage system and flash memory controller and data processing method thereof
TWI515735B (en) Data erasing method, memory control circuit unit and memory storage apparatus
TWI480733B (en) Data writing mehod, and memory controller and memory storage device using the same
TWI421686B (en) Data access method and system, storage medium controller and storage system
US8954705B2 (en) Memory space management method and memory controller and memory storage device and memory storage using the same
TWI423026B (en) Data writing method, memory controller and memory storage apparatus
US8255656B2 (en) Storage device, memory controller, and data protection method
CN102890655B (en) Memory storage device, memory controller and valid data recognition method thereof
US9032135B2 (en) Data protecting method, memory controller and memory storage device using the same
CN102200946B (en) Data access method, memory controller and storage system
CN102207905A (en) System recovery method, storage media controller and storage system
CN102736861B (en) Memory configuration method, Memory Controller and memorizer memory devices
TWI493341B (en) Memory storage device and repairing method thereof
US9501397B2 (en) Data writing method, memory controller, and memory storage apparatus
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN102109965B (en) Flash memory system, flash controller, computer system and analogy method
TWI454908B (en) Memory configuring method, memory controller and memory storage apparatus
CN102650971B (en) Memory managing method, memory controller and memory storing device
CN102236608A (en) Data access method, system, storage medium controller and storage system
CN102043724B (en) For the block management method of flash memory, controller and storage system
CN102053920A (en) Data writing method, flash memory controller and flash memory system
CN102467459B (en) Data write method, memory controller and memory device
TWI451250B (en) Memory configuring method, memory controller and memory storage apparatus
US8555141B2 (en) Flash memory organization
CN110442300B (en) Sorting instruction recording method, memory control circuit unit and memory 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