重建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.
-
Open Windows Powershell or the command line as administrator:
Start
→Right clickPowershell
→Run as administrator
-
Open diskpart:
diskpart
-
Identify the EFI partition showing up in Explorer:
list volume
-
Select the EFI partition (replacing the
X
with the correct drive letter):
select volume X
-
Remove the EFI partition's drive letter (replacing the
X
with the correct drive letter):
remove letter=X
-
Exit diskpart:
exit
-
Open regedit:
Start
→Typeregedit
-
Find the right key/folder:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
-
If the EFI partitions drive letter is still in the registry, delete the value:
e.g.\DosDevices\X:
-
Close RegEdit and reboot.
另外,重建引導指令為
>bcdboot "C:\Windows" /s Z: /f UEFI /l zh-tw
#重建指向C槽的UEFI開機磁區
附帶參數說明:
/s:指定要建立開機檔案的磁區,這範例我們用Z槽
/f:韌體類型,此範例固定用UEFI
/l:指定BCD的存放區的地區參數,此範例用的 zh-tw 是指台灣(正體中文)
留言列表