201227299 六、發明說明: 【發明所屬之技術領威】 尤其關於—種合併U盤 [0001] 本發明涉及一種儲存系統及方法 儲存空間的系統及方法。 L无前技術] [0002] 隨著U盤的普及’很多用戶都掩有了多個。用戶在使 用這些U盤儲存楼案的時候,需要考慮各则盤的容量與 剩餘空間,根據播案的大小選用適合_盤來健存資料。 由於各細盤相射獨立’用戶使用起來很不方便。特別地 ,如果檔案比較大,超過了單個U盤的容量,則需要手動 分割檔案’將*割後的檔案拷貝到多細盤上,:恢復棺 案時再從多個U盤拷貝出檔案的各個部分進行組人上述 大槽案的拷貝需要專門的分割組合軟體,操作繁項對1 於普通用戶來說往往難以實現。 【發明内容】 [0003]鑒於以上内容,有必要提供一尨合併U盤儲存空間的系統 及方法’能夠將多個U盤合併爲―個大容量的u盤供用= 使用。 [0004] —種合併U盤儲存空間的系統,運行於USB集線器中 USB集線器與貧料處理設備相連接並且包括多個用; U盤的USB介面,該系統包括:掃描模組,用於掃插USB介 面,以偵測各個插入到USB介面的u盤;檢測模組,用於 檢測各個插入到USB介面的U盤的容量、包含的構案 、 餘空間;虛擬化模組,用於建立—個虛擬,該严擬u 盤的容量為所有插入到USB介面的U盤的容量之和 不口,並且 099145250 表單編號A0101 第4頁/共16頁 0992078029-0 201227299201227299 VI. Description of the Invention: [Technical Leadership of the Invention] Especially relates to a combined U disk [0001] The present invention relates to a system and method for storing a storage system and method. L no prior technology] [0002] With the popularity of U disk, many users have hidden more than one. When users use these U disk storage cases, they need to consider the capacity and remaining space of each disk. According to the size of the broadcast case, select the appropriate disk to store the data. Since each of the thin discs is independent of each other, it is inconvenient for the user to use it. In particular, if the file size is larger than the capacity of a single USB flash drive, you need to manually split the file 'copy the *cut file to the multiple disk, and copy the file from multiple U disk when restoring the file. The copying of the above-mentioned large-slot cases by the various parts requires a special split combination software, and the operation of the complicated items is often difficult to achieve for ordinary users. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide a system and method for merging U disk storage space' capable of merging multiple U disks into one large capacity u disk for use. [0004] A system for merging a U disk storage space, the USB hub running in the USB hub is connected to the poor processing device and includes a plurality of USB interfaces of the USB flash drive, the system includes: a scanning module for scanning Plug in the USB interface to detect each USB disk inserted into the USB interface; the detection module is used to detect the capacity, the included structure and the remaining space of each USB disk inserted into the USB interface; the virtualization module is used to establish - a virtual, the capacity of the strict u disk is the sum of the capacity of all the U disk inserted into the USB interface, and 099145250 Form No. A0101 Page 4 / Total 16 Page 0992078029-0 201227299
[0005][0005]
^所有插入到USB介面的u盤的播案;鏈接模組,用於 立虛擬U盤的各個槽案盤的鏈接關係;第—拷貝模 組用於當需要從資料處理設備拷貝棺案到虛擬U盤時, 根據各細_餘空間的大小《案從資料處理設備寫入 對應的ϋ盤’在虛擬ϋ盤上添加新拷貝的檔案並建立新拷 貝的«與U盤的鏈接關係;及第二拷貝模組,用於當需 '虛擬U盤拷貝檔案到資料處理設備時,根據標案與υ 盤的鏈接關係從對應_盤傳輪檔案到資料處理設備。 種。併ϋ盤儲存空間的方法,執行於USB集線器中該 ㈣集線n與資料_設備相連接並且包括多個用於連接 U盤的USB介面’該方法包括步驟·雜USB介面,以读测 各個插入到USB介面的u盤;檢測各個插入到㈣介面的^ 盤的奋量、包含的標案及剩餘空間;建立一個虛擬U盤, 該虛擬U盤的容量為所有插人到㈣介©的_的容量之和 ’並且包含所有插入到USB介面的U盤的標案;建立虛擬^ 盤的各個播案與u盤的鏈接關係;當需要從資料處理設備 拷貝播案到虛擬u盤時’根據各細盤剩餘空間的大小將 檔案從資料處理設備寫入對應的w,在虛擬隨上添加 新拷貝的檔案並建立新拷貝的擋案與1]盤的鏈接關係;當 需要從虛擬U盤拷貝檔案到資料處理設備時,根據檔案與 U盤的鏈接關係從對應的u盤傳輸檔案到資料處理設備。 [0006]本發明將多個U盤虛擬化為一個大容量的us (即虛擬耵盤 )’將用戶對各個u盤的操作簡化為對單個虛擬u盤的操 作,方便了用戶使用多個ϋ盤的儲存空間。 【實施方式】 099145250 表單編號Α0101 第5頁/共16頁 0992078029-0 201227299 [0007] 二閱圖1所示’係本發明合併U盤儲存空間的系統較佳實 ㈣境示意圖。所述合併u盤儲存空間的系統1〇 仃、咖集線心中。該USB集線器u與資料處理設備 人列如電腦)14相連接並且包括多個USB介面12,該_ Z12用於連卿13。運行所述合職儲存空間的系 0 ’用戶對各個11盤13的操作可簡化為對―個大容量U 盤的操作。 [0008] [0009] [0010] [0011] 2圖2所示,係圖1中合併咖存空間的系統的功能模 、。所述合併U盤儲存空顧編Q包括掃描模組_ 模組21G、虛擬化模組22G、鏈接模組23〇、第一 拷貝模組240及第二拷貝模組25〇。 所述掃描模組200用於掃描USB集線器介面12, 以偵測各個插入到USB介面12的1]盤〗3。 所述檢測模組210用於檢測各個插入到㈣介面12_盤 13的容量、包含的檔案及剩餘空間、 2述虛擬化模組220用於建立口個虛擬力盤,該虛擬11盤的 谷量為所有插入到USB介面12的U盤13的容量之和,並且 包含所有插入到USB介面12的U盤13的檔案。該虛擬1]盤 相當於將各個U盤13合併為一個大容量的u盤供用戶使用 [0012] 所述鏈接模組230用於建立虛擬u盤的各個檔案與1]盤13的 鏈接關係。根據該鏈接關係,可以確定虛擬1]盤的各個檔 案的實際位置,從而將對各個_13的操作簡化為對虛擬 U盤的操作。 099145250 表單編號A0101 第6頁/共16頁 0992078029-0 201227299 [0013] 所过第拷貝模組24〇用於 , 两要從貝科處理設備14拷貝 檔案到虛擬U盤時,根據各個_ 何 宰從:训盤13剩餘空間的大小將檔 茶從貝枓處理設備14寫入對庵 盤13,在虛擬ϋ盤上添 加新拷貝的檔案並建立新拷貝 0 ^ 、的棺案與U盤13的鏈接關係 案的大小大於任意—個U盤13的剩餘空間的大小, Ο ο [0014] 則將標案按照各個_13剩餘空_大小分縣多個部分 ’將分割的各個部分寫入對應的請U。此時,建立的新 1 貝的檔案與_3的鏈接關係指明了播㈣各個部分的 則後順序及實際位置。例如,假設職介面^上插有咖 盤13,第-個_3的剩餘空間勒_,第二細盤如 剩餘空間為1. 5G,第三個u盤伽剩餘空間為%,需要 拷貝-個4G的標案到Wl3 ’則第一拷貝模組24〇將該檔 案分割為三個部分,其大小分別為5晒、n.,將 500M的部分寫入第一個峨13,將h %的部分寫入第二 個ϋ盤13,將2G的部分寫入第三個11盤13,第一拷貝模組 24〇在虛擬U盤上添加該檔案並建立該檔案與[1盤13的鏈接 關係,以指明該檔案的各個部分的前後順序及實際位置 。若某一U盤13的剩餘空間的大小大於檔案的大小,則第 一拷貝模組240直接將檔案寫入該υ盤;[3。 所述第二拷貝模組250用於當需要從虛擬υ盤拷貝檔案到 資料處理設備14時’根據檔案與υ盤13的鏈接關係從對應 的U盤13傳輸檔案到資料處理設備丨4 ^若檔案由多個部分 組成並且分佈在多個U盤13上,則根據檔案與U盤13的鍵 接關係把檔案的各個部分按序從對應的U盤13傳輪到資料 處理設備14並進行組合,以恢復檔案。若稽案位於某一 099145250 表單編號Α0101 第7頁/共16頁 0992078029-0 201227299 [0015] [0016] [0017] [0018] [0019] [0020] [0021] 個U盤13上,則第二拷貝模組25〇從該uiw傳輸檔案到 資料處理設備14。 參閱圖3所不,係本發明合併[|盤儲存空間的方法較佳實 施例的流程圖。 步驟S301 ’掃描模組2〇〇掃描集線器__介面12 ’以積測各個插入到USB介面12的U盤13。 步驟S302,檢測模組21〇檢測各個插入到usb介面I?的廿 盤13的容量、包含的檔案及剩餘空間。 步驟S303,虛擬化模組22〇建立一個虛擬1}盤,該虛擬1] 盤的容量為所有插入到USB介面12爾13的容量之和, 並且包含所有插入到USB介面12的1]盤13的檔 案。該虛擬 U盤相田於將各個_13合併為一個大容量的u盤供用戶使 用。 步驟S304,鏈接模組230建立虛擬^盤的各個檔案與11盤 13的鏈接關係。根據該鏈_係,可以確定虛擬u盤的各 個檀案的實際位置,從而將對各柳盤13的操作簡化為對 虚擬U盤的操作。 乂驟咖5判斷是否需要從資料處理設備14拷貝棺案到 虛擬U盤或是從虛擬U盤拷貝稽案到資料處理設備14。 當需要從資料處理設備14拷貝檔案到虛擬1]盤時,夕驟 S306第拷貝模組240根據各個^盤丨3剩餘空間的大小 將播案從資料處理設備14寫人對應的,在虛擬_ 上添加新拷貝的檔案並建立新拷貝的播案與罐13的鍵接 099145250 表單編號A0101 第8頁/共16頁 0992078029Ό 201227299 關係。若檔案的大小大於任意—個1]盤13的剩餘空間的大 小,則將檔案按照各個剩餘空間的大小分割為多個 邓刀,將分割的各個部分寫入對應的11盤丨3。此時,建立 的新拷貝的檔案與u盤13的鏈接關係指明了檔案的各個部 刀的刖後順序及實際位置。例如,假設USB介面12上插有 3個U盤13,第一個u盤13的剩餘空間為5〇〇M,第二個^盤 13的剩餘空間為1. 5G,第三個1]盤13的剩餘空間為2G, 需要拷貝一個4G的檔案到u盤13,則第一拷貝模組24〇將 0 該播案分割為三個部分,其大小分別為5_、丨5(;與2(} ,將500M的部分寫入第一個11盤13,將%的部分寫入 第二個U盤13 ;將2G的部分寫八第三細盤13,第一拷貝 ㉟&240在虛擬U盤上添加該檔案並建立該檔案與㈣^的 鏈接關係’以指明職案的各個部分的前後順序及實際 位置。若某-U盤13的剩餘空間的大小大於標案的大小, 則第一拷貝模組240直接將檔案寫入該〇盤13。 _]<#需要從虛擬u盤拷貝播案到資料處理設備"時,步驟 0 S307,第二拷貝模組_根據稽案與U盤13的鏈接關係從 對應的U盤13傳輸檀案到資料處理設備14。若播案由多個 部分組成並且分佈在多細盤13上,則根據稽案__ 的鏈接關係把標案的各個部分按序從對應的喻^傳輪到 資料處理設備14並進行組合,以恢復檔案。若權案位^ 某一個U盤13上,則第二拷貝模組25〇從該_ 案到資料處理設備14。 輪# [0023] 099145250 綜上所述,本發_合糾糊要件,仏法 申請。惟,以上所述者僅為本發明之健實施例,本發 表單編號A0101 第9頁/共16頁 0992078029-0 201227299 明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申請專利範圍内。 【圖式簡單說明】 [0024] 圖1係本發明合併U盤儲存空間的系統較佳實施例的應用 環境示意圖。 [0025] 圖2係圖1中合併U盤儲存空間的系統的功能模組圖。 [0026] 圖3係本發明合併U盤儲存空間的方法較佳實施例的流程 圖。 【主要元件符號說明】 [0027] 合併U盤儲存空間的系統:1 0 [0028] USB集線器:11 [0029] USB介面:12 [0030] U盤:13 [0031] 資料處理設備:14 [0032] 掃描模組:200 [0033] 檢測模組:210 [0034] 虛擬化模組:220 [0035] 鏈接模組:230 [0036] 第一拷貝模組:240 [0037] 第二拷貝模組:250 099145250 表單編號A0101 第10頁/共16頁 0992078029-0^ All the broadcasts of the u disk inserted into the USB interface; the link module is used to establish the link relationship of each slot of the virtual U disk; the first copy module is used to copy the file from the data processing device to the virtual In the case of the U disk, according to the size of each thin space, the case is written from the data processing device to the corresponding disk to add a newly copied file on the virtual disk and establish a new copy of the link relationship with the U disk; The two-copy module is used to copy the file from the corresponding _ disk transfer file to the data processing device according to the link relationship between the standard file and the disk when the virtual U disk copy file is copied to the data processing device. Kind. And storing the space in the USB hub, the (four) hub n is connected to the data device and includes a plurality of USB interfaces for connecting the USB flash drive. The method includes a step and a USB interface to read each insertion. U disk to the USB interface; detect the amount of effort, included standard and remaining space of each disk inserted into the (four) interface; create a virtual U disk, the capacity of the virtual U disk is all inserted into (4) _ The sum of the capacities 'and contains all the U disk inserted into the USB interface; establish the virtual ^ disk's link between the various broadcasts and the u disk; when you need to copy the broadcast from the data processing device to the virtual u disk' The size of the remaining space of each thin disk writes the file from the data processing device to the corresponding w, adds the newly copied file in the virtual flop and establishes the link relationship between the new copy file and the 1] disk; when it needs to copy from the virtual U disk When the file is transferred to the data processing device, the file is transferred from the corresponding u disk to the data processing device according to the link relationship between the file and the USB flash drive. [0006] The present invention virtualizes multiple U-disks into one large-capacity us (ie, virtual disk). The user's operation on each of the USB disks is simplified to the operation of a single virtual disk, facilitating the user to use multiple devices. Storage space for the disc. [Embodiment] 099145250 Form No. Α 0101 Page 5 / Total 16 Page 0992078029-0 201227299 [0007] The second embodiment of the present invention is a better (four) schematic diagram of the system for merging the U disk storage space. The system for merging the u disk storage space is in the center of the 咖 咖 咖 咖. The USB hub u is connected to a data processing device such as a computer 14 and includes a plurality of USB interfaces 12 for the Lianqing 13. The operation of each of the 11 disks 13 by the user operating the shared storage space can be simplified to the operation of a large-capacity USB flash drive. [0010] [0011] 2 shown in FIG. 2, is a functional model of the system incorporating the coffee storage space in FIG. The combined U disk storage space Q includes a scanning module _ module 21G, a virtualization module 22G, a link module 23 〇, a first copy module 240, and a second copy module 25 。. The scanning module 200 is configured to scan the USB hub interface 12 to detect each of the disks 3 inserted into the USB interface 12. The detecting module 210 is configured to detect the capacity, the included file and the remaining space inserted into the (four) interface 12_disk 13, and the virtualization module 220 is used to establish a virtual power disk, and the valley of the virtual disk 11 The amount is the sum of the capacities of all the USB flash drives 13 inserted into the USB interface 12, and contains all the files of the USB flash drive 13 inserted into the USB interface 12. The virtual 1] disk is equivalent to merging the respective U disk 13 into one large capacity u disk for use by the user. [0012] The link module 230 is used to establish a link relationship between each file of the virtual u disk and the 1] disk 13. Based on the link relationship, the actual position of each file of the virtual disk 1 can be determined, thereby simplifying the operation of each_13 to the operation of the virtual USB disk. 099145250 Form No. A0101 Page 6 / Total 16 Page 0992078029-0 201227299 [0013] The first copy module 24〇 is used, and when two files are to be copied from the Becko processing device 14 to the virtual U disk, according to each _ From the size of the remaining space of the training disc 13, the tea is written from the bellow processing device 14 to the counter disc 13, the newly copied file is added on the virtual disc, and the new copy 0^, the file and the U disk 13 are created. The size of the link relationship case is larger than the size of the remaining space of any U disk 13, ο ο [0014] the standard is written according to each _13 remaining space _ size divided into multiple parts of the county 'the divided parts are written corresponding Please U. At this time, the link relationship between the newly created file and _3 indicates the subsequent order and actual position of each part of the broadcast (4). For example, suppose the job interface ^ is inserted with the coffee tray 13, the remaining space of the first _3 is _, the second thin disk, such as the remaining space is 1. 5G, the remaining space of the third u disk gamma is %, and needs to be copied - A 4G standard to Wl3' then the first copy module 24〇 splits the file into three parts, the size of which is 5, n., the part of 500M is written to the first 峨13, h % The portion is written to the second disk 13, and the portion of 2G is written to the third disk 13, the first copy module 24 is added to the virtual U disk and the file is created and the link to [1 disk 13 is established. Relationship to indicate the order and actual location of the various parts of the file. If the size of the remaining space of a U disk 13 is larger than the size of the file, the first copy module 240 directly writes the file to the disk; [3. The second copy module 250 is configured to transmit files from the corresponding U disk 13 to the data processing device according to the link relationship between the file and the disk 13 when the file needs to be copied from the virtual disk to the data processing device 14 The file is composed of a plurality of parts and distributed on the plurality of U disk 13, and the respective parts of the file are sequentially transferred from the corresponding U disk 13 to the data processing device 14 according to the key relationship of the file and the U disk 13 and combined. To restore the file. If the case is located at a certain 099145250, the form number Α 0101, page 7 / page 16 0992078029-0 201227299 [0015] [0016] [0019] [0020] [0021] on the U disk 13, then the first The two copy module 25 transfers the file from the uiw to the data processing device 14. Referring to Figure 3, there is shown a flow chart of a preferred embodiment of the method for incorporating [| disk storage space. Step S301, the scanning module 2 scans the hub__interface 12' to measure the respective U disk 13 inserted into the USB interface 12. In step S302, the detecting module 21 detects the capacity, the included file, and the remaining space of each of the disks 13 inserted into the usb interface I?. In step S303, the virtualization module 22 creates a virtual 1} disk having the capacity of all the capacities inserted into the USB interface 12 and including all the 1] disks 13 inserted into the USB interface 12. Archives. The virtual U disk is merged into a large capacity u disk for users to use. In step S304, the link module 230 establishes a link relationship between each file of the virtual disk and the 11 disks 13. According to the chain system, the actual positions of the individual tiles of the virtual u disk can be determined, thereby simplifying the operation of each bank 13 to the operation of the virtual disk. The step 5 determines whether it is necessary to copy the file from the data processing device 14 to the virtual U disk or copy the file from the virtual U disk to the data processing device 14. When it is necessary to copy the file from the data processing device 14 to the virtual disk, the copy module 240 records the broadcast file from the data processing device 14 according to the size of the remaining space of each disk, in the virtual_ Add a new copy of the file and create a new copy of the broadcast with the key of the can 13 099145250 Form No. A0101 Page 8 / Total 16 Page 0992078029 Ό 201227299 Relationship. If the size of the file is larger than the size of the remaining space of any one of the disks 13, the file is divided into a plurality of Deng knives according to the size of each remaining space, and the divided portions are written into the corresponding 11 丨3. At this time, the link relationship between the newly created file and the u disk 13 indicates the subsequent order and actual position of each part of the file. For example, assume that there are three U disk 13 on the USB interface 12, the remaining space of the first U disk 13 is 5〇〇M, and the remaining space of the second disk 13 is 1. 5G, the third 1] disk The remaining space of 13 is 2G, and a 4G file needs to be copied to the u disk 13, and the first copy module 24〇 divides the broadcast into three parts, the sizes of which are 5_, 丨5 (; and 2 ( }, write the 500M part to the first 11 disk 13, write the % part to the second U disk 13; write the 2G part to the eighth third disk 13, the first copy 35 & 240 in the virtual U disk Add the file and establish a link relationship between the file and (4)^ to indicate the order and actual position of each part of the job. If the size of the remaining space of a U disk 13 is larger than the size of the standard, the first copy The module 240 directly writes the file to the disk 13. _]<#requires copying the broadcast from the virtual u disk to the data processing device", step 0 S307, the second copy module _ according to the case and the U disk The link relationship of 13 transmits the Tan file from the corresponding U disk 13 to the data processing device 14. If the broadcast case is composed of a plurality of parts and distributed on the plurality of thin disks 13, The link relationship of __ sequentially transfers the various parts of the standard from the corresponding metaphor to the data processing device 14 and combines them to restore the file. If the right bit is on a U disk 13, the second copy module 25〇 From the _ case to the data processing device 14. Wheel # [0023] 099145250 In summary, the present invention is not intended to be applied, but the above is only the embodiment of the present invention, The publication number No. A0101 Page 9 of 16 0992078029-0 201227299 The scope of the invention is not limited to the above embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention should be covered. BRIEF DESCRIPTION OF THE DRAWINGS [0024] FIG. 1 is a schematic diagram of an application environment of a preferred embodiment of a system for merging a U disk storage space according to the present invention. [0025] FIG. 2 is a view showing a U disk storage space in FIG. FIG. 3 is a flow chart of a preferred embodiment of a method for merging a U disk storage space according to the present invention. [Description of Main Component Symbols] [0027] A system for merging U disk storage space: 10 [0028] USB Hub: 11 [0029] USB interface: 12 [0030] USB flash drive: 13 [0031] Data processing equipment: 14 [0032] Scanning module: 200 [0033] Detection module: 210 [0034] Virtualization module: 220 [0035] Link module : 230 [0036] First copy module: 240 [0037] Second copy module: 250 099145250 Form number A0101 Page 10 / Total 16 page 0992078029-0