TWI380310B - Operating method of memory card - Google Patents
Operating method of memory card Download PDFInfo
- Publication number
- TWI380310B TWI380310B TW097135679A TW97135679A TWI380310B TW I380310 B TWI380310 B TW I380310B TW 097135679 A TW097135679 A TW 097135679A TW 97135679 A TW97135679 A TW 97135679A TW I380310 B TWI380310 B TW I380310B
- Authority
- TW
- Taiwan
- Prior art keywords
- sector
- file
- memory card
- filled
- command
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0637—Permissions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/79—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
1380310 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種儲存裝置的操作方法,且特別是 一種防止記憶卡的檔案遭到更新的方法。 【先前技術】 記憶卡主要係用於電腦週邊設備的資料儲存。由於各 種可攜式電子裝置的快速發展,像是數位相機、數位攝影 機、行動電話及個人數位助理(PDA)等裝置,使得記憶 卡亦廣泛地應用於此類裝置上。 “ 記憶卡主要係由快閃記憶體及控制器所構成,快閃記 憶體是由許多的快閃記憶體細胞單元以陣列的形式所组 成。記憶卡的生羞過程中,可將特定的㈣預載至此記憶 卡中’控制器可藉由這些特定的檔案以控制記憶卡執行特 定的功能。 然而,使用者在使用記愔+眭 疋用圯卞時,常常因為操作不慎,
誤將這些特定的檔案刪除或修改。 、 有鑑於此,需要一種適用於記憶卡的操作方法,可防 止檔案遭到刪除或修改。 【發明内容】 本發明之技術態樣是提供一種適用於記憶卡的操作方 法,可防止檔案遭到刪除或修改。 依照本發明之實施例,—種適用於記憶卡的操作方 法’包含下列步騾: 5 (1) 預載檔案於記憶卡的檔案配置表的一第一扇區以 及檔案指述4的多個第二扇區,其中第—扇區被播案填 滿,而且這些第二扇區被標案填入,其中這些第二扇區中 僅有-個特定的第二扇區未被檔案填滿,其餘的第二扇區 皆被擋案填滿。 (2) 接故命令’此命令係、對此記憶卡中檔案作更新。 (3 )對第一扇區忽略(ign〇re )命令。 (4) 對於被檔案所填滿的第二扇區忽略命令。 (5) 根據命令更新特定的第二扇區。 (6) 恢復(recovering)特定的第二扇區中所預載的 標案。 本發明之技術態樣與現有技術相比具有明顯的優點和 有益效果。借由上述技術方案,本發明之技_樣可達到 相當的技術進步性及實錄,並具有産#上的廣泛利用價 值’其至少具有下列優點: (A) 對於記憶卡所保護的擋案無法被修改或删除。 (B) 對於記憶卡中未保護的檔案可自由地作讀取、寫 入、搜尋、更名、刪除等動作。 综上所述,本發明之技術態樣之記憶卡的操作方法, 具有可防止擋案遭到删除或修改的特點,並且可將此記憶 卡的操作方法運用在適合的技術環節。本發明之技術綠樣 具有上述諸多優點及實用價值,在技術上有顯著的進步, 並産生了好用及實用的效果。 以下將以實施例對上述之說明以及接下來的實施方式 做詳細的描述,並對本發明提供更進一步的解釋。 1380310 【實施方式】 為了使本發明之敘述更加詳盡與完備,可參照下列之 圖式及各種實施例,圖式中相同之號碼代表相同之元件。 另一方面,眾所週知的軟、硬體元件並未描述於實施例中, 以避免造成本發明不必要的限制。 請參照第1圖,第1圖是依照本發明一實施例的一種 適用於記憶卡的操作方法的流程圖。如圖所示,一種適用 於記憶卡的操作方法100,包含下列步驟(應瞭解到,在本 實施例中所提及的步驟,除特別敘明其順序者外,均可依 實際需要調整其前後順序,甚至可同時或部分同時執行): (1)步驟110 :預載檔案於記憶卡的檔案配置表的— 第一扇區以及檔案描述塊的多個第二扇區,其中第一扇區 被檔案填滿,而且這些第二扇區被檔案填入,其中這些第 二扇區中僅有一個特定的第二扇區未被檔案填滿,其餘的 第二扇區皆被檔案填滿。 鲁 (2)步驟12G :接收命令’此命令係對此記憶卡中權 案作更新。 (3) 步驟130 :對第一扇區忽略(ign〇re)命令。 (4) 步驟14〇:對於被檔案所填滿的第二扇區忽略命 令。 (5) 步驟150:根據命令更新特定的第二扇區。 (6) 步驟160:恢復(recovering)特定的第二扇區中 所預載的檔案。 如此,對於記憶卡所保護的權案無法被修改或刪除。 7 1380310 當然,對於記憶卡中未保護的檔案可自由地作讀取、寫入、 搜尋、更名、删除等動作。 在實際應用上,上述之檔案配置表中的第一扇區,即 檔案分配表(FAT; FiIe A1Iocation Table)的大小為512位元 組。上述之檀案描述塊(FDC; File Descripti〇n)的每一第 二扇區的大小為512位元組。 -般而言’在執行速度上,「忽略命令」比「資料恢復」 快速。有鑑於此’在步驟u",將播案填滿檔案配置表 的弟-扇區。接著’在步驟13",對此第一扇區而言, 可忽略對擋案更新的命令。 一爸然而’在步驟U〇巾,若將檔案填滿檔案配置表的第 一扇區’意味著在樓案描述塊中的多個第二扇區之中 1特定的第二扇區不被檀案填滿。換言之,此特定的第 :扇:除了有被填入的槽案之外’還可能儲存了其他資 料。因此,在步驟16〇 φ rp .、 中,必須採用資料恢復(data 作^⑽的技術,對於特定的第二扇區中所預載的樓案 第:卜之110中,在被上述之樓案所填入的多個 外,其餘的第二扇區皆被財填I—扇區不被檔案填滿之 對此此,在步驟140令, °可心略對檔案更新的命令。 的方:=例,藉由操作方法100中特殊預載標案 1 標案更新時,只需要對-個特定的第 一扇Q作資料恢復的動作。 弟 -扇區與第二扇區,可直接勿广、他被此檔案所填滿的第 接Μ略對檔案更新的命令。如此, 1380310 不但可防止記憶卡中的檔案遭到修改或刪除,而且加速了 執行的速度。 為了使步驟160之敘述更加詳盡與完備,以下將搭配 第2圖說明如何具體實施「資料恢復」的方式。 β參照第2圖,第2圖是第1圖的步驟16〇的流程圖。 如圖所示,一種步驟16〇,包含下列子步驟(應瞭解到在 本實施例中所提及的子步驟,除特別敘明其順序者外,均 可依貫際需要調整其前後順序,甚至可同時或部分同時執 行): (a) 子步驟161 :燒錄檔案於記憶卡的韌體或儲存於 快閃記憶體中。 (b) 子步驟162:根據韌體之檔案,恢復特定的第二 扇區中所預載的擋案。 如此’可輕易地恢復檔案。 雖然本發明已以實施例揭露如上,然其並非用以限定 本發明,任何熟習此技藝者,在不脫離本發明之精神和範 圍内‘可作各種之更動與潤飾,因此本發明之保護範圍 當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵 '優點與實施例 能更明顯易懂’所附圖式之詳細說明如下·· 第1圖疋依照本發明一實施例的一種適用於記憶卡的 操作方法的流程圖。 9 1380310 第2圖是第1圖的步驟160的流程圖。 【主要元件符號說明】 100:操作方法 步驟:110-162
10
Claims (1)
- 十、申請專利範圍: I -種操作方法,適用於—記憶卡,包含·· 預载檔案於該記憶卡的—槽案配置表的—第一扇區 7案描述塊的複數個第二扇區,其中該第—扇區被 二麽:、滿且該些第二扇區被該檔案填入,纟中該些第 」:中僅有特定的第二扇區未被該檔案填滿其餘的 弟一扇區皆被該檔案填滿; 新; p 7 ’其巾該命令係對此記憶卡巾該標案作更 對該第一扇區忽略該命令; =被該檔案所填滿的該第二扇區忽略該命令; =命令更新該特定的第二扇區;以及 復該特疋的第二扇區中所預載的該槽案。 檀荦作更新、1所述之㈣方法,其中對此記憶卡中該 作更新,包含對該檔案作寫入或刪除。 小為35丨項。1所述之操作方m該第-扇區的大 個該些第 作〜,每- 含:.”求〜所述之操作方法,其中預_擋案,包 體 繞錄該檔案於該記憶卡的—知二扇區中所預細法其中恢復該特定的第 根據該韌 載的該擋案 體之該稽案,恢復該特定的第二 扇區中所預 12
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW097135679A TWI380310B (en) | 2008-09-17 | 2008-09-17 | Operating method of memory card |
| US12/345,680 US20100070685A1 (en) | 2008-09-17 | 2008-12-30 | Method for operating memory card |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW097135679A TWI380310B (en) | 2008-09-17 | 2008-09-17 | Operating method of memory card |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201013681A TW201013681A (en) | 2010-04-01 |
| TWI380310B true TWI380310B (en) | 2012-12-21 |
Family
ID=42008233
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW097135679A TWI380310B (en) | 2008-09-17 | 2008-09-17 | Operating method of memory card |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US20100070685A1 (zh) |
| TW (1) | TWI380310B (zh) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB9903490D0 (en) * | 1999-02-17 | 1999-04-07 | Memory Corp Plc | Memory system |
| CN100375046C (zh) * | 2002-10-17 | 2008-03-12 | 松下电器产业株式会社 | 文件更新设备及方法 |
| JP2005108304A (ja) * | 2003-09-29 | 2005-04-21 | Toshiba Corp | 半導体記憶装置及びその制御方法 |
| WO2005124530A2 (en) * | 2004-06-21 | 2005-12-29 | Kabushiki Kaisha Toshiba | Method for controlling memory card and method for controlling nonvolatile semiconductor memory |
-
2008
- 2008-09-17 TW TW097135679A patent/TWI380310B/zh not_active IP Right Cessation
- 2008-12-30 US US12/345,680 patent/US20100070685A1/en not_active Abandoned
Also Published As
| Publication number | Publication date |
|---|---|
| TW201013681A (en) | 2010-04-01 |
| US20100070685A1 (en) | 2010-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10120573B2 (en) | Modular sequential writing of data to data storage devices | |
| US8520459B2 (en) | Method for storing data into a memory | |
| KR101621788B1 (ko) | Ssd에 데이터 기록 | |
| CN101663652A (zh) | 用于固态驱动器优化的删除时移除技术 | |
| US9514142B2 (en) | Memory device and method for content virtualization | |
| TW200935422A (en) | Flash memory data writing method and controller thereof | |
| WO2008022567A1 (fr) | Mécanisme de stockage à corps à mémoire flash présentant une fonction de restauration de données | |
| TW201025050A (en) | Device and method for filtering a file system | |
| US10838944B2 (en) | System and method for maintaining a multi-level data structure | |
| CN106407417A (zh) | 一种应用程序数据备份方法及移动终端 | |
| US20120239889A1 (en) | Method and apparatus for writing data in memory system | |
| CN102280134B (zh) | 一种用于提高移动存储设备中数据安全的方法 | |
| CN101354635A (zh) | 信息记录装置及其控制方法 | |
| TWI380310B (en) | Operating method of memory card | |
| CN106201595A (zh) | 一种应用程序的清理控制方法及装置 | |
| WO2017097047A1 (zh) | 一种移动终端的无痕使用方法和移动终端 | |
| TWI407327B (zh) | 資料處理方法、系統及儲存裝置控制器 | |
| US9804968B2 (en) | Storage system and data writing method | |
| TW200935221A (en) | System for securing an access to flash memory device and method for the same | |
| CN102591806A (zh) | 防止文件的删除的电子装置和方法 | |
| CN100394374C (zh) | 磁盘型式的可携式数据储存装置的动态设定方法 | |
| TW200900929A (en) | Data management systems, methods and computer program products using a phase-change random access memory for selective data maintenance | |
| CN116700866A (zh) | 窗口绘制方法、装置、电子设备 | |
| CN101685426A (zh) | 记忆卡的操作方法 | |
| TW202522227A (zh) | 半導體記憶裝置及其資料儲存方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |