[go: up one dir, main page]

TWI810651B - Drive letter binding system and method thereof - Google Patents

Drive letter binding system and method thereof Download PDF

Info

Publication number
TWI810651B
TWI810651B TW110133996A TW110133996A TWI810651B TW I810651 B TWI810651 B TW I810651B TW 110133996 A TW110133996 A TW 110133996A TW 110133996 A TW110133996 A TW 110133996A TW I810651 B TWI810651 B TW I810651B
Authority
TW
Taiwan
Prior art keywords
hard disk
binding
module
drive letter
drive
Prior art date
Application number
TW110133996A
Other languages
Chinese (zh)
Other versions
TW202312147A (en
Inventor
趙衛國
Original Assignee
英業達股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW110133996A priority Critical patent/TWI810651B/en
Publication of TW202312147A publication Critical patent/TW202312147A/en
Application granted granted Critical
Publication of TWI810651B publication Critical patent/TWI810651B/en

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Basic Packing Technique (AREA)

Abstract

A drive letter binding system is disclosed in the present invention. The drive letter binding system includes an acquiring module, a binding module, and a conduction module. The acquiring module is utilized to acquire a plurality of hard drives and a plurality of drive letters. The binding module is utilized to bind each hard drive to each drive letters by ID path of each hard drive. The conduction module is utilized to make an operating system identify each drive letter of each hard drive when any hard drive reconnects to a host or the operating system reboots. A drive letter binding method is also disclosed in the present invention.

Description

盤符綁定系統及其方法Disk letter binding system and method

本發明係有關於一種系統及其方法,尤其是指一種盤符綁定系統及其方法。The present invention relates to a system and its method, in particular to a drive letter binding system and its method.

一般來說,硬碟電性連接至主機時,主機的作業系統識別硬碟,並產生對應硬碟的盤符。請參閱第一圖,第一圖係顯示先前技術之作業系統識別硬碟之流程圖。先前技術的識別方法包含步驟S901至S903。Generally speaking, when the hard disk is electrically connected to the host, the operating system of the host recognizes the hard disk and generates a drive letter corresponding to the hard disk. Please refer to the first figure, the first figure is a flow chart showing the operating system identifying the hard disk in the prior art. The recognition method in the prior art includes steps S901 to S903.

步驟S901:將硬碟電性連接至主機。步驟S902:利用主機之作業系統識別硬碟。步驟S903:在識別出硬碟後,利用作業系統產生對應的盤符。當複數個硬碟電性連接至主機時,作業系統產生盤符的順序是按照識別出硬碟的順序,而不是依照硬碟電性連接到主機的順序。Step S901: Electrically connect the hard disk to the host. Step S902: Use the operating system of the host computer to identify the hard disk. Step S903: After the hard disk is identified, use the operating system to generate a corresponding drive letter. When multiple hard disks are electrically connected to the host, the order in which the operating system generates drive letters is based on the order in which the hard disks are recognized, rather than the order in which the hard disks are electrically connected to the host.

可參閱下列表一與表二,其中,表一為硬碟電性連接至主機的順序,表二為作業系統產生的盤符。 HDD0 HDD3 HDD6 HDD9 HDD1 HDD4 HDD7 HDD10 HDD2 HDD5 HDD8 HDD11 表一 sda sde sdg Sdk sdc sdf sdh Sdj sdb sdd sdi sdl 表二 Please refer to Table 1 and Table 2 below, wherein Table 1 shows the order in which the hard disks are electrically connected to the host, and Table 2 shows the drive letter generated by the operating system. HDD0 HDD3 HDD6 HDD9 HDD1 HDD4 HDD7 HDD10 HDD2 HDD5 HDD8 HDD11 Table I sda sde sdg SDKs sdc sdf sdh Sdj sdb sdd sdi sdl Table II

作業系統優先識別出最先電性連接的硬碟HDD0,因此產生出對應的盤符sda。雖然硬碟HDD1比硬碟HDD2早電性連接至主機,但是作業系統先識別出硬碟HDD2後才識別出硬碟HDD1,因此,會先產生出對應硬碟HDD2的盤符sdb,接著才會產生出對應硬碟HDD1的盤符sdc。The operating system preferentially recognizes the hard disk HDD0 that is electrically connected first, and thus generates the corresponding drive letter sda. Although the hard disk HDD1 is electrically connected to the host computer earlier than the hard disk HDD2, the operating system recognizes the hard disk HDD2 before recognizing the hard disk HDD1. Therefore, the drive letter sdb corresponding to the hard disk HDD2 will be generated first, and then Generate the drive letter sdc corresponding to the hard disk HDD1.

然而,上述情形有可能發生盤符飄移的情形,對於應用層的程序或是應用程式來說,存在極大的不確定性。舉例來說,在作業系統重啟後或是硬碟重新電性連接後,作業系統仍然優先識別出硬碟HDD0,因此產生出對應的盤符sda。接著,作業系統卻識別出硬碟HDD1後才識別出硬碟HDD2,因此,作業系統便會先產生出對應硬碟HDD1的盤符sdb,隨後才會產生出對應硬碟HDD2的盤符sdc。此時的盤符發生變化,導致本次的對應分配與前次的對應分配的硬碟不同,進而使得前次儲存的檔案或資訊也隨之無效。因此,先前技術存在改善的空間。However, in the above situation, the drive letter drift may occur, and there is great uncertainty for the program or application program of the application layer. For example, after the operating system is restarted or the hard disk is electrically connected again, the operating system still recognizes the hard disk HDD0 first, and thus generates the corresponding drive letter sda. Then, the operating system recognizes the hard disk HDD2 after recognizing the hard disk HDD1. Therefore, the operating system first generates the drive letter sdb corresponding to the hard disk HDD1, and then generates the drive letter sdc corresponding to the hard disk HDD2. At this time, the drive letter changes, resulting in the corresponding allocation of this time being different from the hard disk of the previous corresponding allocation, which in turn makes the previously stored files or information invalid. Therefore, there is room for improvement in the prior art.

有鑒於在先前技術中,利用識別出硬碟的順序而產生對應的盤符造成的盤符飄移問題及其衍生出的儲存檔案與資訊無效等問題。本發明之一主要目的係提供一種盤符綁定系統,用以解決先前技術中的至少一個問題。In view of the problem of drive letter drift caused by identifying the order of the hard disk to generate the corresponding drive letter in the prior art, and the derived problems such as invalid storage files and information. One of the main objectives of the present invention is to provide a drive letter binding system to solve at least one problem in the prior art.

本發明為解決先前技術之問題,所採用之必要技術手段為提供一種盤符綁定系統,係用以將複數個硬碟綁定於該些硬碟所對應之複數個盤符,並包含一讀取模組、一綁定模組與一執行模組。讀取模組用以在一主機之一作業系統識別出該些硬碟與該些硬碟所對應之該些盤符後,讀取該些盤符與該些硬碟所各自對應之複數個硬碟識別路徑。綁定模組電性連接該讀取模組,利用每一硬碟之硬碟識別路徑將每一硬碟綁定於所對應之盤符,並產生一綁定資訊。執行模組電性連接該綁定模組,用以在產生綁定資訊後,當任一硬碟重新電性連接至該主機或是該作業系統重新啟動時,利用該綁定資訊使該作業系統依據上述硬碟之硬碟識別路徑識別出上述硬碟所綁定之盤符。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to provide a drive letter binding system, which is used to bind a plurality of hard disks to a plurality of drive letters corresponding to the hard disks, and includes a A reading module, a binding module and an executing module. The reading module is used to read the drive letters corresponding to the hard disks after an operating system of a host computer recognizes the hard disks and the drive letters corresponding to the hard disks. Hard disk identification path. The binding module is electrically connected to the reading module, uses the hard disk identification path of each hard disk to bind each hard disk to the corresponding drive letter, and generates a binding information. The execution module is electrically connected to the binding module, so as to use the binding information to enable the operation when any hard disk is electrically connected to the host again or the operating system is restarted after the binding information is generated. The system recognizes the drive letter bound to the above-mentioned hard disk according to the hard disk identification path of the above-mentioned hard disk.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定系統中之綁定模組係包含一識別單元,該識別單元係用以識別每一該些硬碟識別路徑之一關鍵字。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the binding module in the drive letter binding system include an identification unit, which is used to identify each of these hard disks One of the keywords identifying the path.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定系統中之綁定模組係包含一分類單元,該分類單元係用以依據該關鍵字將每一該些硬碟識別路徑分類至複數個類別。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the binding module in the drive letter binding system include a classification unit, which is used to classify each The hard disk identification paths are classified into a plurality of categories.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定系統中之綁定模組係包含一排序單元,該排序單元係用以將每一類別中之硬碟識別路徑進行排序,藉以產生該綁定資訊。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the binding module in the drive letter binding system include a sorting unit, which is used to sort hard The disc identification paths are sorted to generate the binding information.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定系統,更包含一儲存模組,該儲存模組係電性連接該綁定模組,用以儲存該綁定資訊。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is to make the drive letter binding system further include a storage module, which is electrically connected to the binding module for storing The binding information.

本發明為解決先前技術之問題,所採用之必要技術手段為另外提供一種盤符綁定方法,利用上述之盤符綁定系統加以實施,並包含以下步驟:利用該讀取模組讀取該些盤符與該些硬碟所各自對應之該些硬碟識別路徑;使該綁定模組利用每一硬碟之硬碟識別路徑將每一硬碟綁定於所對應之盤符,並產生該綁定資訊;利用該執行模組,用以在產生綁定資訊後,當任一硬碟重新電性連接至該主機或是該作業系統重新啟動時,利用該綁定資訊使該作業系統依據上述硬碟之硬碟識別路徑識別出上述硬碟所綁定之盤符。In order to solve the problems of the prior art, the necessary technical means adopted by the present invention is to additionally provide a disk letter binding method, which is implemented by using the above-mentioned disk letter binding system, and includes the following steps: using the reading module to read the These hard disk identification paths corresponding to these drive letters and these hard disks; make the binding module use the hard disk identification path of each hard disk to bind each hard disk to the corresponding drive letter, and Generate the binding information; use the execution module to use the binding information to enable the operation when any hard disk is electrically connected to the host computer or the operating system is restarted after the binding information is generated The system recognizes the drive letter bound to the above-mentioned hard disk according to the hard disk identification path of the above-mentioned hard disk.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定方法中之步驟,更包含以下步驟:利用該綁定模組之一識別單元識別每一該些硬碟識別路徑之該關鍵字。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is the step in the method of binding the drive letter, which further includes the following steps: using one of the identification units of the binding module to identify each of the hard drives The keyword of the disc identification path.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定方法中之步驟,更包含以下步驟:利用該綁定模組之一分類單元依據該關鍵字將每一該些硬碟識別路徑分類至複數個類別。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is the step in the method of binding the drive letter, which further includes the following steps: using one of the classification units of the binding module to bind each The hard disk identification paths are classified into a plurality of categories.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定方法中之步驟,更包含以下步驟:利用該綁定模組之一排序單元將每一類別中之硬碟識別路徑進行排序,藉以產生該綁定資訊。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is the steps in the method of binding drive letters, which further includes the following steps: using a sorting unit of the binding module to sort the drive letters in each category The hard disk identification paths are sorted to generate the binding information.

在上述必要技術手段的基礎下,本發明所衍生之一附屬技術手段為使盤符綁定方法,更包含以下步驟:利用一儲存模組儲存該綁定資訊。On the basis of the above-mentioned necessary technical means, an auxiliary technical means derived from the present invention is a method for binding drive letters, which further includes the following steps: using a storage module to store the binding information.

承上所述,本發明所提供之盤符綁定系統及其方法,利用讀取模組、綁定模組與執行模組,將硬碟綁定於所對應的盤符,相較於先前技術,本發明利用讀取模組讀取硬碟識別路徑,並使綁定模組利用硬碟識別路徑將硬碟識別路徑將硬碟綁定於所對應的盤符,並據以產生綁定資訊,最後利用執行模組,使得任一硬碟重新電性連接至主機或是作業系統重新啟動時,利用綁定資訊使作業系統依據硬碟識別路徑識別出硬碟所對應的盤符,藉此解決先前技術中盤符飄移的問題,也進一步避免盤符飄移所衍生出的先前儲存檔案與資訊無效的問題。Based on the above, the drive letter binding system and method provided by the present invention use the reading module, the binding module and the execution module to bind the hard disk to the corresponding drive letter. technology, the present invention uses the reading module to read the hard disk identification path, and makes the binding module use the hard disk identification path to bind the hard disk identification path to the corresponding drive letter, and accordingly generate the binding Finally, use the execution module to make any hard disk electrically connected to the host again or when the operating system restarts, use the binding information to make the operating system recognize the drive letter corresponding to the hard disk according to the hard disk identification path, and borrow This solves the problem of drive letter drift in the prior art, and further avoids the problem of invalid previously stored files and information derived from drive letter drift.

下面將結合示意圖對本發明的具體實施方式進行更詳細的描述。根據下列描述和申請專利範圍,本發明的優點和特徵將更清楚。需說明的是,圖式均採用非常簡化的形式且均使用非精準的比例,僅用以方便、明晰地輔助說明本發明實施例的目的。The specific implementation manner of the present invention will be described in more detail below with reference to schematic diagrams. The advantages and features of the present invention will be more clear from the following description and claims. It should be noted that all the drawings are in very simplified form and use imprecise scales, which are only used to facilitate and clearly assist the purpose of illustrating the embodiments of the present invention.

請參閱第二圖與第三圖,其中,第二圖係顯示本發明較佳實施例所提供之盤符綁定系統之方塊圖;以及,第三圖係顯示本發明較佳實施例所提供之盤符綁定系統之使用狀態示意圖。如圖所示,一種盤符綁定系統1係電性連接一主機2之一作業系統21,並包含一讀取模組11、一綁定模組12與一執行模組13。複數個硬碟H1、H2、H3(圖式繪製三者示意)電性連接至主機2。Please refer to the second figure and the third figure, wherein, the second figure shows the block diagram of the drive letter binding system provided by the preferred embodiment of the present invention; and, the third figure shows the block diagram provided by the preferred embodiment of the present invention Schematic diagram of the use status of the drive letter binding system. As shown in the figure, a drive letter binding system 1 is electrically connected to an operating system 21 of a host 2 and includes a reading module 11 , a binding module 12 and an execution module 13 . A plurality of hard disks H1 , H2 , H3 (the three are shown in the diagram) are electrically connected to the host 2 .

作業系統21會在識別出硬碟H1、H2、H3後,產生對應的盤符,例如硬碟H1對應的盤符為sda,硬碟H2對應的盤符為sdb,硬碟H3對應的盤符為sdc。The operating system 21 will generate corresponding drive letters after recognizing the hard disks H1, H2, and H3. For example, the corresponding drive letter of the hard disk H1 is sda, the corresponding drive letter of the hard disk H2 is sdb, and the corresponding drive letter of the hard disk H3 for sdc.

可參閱下列表三與表四,其中,表三為硬碟電性連接至主機的順序,表四為作業系統產生的盤符。 硬碟H1 硬碟H2 硬碟H3 表三 sda sdb sdc 表四 Please refer to Table 3 and Table 4 below, wherein Table 3 is the sequence of electrical connection of the hard disk to the host, and Table 4 is the drive letter generated by the operating system. HDD H1 HDD H2 HDD H3 Table three sda sdb sdc Table four

讀取模組11用以在作業系統21識別出硬碟H1、H2、H3並產生盤符後,讀取盤符以及硬碟H1、H2、H3所各自對應的複數個硬碟識別路徑。硬碟識別路徑(ID_PATH)為一種環境變量(environment variable),在作業系統21內為不會重複的標識,可以用於區分不同的設備(硬碟)。因此,不管是作業系統21重新啟動、硬碟重新插拔或是更換硬碟,都不會有所影響。The reading module 11 is used for reading the drive letters and the plurality of hard disk identification paths corresponding to the hard disks H1 , H2 , H3 after the operating system 21 recognizes the hard disks H1 , H2 , H3 and generates drive letters. The hard disk identification path (ID_PATH) is an environment variable (environment variable), which is a non-repeatable identifier in the operating system 21 and can be used to distinguish different devices (hard disks). Therefore, no matter whether the operating system 21 is restarted, the hard disk is re-plugged or the hard disk is replaced, it will not be affected.

綁定模組12電性連接讀取模組11,係利用每個硬碟H1、H2、H3的硬碟識別路徑,將每個硬碟H1、H2、H3綁定於所對應的盤符,並產生一綁定資訊。The binding module 12 is electrically connected to the reading module 11, and binds each hard disk H1, H2, H3 to the corresponding drive letter by using the hard disk identification path of each hard disk H1, H2, H3, And generate binding information.

在本實施例中,綁定模組12更包含一識別單元121、一分類單元122與一排序單元123。In this embodiment, the binding module 12 further includes an identification unit 121 , a classification unit 122 and a sorting unit 123 .

識別單元121會識別硬碟H1、H2、H3的硬碟識別路徑,並在硬碟識別路徑識別出特定關鍵字。硬碟識別路徑會因為硬碟H1、H2、H3電性連接主機2的位置不同而有所不同。在本實施例中,電性連接至平台路徑控制器(Platform Controller Hub;PCH)與中央處理單元(Central Processing Unit;CPU)的硬碟的硬碟識別路徑包含的關鍵字為「ata」;電性連接至磁碟陣列(Redundant Arrays of Inexpensive Disks;RAID)或其擴充卡(RAID + Expander)的硬碟的硬碟識別路徑包含的關鍵字為「scsi」;電性連接至主機匯流排適配器(Host Bus Adapter;HBA)的硬碟的硬碟識別路徑包含的關鍵字為「sas-0x」;電性連接至主機匯流排適配器的擴充卡(HBA + Expander)的硬碟的硬碟識別路徑包含的關鍵字為「sas-exp」。The identification unit 121 identifies the hard disk identification paths of the hard disks H1, H2, H3, and identifies specific keywords in the hard disk identification paths. The hard disk identification path will be different due to the different positions where the hard disks H1, H2, and H3 are electrically connected to the host 2. In this embodiment, the hard disk identification path of the hard disk electrically connected to the platform path controller (Platform Controller Hub; PCH) and the central processing unit (Central Processing Unit; CPU) contains the keyword "ata"; The hard disk identification path of the hard disk connected to the disk array (Redundant Arrays of Inexpensive Disks; RAID) or its expansion card (RAID + Expander) contains the keyword "scsi"; electrically connected to the host bus adapter ( The hard disk identification path of the hard disk of the Host Bus Adapter (HBA) contains the keyword "sas-0x"; the hard disk identification path of the hard disk of the expansion card (HBA + Expander) electrically connected to the host bus adapter contains The keyword for is "sas-exp".

分類單元122則是依據特定關鍵字將對應的硬碟識別路徑分類至特定類別。舉例來說,當識別單元121識別出硬碟H1的硬碟識別路徑中包含關鍵字「ata」,便會將硬碟H1分類至第一類別,也就是電性連接至平台路徑控制器與中央處理單元的硬碟;當識別單元121識別出硬碟識別路徑中包含關鍵字「scsi」,便會分類至第二類別,也就是電性連接至磁碟陣列或其擴充卡的硬碟;以此類推,關鍵字「sas-0x」為第三類別,關鍵字「sas-exp」為第四類別。The classification unit 122 classifies the corresponding hard disk identification path into a specific category according to a specific keyword. For example, when the recognition unit 121 recognizes that the hard disk identification path of the hard disk H1 contains the keyword "ata", it will classify the hard disk H1 into the first category, that is, it is electrically connected to the platform path controller and the central The hard disk of the processing unit; when the identification unit 121 recognizes that the keyword "scsi" is included in the hard disk identification path, it will be classified into the second category, that is, the hard disk electrically connected to the disk array or its expansion card; By analogy, the keyword "sas-0x" is the third category, and the keyword "sas-exp" is the fourth category.

排序單元123則會將每個類別內的硬碟識別路徑按順序排列。舉例來說,硬碟H2的硬碟識別路徑為「sas-exp0x-phy2」,硬碟H3的硬碟識別路徑為「sas-exp0x-phy1」,排序單元123便會排序如下表五所示。 排序 硬碟 硬碟識別路徑 盤符 1 H3 sas-exp0x-phy1 sdc 2 H2 sas-exp0x-phy2 sdb 表五 The sorting unit 123 sorts the hard disk identification paths in each category in order. For example, the hard disk identification path of the hard disk H2 is "sas-exp0x-phy2", and the hard disk identification path of the hard disk H3 is "sas-exp0x-phy1", the sorting unit 123 will sort as shown in Table 5 below. to sort hard drive Hard disk identification path drive letter 1 H3 sas-exp0x-phy1 sdc 2 H2 sas-exp0x-phy2 sdb Table five

此時,綁定模組12便完成了綁定資訊,可參閱以下表六。 排序 硬碟 硬碟識別路徑 盤符 第一類別 1 H1 ata-1 sda 第二類別 第三類別 第四類別 1 H3 sas-exp0x-phy1 sdc 2 H2 sas-exp0x-phy2 sdb 表六 At this point, the binding information has been completed by the binding module 12, as shown in Table 6 below. to sort hard drive Hard disk identification path drive letter first category 1 H1 ata-1 sda second category third category fourth category 1 H3 sas-exp0x-phy1 sdc 2 H2 sas-exp0x-phy2 sdb Table six

表六為綁定資訊的示意表格,按照前述的說明,應可明白綁定模組12的實施方式。雖然表六示意並沒有舉例第二類別與第三類別的硬碟,但是按照前述的說明,應可得知識別出第二類別與第三類別的硬碟時,表六會如何產生相對應的綁定資訊。Table 6 is a schematic table of binding information. According to the foregoing description, the implementation of the binding module 12 should be understood. Although Table 6 does not give an example of hard disks of the second category and the third category, according to the above description, it should be known how Table 6 will generate corresponding results when the second and third categories of hard disks are identified. Binding information.

執行模組13電性連接綁定模組12與作業系統21,用以在綁定模組12產生綁定資訊後,當任一硬碟H1、H2、H3重新電性連接至主機或是作業系統21重新啟動時,利用綁定資訊,使作業系統21依據硬碟H1、H2、H3的硬碟識別路徑識別出硬碟H1、H2、H3所綁定的盤符。The execution module 13 is electrically connected to the binding module 12 and the operating system 21. After the binding information is generated by the binding module 12, when any hard disk H1, H2, H3 is electrically connected to the host or operating system again When the system 21 is restarted, the binding information is used to enable the operating system 21 to identify the drive letters bound to the hard disks H1, H2, H3 according to the hard disk identification paths of the hard disks H1, H2, H3.

在本實施例中,盤符綁定系統1更包含一儲存模組14。儲存模組14電性連接綁定模組12,用以儲存綁定資訊。In this embodiment, the drive letter binding system 1 further includes a storage module 14 . The storage module 14 is electrically connected to the binding module 12 for storing binding information.

因此,盤符綁定系統1便將硬碟H1、H2、H3綁定於硬碟H1、H2、H3所對應的盤符,即便任一硬碟H1、H2、H3重新電性連接至主機2或是作業系統21重新啟動,都不會發生如先前技術中的盤符飄移的問題,更可以避免先前技術所衍生出的儲存檔案與資訊無效的問題。Therefore, the drive letter binding system 1 binds the hard disks H1, H2, and H3 to the corresponding drive letters of the hard disks H1, H2, and H3, even if any of the hard disks H1, H2, and H3 are electrically connected to the host computer 2 again. Or if the operating system 21 is restarted, the problem of drive letter drifting in the prior art will not occur, and the problem of invalid storage files and information derived from the prior art can be avoided.

接著,請一併參閱第二圖至第四圖,其中,第四圖係顯示本發明較佳實施例所提供之盤符綁定方法之流程圖。如圖所示,一種盤符綁定方法利用盤符綁定系統1加以實施,並包含步驟S101至S107。Next, please refer to the second figure to the fourth figure together, wherein the fourth figure is a flow chart showing the drive letter binding method provided by the preferred embodiment of the present invention. As shown in the figure, a drive letter binding method is implemented by a drive letter binding system 1, and includes steps S101 to S107.

步驟S101;將硬碟電性連接至主機。Step S101 ; electrically connect the hard disk to the host.

步驟S102;利用主機之作業系統識別硬碟。Step S102: Use the operating system of the host computer to identify the hard disk.

步驟S103;在識別出硬碟後,利用作業系統產生對應的盤符。Step S103: After the hard disk is recognized, use the operating system to generate a corresponding drive letter.

步驟S101至S103與先前技術中的步驟S901至S903相同,故不多加贅述。Steps S101 to S103 are the same as steps S901 to S903 in the prior art, so details are not repeated here.

步驟S104;利用讀取模組讀取盤符與硬碟所各自對應之硬碟識別路徑。Step S104: Use the reading module to read the identification path of the hard disk corresponding to the drive letter and the hard disk.

讀取模組11用以在作業系統21識別出硬碟H1、H2、H3並產生盤符後,讀取盤符以及硬碟H1、H2、H3所各自對應的複數個硬碟識別路徑。The reading module 11 is used for reading the drive letters and the plurality of hard disk identification paths corresponding to the hard disks H1 , H2 , H3 after the operating system 21 recognizes the hard disks H1 , H2 , H3 and generates drive letters.

步驟S105;使綁定模組利用硬碟識別路徑將硬碟綁定於所對應的盤符。Step S105: Make the binding module bind the hard disk to the corresponding drive letter by using the hard disk identification path.

綁定模組12利用每個硬碟H1、H2、H3的硬碟識別路徑,將每個硬碟H1、H2、H3綁定於所對應的盤符。The binding module 12 uses the hard disk identification path of each hard disk H1, H2, H3 to bind each hard disk H1, H2, H3 to the corresponding drive letter.

步驟S106;利用綁定模組產生綁定資訊。Step S106: Use the binding module to generate binding information.

在步驟S106中,綁定模組12更可以包含識別單元121、分類單元122與排序單元123。In step S106 , the binding module 12 may further include an identification unit 121 , a classification unit 122 and a sorting unit 123 .

識別單元121會識別硬碟H1、H2、H3的硬碟識別路徑,並在硬碟識別路徑識別出特定關鍵字。分類單元122則是依據特定關鍵字將對應的硬碟識別路徑分類至特定類別。排序單元123則會將每個類別內的硬碟識別路徑按順序排列。綁定模組12因此而產生綁定資訊。The identification unit 121 identifies the hard disk identification paths of the hard disks H1, H2, H3, and identifies specific keywords in the hard disk identification paths. The classification unit 122 classifies the corresponding hard disk identification path into a specific category according to a specific keyword. The sorting unit 123 sorts the hard disk identification paths in each category in sequence. The binding module 12 thus generates binding information.

步驟S107;在硬碟重新電性連接至主機或作業系統重新啟動時,使執行模組利用綁定資訊,使作業系統依據硬碟之硬碟識別路徑,識別出硬碟所綁定的盤符。Step S107: When the hard disk is electrically connected to the host again or the operating system is restarted, the execution module uses the binding information to enable the operating system to identify the drive letter bound to the hard disk according to the hard disk identification path of the hard disk .

執行模組13電性連接綁定模組12與作業系統21,用以在綁定模組12產生綁定資訊後,當任一硬碟H1、H2、H3重新電性連接至主機或是作業系統21重新啟動時,利用綁定資訊,使作業系統21依據硬碟H1、H2、H3的硬碟識別路徑識別出硬碟H1、H2、H3所綁定的盤符。The execution module 13 is electrically connected to the binding module 12 and the operating system 21. After the binding information is generated by the binding module 12, when any hard disk H1, H2, H3 is electrically connected to the host or operating system again When the system 21 is restarted, the binding information is used to enable the operating system 21 to identify the drive letters bound to the hard disks H1, H2, H3 according to the hard disk identification paths of the hard disks H1, H2, H3.

綜上所述,本發明所提供之盤符綁定系統及其方法,利用讀取模組、綁定模組與執行模組,將硬碟綁定於所對應的盤符,相較於先前技術,本發明利用讀取模組讀取硬碟識別路徑,並使綁定模組利用硬碟識別路徑將硬碟識別路徑將硬碟綁定於所對應的盤符,並據以產生綁定資訊,最後利用執行模組,使得任一硬碟重新電性連接至主機或是作業系統重新啟動時,利用綁定資訊使作業系統依據硬碟識別路徑識別出硬碟所對應的盤符,藉此解決先前技術中盤符飄移的問題,也進一步避免盤符飄移所衍生出的先前儲存檔案與資訊無效的問題。To sum up, the drive letter binding system and method provided by the present invention use the reading module, the binding module and the execution module to bind the hard disk to the corresponding drive letter. technology, the present invention uses the reading module to read the hard disk identification path, and makes the binding module use the hard disk identification path to bind the hard disk identification path to the corresponding drive letter, and accordingly generate the binding Finally, use the execution module to make any hard disk electrically connected to the host again or when the operating system restarts, use the binding information to make the operating system recognize the drive letter corresponding to the hard disk according to the hard disk identification path, and borrow This solves the problem of drive letter drift in the prior art, and further avoids the problem of invalid previously stored files and information derived from drive letter drift.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the above detailed description of the preferred embodiments, it is hoped that the characteristics and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various changes and equivalent arrangements within the scope of the claimed patent scope of the present invention.

1:盤符綁定系統 11:讀取模組 12:綁定模組 121:識別單元 122:分類單元 123:排序單元 13:執行模組 14:儲存模組 2:主機 21:作業系統 H1,H2,H3:硬碟 S101~S107,S901~S903:步驟 1: drive letter binding system 11: Read module 12: Binding module 121: Identification unit 122: Taxa 123: sorting unit 13: Execute the module 14: Storage module 2: Host 21: Operating system H1, H2, H3: hard disk S101~S107, S901~S903: steps

第一圖係顯示先前技術之作業系統識別硬碟之流程圖; 第二圖係顯示本發明較佳實施例所提供之盤符綁定系統之方塊圖; 第三圖係顯示本發明較佳實施例所提供之盤符綁定系統之使用狀態示意圖;以及 第四圖係顯示本發明較佳實施例所提供之盤符綁定方法之流程圖。 The first figure shows the flow chart of identifying the hard disk by the operating system of the prior art; The second figure is a block diagram showing the drive letter binding system provided by the preferred embodiment of the present invention; The third figure is a schematic diagram showing the use state of the drive letter binding system provided by the preferred embodiment of the present invention; and The fourth figure is a flow chart showing the drive letter binding method provided by the preferred embodiment of the present invention.

1:盤符綁定系統 1: drive letter binding system

11:讀取模組 11: Read module

12:綁定模組 12: Binding module

121:識別單元 121: Identification unit

122:分類單元 122: Taxa

123:排序單元 123: sorting unit

13:執行模組 13: Execute the module

14:儲存模組 14: Storage module

2:主機 2: Host

21:作業系統 21: Operating system

H1,H2,H3:硬碟 H1, H2, H3: hard disk

Claims (10)

一種盤符綁定系統,係用以將複數個硬碟綁定於該些硬碟所對應之複數個盤符,並包含: 一讀取模組,係用以在一主機之一作業系統識別出該些硬碟與該些硬碟所對應之該些盤符後,讀取該些盤符與該些硬碟所各自對應之複數個硬碟識別路徑; 一綁定模組,係電性連接該讀取模組,利用每一硬碟之硬碟識別路徑將每一硬碟綁定於所對應之盤符,並產生一綁定資訊;以及 一執行模組,係電性連接該綁定模組,用以在產生該綁定資訊後,當任一硬碟重新電性連接至該主機或是該作業系統重新啟動時,利用該綁定資訊使該作業系統依據上述硬碟之硬碟識別路徑識別出上述硬碟所綁定之盤符。 A drive letter binding system is used to bind multiple hard disks to multiple drive letters corresponding to the hard disks, and includes: A reading module is used to read the drive letters corresponding to the hard disks after an operating system of a host computer recognizes the hard disks and the drive letters corresponding to the hard disks A plurality of hard disk identification paths; A binding module, which is electrically connected to the reading module, uses the hard disk identification path of each hard disk to bind each hard disk to the corresponding drive letter, and generates a binding information; and An execution module, electrically connected to the binding module, used for utilizing the binding when any hard disk is electrically connected to the host again or the operating system is restarted after the binding information is generated The information enables the operating system to identify the drive letter bound to the above-mentioned hard disk according to the hard disk identification path of the above-mentioned hard disk. 如請求項1所述之盤符綁定系統,其中,該綁定模組係包含一識別單元,該識別單元係用以識別每一該些硬碟識別路徑之一關鍵字。The drive letter binding system as described in Claim 1, wherein the binding module includes an identification unit, and the identification unit is used to identify a keyword for each of the hard disk identification paths. 如請求項2所述之盤符綁定系統,其中,該綁定模組係包含一分類單元,該分類單元係用以依據該關鍵字將每一該些硬碟識別路徑分類至複數個類別。The drive letter binding system as described in claim 2, wherein the binding module includes a classification unit, and the classification unit is used to classify each of the hard disk identification paths into a plurality of categories according to the keyword . 如請求項3所述之盤符綁定系統,其中,該綁定模組係包含一排序單元,該排序單元係用以將每一類別中之硬碟識別路徑進行排序,藉以產生該綁定資訊。The drive letter binding system as described in claim 3, wherein the binding module includes a sorting unit, the sorting unit is used to sort the hard disk identification paths in each category, so as to generate the binding Information. 如請求項1所述之盤符綁定系統,更包含一儲存模組,該儲存模組係電性連接該綁定模組,用以儲存該綁定資訊。The drive letter binding system described in claim 1 further includes a storage module electrically connected to the binding module for storing the binding information. 一種盤符綁定方法,係利用如請求項1所述之盤符綁定系統加以實施,並包含以下步驟: (a) 利用該讀取模組讀取該些盤符與該些硬碟所各自對應之該些硬碟識別路徑; (b) 使該綁定模組利用每一硬碟之硬碟識別路徑將每一硬碟綁定於所對應之盤符,並產生該綁定資訊; (c) 利用該執行模組,用以在產生該綁定資訊後,當任一硬碟重新電性連接至該主機或是該作業系統重新啟動時,利用該綁定資訊使該作業系統依據上述硬碟之硬碟識別路徑識別出上述硬碟所綁定之盤符。 A drive letter binding method is implemented using the drive letter binding system described in claim 1, and includes the following steps: (a) Use the reading module to read the hard disk identification paths corresponding to the drive letters and the hard disks; (b) Make the binding module use the hard disk identification path of each hard disk to bind each hard disk to the corresponding drive letter, and generate the binding information; (c) use the execution module to use the binding information to make the operating system according to The hard disk identification path of the above-mentioned hard disk identifies the drive letter bound to the above-mentioned hard disk. 如請求項6所述之盤符綁定方法,在該步驟(b)更包含以下步驟: (b1) 利用該綁定模組之一識別單元識別每一該些硬碟識別路徑之該關鍵字。 The drive letter binding method described in claim item 6 further includes the following steps in this step (b): (b1) Identify the keyword of each of the hard disk identification paths by using an identification unit of the binding module. 如請求項7所述之盤符綁定方法,在該步驟(b)更包含以下步驟: (b2) 利用該綁定模組之一分類單元依據該關鍵字將每一該些硬碟識別路徑分類至複數個類別。 As the drive letter binding method described in claim item 7, the step (b) further includes the following steps: (b2) using a classification unit of the binding module to classify each of the hard disk identification paths into a plurality of categories according to the keyword. 如請求項8所述之盤符綁定方法,在該步驟(b)更包含以下步驟: (b3) 利用該綁定模組之一排序單元將每一類別中之硬碟識別路徑進行排序,藉以產生該綁定資訊。 The drive letter binding method described in claim item 8 further includes the following steps in this step (b): (b3) Using a sorting unit of the binding module to sort the hard disk identification paths in each category, so as to generate the binding information. 如請求項6所述之盤符綁定方法,更包含以下步驟: (d) 利用一儲存模組儲存該綁定資訊。 The drive letter binding method described in claim 6 further includes the following steps: (d) storing the binding information by using a storage module.
TW110133996A 2021-09-13 2021-09-13 Drive letter binding system and method thereof TWI810651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110133996A TWI810651B (en) 2021-09-13 2021-09-13 Drive letter binding system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110133996A TWI810651B (en) 2021-09-13 2021-09-13 Drive letter binding system and method thereof

Publications (2)

Publication Number Publication Date
TW202312147A TW202312147A (en) 2023-03-16
TWI810651B true TWI810651B (en) 2023-08-01

Family

ID=86690610

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110133996A TWI810651B (en) 2021-09-13 2021-09-13 Drive letter binding system and method thereof

Country Status (1)

Country Link
TW (1) TWI810651B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9218381B2 (en) * 2010-03-26 2015-12-22 Nokia Technologies Oy Method and apparatus for portable index on a removable storage medium
CN105589690A (en) * 2015-12-11 2016-05-18 浪潮电子信息产业股份有限公司 A method of binding hard disk mounting sequence under Linux system
CN108681468A (en) * 2018-05-21 2018-10-19 郑州云海信息技术有限公司 A kind of linux system disk unit binding method, device and server
CN108845762A (en) * 2018-05-29 2018-11-20 郑州云海信息技术有限公司 Disk drive bleach-out process and device when a kind of solution hot plug
CN110442307A (en) * 2019-06-29 2019-11-12 苏州浪潮智能科技有限公司 Binding method, equipment and the storage medium of disk in a kind of linux system
CN111143267A (en) * 2019-12-31 2020-05-12 郑州信大捷安信息技术股份有限公司 Hot plug method and system based on Linux system disk

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9218381B2 (en) * 2010-03-26 2015-12-22 Nokia Technologies Oy Method and apparatus for portable index on a removable storage medium
CN105589690A (en) * 2015-12-11 2016-05-18 浪潮电子信息产业股份有限公司 A method of binding hard disk mounting sequence under Linux system
CN108681468A (en) * 2018-05-21 2018-10-19 郑州云海信息技术有限公司 A kind of linux system disk unit binding method, device and server
CN108845762A (en) * 2018-05-29 2018-11-20 郑州云海信息技术有限公司 Disk drive bleach-out process and device when a kind of solution hot plug
CN110442307A (en) * 2019-06-29 2019-11-12 苏州浪潮智能科技有限公司 Binding method, equipment and the storage medium of disk in a kind of linux system
CN111143267A (en) * 2019-12-31 2020-05-12 郑州信大捷安信息技术股份有限公司 Hot plug method and system based on Linux system disk

Also Published As

Publication number Publication date
TW202312147A (en) 2023-03-16

Similar Documents

Publication Publication Date Title
JP6422600B2 (en) Stripe mapping in memory
US10126988B1 (en) Assigning RAID extents and changing drive extent allocations within RAID extents when splitting a group of storage drives into partnership groups in a data storage system
US7809962B2 (en) Power management block for use in a non-volatile memory system
US6629273B1 (en) Detection of silent data corruption in a storage system
US8589726B2 (en) System and method for uncovering data errors
US20100293354A1 (en) Apparatus and method for minimizing data storage media fragmentation
US10346073B2 (en) Storage control apparatus for selecting member disks to construct new raid group
US9529674B2 (en) Storage device management of unrecoverable logical block addresses for RAID data regeneration
US20110246706A1 (en) Disk array configuration program, computer, and computer system
US8402118B2 (en) Intelligent LUN generation and management
CN101373446B (en) File system stress testing method
EP3244315B1 (en) Method and apparatus for performing data recovery in redundant storage system
US7613946B2 (en) Apparatus, system, and method for recovering a multivolume data set
CN100407123C (en) Data storage device, reconfiguration control device, reconfiguration control method
US8346721B2 (en) Apparatus and method to replicate remote virtual volumes to local physical volumes
WO2017143843A1 (en) Metadata recovery method and device
US20090319743A1 (en) Apparatus, system, and method for migrating wear spots
TWI810651B (en) Drive letter binding system and method thereof
CN102169419A (en) RAID (redundant array of independent disks) data block splitting and assembling method based on SATA (serial advanced technology attachment) controller
CN113868054A (en) Hard disk slot positioning method, system, equipment and medium for hard disk backboard
US8005798B2 (en) Method and apparatus for partial data set recovery
US20190227712A1 (en) Event-based dynamic memory allocation in a data storage device
US20120226669A1 (en) Merging a storage cluster into another storage cluster
US7434013B2 (en) Assigning disks during system recovery
KR102056284B1 (en) A method for identifying allocation area and non-allocation area, and for reconstituting image data to recover black box image data