一直使用的是windows版本ventoy,安装到了本地硬盘上。系统是vhd格式的win7,用diskpart创建了多个差异子vhd运行不同软件,通过ventoy进行引导。
最近进行了测试,发现在pe下升级是正常的,启动子vhd上的win7系统后运行ventoy进行升级就会出现之前描述的问题,也就是说ventoy升级时系统里不能有虚拟硬盘,不知道我的理解是否正确。
尝试的解决办法:用优启通PE启动ventoy升级后的电脑,此时可以直接看到EFI分区的内容,直接把文件复制下来替换到待升级电脑的efi分区上。开机时ventoy显示已是新版本且工作正常,硬盘上所有分区也正常。
再放上不同系统下ventoy升级的log文件吧,希望能对改进有所帮助
首先是PE系统下的
[2021/07/27 09:16:41.984]
################################ Ventoy2Disk 1.0.0.2 ################################
[2021/07/27 09:16:42.093] Control Flag: 0 1 1
[2021/07/27 09:16:42.093] Windows Version : Windows 10 64-bit (Build 10586)
[2021/07/27 09:16:42.093]
===================== Enum All PhyDrives =====================
[2021/07/27 09:16:42.093] RegOpenKeyExA <SYSTEM\CurrentControlSet\Services\disk\Enum> Ret:0
[2021/07/27 09:16:42.093] RegQueryValueExA <Count> ret:0 Size:4 Value:1
[2021/07/27 09:16:42.093] GetPhysicalDriveCount: 1
[2021/07/27 09:16:42.093] Logical Drives: 0x80000c
[2021/07/27 09:16:42.093] LogicalDrive:\\.\C: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:16:42.093] C --> 0
[2021/07/27 09:16:42.093] LogicalDrive:\\.\D: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:16:42.093] D --> 0
[2021/07/27 09:16:42.093] LogicalDrive:\\.\X: PhyDrive:-1 Offset:0 ExtentLength:971264
[2021/07/27 09:16:42.093] X --> -1
[2021/07/27 09:16:42.093] Create file Handle:000000E0 \\.\PhysicalDrive0 status:0
[2021/07/27 09:16:42.093] PHYSICALDRIVE0 size 1000204886016 bytes
[2021/07/27 09:16:42.093] PhyDrv:0 BusType:RAID Removable:0 Size:1024GB(1000204886016) Name: WDC WD10SPZX-22Z10T1
[2021/07/27 09:16:42.093] LogicalDrive:\\.\C: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:16:42.093] Logical Drive:C ===> PhyDrive:0
[2021/07/27 09:16:42.093] LogicalDrive:\\.\D: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:16:42.093] Logical Drive
===> PhyDrive:0
[2021/07/27 09:16:42.093] LogicalDrive:\\.\X: PhyDrive:-1 Offset:0 ExtentLength:971264
[2021/07/27 09:16:42.093] Logical Drive:X ===> PhyDrive:-1
[2021/07/27 09:16:42.093] Create file Handle:000000E0 \\.\PhysicalDrive0 status:0
[2021/07/27 09:16:42.125] Read MBR Ret:1 Size:512 code:183
[2021/07/27 09:16:42.125] =========== Partition Table 1 ============
[2021/07/27 09:16:42.125] PartTbl.Active = 0x80
[2021/07/27 09:16:42.125] PartTbl.FsFlag = 0x7
[2021/07/27 09:16:42.125] PartTbl.StartSectorId = 2048
[2021/07/27 09:16:42.125] PartTbl.SectorCount = 904881584
[2021/07/27 09:16:42.125] PartTbl.StartHead = 32
[2021/07/27 09:16:42.125] PartTbl.StartSector = 33
[2021/07/27 09:16:42.125] PartTbl.StartCylinder = 0
[2021/07/27 09:16:42.125] PartTbl.EndHead = 254
[2021/07/27 09:16:42.125] PartTbl.EndSector = 63
[2021/07/27 09:16:42.125] PartTbl.EndCylinder = 1023
[2021/07/27 09:16:42.125] =========== Partition Table 2 ============
[2021/07/27 09:16:42.125] PartTbl.Active = 0x0
[2021/07/27 09:16:42.125] PartTbl.FsFlag = 0xef
[2021/07/27 09:16:42.125] PartTbl.StartSectorId = 904883632
[2021/07/27 09:16:42.125] PartTbl.SectorCount = 65536
[2021/07/27 09:16:42.125] PartTbl.StartHead = 254
[2021/07/27 09:16:42.125] PartTbl.StartSector = 63
[2021/07/27 09:16:42.125] PartTbl.StartCylinder = 1023
[2021/07/27 09:16:42.125] PartTbl.EndHead = 254
[2021/07/27 09:16:42.125] PartTbl.EndSector = 63
[2021/07/27 09:16:42.125] PartTbl.EndCylinder = 1023
[2021/07/27 09:16:42.125] =========== Partition Table 3 ============
[2021/07/27 09:16:42.125] PartTbl.Active = 0x0
[2021/07/27 09:16:42.125] PartTbl.FsFlag = 0xf
[2021/07/27 09:16:42.125] PartTbl.StartSectorId = 904949760
[2021/07/27 09:16:42.125] PartTbl.SectorCount = 1048573952
[2021/07/27 09:16:42.125] PartTbl.StartHead = 254
[2021/07/27 09:16:42.125] PartTbl.StartSector = 63
[2021/07/27 09:16:42.125] PartTbl.StartCylinder = 1023
[2021/07/27 09:16:42.125] PartTbl.EndHead = 254
[2021/07/27 09:16:42.125] PartTbl.EndSector = 63
[2021/07/27 09:16:42.125] PartTbl.EndCylinder = 1023
[2021/07/27 09:16:42.125] =========== Partition Table 4 ============
[2021/07/27 09:16:42.125] PartTbl.Active = 0x0
[2021/07/27 09:16:42.125] PartTbl.FsFlag = 0x0
[2021/07/27 09:16:42.125] PartTbl.StartSectorId = 0
[2021/07/27 09:16:42.125] PartTbl.SectorCount = 0
[2021/07/27 09:16:42.140] PartTbl.StartHead = 0
[2021/07/27 09:16:42.140] PartTbl.StartSector = 0
[2021/07/27 09:16:42.140] PartTbl.StartCylinder = 0
[2021/07/27 09:16:42.140] PartTbl.EndHead = 0
[2021/07/27 09:16:42.140] PartTbl.EndSector = 0
[2021/07/27 09:16:42.140] PartTbl.EndCylinder = 0
[2021/07/27 09:16:42.140] PhysicalDrive0 is ventoy disk
[2021/07/27 09:16:42.140] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:16:42.140] [0] CreateFileA \\.\PhysicalDrive0 code:0 00000070
[2021/07/27 09:16:42.140] Parse FAT fs...
[2021/07/27 09:16:42.172] attach media success...
[2021/07/27 09:16:42.187] GetVentoyVerInPhyDrive rc=0...
[2021/07/27 09:16:42.187] VentoyVerInPhyDrive 0 is <1.0.35>...
[2021/07/27 09:16:42.218] PhyDrive 0 is Ventoy Disk ver:1.0.35 SecureBoot:0
[2021/07/27 09:16:42.328] Load languages from json file ...
[2021/07/27 09:16:42.343] language json file len:139481 json parse:0
[2021/07/27 09:16:42.343] Total 37 languages ...
[2021/07/27 09:16:42.406] Combox select change, update secure boot option: 0 0
[2021/07/27 09:17:21.754] UpdateVentoy2PhyDrive MBR PhyDrive0 << WDC WD10SPZX-22Z10T1 1024GB>>
[2021/07/27 09:17:21.754] Lock disk for umount ............................
[2021/07/27 09:17:21.754] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:17:21.754] [0] CreateFileA \\.\PhysicalDrive0 code:0 0000014C
[2021/07/27 09:17:21.754] FSCTL_LOCK_VOLUME success
[2021/07/27 09:17:21.754] MBR StartSector in PartTbl:904883632
[2021/07/27 09:17:21.754] MBR Reserved Disk Space:512000 MB
[2021/07/27 09:17:21.754] LogicalDrive:\\.\C: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:17:21.770] C: is belong to phydrive0
[2021/07/27 09:17:21.770] LogicalDrive:\\.\D: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:17:21.770] D: is belong to phydrive0
[2021/07/27 09:17:21.770] LogicalDrive:\\.\X: PhyDrive:-1 Offset:0 ExtentLength:971264
[2021/07/27 09:17:21.770] Lock disk for update ............................
[2021/07/27 09:17:21.770] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:17:21.770] [0] CreateFileA \\.\PhysicalDrive0 code:0 00000148
[2021/07/27 09:17:21.770] Opened \\.\PhysicalDrive0 for exclusive write access
[2021/07/27 09:17:21.770] FSCTL_LOCK_VOLUME success
[2021/07/27 09:17:21.770] Lock volume for update ..........................
[2021/07/27 09:17:21.770] GetVentoyVolumeName PhyDrive 0 SectorStart:904883632 PartOffset:463300419584
[2021/07/27 09:17:21.770] Find volume:\\?\Volume{64642d7f-0000-0000-0000-100000000000}\
[2021/07/27 09:17:21.770] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:17:21.770] NumberOfDiskExtents:1 DiskNumber:0
[2021/07/27 09:17:21.770] This volume DiskNumber:0 offset:1048576
[2021/07/27 09:17:21.770] Find volume:\\?\Volume{64642d7f-0000-0000-0000-f0e06b000000}\
[2021/07/27 09:17:21.770] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:17:21.770] NumberOfDiskExtents:1 DiskNumber:0
[2021/07/27 09:17:21.770] This volume DiskNumber:0 offset:463335325696
[2021/07/27 09:17:21.770] Find volume:\\?\Volume{d9b257fc-684e-4dcb-ab79-03cfa2f6b750}\
[2021/07/27 09:17:21.770] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:17:21.770] NumberOfDiskExtents:1 DiskNumber:4294967295
[2021/07/27 09:17:21.770] This volume DiskNumber:4294967295 offset:0
[2021/07/27 09:17:21.770] GetVentoyVolumeName return 1168
[2021/07/27 09:17:21.770] Volume not found, maybe not supported
[2021/07/27 09:17:22.066] Try write part2 bRet:1 dwSize:16384 code:183
[2021/07/27 09:17:22.066] Write Ventoy to disk ............................
[2021/07/27 09:17:22.066] FormatPart2Fat 904883632...
[2021/07/27 09:17:22.223] Set file pointer: 463300419584 New pointer:463300419584
[2021/07/27 09:17:22.223] Malloc whole img buffer success, now decompress ...
[2021/07/27 09:17:23.895] decompress finished success
[2021/07/27 09:17:23.895] VentoyProcSecureBoot 0 ...
[2021/07/27 09:17:23.895] Open ventoy efi file 00D5E200
[2021/07/27 09:17:23.895] ventoy efi file size 1724416 ...
[2021/07/27 09:17:23.895] Now delete all efi files ...
[2021/07/27 09:17:23.895] Open bootx64 efi file 00D5E200
[2021/07/27 09:17:23.957] Open ventoy efi file 00D5E644
[2021/07/27 09:17:23.957] ventoy efi file size 1163264 ...
[2021/07/27 09:17:23.957] Now delete all efi files ...
[2021/07/27 09:17:23.957] Open bootia32 efi file 00D5E200
[2021/07/27 09:17:24.020] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.020] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.035] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.035] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.098] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.098] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.098] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.114] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.114] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.114] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.160] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.160] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.176] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.192] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.192] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.207] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.207] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.223] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.239] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.239] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.254] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.270] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.270] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.285] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.301] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.301] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.317] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.332] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.332] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.348] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.348] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.364] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:17:24.364] Updating Boot Image .............................
[2021/07/27 09:17:24.364] WriteGrubStage1ToPhyDrive ...
[2021/07/27 09:17:24.442] Write MBR stage1 ...
[2021/07/27 09:17:24.442] WriteFile Ret:1 dwSize:1048064 ErrCode:183
[2021/07/27 09:17:24.442] Write resv data ret:1 dwSize:4096 Error:183
[2021/07/27 09:17:24.457] Copy boot img success
[2021/07/27 09:17:24.457] Boot image has no difference, no need to write.
[2021/07/27 09:17:24.582] OK
[2021/07/27 09:17:26.817] Combox select change, update secure boot option: 0 0
然后是vhd下win7运行升级时的log
[2021/07/27 09:20:45.060]
################################ Ventoy2Disk 1.0.0.2 ################################
[2021/07/27 09:20:45.075] Control Flag: 0 1 1
[2021/07/27 09:20:45.075] Windows Version : Windows Vista SP1 64-bit
[2021/07/27 09:20:45.075]
===================== Enum All PhyDrives =====================
[2021/07/27 09:20:45.075] RegOpenKeyExA <SYSTEM\CurrentControlSet\Services\disk\Enum> Ret:0
[2021/07/27 09:20:45.075] RegQueryValueExA <Count> ret:0 Size:4 Value:2
[2021/07/27 09:20:45.075] GetPhysicalDriveCount: 2
[2021/07/27 09:20:45.075] Logical Drives: 0x1c
[2021/07/27 09:20:45.075] LogicalDrive:\\.\C: PhyDrive:1 Offset:1048576 ExtentLength:85898297344
[2021/07/27 09:20:45.075] C --> 1
[2021/07/27 09:20:45.075] LogicalDrive:\\.\D: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:20:45.075] D --> 0
[2021/07/27 09:20:45.075] LogicalDrive:\\.\E: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:20:45.075] E --> 0
[2021/07/27 09:20:45.075] Create file Handle:0000007C \\.\PhysicalDrive0 status:0
[2021/07/27 09:20:45.075] PHYSICALDRIVE0 size 1000204886016 bytes
[2021/07/27 09:20:45.075] Create file Handle:0000007C \\.\PhysicalDrive1 status:0
[2021/07/27 09:20:45.075] PHYSICALDRIVE1 size 85899345920 bytes
[2021/07/27 09:20:45.075] PhyDrv:0 BusType:SATA Removable:0 Size:1024GB(1000204886016) Name: WDC WD10SPZX-22Z10T1
[2021/07/27 09:20:45.075] PhyDrv:1 BusType:FileBackedVirtual Removable:0 Size:80GB(85899345920) Name:Msft Virtual Disk
[2021/07/27 09:20:45.075] LogicalDrive:\\.\C: PhyDrive:1 Offset:1048576 ExtentLength:85898297344
[2021/07/27 09:20:45.075] Logical Drive:C ===> PhyDrive:1
[2021/07/27 09:20:45.075] LogicalDrive:\\.\D: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:20:45.075] Logical Drive
===> PhyDrive:0
[2021/07/27 09:20:45.075] LogicalDrive:\\.\E: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:20:45.075] Logical Drive:E ===> PhyDrive:0
[2021/07/27 09:20:45.075] Create file Handle:0000007C \\.\PhysicalDrive0 status:0
[2021/07/27 09:20:45.091] Read MBR Ret:1 Size:512 code:183
[2021/07/27 09:20:45.091] =========== Partition Table 1 ============
[2021/07/27 09:20:45.091] PartTbl.Active = 0x80
[2021/07/27 09:20:45.091] PartTbl.FsFlag = 0x7
[2021/07/27 09:20:45.091] PartTbl.StartSectorId = 2048
[2021/07/27 09:20:45.091] PartTbl.SectorCount = 904881584
[2021/07/27 09:20:45.091] PartTbl.StartHead = 32
[2021/07/27 09:20:45.091] PartTbl.StartSector = 33
[2021/07/27 09:20:45.091] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.091] PartTbl.EndHead = 254
[2021/07/27 09:20:45.091] PartTbl.EndSector = 63
[2021/07/27 09:20:45.091] PartTbl.EndCylinder = 1023
[2021/07/27 09:20:45.091] =========== Partition Table 2 ============
[2021/07/27 09:20:45.091] PartTbl.Active = 0x0
[2021/07/27 09:20:45.091] PartTbl.FsFlag = 0xef
[2021/07/27 09:20:45.091] PartTbl.StartSectorId = 904883632
[2021/07/27 09:20:45.091] PartTbl.SectorCount = 65536
[2021/07/27 09:20:45.091] PartTbl.StartHead = 254
[2021/07/27 09:20:45.091] PartTbl.StartSector = 63
[2021/07/27 09:20:45.091] PartTbl.StartCylinder = 1023
[2021/07/27 09:20:45.091] PartTbl.EndHead = 254
[2021/07/27 09:20:45.091] PartTbl.EndSector = 63
[2021/07/27 09:20:45.091] PartTbl.EndCylinder = 1023
[2021/07/27 09:20:45.091] =========== Partition Table 3 ============
[2021/07/27 09:20:45.091] PartTbl.Active = 0x0
[2021/07/27 09:20:45.091] PartTbl.FsFlag = 0xf
[2021/07/27 09:20:45.091] PartTbl.StartSectorId = 904949760
[2021/07/27 09:20:45.091] PartTbl.SectorCount = 1048573952
[2021/07/27 09:20:45.091] PartTbl.StartHead = 254
[2021/07/27 09:20:45.091] PartTbl.StartSector = 63
[2021/07/27 09:20:45.091] PartTbl.StartCylinder = 1023
[2021/07/27 09:20:45.091] PartTbl.EndHead = 254
[2021/07/27 09:20:45.091] PartTbl.EndSector = 63
[2021/07/27 09:20:45.091] PartTbl.EndCylinder = 1023
[2021/07/27 09:20:45.091] =========== Partition Table 4 ============
[2021/07/27 09:20:45.091] PartTbl.Active = 0x0
[2021/07/27 09:20:45.091] PartTbl.FsFlag = 0x0
[2021/07/27 09:20:45.091] PartTbl.StartSectorId = 0
[2021/07/27 09:20:45.091] PartTbl.SectorCount = 0
[2021/07/27 09:20:45.091] PartTbl.StartHead = 0
[2021/07/27 09:20:45.091] PartTbl.StartSector = 0
[2021/07/27 09:20:45.091] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.091] PartTbl.EndHead = 0
[2021/07/27 09:20:45.091] PartTbl.EndSector = 0
[2021/07/27 09:20:45.091] PartTbl.EndCylinder = 0
[2021/07/27 09:20:45.091] PhysicalDrive0 is ventoy disk
[2021/07/27 09:20:45.106] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:20:45.106] [0] CreateFileA \\.\PhysicalDrive0 code:0 0000007C
[2021/07/27 09:20:45.106] Parse FAT fs...
[2021/07/27 09:20:45.138] attach media success...
[2021/07/27 09:20:45.138] GetVentoyVerInPhyDrive rc=0...
[2021/07/27 09:20:45.138] VentoyVerInPhyDrive 0 is <1.0.47>...
[2021/07/27 09:20:45.138] PhyDrive 0 is Ventoy Disk ver:1.0.47 SecureBoot:0
[2021/07/27 09:20:45.138] Create file Handle:0000007C \\.\PhysicalDrive1 status:0
[2021/07/27 09:20:45.184] Read MBR Ret:1 Size:512 code:183
[2021/07/27 09:20:45.184] =========== Partition Table 1 ============
[2021/07/27 09:20:45.184] PartTbl.Active = 0x80
[2021/07/27 09:20:45.184] PartTbl.FsFlag = 0x7
[2021/07/27 09:20:45.184] PartTbl.StartSectorId = 2048
[2021/07/27 09:20:45.184] PartTbl.SectorCount = 167770112
[2021/07/27 09:20:45.184] PartTbl.StartHead = 32
[2021/07/27 09:20:45.184] PartTbl.StartSector = 33
[2021/07/27 09:20:45.184] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.184] PartTbl.EndHead = 254
[2021/07/27 09:20:45.184] PartTbl.EndSector = 63
[2021/07/27 09:20:45.184] PartTbl.EndCylinder = 1023
[2021/07/27 09:20:45.184] =========== Partition Table 2 ============
[2021/07/27 09:20:45.184] PartTbl.Active = 0x0
[2021/07/27 09:20:45.184] PartTbl.FsFlag = 0x0
[2021/07/27 09:20:45.184] PartTbl.StartSectorId = 0
[2021/07/27 09:20:45.184] PartTbl.SectorCount = 0
[2021/07/27 09:20:45.184] PartTbl.StartHead = 0
[2021/07/27 09:20:45.184] PartTbl.StartSector = 0
[2021/07/27 09:20:45.184] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.184] PartTbl.EndHead = 0
[2021/07/27 09:20:45.184] PartTbl.EndSector = 0
[2021/07/27 09:20:45.184] PartTbl.EndCylinder = 0
[2021/07/27 09:20:45.184] =========== Partition Table 3 ============
[2021/07/27 09:20:45.184] PartTbl.Active = 0x0
[2021/07/27 09:20:45.184] PartTbl.FsFlag = 0x0
[2021/07/27 09:20:45.184] PartTbl.StartSectorId = 0
[2021/07/27 09:20:45.184] PartTbl.SectorCount = 0
[2021/07/27 09:20:45.184] PartTbl.StartHead = 0
[2021/07/27 09:20:45.184] PartTbl.StartSector = 0
[2021/07/27 09:20:45.184] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.184] PartTbl.EndHead = 0
[2021/07/27 09:20:45.184] PartTbl.EndSector = 0
[2021/07/27 09:20:45.184] PartTbl.EndCylinder = 0
[2021/07/27 09:20:45.184] =========== Partition Table 4 ============
[2021/07/27 09:20:45.184] PartTbl.Active = 0x0
[2021/07/27 09:20:45.184] PartTbl.FsFlag = 0x0
[2021/07/27 09:20:45.184] PartTbl.StartSectorId = 0
[2021/07/27 09:20:45.184] PartTbl.SectorCount = 0
[2021/07/27 09:20:45.184] PartTbl.StartHead = 0
[2021/07/27 09:20:45.184] PartTbl.StartSector = 0
[2021/07/27 09:20:45.184] PartTbl.StartCylinder = 0
[2021/07/27 09:20:45.184] PartTbl.EndHead = 0
[2021/07/27 09:20:45.184] PartTbl.EndSector = 0
[2021/07/27 09:20:45.184] PartTbl.EndCylinder = 0
[2021/07/27 09:20:45.184] Part2 not match [0x0 0xef] [0 167772160] [0 65536]
[2021/07/27 09:20:45.247] Load languages from json file ...
[2021/07/27 09:20:45.294] language json file len:139481 json parse:0
[2021/07/27 09:20:45.294] Total 37 languages ...
[2021/07/27 09:20:45.403] Combox select change, update secure boot option: 0 0
[2021/07/27 09:21:24.730] UpdateVentoy2PhyDrive MBR PhyDrive0 << WDC WD10SPZX-22Z10T1 1024GB>>
[2021/07/27 09:21:24.730] Lock disk for umount ............................
[2021/07/27 09:21:24.730] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:21:24.746] [0] CreateFileA \\.\PhysicalDrive0 code:0 000000F0
[2021/07/27 09:21:24.746] FSCTL_LOCK_VOLUME success
[2021/07/27 09:21:24.840] MBR StartSector in PartTbl:904883632
[2021/07/27 09:21:24.840] MBR Reserved Disk Space:512000 MB
[2021/07/27 09:21:24.840] LogicalDrive:\\.\C: PhyDrive:1 Offset:1048576 ExtentLength:85898297344
[2021/07/27 09:21:24.855] LogicalDrive:\\.\D: PhyDrive:0 Offset:1048576 ExtentLength:463299371008
[2021/07/27 09:21:24.855] D: is belong to phydrive0
[2021/07/27 09:21:24.855] LogicalDrive:\\.\E: PhyDrive:0 Offset:463335325696 ExtentLength:536868814848
[2021/07/27 09:21:24.855] E: is belong to phydrive0
[2021/07/27 09:21:24.855] Lock disk for update ............................
[2021/07/27 09:21:24.855] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:21:24.855] [0] CreateFileA \\.\PhysicalDrive0 code:0 000000F0
[2021/07/27 09:21:24.855] Opened \\.\PhysicalDrive0 for exclusive write access
[2021/07/27 09:21:24.855] FSCTL_LOCK_VOLUME success
[2021/07/27 09:21:24.855] Lock volume for update ..........................
[2021/07/27 09:21:24.855] GetVentoyVolumeName PhyDrive 0 SectorStart:904883632 PartOffset:463300419584
[2021/07/27 09:21:24.855] Find volume:\\?\Volume{d17e8fc3-8227-11eb-b20a-806e6f6e6963}\
[2021/07/27 09:21:24.855] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:21:24.855] NumberOfDiskExtents:1 DiskNumber:0
[2021/07/27 09:21:24.855] This volume DiskNumber:0 offset:1048576
[2021/07/27 09:21:24.855] Find volume:\\?\Volume{6c7331c9-7fbc-11eb-887f-806e6f6e6963}\
[2021/07/27 09:21:24.855] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:21:24.855] NumberOfDiskExtents:1 DiskNumber:1
[2021/07/27 09:21:24.855] This volume DiskNumber:1 offset:1048576
[2021/07/27 09:21:24.855] Find volume:\\?\Volume{d17e8fc4-8227-11eb-b20a-806e6f6e6963}\
[2021/07/27 09:21:24.855] IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS bRet:1 code:0
[2021/07/27 09:21:24.855] NumberOfDiskExtents:1 DiskNumber:0
[2021/07/27 09:21:24.855] This volume DiskNumber:0 offset:463335325696
[2021/07/27 09:21:24.855] GetVentoyVolumeName return 1168
[2021/07/27 09:21:24.855] Volume not found, maybe not supported
[2021/07/27 09:21:24.855] Try write part2 bRet:0 dwSize:0 code:5
[2021/07/27 09:21:24.855] Try write failed, now delete partition 2...
[2021/07/27 09:21:24.855] Now delete partition 2...
[2021/07/27 09:21:27.195] Deleting ALL partition(s) from disk '\\?\PhysicalDrive0':
[2021/07/27 09:21:27.195] * Partition 1 (offset: 1048576, size: 463299371008)
[2021/07/27 09:21:27.195] Skip this partition...
[2021/07/27 09:21:27.195] * Partition 2 (offset: 463300419584, size: 33554432)
[2021/07/27 09:21:27.211] * Partition 0 (offset: 463334277120, size: 536869863424)
[2021/07/27 09:21:27.289] Could not delete partitions: 2147755016
[2021/07/27 09:21:27.289] * Partition 3 (offset: 463335325696, size: 536868814848)
[2021/07/27 09:21:27.414] QueryDosDeviceA success \Device\Harddisk0\DR0
[2021/07/27 09:21:27.414] [0] CreateFileA \\.\PhysicalDrive0 code:0 00000194
[2021/07/27 09:21:27.414] Opened \\.\PhysicalDrive0 for exclusive write access
[2021/07/27 09:21:27.554] FSCTL_LOCK_VOLUME success
[2021/07/27 09:21:27.554] Write Ventoy to disk ............................
[2021/07/27 09:21:27.554] FormatPart2Fat 904883632...
[2021/07/27 09:21:27.710] Set file pointer: 463300419584 New pointer:463300419584
[2021/07/27 09:21:27.710] Malloc whole img buffer success, now decompress ...
[2021/07/27 09:21:28.272] decompress finished success
[2021/07/27 09:21:28.272] VentoyProcSecureBoot 0 ...
[2021/07/27 09:21:28.272] Open ventoy efi file 0132E200
[2021/07/27 09:21:28.272] ventoy efi file size 1724416 ...
[2021/07/27 09:21:28.272] Now delete all efi files ...
[2021/07/27 09:21:28.272] Open bootx64 efi file 0132E200
[2021/07/27 09:21:28.303] Open ventoy efi file 0132E644
[2021/07/27 09:21:28.303] ventoy efi file size 1163264 ...
[2021/07/27 09:21:28.303] Now delete all efi files ...
[2021/07/27 09:21:28.303] Open bootia32 efi file 0132E200
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.334] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.396] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.396] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.412] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.428] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.428] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.443] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.459] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.459] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.474] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.474] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.490] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.599] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.599] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.615] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.630] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.630] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.646] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.662] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.662] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.677] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.693] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.693] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.708] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.724] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.724] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.740] Write part data bRet:1 dwSize:1048576 code:183
[2021/07/27 09:21:28.740] Updating Boot Image .............................
[2021/07/27 09:21:28.740] WriteGrubStage1ToPhyDrive ...
[2021/07/27 09:21:28.833] Write MBR stage1 ...
[2021/07/27 09:21:28.849] WriteFile Ret:1 dwSize:1048064 ErrCode:183
[2021/07/27 09:21:28.849] Write resv data ret:1 dwSize:4096 Error:183
[2021/07/27 09:21:28.864] Copy boot img success
[2021/07/27 09:21:28.864] Boot image need to write 1.
[2021/07/27 09:21:28.864] Write Boot Image ret:1 dwSize:512 Error:183
[2021/07/27 09:21:28.880] OK
[2021/07/27 09:21:30.596] Combox select change, update secure boot option: 0 0