Pin*_*ino 18 ssd hard-drive partitioning uefi windows-8
我在硬盘上安装了 Windows 8,使用 UEFI 作为引导。HDD 具有以下 GPT 表:
DISKPART> list partition
Partizione ### Tipo Dim. Offset
--------------- ---------------- ------- -------
Partizione 1 Ripristino 300 Mb 1024 Kb
Partizione 2 Sistema 100 Mb 301 Mb
Partizione 3 Riservato 128 Mb 401 Mb
Partizione 4 Primario 390 Gb 529 Mb
Partizione 5 Primario 540 Gb 390 Gb
Run Code Online (Sandbox Code Playgroud)
(我很抱歉它是意大利语,但翻译很简单)。
我最近买了一个 SSD 驱动器,连接它并安装了一个新的 Windows 8。现在我有一个工作双引导,但 UEFI 分区在 HDD 上而不是 SSD 上。这是SSD分区列表:
Partizione ### Tipo Dim. Offset
--------------- ---------------- ------- -------
Partizione 1 Riservato 128 Mb 1024 Kb
Partizione 2 Primario 221 Gb 129 Mb
Run Code Online (Sandbox Code Playgroud)
我认为最好的解决方案是将它放在 SSD 上,原因有两个:
首先是性能(我想由于 HDD 的启动时间,SSD 会快一点,但我可能错了。)
第二个原因是一致性。由于我计划仅使用位于 SSD 上的 Windows 8 安装并且我可能会擦除 HDD 上的系统分区以将其用作数据存储设备,因此我认为启动分区应该在相同的位置驱动器作为操作系统。
所以问题是如何将 EFI 系统分区移动到 SSD?
Zen*_*xer 21
对于像我这样来自 Google 的人:是的,使用 Windows 可以做到这一点,而无需任何第三方工具。使用 Windows 10 专业版 x64 进行测试。我使用此过程移动 EFI 系统分区和系统保留分区。它也应该适用于 Windows 8。
如果您的主驱动器空间不足,首先您需要缩小 C: 分区(或等效分区)。我在本例中使用 260 MB,因为这是较新的驱动器所需要的,但具有较小扇区的旧驱动器仅需要 100 MB。如果您不需要腾出空间,请注意指示您应该跳过哪些步骤的注释。
在此过程中,您可能想要移动系统保留分区。这些通常为 1000 MB,存储有用的 Windows 元数据。您可能会发现某些 Windows 功能在没有系统保留分区的情况下无法使用。我已经包含了在主驱动器上创建这样一个分区的步骤,并用注释标记了这些步骤。如果您想跳过这些步骤,应该很容易排除这些步骤,但您需要在缩小时更改数字(例如,260 MB 而不是 1260 MB)。
注释以REM
(表示“备注”)为前缀,因为 cmd.exe 和 diskpart.exe 都支持这些注释。
从以管理员身份运行的 cmd.exe:
diskpart
list disk
REM Choose the appropriate disk number from the list. If you're unsure, you can open diskmgmt.msc; the numbers will be the same.
sel disk 0
list part
REM Perform the following only if you need to shrink a partition to make space for the EFI partition.
REM Choose the appropriate partition from the list. I used my C: partition.
sel part 2
shrink desired=260
REM End of shrinking operation.
REM Create a new EFI partition:
create part efi size=260
format quick fs=fat32
list vol
REM Find your newly created volume in the list. If it's not already selected (marked with an asterisk), select it now with "sel vol #".
REM You'll need to give the volume a drive letter for later:
assign
list vol
REM Note the drive letter that the volume has been given. Mine was F:, so I'll use that in the example.
REM Done creating new EFI partition.
REM Optionally create a new System Reserved partition:
create part msr size=1000
REM Done creating new System Reserved partition.
REM We're done with diskpart.exe:
exit
REM You should no longer see the DISKPART> prompt.
REM Note that you may need to change these drive letters, particularly F:. F: should match the volume you created previously.
bcdboot C:\Windows /s F: /f UEFI
REM We no longer need a drive letter for the EFI partition, so we should remove it:
diskpart
list disk
REM Change disk number appropriately.
sel disk 0
list vol
REM Change volume number appropriately.
sel vol 2
REM Remove drive letter assignment:
remove
REM Exit diskpart.exe:
exit
REM Exit cmd.exe:
exit
Run Code Online (Sandbox Code Playgroud)
是时候重新启动以确保一切正常。您可能需要更新 BIOS 引导顺序设置以匹配更改。就我而言,BIOS 设置已经正确,所以我陷入了重启循环;每次我想启动我的计算机时,我都必须手动选择带有错位 EFI 分区的旧驱动器。
如果一切正常,您就可以删除旧的 EFI 分区。如果它不起作用,或者您的 BIOS 仍然配置为从旧分区启动,Windows 不会让您删除它,即使您在 diskpart.exe 中使用覆盖标志。由于您可能无论如何都想摆脱旧分区,因此删除它是确保您从新分区启动的好方法。
diskpart
list disk
REM Change disk number appropriately.
sel disk 2
list part
REM You can repeat this next group of steps to delete as many "special" partitions as you like. I had 4 reserved partitions from an old OEM installation. Just make sure you don't delete your data! The "override" flag is only necessary for partitions that can't normally be deleted.
REM Change partition number appropriately.
sel part 1
del part override
REM When you're done, exit diskpart.exe:
exit
REM Exit cmd.exe:
exit
Run Code Online (Sandbox Code Playgroud)
我的建议是不要打扰。性能提升可以忽略不计,因为从 ESP 读取的文件很小,只有在计算机启动时才能读取。此外,按照现代标准,分区本身很小,因此您将无法恢复足够的空间来使这项工作变得有价值。此外,尝试移动 ESP 存在产生引导问题的风险,修复这些问题所需的时间比移动时可能节省的任何时间都多。
如果您不顾我的建议,仍想继续将其作为学习经验进行,则需要研究:
gdisk
,您将创建一个类型为 EF00 的分区,但随后您需要在其上创建一个 FAT 文件系统,因为它gdisk
是一个仅用于分区的工具(它不处理文件系统)。EFI\BOOT\bootx64.efi
可能是一个更简单的替代方法,但不是加载引导加载程序的首选方法。)Windowsbcdedit
命令和 EFI shell 的bcfg
工具都可以注册引导加载程序;然而,这bcdedit
是不灵活的,因为 Windows 只支持一个 ESP,这会在复制 ESP 时产生问题。 归档时间: |
|
查看次数: |
50751 次 |
最近记录: |