588329 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明説明(1 ) 〔發明所屬的技術領域〕 本發明是有關資訊處理裝置及資訊處理方法,可以適 用於例如用於記錄視頻資料與聲頻資料的可動硬碟裝置上 。本發明每當僅記錄來自主機的特定資料量的輸出資料時 ,即在特定區域記錄已記錄資料的資料量的資訊,而且在 更新管理用資料時,將該資料的資訊重置,因此縱使記錄 時發生異常的情形,也可以有效保護記錄完畢的資料而確 實記錄A V資料等。 〔先前技術〕 先前,在做爲個人電腦的周邊設備使用的硬碟裝置中 ,可以利用記錄於硬碟的受理用資料管理以多個扇區( sectors )的群集(cluster )爲單位記錄於硬碟的資料,並 使該項管理由主機的個人電腦去執行。 亦即,如圖6所示,硬碟通常將資訊記錄面分割爲內 周側區域與外周側區域,而外周側區域被分派做爲系統登 錄區(system entry area ) 〇 另外,硬碟的資訊記錄面再被分隔爲多個同心圓狀的 區域(zone ),各區域的磁軌(track ),分別在圓周方向 以特定長度劃分而分隔成多個扇區(sectors)。硬碟3因 此被構成該每一磁軌的扇區數由內周側的區域依次加大, 可以使用隨著區域變化記錄頻率的區位記錄(zone bit recording )的方法很有效地利用資訊記錄面。 如此分區而扇區化的硬碟利用資訊記錄面的表面編號 (請先閱讀背面之注意事項再填寫本頁} 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) -4- 588329 A7 B7 五、發明説明(2 ) (請先閲讀背面之注意事項再填寫本頁) ,由資訊記錄面的外周側連續分派的磁軌編號,以及用於 指定各磁軌的扇區的扇區編號設定物理位址,另外藉由對 應於該物理位址而由資訊記錄面的外周側依次設定的邏輯 位址,檔案受理用戶資料(user data)。 在此,邏輯位址是以由多個邏輯扇區的集合所組成的 群集(cluster)爲卓位的群集編號表不。亦即,遞輯扇區 是與以資訊記錄面的先頭區域(此時爲最外周)設定爲〇 扇區的資料的記錄單位相對應的區域,例如,1的物理扇 區與1的邏輯扇區相對應,而可以利用(邏輯扇區編號= 每1磁軌的扇區數X (表面編號+表面數X磁軌編號)+扇 區編號- 1 )的關係式表示邏輯扇區編號。另外,在此所 謂表面編號,磁軌編號,扇區編號是以物理位址爲準。 經濟部智慧財產局員工消費合作社印製 在此,物理扇區在構造上可以換算成用戶資料而在1 個邏輯扇區記錄5 1 2位元的資料,而1個群集是由多個 邏輯扇區所構成。另外,1個群集(cluster )通常是由2 的羃乘個扇區所構成,在記錄用戶資料的資料區域中,是 以檔案區(file area)的先頭爲2的連續編號的群集編號來 指定。 資料區對如此設定的各群集分派以群集編號,而可以 依據該群集編號以群集單位存取。此外,本說明是以4位 的六格式(hexaformat)表示群集編號。 相對地,系統登錄區則再分割爲起動區(boot area ) ,FAT(檔案配置表)區,以及目錄區,在起動區記錄 有用於定義磁碟的構造的資料。相對地,在F A T區及目 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 588329 A7 ___B7_ 五、發明説明(3 ) (請先閱讀背面之注意事項再填寫本頁) 錄區則記錄有用於存取記錄於資料區的用戶資料所必須的 位址資訊。再者,在F A T區重複記錄與主F A T與副 F A T相同的資訊,藉此可以確保可靠性。 亦即,目錄區記錄著記錄在資料區的各檔案的檔案名 稱,以及各檔案的記錄開始位置的先頭群集的群集編號等 。相對地,F A T區記錄著連接各檔案的先頭群集的各群 集的群集編號等。藉此,硬碟3可將企望的檔案名稱的先 頭群集編號由目錄區檢測出來後,將該先頭群集編號後續 的群集編號依次由F A T區檢出,以檢測出構成一個檔案 的連續的群集住址。 如此一來,在圖6中,如在資料區的群集編號 1 2 3 4 h至12 4 0 h爲止的群集中記錄有檔案1時, 則表示檔案1的第1群集的群集編號1 2 3 4 h的代碼( code)即被記錄於目錄區中,另外由該群集編號 1 2 3 4 h連續的群集編號即依次被記錄於與F AT區相 對應的區域。另外,在該圖6中,E〇F (檔尾,end of file )是用於表示一個檔案的最終群集的識別資訊。 經濟部智慧財產局員工消費合作社印製 更詳細地說,目錄區是針對記錄於資料區的各檔案記 錄圖7所示的構造的檔案管理用資料。亦即,檔案管理用 資料的先頭8位元組分派有檔案名稱,後續的3位元組分 派有各檔案的擴充符。再後續的1位元組是分派給表示檔 案屬性的資料,後續1 0位元組是分派給保留用資料。另 外後續的2位元組是分派給記錄開始時刻的資料,後續2 位元組是分派給記錄日期時間的資料,後續2位元組是分 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -6 - 588329 A7 B7 五、發明説明(4 ) 派給先頭群集編號的群集編號。此外最後的4位元組分派 給檔案長度的資料。 相對地,F A T區(圖6 )被分派以群集位址以與資 料區的群集編號相對應,並記錄著各群集位址後續的群集 的群集編號。另外,如圖8所示,該等未分派給群集編號 代碼之中,特定代碼被分別分派給用於表示空白區域,缺 陷群集,檔尾(E 0 F )的識別資訊。 如此一來,硬碟藉由從目錄區檢測企望檔案的先頭群 集編號而依次追尋F A T區,即可以依次追尋記錄該企望 檔案的群集的群集編號,利用如此檢測出來的群集編號即 可以存取該檔案。同樣地也可以存取F A Τ'區以檢測出資 料區的空白區域。藉由上述,硬碟可以用特定的塊(block )單位管理資訊記錄面。 對此,在用於存取硬碟裝置的介面(interface)具有 A T A ( A T附件),SCSI (小型電腦介面)等,利 用該等介面的個人電腦在例如電源起動時,將記錄於硬碟 的管理用資料上載(up load )。 亦即,圖9爲表示上載該管理用資料的處理程序,在 硬碟裝置中,在例如電源的起動時,由步驟S P 1進行到 步驟S P 2,由主機發出讀出系統登錄區的命令,接著在 步驟S P 3回應該命令由硬碟讀出系統登錄區的資料並傳 輸到主機。藉此,先前的系統是在後續的步驟4中,在該 系統登錄區的資料被登錄於主機的記憶體以後進行到步驟 S P 5俾可以利用於一連串的寫入及讀出的命令的發行, 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) ' .---^------^^裝-- ·- (請先閲讀背面之注意事項再填寫本頁) 訂 經濟部智慧財產局員工消費合作社印製 588329 A7 _B7 五、發明説明(5 ) 再結束該處理程序。 (請先閲讀背面之注意事項再填寫本頁) 另外,在個人電腦中,以如此上載的管理用資料爲基 準設定參數並對硬碟裝置指示存取。亦即,例如要讀出企 望的檔案時,即以該檔案的先頭位址(目錄的F A T登錄 編號)及群集爲單位的傳輸長度設定於參數中以發行讀出 命令。另外,在寫入時也同樣地發出寫入的命令並依次送 出提供記錄的資料。 亦即,圖1 0爲表示以記錄於主機的記憶體的管理用 資料爲基準的寫入處理的流程圖。此時,在主機中是由步 驟S P 1 1進行到步驟S P 1 2以檢索記錄於主機記憶體 的管理用資料以檢測出設定表示空白區域的代號而成的群 集編號(空白群集位址)。 經濟部智慧財產局員工消費合作社印製 如此地檢測出空群集位址後,主機即在後續的步驟 s P 1 3藉由該空群集位址及傳輸長度設定參數(以 L B A (邏輯塊位址)所表示的寫入位址)並發行寫入命 令後,在下一個步驟S P 1 4僅將用於記錄的資料的傳輸 長度分量傳輸到硬碟裝置。在硬碟裝置中,於下一個步驟 S P 1 5回應於寫入命令,將接著傳輸的資料記錄於緩衝 區記憶體,並在後續的步驟S P 1 6,將記錄於該緩衝區 記憶體的資料依次記錄於主機所指定的空白群集中。 硬碟裝置如此地完成由主機傳輸的資料的記錄後,即 在步驟S P 1 7中斷主機。主機因該中斷而進行至步驟 S P 1 8並在此判斷是否提供記錄的資料已傳輸完畢,如 在此得到否定的結果,就回到步驟S P 1 2 °藉此,主機 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -8 - 588329 A7 B7 五、發明説明(6 ) (請先閱讀背面之注意事項再填寫本頁) 對於資料量大的檔案會發出重複寫入命令並送出資料,而 在硬碟裝置即回應該命令依次將資料記錄於由主機指定的 空白群集中。 對此,如完成提供記錄的資料的傳輸,即在步驟 S P 1 8得到肯定的結果,主機就進行到步驟s P 1 9並 更新記錄於主機記憶體(host memory )的系統登錄區的內 容俾使與該檔案的記錄相對應,並且對硬碟裝置指示系統 登錄區的更新俾使與上述更新相對應,再進行到步驟 S P 2 0而結束該處理程序。 利用上述的處理,先前的硬碟裝置利用主機的管理執 行寫入,讀出的處理。 〔發明擬解決之問題〕 經濟部智慧財產局員工消費合作社印製 即使此種硬碟裝置在近年來已被小型化及高儲存密度 化,且在聲頻資料與視頻資料(以下簡寫A V資料)的記 錄上也利用硬碟裝置,因此應可以製成可以攜帶且可以長 時間記錄的記錄裝置。亦即,應可以用硬碟裝置取代磁帶 錄影機(video tape recorder)以構成小型而可以攜帶的視 訊攝影機(video camera)等的各種A V機器。 可是,在如此構成適用於A V資料的記錄的各種A V 機器時,與做爲電腦的週邊設備時相比,在記錄中途異常 結束的情形應會格外增多。亦即記錄中應有電池無電以致 操作停止的情形,或由於錯誤操作在記錄中電源下降的情 形。另外,也有錯將記錄裝置取出的情形,甚至於因震動 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -9- 588329 Μ ___Β7 五、發明説明(7 ) ,掉落而引起的異常。 (請先閱讀背面之注意事項再填寫本頁) 先前的硬碟裝置的介面有如上述,在結束對硬碟的資 料記錄後,會更新系統登錄區,再依照如此更新的系統登 錄區的記錄再生資料區,如果發生異常時,有到發生異常 的時間點之前正確記錄於硬碟的資料無法再生的問題。 解決這種問題的方法之一是在記錄時,每寫入資料時 ,如果更新目錄區及FAT區時,即利用該等目錄區及 F A T區的記錄應可以保護發生異常爲止之前所記錄的資 料。 亦即,在此種介面中,由於最大傳輸長度爲例如 2 5 6扇區(ΑΤΑ規格時),因此要存取尺寸大的檔案 時,在個人電腦中會依次更新參數並重複發行讀出的命令 〇 在硬碟裝置中,回應該命令由被指示的先頭群集僅再 生傳輸長度部分的資料輸出到個人電腦,在讀出大檔案時 ,因爲回應來自個人電腦的讀出命令而重複相同的處理, 所以由硬碟再生一連串資料而輸出到個人電腦。 經濟部智慧財產局員工消費合作社印製 又與讀出時一樣,寫入尺寸大的檔案時,在個人電腦 中依次更新參數並重複發出讀出命令,回應該命令,硬碟 裝置連動於來自個人電腦的寫入命令重複相同的處理,由 個人電腦輸入一連串的資料而記錄於硬碟中。 亦即,圖1 1爲表示每當收到來自主機的各命令而登 錄檔案時的處理程序的流程圖。此時,在主機方面即由步 驟s Ρ 2 1進行至s Ρ 2 2,以檢索記錄於主機記憶體的 本紙張尺度適用中國國家標準(CNS ) Α4規格(210Χ297公釐) -10- 588329 A7 B7 五、發明説明(8 ) 管理用資料並檢測出設定有用於表示空白區域的代碼所構 成的群集編號(空群集位址)。 (請先閱讀背面之注意事項再填寫本頁) 如此地檢測出空白群集位址後,主機即在後續的步驟 S P 2 3,利用該空白群集位址與傳輸長度設定參數並發 出寫入命令後,在後續的步驟S P 2 4僅將提供記錄的資 料的傳輸長度的部分傳輸到硬碟裝置。硬碟裝置在後續的 步驟S P 2 5回應於寫入命令而將要繼續傳輸的資料記錄 於緩衝器記憶體中,並在後續的步驟S P 2 6將記錄於該 緩衝記憶體的資料依次記錄於由主機指定的空白群集中。 硬碟裝置在結束由主機傳送的資料的記錄後,即在步 驟S P 2 7更新主F A T的記錄俾與該資料的記錄相對應 ,然後在後續的步驟S P 2 8中同樣地更新副F A T的記 錄。另外,硬碟裝置在該等主FAT,副FAT,目錄區 的記錄中,由於剛才的處理的結束而中斷主機的操作,並 藉由該項中斷,利用由主機發出的命令執行各寫入處理。 經濟部智慧財產局員工消費合作社印製 如此更新系統登錄區後,硬碟即在步驟S P 3 0中斷 主機。在主機中,藉由該項中斷而進行到步驟S P 3 1, 並在此判斷是否全部結束提供記錄的資料的傳輸,如果在 此得到否定旳結果,即回到步驟S P 2 2,相對地如在步 驟S P 3 1得到肯定的結果,則進行到步驟s p 3 2而結 束該處理程序。藉此,主機對於資料量大的檔案會重複發 出寫入命令並傳送資料,而在硬碟裝置方面則回應於該命 令依次將資料記錄於由主機指定的空白群集中,同時相應 地依次更新管理用資料。 本^尺度適用中國國家標準(〇奶)八4規格(210乂297公釐) " ' — -11 - 588329 A7 B7 五、發明説明(9 ) 可是在該方法中,必須在存取主F A T,副F A T及 目錄區時執行3次的尋找(seek ),由於該尋找所需的尋找 時間以及潛伏時間(latency time ),對於每一命令要執行 的檔案登錄需要時間。因此,利用該方法時,檔案登錄所 需的時間比實際的A V資料的寫入時間長,要不中斷地記 錄連續性的A V資料成爲一個難題。順便一提,在硬體裝 置中,記錄速度是依磁道記錄密度,磁碟旋轉速度以及磁 碟直徑而定,所以像近年來,硬碟的直徑變小時,此種問 題將更爲顯著。 本發明是考慮到上述各點而完成的,所提出的資訊處 理裝置及資訊處理方法縱使在記錄時發生異常,也可以有 效保護記錄完畢的資料並確實記錄A V資料等。 〔解決問題的方法〕 爲解決此種課題,申g靑專利範圍第1項的發明是使用 於資訊處理裝置,每當要僅記錄輸出資料的特定資料量時 ,在特定區域記錄已記錄的輸出資料的資料量的資訊,並 以特定的時序更新管理用資料俾與依據輸出資料對一個檔 案的資料區的記錄相對應,同時重置資料量的資訊。 另外申請專利範圍第6項的發明是使用於資訊處理方 法中,每當要僅記錄輸出資料的特定資料量時,在特定區 域記錄已記錄的輸出資料的資料量的資訊,並以特定的時 序(timing)更新管理用資料俾與依據輸出資料對一個檔案 的資料區的記錄相對應,同時重置資料量的資訊。 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐)'-- -12- (請先閱讀背面之注意事項再填寫本頁) 、11 經濟部智慧財產局員工消費合作社印製 588329 A7 B7 五、發明説明(1〇 ) 依據申請專利範圍第1項的構造,藉由每當要僅記錄 輸出資料的特定資料量時,在特定區域記錄的輸出資料的 資料量的資訊,並以特定的時序更新管理用資料俾與依據 輸出資料對一個檔案的資料區相對應,同時重置資料量的 資訊,則在因爲各種異常以致更新在該特定時序的管理資 料變爲困難時,也可以根據資料量的資訊中有無重置( reset )來判斷是否有已記錄資料的存在。另外,也可以根 據管理用資料檢測出此種已記錄資料的記錄起始位置,再 者,也可以根據資料量的資訊,由該記錄起始位置檢測出 已記錄資料的末尾。如此一來,將由如此被檢測的記錄起 始位置到已記錄資料的末尾做爲一個檔案處理時,如果記 錄時發生異常的情形,也可以有效保護已記錄資料以確實 記錄A V資料等。 因此,依據申請專利範圍第6項的構造,可以提供一 種資訊處理方法縱使在記錄時發生異常,也可以有效保護 已記錄的資料並確實記錄A V資料等。 〔發明的實施形態〕 以下一邊參照適當圖式一邊詳述本發明的實施形態。 (1)實施形態的組態 圖2爲表示本發明的實施形態的硬碟裝置的方塊圖。 該硬碟裝置1是裝設於攝影裝置,機頂盒(set-top box)等 的A V機器2,個人電腦(P C )等以記錄由該等機器所 輸出的各種資料。另外,在裝設於該等機器的狀態下,或 本紙張尺度適用中國國家標準(CNs ) A4規格(210X297公釐) U----------•裝-- (請先閱讀背面之注意事項再填寫本頁) 訂 經濟部智慧財產局員工消費合作社印製 -13- 588329 A7 B7 五、發明説明(11 ) 由該等裝置卸下而裝設於其他A V機器,個人電腦等的狀 態下再生已記錄的資料並加以輸出。 因此,該硬碟裝置1是裝卸自如地保持於A V機器等 ,並在該等AV機器2之間輸出入以特定格式壓縮AV資 料而成的資料與正文資料等,或在該等機器之間輸出入伴 隨該等資料的輸出入的控制命令,狀態資料(status data ) ,位址等。此外,還將該等資料記錄於硬碟3,又將記錄 於該硬碟3的資料再生並加以輸出。 在此硬碟3是利用圖6至圖8所述的格式記錄由A V 機器2所輸出的A V資料,並將已記錄的A V資料再生而 輸出到A V機器2。 伺服器電路4是由硬碟控制電路5的控制以驅動馬達 (Μ ) 6,藉此,藉由特定的旋轉速度旋轉驅動硬碟3。 另外,伺服器電路4同樣地藉由驅動馬達(Μ ) 8以尋找 磁頭並進行追踪控制。 讀寫資料通道部(read/write data channel) 9利用硬 碟控制電路5的控制,在記錄時,以適合於記錄再生系統 的特性的方式編碼處理硬碟控制電路5的資料以產生位址 系列的資料,並利用該資料驅動磁頭。此外,在再生時, 讀寫資料通道部9將由磁碟所獲得的再生信號進行信號處 理以產生再生資料,並將該再生資料輸出至硬碟控制電路 5 〇 硬碟控制電路5是依據介面控制1 1的指示來管理硬 碟3上的資料的控制電路,除了按照透過緩衝區記憶體 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) U---*--^--.--衣-- (請先閱讀背面之注意事項再填寫本頁) 訂 經濟部智慧財產局員工消費合作社印製 -14- 588329 A7 _______ B7 ___ 五、發明説明(12 ) 1 0所輸入的A V資料控制伺服器電路4的操作之外,還 將該A V資料輸出讀寫資料通道部9,藉將該等A V資料 記錄於由介面控制電路1 1所指示的群集中。又在再生時 ,同樣地控制伺服器電路4的操作以將讀寫資料通道部9 的輸出資料輸出緩衝器記憶體1 0,藉此再生由介面控制 電路1 1所指示的群集。 介面控制電路(I F控制)1 1是由例如S C S I控 制器,I D E控制器,A T A控制器等所形成,以構成在 A V機器2之間收發的資料,控制命令等的輸出入電路。 亦即,介面控制電路1 1是用於解析由A V機器2所輸入 的命令(c 〇 m m a n d )以及設定於該命令的參數,並控制硬碟 控制電路5等的操作。又在寫入時,透過緩衝區記憶體 1 0將由A V機器2所輸入的A V資料輸出硬碟控制電路 5,而在再生時,透過緩衝區記憶體1 0將由硬碟控制電 路5所輸出的A V資料輸出至A V機器。 相應地,A V機器2藉由在記憶體2 B確保有工作區 的中央處理機(C P U ) 2 A的處理,依據來自高位的控 制器的指示,將各種命令傳送硬碟裝置1。 在該處理中,中央處理機2A在電源起動時藉由特定 的處理程序的執行,將記載於硬碟3的系統登錄區的管理 資料的起動區(boot area ),FAT區,目錄區的資料上 載記憶體2 B,並利用以該被上載的資料爲基準設定參數 以傳輸各種命令。圖1爲表示以記錄於記憶體2 B的管理 用資料爲基準的寫入處理的流程圖。此時,在A V機器2 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 卜------ 衣-- (請先閲讀背面之注意事項再填寫本頁)588329 A7 B7 Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 5. Description of the invention (1) [Technical field to which the invention belongs] The present invention relates to information processing devices and information processing methods, and can be applied to, for example, recording video data and audio Data on a removable hard drive device. In the present invention, whenever only output data of a specific data amount from a host is recorded, the information of the data amount of the recorded data is recorded in a specific area, and the information of the data is reset when the management data is updated. When an abnormality occurs, the recorded data can be effectively protected and the AV data can be reliably recorded. [Prior Art] Previously, in a hard disk device used as a peripheral device of a personal computer, it was possible to manage the data recorded on the hard disk in units of clusters (sectors) of a plurality of sectors using the data for reception recorded on the hard disk. Disk data, and let this management be performed by the host's personal computer. That is, as shown in FIG. 6, the hard disk usually divides the information recording surface into an inner peripheral side area and an outer peripheral side area, and the outer peripheral side area is assigned as a system entry area. In addition, the hard disk information The recording surface is further divided into a plurality of concentric zones (zones), and the tracks of each zone are divided into a plurality of sectors in the circumferential direction by a specific length. Therefore, the number of sectors constituting each magnetic track 3 is sequentially increased from the area on the inner periphery side. The zone recording can be effectively used by using the zone bit recording method in which the recording frequency changes with the area. . The surface number of the information recording side of the hard disk that is partitioned and sectorized in this way (please read the precautions on the back before filling out this page) This paper size applies the Chinese National Standard (CNS) A4 specification (210X 297 mm) -4- 588329 A7 B7 V. Description of the invention (2) (Please read the precautions on the back before filling out this page), the track numbers assigned continuously from the outer peripheral side of the information recording surface, and the sectors used to specify the sectors of each track The area number sets a physical address, and in addition to the logical address that is sequentially set from the outer peripheral side of the information recording surface corresponding to the physical address, the file receives user data. Here, the logical address A cluster made up of a set of logical sectors is a cluster number that is outstanding. That is, the edit sector is set to 0 sector with the leading area of the information recording surface (in this case, the outermost periphery). The area corresponding to the recording unit of the data, for example, 1 physical sector corresponds to 1 logical sector, and can be used (logical sector number = number of sectors per 1 track X (surface number + surface number X track number) + fan The relational expression of the district number-1) indicates the logical sector number. In addition, the so-called surface number, track number, and sector number are based on the physical address. This is printed here by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs, The physical sector can be converted into user data in structure, and 5 1 2-bit data is recorded in one logical sector, and a cluster is composed of multiple logical sectors. In addition, a cluster is usually It is composed of 2 multiplied by 2 sectors. In the data area where user data is recorded, it is designated by a serial number of the file area with a leading number of 2. The data area refers to each cluster thus set. The cluster number is assigned and can be accessed in cluster units based on the cluster number. In addition, this description represents the cluster number in a 4-digit hexaformat. In contrast, the system login area is divided into a boot area. ), FAT (File Allocation Table) area, and directory area, the data used to define the structure of the disk is recorded in the startup area. In contrast, in the FAT area and the standard paper size, Chinese national standards apply. (CNS) A4 specification (210X297 mm) 588329 A7 ___B7_ V. Description of the invention (3) (Please read the notes on the back before filling this page) The recording area records the user data necessary for accessing the user data recorded in the data area In addition, the same information as that of the main FAT and the sub FAT is repeatedly recorded in the FAT area, thereby ensuring reliability. That is, the directory area records the file names of each file recorded in the data area, and each file The cluster number and the like of the first cluster at the beginning of the recording of the archive. In contrast, the FAT area records the cluster number and the like of each cluster that connects the first cluster of each archive. In this way, the hard disk 3 can detect the first cluster number of the desired file name from the directory area, and then detect the first cluster number and the subsequent cluster number from the FAT area in order to detect the continuous cluster address of a file. . In this way, in FIG. 6, if the file 1 is recorded in the clusters with the cluster numbers 1 2 3 4 h to 12 4 0 h in the data area, the cluster number 1 2 of the first cluster of the file 1 is displayed. The 4 h code (code) is recorded in the directory area. In addition, the continuous cluster number 1 2 3 4 h is sequentially recorded in the area corresponding to the F AT area. In addition, in this FIG. 6, EOF (end of file) is identification information for indicating the final cluster of one file. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs. In more detail, the directory area is for each file recorded in the data area. That is, the file name is assigned to the first 8 bits of the data for file management, and the extension of each file is assigned to the following 3 bits. The next 1 byte is assigned to the data representing the file attributes, and the next 10 bytes are assigned to the reserved data. In addition, the subsequent 2 bytes are the data assigned to the recording start time, the subsequent 2 bytes are the data assigned to the recording date and time, and the subsequent 2 bytes are the paper size applicable to the Chinese National Standard (CNS) A4 specification ( 210X297 mm) -6-588329 A7 B7 V. Description of the invention (4) The cluster number assigned to the first cluster number. In addition, the last four digits are assigned to file-length data. In contrast, the F A T area (Figure 6) is assigned a cluster address to correspond to the cluster number of the data area, and records the cluster number of the subsequent clusters at each cluster address. In addition, as shown in FIG. 8, among the unassigned cluster number codes, specific codes are respectively assigned to identification information for indicating a blank area, a defective cluster, and a tail (E 0 F). In this way, the hard disk can sequentially search the FAT area by detecting the first cluster number of the desired file from the directory area, that is, the cluster number of the cluster that records the desired file can be sequentially searched. The cluster number thus detected can access the file. It is also possible to access the FA T ′ area to detect a blank area in the data area. With the above, the hard disk can manage the information recording surface in a specific block unit. In this regard, the interface for accessing the hard disk device has ATA (AT accessory), SCSI (Small Computer Interface), etc., and a personal computer using these interfaces will record the Management data upload (up load). That is, FIG. 9 shows a processing procedure for uploading the management data. In the hard disk device, for example, when the power is turned on, the process proceeds from step SP 1 to step SP 2 and the host issues a command to read out the system registration area. Then in step SP3, the response command instructs the hard disk to read the data in the system registration area and transfer it to the host. In this way, in the previous system, in the subsequent step 4, after the data in the system registration area is registered in the memory of the host, it proceeds to step SP5. It can be used to issue a series of write and read commands. This paper size applies to China National Standard (CNS) A4 specification (210X 297 mm) '.--- ^ ------ ^^ Packing-·-(Please read the precautions on the back before filling this page) Order printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 588329 A7 _B7 V. Description of Invention (5) Then end the processing procedure. (Please read the precautions on the back before filling out this page.) In addition, in the personal computer, set the parameters based on the management data uploaded in this way and instruct the hard disk device to access it. That is, for example, when a desired file is to be read out, the first address of the file (the FAT registration number of the directory) and the transmission length of the cluster are set in the parameters to issue a readout command. In addition, when writing, the writing command is issued in the same manner, and the data providing the records are sequentially sent. That is, Fig. 10 is a flowchart showing a writing process based on the management data recorded in the memory of the host. At this time, the host proceeds from step SP1 1 to step SP12 to retrieve the management data recorded in the memory of the host to detect a cluster number (blank cluster address) in which a code indicating a blank area is set. After the consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs has printed the empty cluster address in this way, the host will set the parameters (using LBA (logical block address) by the empty cluster address and transmission length in the subsequent steps s P 1 3 ) And the write command is issued, in the next step SP 1 4 only the transmission length component of the data for recording is transmitted to the hard disk device. In the hard disk device, in response to the write command in the next step SP 1 5, the data to be transmitted is recorded in the buffer memory, and in the subsequent step SP 1 6, the data recorded in the buffer memory is recorded. Record in turn to the blank clusters designated by the host. After the hard disk device finishes recording the data transmitted by the host in this way, it interrupts the host at step SP17. Due to the interruption, the host proceeds to step SP 1 8 and judges whether the recorded data has been transmitted. If a negative result is obtained here, it returns to step SP 1 2 °. The paper size of the host is applicable to the Chinese country. Standard (CNS) A4 specification (210X297 mm) -8-588329 A7 B7 V. Description of invention (6) (Please read the precautions on the back before filling this page) For files with a large amount of data, a rewrite command will be issued and Submit the data, and the hard disk device responds to the command to record the data in the blank cluster designated by the host in turn. In this regard, if the transmission of the provided data is completed, that is, if a positive result is obtained in step SP 1 8, the host proceeds to step s P 1 9 and updates the content of the system registration area recorded in the host memory. Correspond to the record of the file, and update the registration area of the hard disk device instruction system so as to correspond to the above-mentioned update, then proceed to step SP20 to end the processing routine. With the above-mentioned processing, the conventional hard disk device executes the writing and reading processing by the management of the host. [Problems to be Solved by the Invention] Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs, even if this type of hard disk device has been miniaturized and high storage density in recent years, and it is included in audio data and video data (hereinafter abbreviated AV data) Recording also uses a hard disk device, so it should be possible to make a recording device that can be carried and can record for a long time. That is, it should be possible to replace a video tape recorder with a hard disk device to form various AV devices such as a small and portable video camera. However, in the case of various AV devices that are suitable for the recording of AV data in this way, the number of abnormal terminations in the middle of recording should be increased more than when the peripheral device is a computer. That is to say, there should be no battery in the record to stop the operation, or the power may drop during the record due to incorrect operation. In addition, there are cases where the recording device is taken out by mistake, and even due to the vibration of this paper, the Chinese national standard (CNS) A4 specification (210X297 mm) is applied. -9- 588329 Μ ___B7 5. Invention description (7), caused by falling The exception. (Please read the precautions on the back before filling this page) The interface of the previous hard disk device is as described above. After the data recording on the hard disk is finished, the system registration area will be updated, and then the system registration area will be updated according to the updated records. In the data area, if an abnormality occurs, there is a problem that the data recorded on the hard disk cannot be reproduced correctly before the time when the abnormality occurred. One way to solve this problem is to keep the data recorded before the abnormality occurs when the directory area and FAT area is updated during the recording. . That is, in this interface, since the maximum transmission length is, for example, 2 5 6 sectors (at the time of the ATAA specification), when accessing a large-sized file, the parameters will be sequentially updated in the personal computer and the readout will be repeatedly issued. Command 〇 In the hard disk device, respond to the command to instruct the leading cluster to reproduce only the data of the transmission length and output it to the personal computer. When reading a large file, the same process is repeated in response to the read command from the personal computer. Therefore, a series of data is reproduced from the hard disk and output to the personal computer. The consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs prints the same as when reading. When writing a large file, the parameters are sequentially updated in the personal computer and the read command is repeatedly issued. In response to the command, the hard disk device is linked to the The computer's write command repeats the same process, and a series of data is input by the personal computer and recorded on the hard disk. That is, Fig. 11 is a flowchart showing a processing procedure when a file is registered each time a command from the host is received. At this time, on the host side, step s P 2 1 to s P 2 2 are used to retrieve the paper size recorded in the memory of the host. The Chinese National Standard (CNS) A4 specification (210 × 297 mm) -10- 588329 A7 B7 V. Description of the invention (8) The management data is detected and a cluster number (empty cluster address) formed by setting a code for indicating a blank area is detected. (Please read the precautions on the back before filling this page) After the blank cluster address is detected in this way, the host will use the blank cluster address and transmission length to set parameters and issue a write command in the subsequent step SP 2 3. In a subsequent step SP 24, only a portion of the transmission length providing the recorded data is transmitted to the hard disk device. The hard disk device records the data to be continuously transmitted in the buffer memory in response to the write command in the subsequent step SP 2 5 and sequentially records the data recorded in the buffer memory in the subsequent step SP 2 6 Host specified in a blank cluster. After the hard disk device finishes recording the data transmitted by the host, it updates the record of the primary FAT at step SP 2 7 corresponding to the record of the data, and then updates the record of the secondary FAT in the same step SP 2 8 . In addition, the hard disk device interrupts the operation of the host due to the end of the previous processing in the recording of the primary FAT, the secondary FAT, and the directory area, and uses the interrupt to execute each write process by using the command issued by the host . Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs After updating the system registration area in this way, the hard disk will interrupt the host at step SP30. In the host, proceed to step SP 3 1 with this interruption, and judge here whether all the transmission of the provided recorded data is ended. If a negative result is obtained here, it returns to step SP 2 2 and is relatively like If an affirmative result is obtained in step SP 3 1, the process proceeds to step sp 3 2 to end the processing routine. In this way, the host repeatedly issues write commands for data-intensive files and transmits data, while the hard disk device responds to the command in order to record the data in the blank cluster designated by the host in turn, and updates the management accordingly. Use information. This standard applies the Chinese National Standard (〇 奶) 8.4 specifications (210 乂 297 mm) " '— -11-588329 A7 B7 V. Description of the invention (9) However, in this method, the main FAT must be accessed 3 seeks are performed when the sub-FAT and the directory area are executed. Due to the seek time and latency time required for the seek, it takes time for the file registration to be executed for each command. Therefore, when using this method, the time required for file registration is longer than the actual writing time of the AV data, and it becomes difficult to continuously record AV data without interruption. By the way, in a hardware device, the recording speed depends on the track recording density, the disk rotation speed, and the disk diameter. Therefore, as in recent years, the diameter of the hard disk becomes smaller, and this problem becomes more significant. The present invention is completed in consideration of the above points. The proposed information processing device and information processing method can effectively protect the recorded data and reliably record AV data even if an abnormality occurs during recording. [Method for solving the problem] In order to solve such a problem, the invention of claim 1 in the patent scope is used in an information processing device. Whenever only a specific amount of output data is to be recorded, the recorded output is recorded in a specific area. The information of the data amount of the data, and the management data is updated at a specific timing, corresponding to the record of the data area of a file according to the output data, and the information of the data amount is reset at the same time. In addition, the invention in the 6th aspect of the patent application is used in the information processing method. Whenever only a specific amount of output data is to be recorded, the information of the amount of recorded output data is recorded in a specific area, and at a specific timing. (Timing) Update management data corresponds to the record of the data area of a file based on the output data, and resets the information on the amount of data. This paper size applies to China National Standard (CNS) A4 specification (210X297 mm) '--12- (Please read the precautions on the back before filling this page), 11 Printed by the Intellectual Property Bureau Staff Consumer Cooperative of the Ministry of Economic Affairs 588329 A7 B7 V. Description of the invention (10) According to the structure of item 1 of the scope of the patent application, whenever only a specific amount of output data is to be recorded, the information of the amount of output data recorded in a specific area is specified, and The time-series update management data corresponds to the data area of a file based on the output data, and the information of the data amount is reset at the same time. When it is difficult to update the management data at that specific time-series due to various abnormalities, it can also be based on There is a reset (reset) in the data amount information to determine whether the recorded data exists. In addition, the recording start position of such recorded data may be detected based on the management data, and the end of the recorded data may be detected from the recording start position based on the information of the amount of data. In this way, when the recorded position thus detected to the end of the recorded data is treated as a file, if an abnormal situation occurs during recording, the recorded data can also be effectively protected to reliably record AV data, etc. Therefore, according to the structure of item 6 of the scope of patent application, it is possible to provide an information processing method that can effectively protect recorded data and reliably record AV data even if an abnormality occurs during recording. [Embodiments of the Invention] Embodiments of the present invention will be described in detail below with reference to appropriate drawings. (1) Configuration of the embodiment Fig. 2 is a block diagram showing a hard disk device according to an embodiment of the present invention. The hard disk device 1 is an AV device 2 installed in a photographing device, a set-top box, or the like, or a personal computer (PC) to record various data output by these devices. In addition, when installed on such machines, or the paper size applies Chinese National Standards (CNs) A4 specifications (210X297 mm) U ---------- • Installation-- (Please read first Note on the back, please fill in this page again.) Order printed by the Intellectual Property Bureau of the Ministry of Economic Affairs's Consumer Cooperatives-13- 588329 A7 B7 V. Description of the invention (11) Uninstall these devices and install them on other AV machines, personal computers, etc. The recorded data is reproduced and output in the state of. Therefore, the hard disk device 1 is detachably held on an AV device, etc., and the data obtained by compressing the AV data in a specific format and the main body data are input or output between the AV devices 2 or between the devices. I / O control commands, status data, addresses, etc. accompanying the input and output of such data. In addition, the data is recorded on the hard disk 3, and the data recorded on the hard disk 3 is reproduced and output. Here, the hard disk 3 records the AV data output by the AV device 2 in the format described in FIGS. 6 to 8, and reproduces the recorded AV data to output to the AV device 2. The servo circuit 4 is controlled by the hard disk control circuit 5 to drive the motor (M) 6, whereby the hard disk 3 is rotationally driven at a specific rotation speed. In addition, the servo circuit 4 similarly seeks a magnetic head by the drive motor (M) 8 and performs tracking control. The read / write data channel section 9 uses the control of the hard disk control circuit 5 to encode and process the data of the hard disk control circuit 5 in a manner suitable for the characteristics of the recording and reproduction system during recording to generate an address series. And use the data to drive the head. In addition, at the time of reproduction, the read / write data channel section 9 performs signal processing on the reproduction signal obtained from the magnetic disk to generate reproduction data, and outputs the reproduction data to the hard disk control circuit 5. The hard disk control circuit 5 is controlled based on the interface. The control circuit that manages the data on hard disk 3 according to the instructions of 1 1 except for the paper size of the paper through the buffer memory. The Chinese National Standard (CNS) A4 specification (210X 297 mm) applies. U --- *-^- -.-- 衣-(Please read the notes on the back before filling out this page) Order printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economy -14- 588329 A7 _______ B7 ___ V. Description of the invention (12) 1 0 Entered In addition to the operation of the AV data control server circuit 4, the AV data is output to the read-write data channel section 9, and the AV data is recorded in a cluster instructed by the interface control circuit 11 by this. During reproduction, the operation of the server circuit 4 is similarly controlled to output the output data of the read / write data channel section 9 to the buffer memory 10, thereby reproducing the cluster indicated by the interface control circuit 11. The interface control circuit (IF control) 11 is formed by, for example, an S C S I controller, an ID controller, an AT controller, etc., to constitute an input / output circuit of data transmitted and received between the AV devices 2 and control commands. That is, the interface control circuit 11 analyzes a command (comm m a n d) input by the AV device 2 and parameters set in the command, and controls operations of the hard disk control circuit 5 and the like. During writing, the AV data input from the AV device 2 is output to the hard disk control circuit 5 through the buffer memory 10, and during reproduction, the buffer data 10 is output to the hard disk control circuit 5 through the buffer memory 10. AV data is output to AV equipment. Correspondingly, the AV machine 2 transmits various commands to the hard disk device 1 by processing from the central processing unit (CPU) 2A, which ensures a work area in the memory 2B, according to the instructions from the high-level controller. In this process, the central processing unit 2A executes a specific processing program when the power is turned on, and records the boot area, FAT area, and directory area data of the management data recorded in the system registration area of the hard disk 3. The memory 2 B is uploaded, and parameters are set based on the uploaded data to transmit various commands. FIG. 1 is a flowchart showing a writing process based on the management data recorded in the memory 2B. At this time, the paper size of the A V machine 2 applies the Chinese National Standard (CNS) A4 specification (210X297 mm). ------ Clothing-(Please read the precautions on the back before filling this page)
、1T 經濟部智慧財產局員工消費合作社印製 -15- 588329 A7 B7 五、發明説明(13 ) 的中央處理機2A即由步驟SP4 1進行至SP42,而 檢索記錄於記憶體2 B的管理用資料以檢測設定有表示空 白區域的代碼(code )的群集號碼(空白群集位址)。 (請先閲讀背面之注意事項再填寫本頁) 如此檢測出空白群集位址時,主機即在後續步驟 S P 4 3依據該空白群集位置與傳輸長度設定參數並發行 寫入命令後,在後續的步驟S P 4 4將提供記錄的資料僅 只傳輸長度的部份傳送到硬碟裝置。在硬碟裝置於後續的 步驟S P 4 5回應寫入的命令將連續傳送的資料記錄於該 緩衝區記憶體1 0,並於後續的步驟S P 4 6將記錄於該 緩衝區記憶體1 0的資料依次記錄於由A V機器2所指定 的空白群集中。 經濟部智慧財產局員工消費合作社印製 硬碟裝置如此地結束由A V機器2傳送的資料的記錄 後,即在步驟S P 4 7針對如此記錄的檔案,將記錄完畢 的A V資料的記錄處理資訊記錄於特定區域中。在此本實 施形態中,記錄區域與圖6比對,即如圖3所示,爲系統 登錄區域中的事先設定的區域。相對地,記錄處理資訊被 分派有記錄完成的資料量的資訊,是以硬碟3的記錄單位 的群集爲單位來表示該資料量(群集數)。 如此地將記錄處理資訊記錄後,硬碟裝置即進行到步 驟SP48而中斷AV機器2的操作。AV機器2該項中 斷而進行到步驟S P 4 9,並在此判斷是否提供記錄的資 料的傳送全部完成,如果在此得到否定的結果,即退回到 步驟S P 4 2。藉此,A V機器2即針對資料量大的檔案 重複發行寫入命令以傳送資料,而針對硬碟裝置,則回應 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) -16- 588329 A7 B7 五、發明説明(14 ) 該命令一邊更新記錄處理資訊,一邊在由A V機器2所指 定的空白群集依次記錄資料。 (請先閱讀背面之注意事項再填寫本頁) 對此,提供記錄的資料的傳送全部完畢時,由於步驟 S P 4 9得到肯定的結果,A V機器2即進行到步驟 S P 5 0更新記憶體2 B的記錄以與該檔案的記錄相對應 ,並對硬碟裝置1指示系統登錄區的更新。進而在後續的 步驟S 5 1指示記錄處理資訊的重置,而在硬碟裝置1中 ,依照該指示將記錄處理資訊的群集數的値更新爲値〇, 然後進行到步驟S P 5 2以結束處理程序。 藉由該等處理,在硬碟裝置中,對於由A V機器2連 續寫入的命令,一邊依次將記錄完畢的資料量的資訊記錄 於硬碟3的系統登錄區,一邊記錄由A V機器2所輸出的 A V資料,並根據A V機器2的指示更新F A T區域等, 同時可以重置(reset)記錄處理資訊,藉此,即使記錄途 中發生異常,必要時可以執行資料的修復處理,因此可以 有效保護由於異常結束而引起的記錄完畢的資料。 經濟部智慧財產局員工消費合作社印製 圖4爲表示硬碟裝置1的起動時的處理程序的流程圖 。在硬碟裝置1上,於該起動時的處理中,根據上述記錄 處理資訊必要時執行修復處理,藉此有效保護因爲異常結 束前記錄完畢的資料。 亦即,在硬碟裝置中,電源起動時,由步驟S P 6 1 進行到步驟S P 6 2並發出由AV機器2讀出系統登錄區 命令,在下一步驟S P 6 3回應該命令由硬碟讀出系統登 錄區的資料並傳送到A V機器2。藉此,A V機器2在下 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) 588329 A7 B7 五、發明説明(15 )Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs -15- 588329 A7 B7 5. The central processor 2A of the description of invention (13) proceeds from step SP4 1 to SP42, and the retrieval record is stored in the memory 2 B for management purposes The data is to detect a cluster number (blank cluster address) in which a code (code) indicating a blank area is set. (Please read the precautions on the back before filling this page) When a blank cluster address is detected in this way, the host will set the parameters based on the blank cluster position and transmission length and issue a write command in the next step SP 4 3, in the subsequent steps Step SP 4 4 transmits only the transfer length portion of the provided recording data to the hard disk device. In the subsequent step SP 4 5 on the hard disk device, the data transmitted continuously is recorded in the buffer memory 10, and in the subsequent step SP 4 6 it is recorded in the buffer memory 10 The data are sequentially recorded in a blank cluster designated by the AV device 2. After the hard disk device printed by the employee's consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs has thus ended the recording of the data transmitted by the AV machine 2, that is, in step SP4, the recorded processing information of the recorded AV data is recorded in step SP 4 7 In a specific area. In this embodiment, the recording area is compared with FIG. 6, that is, as shown in FIG. 3, it is an area set in advance in the system registration area. In contrast, the record processing information is assigned the information of the amount of data that has been recorded, and the data amount (the number of clusters) is expressed in clusters of the recording unit of the hard disk 3. After the recording process information is recorded in this way, the hard disk device proceeds to step SP48 to interrupt the operation of the AV machine 2. The AV machine 2 interrupts this item and proceeds to step SP 49, where it is judged whether the transfer of the provided records has been completed. If a negative result is obtained here, it returns to step SP 42. As a result, the AV machine 2 repeatedly issues write commands for files with large amounts of data to transmit data, and for hard disk devices, responds to this paper size in accordance with the Chinese National Standard (CNS) A4 specification (210X 297 mm) -16 -588329 A7 B7 V. Description of the Invention (14) This command records the data in the blank cluster designated by AV machine 2 while updating the record processing information. (Please read the precautions on the back before filling in this page.) In this regard, when the transfer of the provided recorded data is complete, a positive result is obtained at step SP 4 9 and the AV machine 2 proceeds to step SP 5 0 to update the memory 2 The record of B corresponds to the record of the file and instructs the hard disk device 1 to update the system registration area. Further, the subsequent step S 5 1 instructs the reset of the recording processing information, and in the hard disk device 1, updates the number of clusters of the recording processing information to 値 in accordance with the instruction, and then proceeds to step SP 5 2 to end Handler. With these processes, in the hard disk device, for the commands written continuously by the AV machine 2, while recording the information of the amount of data that has been recorded in the system registration area of the hard disk 3, it is recorded by the AV machine 2 Output the AV data, and update the FAT area according to the instructions of the AV machine 2. At the same time, the recording processing information can be reset, so that even if an abnormality occurs during recording, the data can be repaired if necessary, so it can effectively protect Recorded data due to abnormal termination. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs FIG. 4 is a flowchart showing a processing procedure when the hard disk device 1 is started. In the hard disk device 1, in the processing at the time of this startup, repair processing is performed as necessary based on the above-mentioned recording processing information, thereby effectively protecting the data recorded before the end of the abnormality. That is, in the hard disk device, when the power is turned on, the process proceeds from step SP 6 1 to step SP 6 2 and a command to read out the system registration area by the AV machine 2 is issued. In the next step SP 6 3 the response command should be read by the hard disk. The data of the system registration area is output and transferred to the AV device 2. As a result, the A V machine 2 applies the Chinese National Standard (CNS) A4 specification (210X 297 mm) at the following paper size. 588329 A7 B7 V. Description of the invention (15)
~步驟S P 6 4將該系統登錄區的資料記錄於記憶體2 B 〇 如此進行與先前的電源起動時相同的處理後,在硬碟 裝置1即於下一步驟s P 6 5讀出記錄處理資訊,並於後 續步驟S P 5 6判斷該記錄處理資訊是否已被重置,亦即 在本實施形態中做爲檔案大小的群集數量是否設定爲0。 如在此得到肯定的結果時,即不必因爲任何異常在記 錄中途結束操作,由於是將系統登錄區更新而結束以便與 資料區的記錄相對應,硬碟裝置1即由步驟s P 6 6進行 到步驟S P 6 7而結束該處理程序(圖5 )。 反之,如在步驟S P 6 6得到否定結果時,即因任何 的異常在記錄中途結束操作,而由於未將系統登錄區更新 以與資料區的記錄相對應,因此硬碟裝置1即由步驟 S P 6 6進行到步驟S P 6 8。在此,硬碟裝置1利用與 A V機器2中執行的空白群集檢測的算法相同的算法,由 系統登錄區的資料檢測出空白區域的開頭。同樣地,由該 空白區域的開頭僅檢測出從記錄處理資訊所得到的群集數 的部分依次檢測出空白群集。 如上所述,由系統登錄區的資料檢測出與記錄資訊處 理的群集數相對應的空白區域後,硬碟裝置即在下一步驟 S P 6 9將如此檢測出來的空白區域設定於記錄有一個檔 案的區域中,並在一特定的記憶體上更新F A T資料俾使 與該一檔案相對應。又在下一步驟SP70 (圖5)在記 憶體上更新目錄區的資料俾使與該1檔案相對應。 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) 卜—---------^^裝-- (請先閲讀背面之注意事項再填寫本頁) 、11 經濟部智慧財產局員工消費合作社印製 -18- 588329 A7 _____B7 五、發明説明(16 ) (請先閱讀背面之注意事項再填寫本頁) 如上所述,硬碟裝置1將異常結束前記錄完畢的資料 做爲一個檔案,而在記憶體上更新系統登錄區的資料,並 對A V機器2通知該項更新。 藉此,硬碟裝置1在下一步驟SP71由AV機器2 接到指示更新F A T區域的寫入命令,而在下一步驟 S P 7 2利用該命令更新主F A T與副F A T的記錄俾使 與記憶體上的記錄相對應。又由於該記錄的更新,在下一 步驟SP 7 3中使AV機器2中斷。 再者,由於該項中斷,在下一步驟SP74中,由 A \^機益2接到指不更新目錄區的寫入命令,而在下一*步 驟S P 7 5利用該命令更新目錄區域俾使與記憶體上的記 錄相對應。另外,由於該等處理,在下一步驟SP76重 置該記錄處理資訊後,進行到步驟S P 7 7以中斷A V機 器2,再進行到步驟S P 6 7以結束該處理程序。 (2)實施形態的操作 在上述的構造中,硬碟裝置1 (圖2 )爲安裝於例如 經濟部智慧財產局員工消費合作社印製 攝影裝置,機頂盒(set top box)等的AV機器2,而當電 源上升時,記錄於硬碟3的系統登錄區的資料被讀出,而 且該資料被傳輸到A V機器2而記錄於記憶體2 B。 如上所述,當資料區的管理用資料在由硬碟3下載的 狀態下,再生硬碟3上所記錄的資料而輸出到A V機器2 時,在A V機器2由於記憶體2 B的記錄而目錄區的資料 被檢索以檢測出企望的檔案的起始位址(圖3 ),另外, 以該起始位址爲基準,依次尋找F A T區的資料以檢測出 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -19- 588329 A7 B7 五、發明説明() 連續的群集位址,利用該等位址,以A V機器2檢測出記 錄有該檔案的群集位址。硬碟裝置1被由AV機器2輸出 依如上述檢測的群集位址產生的再生命令,而將由該位址 所指定的群集依次再生而得再生資料,並將該再生資料輸 出到A V機器2。如此一來,該系統即可以再生記錄於硬 碟3的A V資料等。 相對地,在記錄時,利用記錄於記憶體2 B的F A 丁 區的資料,在A V機器2依次檢測硬碟3上面的空白區域 。另外,由A V機器2輸出以上述方法檢測出來用於指定 群集的空白區域的寫入命令,而在硬碟裝置1中記錄要將 該命令所指定的空白群集中依次輸入的A V資料,並記錄 依據已完成記錄的資料量的資訊所得的記錄處理資訊。此 外,記錄一完成,即依據A V機器的指示更新系統登錄區 的記錄,並且被載入A V機器2的系統登錄區也被更新, 而記錄處理資訊被淸除(reset)。 要記錄資料量大的檔案時,該檔案以特定資料量單位 分斷,寫入的命令被AV機器2重覆發出而各資料量的 A V資料的記錄被重複,另外,回應該A V資料記錄的重 複,記錄處理資訊被依次更新。而且如上所述完成一個檔 案的記憶時,即依A V機器2的指示,更新系統登錄區的 記錄,而且載入A V機器2的系統登錄區的資料即被更新 ,而記錄處理資訊被淸除。 要如此將資料量大的檔案依照重複的寫入命令記錄時 ,例如由於掉落,或電池無電等異常而引起記錄困難時, 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) .[————·裝丨丨 (請先閱讀背面之注意事項再填寫本頁) 訂 經濟部智慧財產局員工消費合作社印製 -20 - 588329 A7 B7 五、發明説明(18 ) 硬碟3中,因爲系統登錄區的資料未被更新,依據系統登 錄區的記錄不容再生該異常之前所記錄的記錄完畢資料。 (請先閲讀背面之注意事項再填寫本頁) 可是在本實施形態中,在硬碟3僅記錄特定的資料量 的A V資料後,即更新記錄處理資訊,因爲完成一個檔案 的記錄即更新受理用資料,同時淸除(reset )記錄處理資 訊,因此可以根據有無淸除該記錄處理資訊,而藉由此種 異常不必更新管理用資料即可檢測出已完成的記錄資料的 有無。又有關此種記錄完畢資料的記錄開始位置,也可以 由管理用資料檢測出來,依次尋找記錄處理資訊的資料量 部以及該管理用資料即可以確認記錄完畢的資料的末尾。 藉此,可以將以上述方法檢測出來的記錄起始位置到記錄 完畢資料的末尾區域爲止的資料做爲一個檔案來處理,藉 由該記錄處理資訊可以謀求修復到異常發生時爲止所記錄 的記錄完畢資料,藉此可以有效保護該記錄完畢的資料。 經濟部智慧財產局員工消費合作社印製 此外,在本實施形態中,此種檔案的記錄是依次尋找 空白區域來執行,並藉由硬碟3上的記錄單位的群集數表 示已記錄的資料量,藉以在記錄處理資訊中設定該群集數 並表示記錄完畢區域的末尾,藉此,可以簡單而確實地檢 測出那一區域記錄有此種記錄完畢資料。藉此,本實施形 態中,將記錄時的處理簡化,相對地,可以簡化整體的構 造。此外藉由判斷被分派予該記錄處理資訊的群集數値是 否爲0,即可以簡單判斷是否未正確更新系統登錄區即結 束操作,亦即是否有因異常而引起的記錄完畢資料存在。 亦即,在硬碟裝置1,於電源起動時,將系統登錄區 本紙張尺度適用中國國家標準(CNS ) A4規格(210 X 297公釐) -21 - 588329 A7 _B7 五、發明説明(19 ) (請先閲讀背面之注意事項再填寫本頁) 的資料傳送到A V機器2以後,即判斷設定於記錄處理資 訊的群集數値是否爲〇,藉此因異常而結束操作並判斷記 錄完畢的資料是否記錄於硬碟3。另外,如有此種記錄完 畢的資料殘留在硬碟時,即由系統登錄區的記錄檢測先頭 的空白群集,再只對記錄於記錄處理資訊的群集數的部分 依次由該先頭的空白群集檢測出空白群集,並將如此檢測 出的群集的記錄設定於一個檔案,並更新系統登錄區的記 錄以與該設定相對應。如此一來,縱使該硬碟裝置在記錄 時發生異常情形,也可以有效保護記錄完畢的資料並確實 記錄A V資料。 因爲如此處理,在本實施形態中,由於是存取系統登 錄區而僅更新記錄處理資訊的處理,因此每逢寫入命令時 ,可以不需要花太多時間於尋找諸如存取系統登錄區的主 F A T,副F A T,目錄區來更新(針對圖1 2所說明的 處理)進行連續的A V資料的記錄。 (3 )實施形態的效果 經濟部智慧財產局員工消費合作社印製 利用上述的構造,每當要只記錄來自主機的輸出資料 的特定資料量時,可以在特定區域記錄所記錄資料的資料 量資訊,同時在更新管理用資料時,將該資料量的資訊淸 除,因此,即使在記錄時發生異常情形,也可以有效保護 記錄完畢的資料並確實記錄A V資料等。 又在此時,由於以硬碟的記錄單位的群集爲單位以表 示該項資料量,因此可以與利用管理用資料的橋案管理相 對應以指定記錄完畢資料的末尾,相對地可知簡化整體的 i紙張尺度適用中國國家標準(CNS ) A4規格(210X:297公釐) -22- 588329 A7 B7_ 五、發明説明(2〇 ) 處理。 (請先閲讀背面之注意事項再填寫本頁) 另外,可以利用來自主機的命令更新管理用資料,同 時重置資料量的資訊,可以由主機管理資料量大的檔案, 並在結束一*個檔案的寫入時更新管理用資料,藉此,將本 硬碟裝置連接到其他主機以謀求與先前的檔案管理系統之 間的相容性。 另外,起動時,藉由判斷資料量的資訊有無重置以修 復記錄完畢資料時,必要時,可以修復記錄完畢資料以有 效避免無謂的處理。 又在該修復的處理中,藉由管理用資料中檢測出空白 區域的先頭區域,並由該先頭區域設定一個檔案以更新管 理用資料,即可以有限利用該種檔案管理系統的算法來執 行修復的處理。 (4 )其他實施形態 經濟部智慧財產局員工消費合作杜印製 此外,在上述實施形態中雖然針對依據群集數記錄資 料量的情形加以敘述,惟本發明並不侷限於此,例如可以 廣泛使用於依據扇區數記錄資料量的情形等,必要時以硬 碟的記錄單位記錄資料量的情形,甚至利用各種表現方法 以記錄資料量的情形。 再者,在上述實施形態中,雖然僅針對記錄處理資訊 分派資料量的資訊加以敘述,惟本發明並不侷限於此,另 外也可以將F A T登錄編號,目錄位址(寫有該檔案的目 錄的位置)等一起寫入。另外,如能如此將F A T登錄編 號,則在修復處理時,可以省略檢測先頭的空白區域的處 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -23- 588329 A7 B7 五、發明説明(21 ) 理。 (請先閱讀背面之注意事項再填寫本頁) 此外,在上述實施形態中,是針對利用主機的管理記 錄一個檔案以重置記錄處理資訊,同時更新管理用資訊用 的情形加以說明,但是本發明並不侷限於此,例如在卸下 硬碟時,或電源下降時執行該項處理也可以。 另外,在上述實施形態中,是針對單純記錄處理資訊 的情形加以敘述,但是本發明並不侷限於此,也可以將記 錄處理資訊寫入2次或3次,或將該等記錄於多個處理所 以提高可靠性。 再者,在上述實施形態中,是針對將本發明使用於硬 碟裝置的情形加以敘述,但是本發明並不侷限於此,可以 使用於磁碟,光碟等在各種磁碟狀記錄媒體記錄資料的資 訊處理裝置。 〔發明的效果〕 經濟部智慧財產局員工消費合作社印製 如上所述,依據本發明,每當只記錄來自主機的輸出 資料的特定資料量時,由於在特定區域記錄已記錄資料的 資料量的資訊,同時在管理用資料的更新時重置該資料的 資訊,因此縱使在記錄時發生異常的情形,也可以有效保 護記錄完畢的資料而確實記錄A V資料等。 〔圖式之簡單說明〕 圖1爲表示本發明的實施形態的硬碟裝置上的寫入時 的處理程序的流程圖。 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) -24- 588329 A7 B7 五、發明説明(22 ) 圖2爲表不本發明的實施形態的硬碟裝置的方塊圖。 圖3爲表示圖2的硬碟裝置上的硬碟的格式的圖表。 (請先閱讀背面之注意事項再填寫本頁) 圖4爲表示圖2的硬碟裝置上起動時的處理程序的流 程圖。 圖5爲表示圖4的後續的處理程序的流程圖。 圖6爲表示先前的硬碟上的記錄格式的圖表。 圖7爲表示記錄於圖6的目錄區的資料的圖表。 圖8爲表示記錄於圖6的F A T區域的代碼的圖表。 圖9爲表示先前的系統在起動時的處理程序的流程圖 〇 圖1 0爲表示先前的系統在寫入時的處理程序的流程 圖。 圖1 1是用於說明依照重複命令進行系統登錄區的更 新處理的流程圖。 〔符號的說明〕 1 硬碟裝置, 經濟部智慧財產局員工消費合作社印製 2 A V機器, 2 A 中央處理機, 2 B , 3 硬碟, 10 緩衝區記憶體。 本紙張尺度適用中國國家標準(CNS ) A4規格(21〇X 297公釐) -25-~ Step SP 6 4 Record the data of the system registration area in the memory 2 B 〇 After performing the same processing as before when the power is turned on, the hard disk device 1 reads the recording processing at the next step s P 6 5 Information, and determine whether the record processing information has been reset in the subsequent step SP56, that is, whether the number of clusters as the file size is set to 0 in this embodiment. If a positive result is obtained here, that is, it is not necessary to end the operation in the middle of the recording because of any abnormality. It is ended by updating the system registration area so as to correspond to the recording in the data area. The hard disk device 1 is performed by step s P 6 6 The process proceeds to step SP 6 7 (FIG. 5). Conversely, if a negative result is obtained in step SP 6 6, the operation is ended in the middle of the recording due to any abnormality, and since the system registration area is not updated to correspond to the record in the data area, the hard disk device 1 is performed by step SP 6 6 Proceed to step SP 6 8. Here, the hard disk device 1 uses the same algorithm as the blank cluster detection algorithm executed in the AV device 2 to detect the beginning of the blank area from the data in the system registration area. Similarly, from the beginning of the blank area, only blank clusters are sequentially detected in the portion where only the number of clusters obtained from the record processing information is detected. As described above, after the blank area corresponding to the number of clusters for recording information processing is detected from the data in the system registration area, the hard disk device sets the blank area thus detected to the one where a file is recorded in the next step SP 6 9 Area, and update FAT data on a specific memory so as to correspond to the file. In the next step SP70 (Figure 5), the data in the directory area is updated on the memory so as to correspond to the 1 file. This paper size is applicable to Chinese National Standard (CNS) A4 specification (210X297 mm). —-------- ^^ Package— (Please read the precautions on the back before filling this page), 11 Ministry of Economic Affairs Printed by the Intellectual Property Bureau's Consumer Cooperatives-18- 588329 A7 _____B7 V. Invention Description (16) (Please read the precautions on the back before filling this page) As mentioned above, the hard disk device 1 will record the data before the abnormal end. As a file, the data of the system registration area is updated in the memory, and the AV device 2 is notified of the update. With this, the hard disk device 1 receives a write command instructing the FAT area to be updated by the AV device 2 in the next step SP71, and in the next step SP7 2 uses this command to update the recording instructions of the main FAT and the sub-FAT and the memory. Corresponding record. Because of the update of this record, the AV machine 2 is interrupted in the next step SP 7 3. Furthermore, due to this interruption, in the next step SP74, A \ ^ machine benefit 2 receives a write command indicating that the directory area is not to be updated, and in the next * step SP 7 5 this command is used to update the directory area to cause the The record on the memory corresponds. In addition, due to these processes, after resetting the record processing information in the next step SP76, proceed to step SP7 to interrupt the AV machine 2, and then proceed to step SP67 to end the processing routine. (2) Operation of the embodiment In the above-mentioned structure, the hard disk device 1 (FIG. 2) is an AV device 2 mounted on, for example, a printing device, a set top box, etc., printed by a consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs. When the power is increased, the data recorded in the system registration area of the hard disk 3 is read out, and the data is transmitted to the AV device 2 and recorded in the memory 2B. As described above, when the management data in the data area is downloaded from the hard disk 3, the data recorded on the hard disk 3 is reproduced and output to the AV device 2. The data in the directory area is retrieved to detect the starting address of the desired file (Figure 3). In addition, based on the starting address, the data in the FAT area is searched in order to detect that the paper standard is applicable to the Chinese national standard ( CNS) A4 specification (210X297 mm) -19- 588329 A7 B7 V. Description of the invention () Continuous cluster addresses, using these addresses, AV machine 2 detects the cluster address where the file is recorded. The hard disk device 1 is output by the AV device 2 according to the reproduction command generated by the cluster address detected as described above, and the cluster specified by the address is sequentially reproduced to obtain reproduction data, and the reproduction data is output to the AV device 2. In this way, the system can reproduce A V data recorded on the hard disk 3 and the like. In contrast, during recording, the data recorded in the F A D area of the memory 2 B is used to sequentially detect the blank area on the hard disk 3 on the AV device 2. In addition, the AV device 2 outputs a write command detected in the above-mentioned blank area for specifying the cluster, and the hard disk device 1 records the AV data to be sequentially input in the blank cluster designated by the command, and records Record processing information based on information on the amount of data that has been recorded. In addition, once the record is completed, the record of the system registration area is updated according to the instruction of the AV machine, and the system registration area loaded into the AV machine 2 is also updated, and the record processing information is reset. When a file with a large amount of data is to be recorded, the file is divided by a specific amount of data, the written command is repeatedly issued by the AV machine 2 and the recording of the AV data of each data amount is repeated. In addition, the response to the AV data record Repeat, the record processing information is sequentially updated. And when the memory of a file is completed as described above, the record of the system registration area is updated according to the instruction of the AV device 2, and the data loaded into the system registration area of the AV device 2 is updated, and the record processing information is deleted. In order to record a large amount of data in accordance with repeated writing orders in this way, such as when recording is difficult due to dropping or the battery is out of power, this paper size applies the Chinese National Standard (CNS) A4 specification (210X297 mm) . [———— · Installation 丨 丨 (Please read the notes on the back before filling this page) Order printed by the Intellectual Property Bureau of the Ministry of Economic Affairs's Consumer Cooperatives-20-588329 A7 B7 V. Description of the invention (18) Hard disk 3 Because the data in the system registration area has not been updated, the recorded data recorded before the exception cannot be reproduced according to the records in the system registration area. (Please read the precautions on the back before filling this page.) However, in this embodiment, after the hard disk 3 records only the AV data of a specific amount of data, the record processing information is updated, because the completion of the recording of a file will update the acceptance The data is used to simultaneously delete (reset) the record processing information, so the record processing information can be deleted according to the presence or absence, and the existence of the completed record data can be detected without updating the management data by such an abnormality. The recording start position of such recorded data can also be detected from the management data, and the data volume of the record processing information and the management data can be sequentially searched to confirm the end of the recorded data. In this way, the data from the start position of the record detected to the end area of the recorded data detected by the above method can be processed as a file, and the records recorded until the time when the abnormality occurred can be repaired by the record processing information. Completed data, which can effectively protect the recorded data. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs In addition, in this embodiment, the recording of such files is performed by sequentially searching for blank areas, and the number of recorded data is represented by the number of clusters of recording units on hard disk 3. By setting the number of clusters in the record processing information and indicating the end of the recorded area, it is possible to simply and surely detect which area has such recorded data recorded. Thereby, in the embodiment, the processing at the time of recording is simplified, and the overall structure can be simplified relatively. In addition, by judging whether the number of clusters assigned to the record processing information is 0, it can be simply judged whether the system registration area is not correctly updated to complete the operation, that is, whether there are recorded data due to abnormalities. That is, in the hard disk device 1, when the power is turned on, the paper size of the system registration area is applied to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) -21-588329 A7 _B7 V. Description of the invention (19) (Please read the precautions on the back before filling in this page) After the data is transmitted to the AV machine 2, it is judged whether the number of clusters set in the recording processing information is 0, thereby ending the operation due to an abnormality and judging the recorded data. Whether to record on hard disk 3. In addition, if such recorded data remains on the hard disk, the first blank cluster is detected by the record in the system registration area, and then only the number of clusters recorded in the record processing information is sequentially detected by the first blank cluster. A blank cluster is generated, and the record of the cluster thus detected is set to a file, and the record of the system registration area is updated to correspond to the setting. In this way, even if an abnormal situation occurs in the hard disk device during recording, the recorded data can be effectively protected and the AV data can be reliably recorded. Because of this processing, in this embodiment, because the system registration area is accessed and only the record processing information is updated, it is not necessary to spend too much time looking for access to the system registration area when writing a command. The main FAT, sub FAT, and directory areas are updated (for the processing explained in FIG. 12), and continuous AV data is recorded. (3) The effect of the implementation form The consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs prints and utilizes the above-mentioned structure. Whenever it is necessary to record only a specific amount of output data from the host, the data amount information of the recorded data can be recorded in a specific area. At the same time, when the management data is updated, the amount of information is deleted. Therefore, even if an abnormal situation occurs during recording, the recorded data can be effectively protected and the AV data is surely recorded. At this time, since the data volume is represented by a cluster of hard disk recording units as a unit, it is possible to correspond to the bridge case management using management data by specifying the end of the recorded data, which relatively simplifies the overall i Paper size applies to China National Standard (CNS) A4 specifications (210X: 297 mm) -22- 588329 A7 B7_ V. Description of invention (20). (Please read the precautions on the back before filling this page) In addition, you can use the command from the host to update the management data, and reset the information of the data amount at the same time, the host can manage the large data file, and at the end of a * The management data is updated when the file is written, so that the hard disk device is connected to other hosts to achieve compatibility with the previous file management system. In addition, at the time of starting, by judging whether the information of the data volume is reset to repair the recorded data, if necessary, the recorded data can be repaired to effectively avoid unnecessary processing. In the repairing process, by detecting a leading area of a blank area in the management data, and setting a file in the leading area to update the management data, the algorithm of the file management system can be used to perform the repair. Processing. (4) Other implementations Printed by employee consumption cooperation of the Intellectual Property Bureau of the Ministry of Economic Affairs In addition, although the above embodiment describes the case of recording the amount of data based on the number of clusters, the present invention is not limited to this and can be widely used, for example In the case of recording the amount of data according to the number of sectors, etc., the case of recording the amount of data in the recording unit of the hard disk as necessary, and even in the case of using various expression methods to record the amount of data. Furthermore, in the above-mentioned embodiment, although only the information of the record processing information distribution data amount is described, the present invention is not limited to this. In addition, the FAT registration number, the directory address (the directory in which the file is written) Position) and so on. In addition, if the FAT registration number can be numbered in this way, during the repair process, the detection of the blank space at the front can be omitted. The paper size applies the Chinese National Standard (CNS) A4 specification (210X297 mm) -23- 588329 A7 B7 V. Invention Description (21) Principle. (Please read the precautions on the back before filling this page.) In addition, in the above embodiment, a case where the management record of the host is used to reset the record processing information and update the management information is explained. The invention is not limited to this. For example, the process may be performed when the hard disk is removed or when the power is reduced. In addition, in the above-mentioned embodiment, the case where the processing information is simply recorded is described, but the present invention is not limited to this, and the recording processing information may be written 2 or 3 times or recorded in multiple Handling improves reliability. Furthermore, in the above-mentioned embodiment, the case where the present invention is applied to a hard disk device is described, but the present invention is not limited to this, and can be used for magnetic disks, optical disks, and the like to record data on various disk-shaped recording media Information processing device. [Effects of Invention] As described above, according to the present invention, when the consumer's cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs records only a specific amount of output data from the host computer, the amount of recorded data is recorded in a specific area. At the same time, the information of the management data is reset when the management data is updated. Therefore, even if an abnormal situation occurs during recording, the recorded data can be effectively protected and the AV data is surely recorded. [Brief description of the drawings] Fig. 1 is a flowchart showing a processing procedure when writing to a hard disk device according to an embodiment of the present invention. This paper size applies the Chinese National Standard (CNS) A4 specification (210X297 mm) -24- 588329 A7 B7 V. Description of the invention (22) Figure 2 is a block diagram showing a hard disk device according to an embodiment of the present invention. FIG. 3 is a diagram showing a format of a hard disk on the hard disk device of FIG. 2. (Please read the precautions on the back before filling out this page.) Figure 4 is a flowchart showing the processing procedure when the hard disk drive in Figure 2 is started. FIG. 5 is a flowchart showing a processing procedure subsequent to FIG. 4. FIG. 6 is a diagram showing a recording format on a conventional hard disk. FIG. 7 is a graph showing data recorded in a directory area of FIG. 6. FIG. 8 is a graph showing codes recorded in the F A T area of FIG. 6. Fig. 9 is a flowchart showing a processing procedure at the time of starting of the previous system. Fig. 10 is a flowchart showing a processing procedure at the time of writing of the previous system. Fig. 11 is a flowchart for explaining a process of updating a system registration area in accordance with a repeated command. [Explanation of Symbols] 1 Hard disk device, printed by the Consumer Cooperative of Intellectual Property Bureau of the Ministry of Economic Affairs 2 A V machine, 2 A central processor, 2 B, 3 hard disk, 10 buffer memory. This paper size applies to China National Standard (CNS) A4 (21〇X 297mm) -25-