201222297 六、發明說明: 【發明所屬之技術領域】 —種映像槽的下載方式,特別是―種具有斷點續傳功能的 映像檔的下載方式。 【先前技術】 不論是個人電腦、大型祠服器或是筆記型電腦,計算機在 触給使用者之前可能需錢好作業系統以便使用者使用,或 是提供具有作業系統的導航光碟或維護光碟給使用者。因此生 =算機騎商在出#前,需要大批量地對這⑽算機灌裝作 了系統。傳統上,先將可能需要的作業系統的映像槽配置於至 像槽咖中。計算機向,服器送出下載映像 求’㈣像服器再_並提供計算機所需的映像 電、=^载映像軸程之中,難免會細為意外停 等各種意外落等 是基於計算機的磁碟分區^般的映像樓的格式 槽案配置的方切、Z〇ne ’或稱為磁碟分割)以及 碟㈣順打载I子料因此在下载映像播的過程中,需要依磁 此相關的。由於後載過程_料之間都是彼 中斷,只能從映购 前面的資料,—但發生 像才田最則頭的地方開始重新下载。 也就是說’雜統⑽顧τ財,候何種原因, 201222297 := 皮中斷’計算機都得要重 w次被中斷的下_程中已經人不卿在 廢棄,整個映㈣都需要從零.再傳^妙資科都會被 =的下載方法顯然有遇到中斷;會 載效率低下的問題。再加上映像_宰 的大=都相w射輪贿細無謂耗費 【發明内容】 為了解決上述問題’提出—種映像槽(― 姻於由—映像_服器下载—映賴至— 法包括,_讀取: ) π ’ °貝取目標磁碟的多偏碟數據塊(data 中的—起始數據塊,其中磁碟數據塊的大小相同, 起始數據難有―進度信树,崎較信息㈣-目前數; 塊,由映像檔的多個映像檔數據塊之中,將與目前數據塊對庫 的映像據塊下載至目前數據塊,射映賴數據塊係個別 魏魏;更贿度料;訂載雖的目前數據塊 :·’、不磁碟的結尾數據塊時’將與起始數據塊對應的映像檔 數據塊下载至触數據塊,並更新目標_的—分區表信* ; 以及重複以上步驟朗將财的映像魏據塊下駐磁雜 據塊。 而當起始數據塊不具有進度信息時,可將起始數據塊的下 201222297 個磁碟數據塊作為目_ 息。在「讀取目护磁雄γ 起始數據塊建立進度俨 取目軚磁碟的多個磁碟數據塊 運度t 其中磁碟數據塊的大小相同」的的—起始數據塊, 另可包括:當目標辦的—則’映像槽的下載方法 量時,結束映像槽的下载。 、像槽的-映像標容 其中播頭可包括-映像槽名稱、—映像 大小、一數據塊大小、—數據 田、、一源磁碟 映像槽中的多個映像_據塊_ 映像槪據塊在 摅㈣#自、 彻™一磁碟數 诚以紀錄與這些映像微據塊個別對應的磁碟數 據塊的多個索引位置。映像檔並可包括-檔尾㈤of飾, EOF)° 此外,進度信息可包括目前數據塊的—索引位置、一數據 塊下載表、映像獅-認證信息或是—程序參數信I而每一 個映像檔數據塊可包括個別_元資料 以及一内容 資料。其中每—舰資料可包括所屬之映像概據塊的一數據 塊標示、一數據塊大小或是一壓縮旗標。 综上所述’映像檔的下載方法避免資料彼此之間的相依 性,並在目標磁碟中維護進度信息,以達成斷點續傳的功能。 因此目標計算機不必再重複之前下載過的資料,而大幅提高下 載效率。且進度彳§息中維護有映像檔的認置信息等資訊,而能 夠確保續傳時映像檔的一致性。 【實施方式】 201222297 以下在實施方式中詳細敘述本發明之詳細特徵以及優 點,其内容足喊任何熟f _技藝者了解本發明之技術内容 並據以實施’且根據本制書所揭露之内容、中請專利範圍及 圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及 優點。 本發明係關於一種映像檔(imageflle)的下載方法,適用 於由-映像湘服^ (server)下載—映像觀—目標計算機 的一目標磁碟(target disk )。 請同時參照「第1圖」以及「第2圖」,其分別為一實施 範例之映像樓以及目標磁碟之示意圖。 映像棺20可以是國際標準組織(intemati〇nai 〇rganisatj〇n for standardisation,ISO ) %60 檔案系統(俗稱為 iso 檔),或 是微軟(microsoft)的 Windows Imaging (WIM)之檔案類型。 映像檔20又例如是對應於各種作業系統的系統檔案或核心 (kernel)程式,例如視窗7 (Windows7)系統的系統檔案。 映像檔20至少包括一檔頭22以及多個映像檔數據塊 (data block )26 ’其中檔頭22用以紀錄映像檔20之全體資訊。 各個映像檔數據塊26的大小相同,且映像檔數據塊26之間都 是彼此獨立的。檔頭22可包括一映像檔名稱、一映像檔大小、 一源磁碟大小、一數據塊大小、一數據塊數量或是映像檔數據 塊26在映像檔20中的多個映像檔數據塊位址。 映像檔數據塊26則可個別包括一元資料(metadata)以及 201222297 一内容資料。其中每一個元資料可包括所屬之映像槽數據塊 26的一數據塊標示、一數據塊大小或是一壓縮旗標。映像# 20的第一個映像檔數據塊26可包括目標磁碟31的—磁碟分 區表(partition table)。此外,映像樓20並可包括一槽尾(end of file ’ EOF,文件尾信息)28。 目標計算機30可以是桌上型電腦、筆記型電腦、词服器、 個人數位助理(Personal Digital Assistant,PDA)或者智慧型 手機。而目標磁碟31可以例如是各種大容量的硬碟、磁碟陣 列(redundant array of inexpensive disk’RAID)系統或是可攜 式裝置内建的硬碟。除了目標磁碟31之外,目標計算機3〇另 可包括中央處理器(cental process〇r unit,cpu)或是記憶體 等其他硬體。且目標計算機30可透過網路與映像檔伺服㈣ 連線,以下載映像檔伺服器4〇的映像檔2〇。 目標磁碟31包括多個磁碟數據塊32以儲存下載的映像播 數據塊26 ’故磁碟數據塊32個別與映像檔數據塊%對應。 以第1圖」的實施方式為例,磁碟數據機咖、进以及议 =映像缝據塊26a'26b以及26c對應。故這些磁碟數 ^ 紐魏%的大小_。姆的是,目 3^。付1 ΓΪ括其他非用以下载映像檔2〇的磁碟數據塊 些磁碟數據塊32的動作。Τ载映像㈣時相關的這 首先目標計算機30 由映像4田伺服為40讀取映像禮2〇的 201222297 槽頭22 (步驟S100);並可由檔頭22中記錄的映像 檔娜訊確認此映像檔20是否為所需的。目標二 -、0項取目標磁碟31的磁碟數據塊32中的一起始 (步驟S110),盆中起奸數據似 °數據塊 據塊相以下載映像槽20的這此 磁碟數據塊32中的第一個。以「第 二 斑雄弟2圖」的貫施範例而言, 碟數據塊瓜就是起始數據塊。此外,映像槽2〇可包括_ :數據塊娜息24,彻與峨峨26個別_ 的磁碟數據塊32的多個索引位置。目標辦 數據塊索引信息24在㈣磁碟31中找到的/依據磁碟 32的位址。 ;31中找到所需的磁碟數據塊 根據一實施範例,在步驟 ^ MW之月”映像槽的下載方法 ^匕.田目心磁碟31的一磁碟容量小於映像槽20的-映 像㈣量時,結束映像槽2〇的下載。也就是說,在直正開於 下载映倾20之前,可以先判斷目標磁碟31的磁碟容量是否 足夠,以敎下載itt才魏無法完摘_如之箸境。 接著判(步_〇)。 進度訊息係用以記錄此映像樓2〇在此目標磁碟Μ的下載進 度’若在初始數據塊中有找到下載進度,表示之前目標磁碟 有下_部分的映像檔I當起讀魏具有進度信息 時依據進度n于到—目前數據塊(步驟咖)。也就是說, 進度信息令記錄有之前下载中斷的斷點。而當起始數據塊不具 有進度信息時,將起始數據塊(也就是磁碟數據塊則的下 201222297 -個磁碟數據塊32 (32b)作為目前數據塊,並於起始數據塊 建立進度信息(步驟S140)。 進度信息中可以包括目前數據塊的一索引位置、一數據塊 下載表、映像權20的-認證信息或是一程序參數信息。其中 數據塊下絲可以用位元映像⑽卿)的方法記錄所有磁碟 數據塊32的下載情形。例如可以以表示此磁碟數據塊 32已完成下載;以「〇」表示此磁碟數據塊%尚未完成下載。 息則可以从驗和碼(eheek麵或是資訊摘要演 算法 5 碼(MeSsage_Digest AIg〇rithm 5 ⑽,咖 _),以 確保斷點續傳的前後映像槽20的-致性。程序參數信息則用 以記錄下請需要的侧參數,例如程序操作_、待操作的 目標磁碟Μ的設備識別碼(identlfier,ID)、映像槽2〇的播 案路徑的全路徑名,或是磁碟分區的擴展參數(extend param㈣等。其中映像標2〇的檀案路徑可以是網路路徑,也 可以是映像翻《 40中的本地路徑。上述科進坪自的 内容都可以在目標計算機30的一次下載映像樓2〇時建錄初 始數據塊,以便需要斷點續傳時沿用。 调日祕纖之後,由映像標2〇的映像槽數據塊^ 中,將與目前數據塊對應的映像微據塊26下载至目前數遍 塊(步驟⑽)。延續前述實施範例,將與磁碟數據塊㈣ 應之映像數據塊26b下_磁碟數據塊娜之中。n 是,由於每個磁碟輯塊32都是互相獨立的,而^映= 201222297 數據塊26都會被下载並還原到目標磁碟M的絕對位置上。因 此-個磁碟數據塊32的下载動作不會影響到其他的磁碟數據 塊32。 當與目前數據塊對應的映像樓數據塊26下載成功完成 時,目標計算機30根據目前數據塊更新進度信息(步驟 >此時原本的目前數據塊的下—個磁碟數據塊32會被設 為新的目前數據塊。目標計算機3〇並判斷下载完成的目前數 舰(也就是在步驟S16G更新之前的目前數據塊)是否為目 標磁碟31的-結尾數據塊(步驟⑽)。結尾數據塊為用以 下載映像槽20的這些磁碟數據塊.32中的最後—個。以「第2 圖」的實施範例而言,磁碟數據塊32c就是起始數據塊。 當下載完成的目前數據塊為目標磁碟31的結尾數據塊 時,將與起始數據塊對應的映像槽數據塊%下載至起始數據 並更新目標剌31的—分區表信息(編叫也就 疋。兄’與起始數據塊對應的映像檔數據塊 之中最後被下载的映像槽數據塊26。 映机 據塊26會覆蓋掉原本寫人的進度信息、6映像植數 塊32之間彼此獨立’目標磁碟3 磁碟數據 些磁碟數據塊32與目標磁碟31的^=息表以記錄這 Z·,亦稱為磁碟分割)的_。 碟分區(chsk 而虽下载完成的目前數據塊不是結尾 步_、S_S17。直到將所有的映像= 11 201222297 載至對應的磁碟數據塊32。 、’τ'上所述’映像槽的下載方法在將映像檔以及目標磁碟分 。成大小相同城此獨立的數據塊,以避免資料彼此之間的相 依i·生映細的下载方法並在目標磁射、轉進度信息,以記 錄下載的進度’進而達到斷點續傳的功能。如此一來,目標計 异機不必再重複之前下載過的資料,而大幅減輕了下載之 =頻寬等資源,提高了下載的效率。且進度信息中維護有_ ^的〜置m魏’ *能夠確俩料映像伽—致性 ^法亦此避免因人為操作失誤等而由不_映像 载錯誤資料的情形,而確保了下載的資料的正確性與唯^ 以上較佳具體實施範例之詳述,是希望藉此 本發明之特_精神,並相上 2田述 。相反地’其目的是希望= 二:::蓋於本發明所欲申請之專利範圍的範•内。 1圖係為一實施範例之映像檔之示音圖。 第2圖係為-實施範例之目標磁碟之示音圖。 第3圖係為—實施酬之峰 【主要元件觀朗】 下衫奴流程圖 20 22 映像檔 播頭 磁碟數據塊索y信息 24 201222297 26, 26a, 26b, 26c 映像檔數據塊 28 檔尾 30 目標計算機 31 目標磁碟 32, 32a, 32b, 32c 磁碟數據塊 40 映像檔伺服器 13201222297 VI. Description of the invention: [Technical field to which the invention pertains] - A method of downloading an image slot, in particular, a download mode of an image file having a function of a breakpoint resume. [Prior Art] Whether it is a personal computer, a large server, or a notebook computer, the computer may need to use the operating system for the user to use, or provide a navigation CD with a working system or a maintenance CD to the user. user. Therefore, raw = computer rider before the #, need to bulk in this (10) computer filling system. Traditionally, the image slot of the operating system that may be needed is first configured in the image slot. The computer sends the download image to the server and asks for (4) the image server and provides the image power required by the computer, and the image plane of the image is inevitable, and it is inevitable that it will be accidentally stopped, etc. The image format of the general image building is square, Z〇ne 'or disk partitioning, and the disk (4) is the I component. Therefore, in the process of downloading the image, it needs to be related. Since the post-loading process is interrupted by each other, it can only be downloaded from the previous data, but it will start to be re-downloaded like the most in the field. That is to say, 'Medical (10) Gu Quancai, what kind of reason, 201222297 := skin interruption 'computer has to be heavy w times interrupted _ Cheng has been unclear in the waste, the entire map (four) need to be from zero It is obvious that there will be interruptions in the download method of the ^Music Co., Ltd.; it will carry the problem of inefficiency. In addition, the image_slaughter's big = all-in-one w-shots and bribes are unnecessary. [Inventive content] In order to solve the above problem, the proposed image slot (-------------------------------------------- , _ read : ) π ' ° to take the target disk of the multi-disc data block (data - the starting data block, where the disk data block size is the same, the starting data is difficult - progress letter tree, Saki Information (4) - current number; block, from the image file of multiple image file blocks, will be downloaded with the current data block to the library image block to the current data block, the image data block is individual Wei Wei; The current data block of the carrier; when the data block at the end of the disk is not loaded, the image file block corresponding to the start data block is downloaded to the touch data block, and the target__partition table is updated. * ; and repeat the above steps to display the image of the data block under the block. When the starting data block does not have progress information, the next 201222297 disk data block of the starting data block can be used as the target_ Interest rate. In the "reading the magnetic gamma gamma start data block establishment progress多个 Multiple disk data block operations of the disk t where the size of the disk data block is the same - the starting data block, and may include: when the target--"the image slot download method amount, the end The download of the image slot. The image-like image of the slot can include - the image slot name, the image size, a block size, the data field, and multiple images in a source disk image slot. Block _ image data block in 摅 (four) #自, 彻 TM a disk number to record multiple index positions of the disk data block corresponding to these image microblocks individually. Image file and can include In addition, the progress information may include an index position of the current data block, a data block download table, an image lion-authentication information, or a program parameter letter I, and each image file data block may include individual _ meta data and A content material. Each of the ship data may include a data block identifier, a data block size, or a compression flag of the associated image profile block. In summary, the downloading method of the image file avoids the dependency of the data, and maintains the progress information in the target disk to achieve the function of the resume of the breakpoint. Therefore, the target computer does not have to repeat the previously downloaded data, and greatly improves the download efficiency. In addition, the maintenance information of the image file is maintained in the progress information, and the consistency of the image file during the resume transmission can be ensured. [Embodiment] 201222297 Hereinafter, the detailed features and advantages of the present invention will be described in detail in the embodiments, and the content thereof is sufficient to understand the technical contents of the present invention and to implement the contents according to the present disclosure. The related objects and advantages of the present invention can be easily understood by those skilled in the art. The invention relates to a method for downloading an image file (imageflle), which is suitable for downloading from a server to a target disk of a target computer. Please also refer to "Figure 1" and "Figure 2", which are schematic diagrams of an image building and a target disk. The image file 20 can be an international standard organization (intemati〇nai 〇rganisatj〇n for standardisation, ISO) %60 file system (commonly known as iso file), or a Microsoft (Microsoft) Windows Imaging (WIM) file type. The image file 20 is, for example, a system file or a kernel program corresponding to various operating systems, such as a system file of the Windows 7 system. The image file 20 includes at least a header 22 and a plurality of data blocks 26' in which the header 22 is used to record the entire information of the image file 20. The size of each of the image file blocks 26 is the same, and the image file blocks 26 are independent of each other. The file header 22 can include an image file name, an image file size, a source disk size, a data block size, a number of data blocks, or a plurality of image data block bits of the image file data block 26 in the image file 20. site. The image file data block 26 can individually include a metadata and a 201222297 content material. Each of the metadata may include a data block identifier, a data block size, or a compression flag of the associated image slot data block 26. The first image file block 26 of the image #20 may include a disk partition table of the target disk 31. In addition, the image building 20 can include an end of file 'EOF' 28 of the end of the file. The target computer 30 can be a desktop computer, a notebook computer, a word server, a Personal Digital Assistant (PDA), or a smart phone. The target disk 31 can be, for example, a variety of large-capacity hard disk, redundant array of inexpensive disk (RAID) systems, or a built-in hard disk of a portable device. In addition to the target disk 31, the target computer 3 may further include a central processing unit (cpu) or other hardware such as a memory. And the target computer 30 can connect to the image file servo (4) through the network to download the image file of the image file server. The target disk 31 includes a plurality of disk data blocks 32 for storing the downloaded image data blocks 26' so that the disk data blocks 32 individually correspond to the image file data block %. Taking the embodiment of Fig. 1 as an example, the disk data machine, the advance, and the image data blocks 26a'26b and 26c correspond to each other. Therefore, the number of these disks ^ the size of New York's %. M's is, head 3^. Pay 1 to include other disk data blocks that are not used to download the image file. The first target computer 30 associated with the image (4) is imaged by the image 4 field servo for reading the 201222297 slot head 22 (step S100); and the image can be confirmed by the image file recorded in the file header 22 Whether file 20 is required. The target two-, zero-item takes a start in the disk data block 32 of the target disk 31 (step S110), and the data in the basin is like the block data block to download the disk data block of the image slot 20. The first of 32. In the example of the second picture of the second zebra 2, the disk data block is the starting data block. In addition, the image slot 2 can include a plurality of index locations of the _: data block 24, and the disk data block 32 of the individual _26. The target data block index information 24 is found in the (4) disk 31/based on the address of the disk 32. According to an embodiment, the download method of the image slot in the step MW is performed. The volume of the disk of the field disk 31 is smaller than that of the image channel 20 (four). At the time of the quantity, the download of the image slot 2 is ended. That is to say, before the download of the image dump 20 is straightforward, it can be judged whether the disk capacity of the target disk 31 is sufficient, so that the download can not be completed. The next step is to judge (step _〇). The progress message is used to record the download progress of this image file on this target disk. If the download progress is found in the initial data block, it means that the target disk has The image file I of the lower part _ is based on the progress n when the starter has progress information, and the current data block (step coffee). That is, the progress information causes the breakpoint of the previous download interruption to be recorded. When the block does not have progress information, the starting data block (that is, the next 201222297 - one disk data block 32 (32b) of the disk data block is used as the current data block, and progress information is established in the starting data block (step S140). ) Progress information can be included An index position of the current data block, a data block download table, an authentication right of the image right 20, or a program parameter information, wherein the data block can be recorded by the bit map (10) to record all the disk data blocks 32. For example, it can be indicated that the disk data block 32 has been downloaded; "〇" indicates that the disk data block % has not been downloaded yet. The information can be checked from the code (eheek face or message digest algorithm 5 yards (MeSsage_Digest AIg〇rithm 5 (10), coffee_) to ensure the continuity of the image groove 20 before and after the breakpoint is resumed. Program parameter information Used to record the side parameters required, such as program operation_, the device identifier (identlfier, ID) of the target disk to be operated, the full path name of the broadcast path of the image slot 2, or the disk partition Extended parameters (extend param (4), etc.. The path of the target file can be either a network path or a local path in the image. The content of the above-mentioned Kejinping can be downloaded once from the target computer 30. When the image building is 2, the initial data block is created, so that it needs to be used when the breakpoint is resumed. After the Japanese secret fiber is used, the image data block corresponding to the current data block will be in the image slot data block of the image mark 2 26 downloads to the current number of blocks (step (10)). Continuing the foregoing embodiment, the image data block 26b corresponding to the disk data block (4) is placed under the disk data block Na. n is due to each disk tile 32 are independent of each other And ^ mapping = 201222297 data block 26 will be downloaded and restored to the absolute position of the target disk M. Therefore - the download operation of the disk data block 32 will not affect other disk data blocks 32. When and current data When the download of the image building block 26 corresponding to the block is successfully completed, the target computer 30 updates the progress information according to the current data block (step > the original current data block of the current data block 32 is set to the new current The data block: the target computer 3 determines and determines whether the downloaded current ship (that is, the current data block before the step S16G update) is the end data block of the target disk 31 (step (10)). The end data block is used to The last one of these disk data blocks .32 of the image slot 20 is downloaded. In the embodiment of "Fig. 2", the disk data block 32c is the starting data block. When the downloaded current data block is the target At the end of the data block of the disk 31, the image slot data block % corresponding to the start data block is downloaded to the start data and the partition table information of the target 剌31 is updated (the nickname is also 疋. Brother's and start The last downloaded image slot data block 26 among the image file data blocks corresponding to the block. The screen data block 26 will overwrite the original writer's progress information, and the 6 image plant number blocks 32 are independent of each other' the target disk 3 The disk data is recorded by the disk data block 32 and the target disk 31 to record the Z., also referred to as the disk partition. _. The disk partition (chsk and the current data block after the download is not the end step) _, S_S17. Until all the images = 11 201222297 are loaded to the corresponding disk data block 32. The download method of the image slot described in 'τ' is to divide the image file and the target disk into the same size. Independent data blocks to avoid the dependence of the data on each other i. The image download method and the target magnetic shot, transfer progress information to record the progress of the download', and then achieve the function of breakpoint retransmission. In this way, the target metering machine does not have to repeat the previously downloaded data, but greatly reduces the resources such as the downloaded bandwidth and improves the download efficiency. And the progress information is maintained in the _ ^ ~ set m Wei ' * can be sure that the two images gamma - method ^ also avoid the human error caused by the human error, and ensure the download The correctness of the data and the detailed description of the preferred embodiment above are intended to be the essence of the present invention. Conversely, the purpose is to hope that = two::: within the scope of the patent scope of the invention to be applied for. 1 is a sound map of an image of an embodiment. Figure 2 is a sound map of the target disk of the embodiment. The third picture is the implementation of the peak of the reward [main components view Lang] the next shirt slave flow chart 20 22 image file head disk data block cable y information 24 201222297 26, 26a, 26b, 26c image file block 28 tail 30 target computer 31 target disk 32, 32a, 32b, 32c disk data block 40 image file server 13