重建UEFI的開機引導,一直不斷的用到 diskpart去操作磁碟,不過不知道為什麼 remove letter=X 之後,重開機想隱藏的磁碟代號還是跑出來亂

 

終於有人提供解答如下,在此做個筆記

 

方法一

Apparently, it wasn't the EFI- but recovery-partition, which showed up due to a bug being present in the upgrade to v1803 of Windows 10.

Following simple line did hide it in an administrator command prompt: 

mountvol e: /d 

where e: is to be replaced by it designated drive letter. Disk Management didn't offer any such option due to the partition being essential for the system.

 

方法二

You have to delete the registry file with regedit for the volume you want to remove the drive letter.

  1. Open Windows Powershell or the command line as administrator:
    Start→Right click PowershellRun as administrator

  2. Open diskpart:
    diskpart

  3. Identify the EFI partition showing up in Explorer:
    list volume

  4. Select the EFI partition (replacing the X with the correct drive letter):
    select volume X

  5. Remove the EFI partition's drive letter (replacing the X with the correct drive letter):
    remove letter=X

  6. Exit diskpart:
    exit

  7. Open regedit:
    Start→Type regedit

  8. Find the right key/folder:
    Computer\HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

  9. If the EFI partitions drive letter is still in the registry, delete the value:
    e.g. \DosDevices\X:

  10. Close RegEdit and reboot.

 

另外,重建引導指令為

>bcdboot "C:\Windows" /s Z: /f UEFI /l zh-tw
#重建指向C槽的UEFI開機磁區



附帶參數說明:

/s:指定要建立開機檔案的磁區,這範例我們用Z槽

/f:韌體類型,此範例固定用UEFI

/l:指定BCD的存放區的地區參數,此範例用 zh-tw 是指台灣(正體中文)

    全站熱搜

    Mamason 發表在 痞客邦 留言(0) 人氣()