Disk
2023-01-09
磁盘相关操作记录
UEFI引导
win11引导修复
!!! 重建引导前备份当前数据+引导分区:DiskGenius -> UEFI备份
!!! 可直接用DiskGenius新建ESP分区
步骤1. 使用Windows 10安装介质或Windows 10恢复磁盘启动计算机。在初始界面上,按“SHIFT+F10”进入命令提示。
步骤2. 运行以下命令以缩小未分配空间的分区:
diskpart
list disk
select disk # (选择需要创建EFI分区的磁盘)
list partition
select partition # (选择计划缩小的分区)
shrink desired=100 (将选定的分区缩小100MB)
步骤3. 运行以下命令以创建未分配空间的EFI系统分区:
create partition efi size=100
format quick fs=fat32
assign letter=S (您可以将“S”替换为尚未使用的其他字母)
exit
步骤4. 运行以下命令以将引导文件从Windows分区复制到EFI系统分区,并在其中创建BCD存储:
bcdboot C:\windows /s S: (“C”是系统分区字母,“S”是您分配给EFI分区的字母)
exit
步骤5. 重启计算机。
从可启动U盘启动电脑后,单击“修复计算机”,然后转到“疑难解答”>“高级选项”>“命令提示符”
diskpart (启动Diskpart工具)
list disk
select disk 0
list vol
select volume x (x是EFI所在分区的卷号,EFI分区一般是在系统盘上,且大小为一两百MB左右。)
assign letter=z (给这个分区分配一个盘符,以便修复它,删除用: remove letter=z)
cd z:\EFI\Microsoft\Boot\ (z是您分配给EFI卷的字母)
bootrec /fixboot (这个命令将重写 MBR。MBR 是位于硬盘驱动器开始处的一小段代码,它告诉计算机如何引导操作系统。)
ren BCD BCD.bak (这个命令将 BCD 文件重命名为 BCD.bak。BCD 文件包含有关计算机上安装的操作系统的信息。)
bcdboot C:\Windows /1 zh-cn /s z: /f ALL
C:\Windows (安装Windows系统的位置。)
/1 zh-cn (初始化BCD存储时使用的可选区域设置参数,默认为简体中文。)
/s z: (s 是Windows中的一个新BCDBoot选项,使用它来忽略旧的启动设置并创建一个干净的BCD配置,x 是您分配给EFI卷的字母。)
/f ALL (复制所有Windows启动文件。)
bootrec /rebuildbcd (重新创建引导记录。)
其他命令
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
Ubuntu下引导修改
将启动项的名称更改为“Ubuntu”:
efibootmgr -b 0 -l Ubuntu
将启动项的启动序列号更改为 1:
efibootmgr -b 0 -n 1
将启动项设置为默认启动项:
efibootmgr -b 0 -a
将启动项删除:
efibootmgr -b 0 -B
操作记录:
m11:grub $ efibootmgr -v
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 001B,0000,0017,0018,0019,001A,001C
Boot0000* ubuntu HD(1,GPT,ebea8f9d-ab2e-4a5b-8ae5-35a1c9242b24,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012 Diagnostic Splash Screen FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013 Lenovo Diagnostics FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0014 Startup Interrupt Menu FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0015 Rescue and Recovery FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0016 MEBx Hot Key FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
Boot0017* USB CD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0018* USB FDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0019* NVMe0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a400)
Boot001A* ATA HDD0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot001B* USB HDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot001C* PCI LAN VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot001D* IDER BOOT CDROM PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)
Boot001E* IDER BOOT Floppy PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,0,0)
Boot001F* ATA HDD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot0020* ATAPI CD VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
m11:grub $ efibootmgr -c -d /dev/nvme0n1p1 -L WIN11 -l '\EFI\Microsoft\Boot\bootmgfw.efi'
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0001,001B,0000,0017,0018,0019,001A,001C
Boot0000* ubuntu
Boot0010 Setup
Boot0011 Boot Menu
Boot0012 Diagnostic Splash Screen
Boot0013 Lenovo Diagnostics
Boot0014 Startup Interrupt Menu
Boot0015 Rescue and Recovery
Boot0016 MEBx Hot Key
Boot0017* USB CD
Boot0018* USB FDD
Boot0019* NVMe0
Boot001A* ATA HDD0
Boot001B* USB HDD
Boot001C* PCI LAN
Boot001D* IDER BOOT CDROM
Boot001E* IDER BOOT Floppy
Boot001F* ATA HDD
Boot0020* ATAPI CD
Boot0001* WIN11
Disk performance test
Comment: ZHITAI TiPlus7100 2TB 2048.4 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 7074.771 MB/s [ 6747.0 IOPS] < 1182.23 us>
SEQ 1MiB (Q= 1, T= 1): 5103.246 MB/s [ 4866.8 IOPS] < 205.21 us>
RND 4KiB (Q= 32, T= 1): 544.899 MB/s [ 133032.0 IOPS] < 232.89 us>
RND 4KiB (Q= 1, T= 1): 73.925 MB/s [ 18048.1 IOPS] < 55.27 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 6315.184 MB/s [ 6022.6 IOPS] < 1325.11 us>
SEQ 1MiB (Q= 1, T= 1): 4030.165 MB/s [ 3843.5 IOPS] < 259.81 us>
RND 4KiB (Q= 32, T= 1): 397.425 MB/s [ 97027.6 IOPS] < 321.30 us>
RND 4KiB (Q= 1, T= 1): 233.030 MB/s [ 56892.1 IOPS] < 17.47 us>
Profile: Default
Test: 1 GiB (x5) [C: 3% (59/1907GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/01/09 21:14:07
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: Lexar 1TB SSD 1024.2 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 3290.620 MB/s [ 3138.2 IOPS] < 2546.17 us>
SEQ 1MiB (Q= 1, T= 1): 1900.165 MB/s [ 1812.1 IOPS] < 551.39 us>
RND 4KiB (Q= 32, T= 1): 382.042 MB/s [ 93272.0 IOPS] < 332.12 us>
RND 4KiB (Q= 1, T= 1): 64.929 MB/s [ 15851.8 IOPS] < 62.85 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 2747.877 MB/s [ 2620.6 IOPS] < 3043.58 us>
SEQ 1MiB (Q= 1, T= 1): 1548.354 MB/s [ 1476.6 IOPS] < 675.51 us>
RND 4KiB (Q= 32, T= 1): 271.954 MB/s [ 66395.0 IOPS] < 465.13 us>
RND 4KiB (Q= 1, T= 1): 170.535 MB/s [ 41634.5 IOPS] < 23.70 us>
Profile: Default
Test: 1 GiB (x5) [K: 53% (507/954GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/01/09 9:47:45
OS: Windows 10 Professional [10.0 Build 19044] (x64)
Comment: HS-SSD-C2000Pro 1024G 1024.2 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 1567.423 MB/s [ 1494.8 IOPS] < 5342.18 us>
SEQ 1MiB (Q= 1, T= 1): 1422.209 MB/s [ 1356.3 IOPS] < 736.55 us>
RND 4KiB (Q= 32, T= 1): 292.200 MB/s [ 71337.9 IOPS] < 434.16 us>
RND 4KiB (Q= 1, T= 1): 53.489 MB/s [ 13058.8 IOPS] < 76.21 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 1382.319 MB/s [ 1318.3 IOPS] < 6051.23 us>
SEQ 1MiB (Q= 1, T= 1): 1206.170 MB/s [ 1150.3 IOPS] < 868.31 us>
RND 4KiB (Q= 32, T= 1): 167.677 MB/s [ 40936.8 IOPS] < 765.65 us>
RND 4KiB (Q= 1, T= 1): 102.938 MB/s [ 25131.3 IOPS] < 39.43 us>
Profile: Default
Test: 1 GiB (x5) [C: 60% (572/953GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/01/09 9:51:02
OS: Windows 10 Professional [10.0 Build 19044] (x64)
Comment: Netac NVMe SSD 960GB 960.1 GB [SSK]
[Read]
SEQ 1MiB (Q= 8, T= 1): 952.035 MB/s [ 907.9 IOPS] < 8788.49 us>
SEQ 1MiB (Q= 1, T= 1): 862.467 MB/s [ 822.5 IOPS] < 1215.13 us>
RND 4KiB (Q= 32, T= 1): 218.333 MB/s [ 53304.0 IOPS] < 581.26 us>
RND 4KiB (Q= 1, T= 1): 23.112 MB/s [ 5642.6 IOPS] < 176.95 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 938.131 MB/s [ 894.7 IOPS] < 8893.16 us>
SEQ 1MiB (Q= 1, T= 1): 850.689 MB/s [ 811.3 IOPS] < 1231.42 us>
RND 4KiB (Q= 32, T= 1): 207.605 MB/s [ 50684.8 IOPS] < 627.83 us>
RND 4KiB (Q= 1, T= 1): 50.755 MB/s [ 12391.4 IOPS] < 80.52 us>
Profile: Default
Test: 1 GiB (x5) [M: 1% (11/894GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/02/05 19:01:30
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: INTEL SSDSCKJB760G7 760.1 GB [SSK]
[Read]
SEQ 1MiB (Q= 8, T= 1): 390.105 MB/s [ 372.0 IOPS] < 21438.86 us>
SEQ 1MiB (Q= 1, T= 1): 265.454 MB/s [ 253.2 IOPS] < 3945.32 us>
RND 4KiB (Q= 32, T= 1): 197.658 MB/s [ 48256.3 IOPS] < 658.55 us>
RND 4KiB (Q= 1, T= 1): 20.629 MB/s [ 5036.4 IOPS] < 198.29 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 285.016 MB/s [ 271.8 IOPS] < 29231.56 us>
SEQ 1MiB (Q= 1, T= 1): 283.085 MB/s [ 270.0 IOPS] < 3700.18 us>
RND 4KiB (Q= 32, T= 1): 132.301 MB/s [ 32300.0 IOPS] < 989.48 us>
RND 4KiB (Q= 1, T= 1): 41.772 MB/s [ 10198.2 IOPS] < 97.88 us>
Profile: Default
Test: 1 GiB (x5) [D: 0% (3/708GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/02/05 19:59:34
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: Micron_1100_MTFDDAV256TBN 256.0 GB [SSK]
[Read]
SEQ 1MiB (Q= 8, T= 1): 415.545 MB/s [ 396.3 IOPS] < 20129.90 us>
SEQ 1MiB (Q= 1, T= 1): 401.850 MB/s [ 383.2 IOPS] < 2607.90 us>
RND 4KiB (Q= 32, T= 1): 33.070 MB/s [ 8073.7 IOPS] < 3960.82 us>
RND 4KiB (Q= 1, T= 1): 19.143 MB/s [ 4673.6 IOPS] < 213.69 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 503.536 MB/s [ 480.2 IOPS] < 16575.48 us>
SEQ 1MiB (Q= 1, T= 1): 489.137 MB/s [ 466.5 IOPS] < 2137.93 us>
RND 4KiB (Q= 32, T= 1): 181.600 MB/s [ 44335.9 IOPS] < 698.55 us>
RND 4KiB (Q= 1, T= 1): 48.419 MB/s [ 11821.0 IOPS] < 84.39 us>
Profile: Default
Test: 1 GiB (x5) [D: 1% (3/238GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/02/05 19:18:30
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: SAMSUNG MZVPV512HDGL-00000 512.1 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 1678.598 MB/s [ 1600.8 IOPS] < 4985.10 us>
SEQ 1MiB (Q= 1, T= 1): 1459.918 MB/s [ 1392.3 IOPS] < 717.75 us>
RND 4KiB (Q= 32, T= 1): 390.632 MB/s [ 95369.1 IOPS] < 324.81 us>
RND 4KiB (Q= 1, T= 1): 48.572 MB/s [ 11858.4 IOPS] < 84.09 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 1548.698 MB/s [ 1477.0 IOPS] < 5397.38 us>
SEQ 1MiB (Q= 1, T= 1): 1358.863 MB/s [ 1295.9 IOPS] < 770.86 us>
RND 4KiB (Q= 32, T= 1): 246.529 MB/s [ 60187.7 IOPS] < 514.68 us>
RND 4KiB (Q= 1, T= 1): 120.408 MB/s [ 29396.5 IOPS] < 33.79 us>
Profile: Default
Test: 1 GiB (x5) [I: 85% (405/477GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/01/09 10:04:20
OS: Windows 10 Professional [10.0 Build 19044] (x64)
Comment: KIOXIA-EXCERIA SATA SSD 240.0 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 537.915 MB/s [ 513.0 IOPS] < 15559.99 us>
SEQ 1MiB (Q= 1, T= 1): 466.979 MB/s [ 445.3 IOPS] < 2236.88 us>
RND 4KiB (Q= 32, T= 1): 282.889 MB/s [ 69064.7 IOPS] < 457.26 us>
RND 4KiB (Q= 1, T= 1): 29.662 MB/s [ 7241.7 IOPS] < 137.82 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 399.945 MB/s [ 381.4 IOPS] < 20717.97 us>
SEQ 1MiB (Q= 1, T= 1): 299.783 MB/s [ 285.9 IOPS] < 3493.34 us>
RND 4KiB (Q= 32, T= 1): 102.418 MB/s [ 25004.4 IOPS] < 1276.29 us>
RND 4KiB (Q= 1, T= 1): 29.222 MB/s [ 7134.3 IOPS] < 139.78 us>
Profile: Default
Test: 1 GiB (x5) [C: 81% (181/223GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/01/09 10:25:45
OS: Windows 10 Professional [10.0 Build 19044] (x64)
Comment: SK hynix SC311 SATA 128GB 128.0 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 381.080 MB/s [ 363.4 IOPS] < 21944.45 us>
SEQ 1MiB (Q= 1, T= 1): 367.261 MB/s [ 350.2 IOPS] < 2853.05 us>
RND 4KiB (Q= 32, T= 1): 173.939 MB/s [ 42465.6 IOPS] < 751.69 us>
RND 4KiB (Q= 1, T= 1): 23.098 MB/s [ 5639.2 IOPS] < 177.12 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 257.909 MB/s [ 246.0 IOPS] < 32266.53 us>
SEQ 1MiB (Q= 1, T= 1): 268.141 MB/s [ 255.7 IOPS] < 3906.01 us>
RND 4KiB (Q= 32, T= 1): 172.150 MB/s [ 42028.8 IOPS] < 760.81 us>
RND 4KiB (Q= 1, T= 1): 41.373 MB/s [ 10100.8 IOPS] < 98.80 us>
Profile: Default
Test: 1 GiB (x5) [D: 0% (0/119GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/11/22 21:56:41
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: SAMSUNG MZVLW512HMJP-000L7 512.1 GB
[Read]
SEQ 1MiB (Q= 8, T= 1): 3061.941 MB/s [ 2920.1 IOPS] < 2586.33 us>
SEQ 1MiB (Q= 1, T= 1): 1323.722 MB/s [ 1262.4 IOPS] < 789.17 us>
RND 4KiB (Q= 32, T= 1): 72.632 MB/s [ 17732.4 IOPS] < 1745.30 us>
RND 4KiB (Q= 1, T= 1): 23.910 MB/s [ 5837.4 IOPS] < 169.72 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 1444.404 MB/s [ 1377.5 IOPS] < 5694.41 us>
SEQ 1MiB (Q= 1, T= 1): 1358.620 MB/s [ 1295.7 IOPS] < 767.69 us>
RND 4KiB (Q= 32, T= 1): 45.227 MB/s [ 11041.7 IOPS] < 2789.90 us>
RND 4KiB (Q= 1, T= 1): 34.143 MB/s [ 8335.7 IOPS] < 117.26 us>
Profile: Default
Test: 1 GiB (x5) [C: 9% (32/359GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/11/23 14:40:26
OS: Windows 11 Professional [10.0 Build 22621] (x64)
type-a
[Read]
SEQ 1MiB (Q= 8, T= 1): 1013.322 MB/s [ 966.4 IOPS] < 8259.79 us>
SEQ 1MiB (Q= 1, T= 1): 932.296 MB/s [ 889.1 IOPS] < 1124.05 us>
RND 4KiB (Q= 32, T= 1): 213.728 MB/s [ 52179.7 IOPS] < 593.66 us>
RND 4KiB (Q= 1, T= 1): 26.725 MB/s [ 6524.7 IOPS] < 153.01 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 1009.464 MB/s [ 962.7 IOPS] < 8268.69 us>
SEQ 1MiB (Q= 1, T= 1): 914.455 MB/s [ 872.1 IOPS] < 1145.54 us>
RND 4KiB (Q= 32, T= 1): 197.240 MB/s [ 48154.3 IOPS] < 643.32 us>
RND 4KiB (Q= 1, T= 1): 58.951 MB/s [ 14392.3 IOPS] < 69.27 us>
Profile: Default
Test: 1 GiB (x5) [F: 9% (33/359GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/11/25 17:19:47
OS: Windows 11 Professional [10.0 Build 22621] (x64)
Comment: KBG30ZMT128G TOSHIBA 127.9 GB
type-a
[Read]
SEQ 1MiB (Q= 8, T= 1): 405.258 MB/s [ 386.5 IOPS] < 20625.75 us>
SEQ 1MiB (Q= 1, T= 1): 370.549 MB/s [ 353.4 IOPS] < 2827.84 us>
RND 4KiB (Q= 32, T= 1): 165.301 MB/s [ 40356.7 IOPS] < 791.12 us>
RND 4KiB (Q= 1, T= 1): 24.558 MB/s [ 5995.6 IOPS] < 166.60 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 290.309 MB/s [ 276.9 IOPS] < 28431.08 us>
SEQ 1MiB (Q= 1, T= 1): 301.254 MB/s [ 287.3 IOPS] < 3475.43 us>
RND 4KiB (Q= 32, T= 1): 148.227 MB/s [ 36188.2 IOPS] < 883.48 us>
RND 4KiB (Q= 1, T= 1): 39.503 MB/s [ 9644.3 IOPS] < 103.49 us>
Profile: Default
Test: 1 GiB (x5) [D: 0% (0/119GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/11/24 22:03:49
OS: Windows 11 Professional [10.0 Build 22621] (x64)
type-c
[Read]
SEQ 1MiB (Q= 8, T= 1): 991.007 MB/s [ 945.1 IOPS] < 8450.34 us>
SEQ 1MiB (Q= 1, T= 1): 827.520 MB/s [ 789.2 IOPS] < 1266.53 us>
RND 4KiB (Q= 32, T= 1): 215.015 MB/s [ 52493.9 IOPS] < 590.19 us>
RND 4KiB (Q= 1, T= 1): 28.660 MB/s [ 6997.1 IOPS] < 142.69 us>
[Write]
SEQ 1MiB (Q= 8, T= 1): 660.584 MB/s [ 630.0 IOPS] < 12652.05 us>
SEQ 1MiB (Q= 1, T= 1): 659.701 MB/s [ 629.1 IOPS] < 1587.23 us>
RND 4KiB (Q= 32, T= 1): 173.981 MB/s [ 42475.8 IOPS] < 752.57 us>
RND 4KiB (Q= 1, T= 1): 53.544 MB/s [ 13072.3 IOPS] < 76.27 us>
Profile: Default
Test: 1 GiB (x5) [D: 0% (0/119GiB)]
Mode: [Admin]
Time: Measure 5 sec / Interval 5 sec
Date: 2023/11/24 22:31:02
OS: Windows 11 Professional [10.0 Build 22621] (x64)