將掛接點資料夾路徑指派給磁碟機Assign a mount point folder path to a drive

適用於:Windows 10、Windows 8.1、Windows Server (半年度管道)、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012Applies To: Windows 10, Windows 8.1, Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

您可以使用 [磁碟管理] 將掛接點資料夾路徑 (而非磁碟機代號) 指派給磁碟機。You can use Disk Management to assign a mount point folder path (rather than a drive letter) to the drive. 掛接點資料夾路徑只能在基本或動態 NTFS 磁碟區上的空資料夾使用。Mount point folder paths are available only on empty folders on basic or dynamic NTFS volumes.

將掛接點資料夾路徑指派給磁碟機Assigning a mount point folder path to a drive

注意

您必須至少是備份操作員系統管理員群組的成員,才能完成這些步驟。You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.

若要使用 Windows 介面將掛接點資料夾路徑指派給磁碟機: To assign a mount point folder path to a drive by using the Windows interface:

  1. 在 [磁碟管理] 中,以滑鼠右鍵按一下您要指派掛接點資料夾路徑的磁碟分割或磁碟區。In Disk Manager, right-click the partition or volume where you want to assign the mount point folder path.
  2. 按一下 [變更磁碟機代號及路徑],然後按一下 [新增]Click Change Drive Letter and Paths and then click Add.
  3. 按一下[掛在下列空的 NTFS 資料夾上]Click Mount in the following empty NTFS folder.
  4. 輸入 NTFS 磁碟區的空資料夾路徑,或按一下 [瀏覽] 來尋找資料夾。Type the path to an empty folder on an NTFS volume, or click Browse to locate it.

若要使用命令列將掛接點資料夾路徑指派給磁碟機To assign a mount point folder path to a drive using a command line

  1. 開啟命令提示字元並輸入 diskpartOpen a command prompt and type diskpart.

  2. DISKPART 提示中輸入 list volume,並記下您要指派路徑的磁碟區編號。At the DISKPART prompt, type list volume, making note of the volume number you want to assign the path to.

  3. DISKPART 提示中輸入 select volume <volumenumber>At the DISKPART prompt, type select volume <volumenumber>.

  4. 選取您要指派路徑的簡單磁碟區 volumenumberSelect the simple volume volumenumber that you want to assign the path to.

  5. DISKPART 提示中輸入 assign [mount=<path>]At the DISKPART prompt, type assign [mount=<path>].

若要移除磁碟機的掛接點資料夾路徑To remove a mount point folder path to a drive

  • 若要掛接點資料夾路徑,請按一下路徑,再按一下 [移除]To remove the mount point folder path, click it and then click Remove.


Value 描述Description

list volumelist volume

顯示所有磁碟上的基本和動態磁碟區。Displays a list of basic and dynamic volumes on all disks.

select volumeselect volume

選取指定的磁碟區 (其中 volumenumber 是磁碟區編號),並讓它成為焦點。Selects the specified volume, where volumenumber is the volume number, and gives it focus. 如果沒有指定磁碟區,select 會命令列出焦點所在的目前磁碟區。If no volume is specified, the select command lists the current volume with focus. 您可以用編號、磁碟機代號或掛接點資料夾路徑來指定磁碟區。You can specify the volume by number, drive letter, or mount point folder path. 在基本磁碟上,選取磁碟區也會讓對應的磁碟分割成為焦點。On a basic disk, selecting a volume also gives the corresponding partition focus.

assignassign

  • 將磁碟機代號或掛接點資料夾路徑指派給焦點所在的磁碟區。Assigns a drive letter or mount point folder path to the volume with focus. 如果沒有指定磁碟機代號或掛接點資料夾路徑,則指派下一個可用的磁碟機代號。If no drive letter or mount point folder path is specified, then the next available drive letter is assigned. 如果磁碟機代號或掛接點資料夾路徑已在使用中,就會產生錯誤。If the drive letter or mount point folder path is already in use, an error is generated.
  • 您可以使用 assign 命令,變更與抽取式磁碟機關聯的磁碟機代號。Using the assign command, you can change the drive letter associated with a removable drive.
  • 您無法將磁碟機代號指派給開機磁碟區或包含分頁檔的磁碟區。You cannot assign drive letters to boot volumes, or volumes that contain the paging file. 此外,您也無法將磁碟機代號指派給原始設備製造商 (OEM) 磁碟分割、EFI 系統磁碟分割,或基本資料磁碟分割以外的任何 GPT 磁碟分割。In addition, you cannot assign a drive letter to an Original Equipment Manufacturer (OEM) partition, EFI system partition, or any GPT partition other than a basic data partition.

mount= pathmount= path

指定掛接磁碟位置所在空的現有 NTFS 資料夾。Specifies an empty, existing NTFS folder where the mounted drive will reside.

其他考量Additional considerations

  • 如果您正在管理本機或遠端電腦,您可以瀏覽該電腦上的 NTFS 資料夾。If you are administering a local or remote computer, you can browse NTFS folders on that computer.
  • 掛接點資料夾路徑只能在基本或動態 NTFS 磁碟區上的空資料夾使用。Mount point folder paths are available only on empty folders on basic or dynamic NTFS volumes.
  • 若要修改掛接點資料夾路徑,請先將該路徑移除,然後再使用新的位置建立新的資料夾路徑。To modify a mount point folder path, remove it, and then create a new folder path using the new location. 您無法直接修改掛接點資料夾路徑。You cannot modify the mount point folder path directly.
  • 指派掛接點資料夾路徑給磁碟機時,請使用 [事件檢視器],檢查系統記錄檔是否有任何指出掛接點資料夾路徑失敗的叢集服務錯誤或警告。When assigning a mount point folder path to a drive, use Event Viewer to check the system log for any Cluster service errors or warnings indicating mount point folder path failures. 這些錯誤會在 [來源] 欄中列為 [ClusSvc],並在 [類別] 欄中列為 [實體磁碟資源]These errors would be listed as ClusSvc in the Source column and Physical Disk Resource in the Category column.
  • 您也可以使用 mountvol 命令建立掛接磁碟。You can also create a mounted drive using the mountvol command.

請參閱See also