ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
61.6k stars 4k forks source link

[issue]: Ventoy won't install (Win 11 Home @Surface) #1525

Open jsuelwald opened 2 years ago

jsuelwald commented 2 years ago

Official FAQ

Ventoy Version

1.0.71

What about latest release

Yes. I have tried the latest release, but the bug still exist.

BIOS Mode

Both

Partition Style

MBR

Disk Capacity

4GB

Disk Manufacturer

Noname

Image file checksum (if applicable)

No response

Image file download link (if applicable)

No response

What happened?

Install of Venoty on Win11 failed

################################################################################## ######################### Ventoy2DiskX86 1.0.0.3 (1.0.71) ######################### ################################################################################## [2022/03/22 08:21:40.056] Current directory: [2022/03/22 08:21:40.076] id=6888/7956 [2022/03/22 08:21:40.080] PPath:<C:\Windows\explorer.exe> [2022/03/22 08:21:40.092] PSize:<4962880 4846KB> [2022/03/22 08:21:40.100] Lunch main process 0 [2022/03/22 08:21:40.110] Control Flag: 0 1 1 [2022/03/22 08:21:40.116] Windows Version: <<Windows 11 Home, 64-bit (Build 22572.201)>> [2022/03/22 08:21:40.122] ===================== Enum All PhyDrives ===================== [2022/03/22 08:21:40.130] RegOpenKeyExA <SYSTEM\CurrentControlSet\Services\disk\Enum> Ret:0 [2022/03/22 08:21:40.136] RegQueryValueExA ret:0 Size:4 Value:2 [2022/03/22 08:21:40.142] GetPhysicalDriveCount: 2 [2022/03/22 08:21:40.148] Logical Drives: 0x4 [2022/03/22 08:21:40.156] LogicalDrive:\.\C: PhyDrive:0 Offset:290455552 ExtentLength:254825988096 [2022/03/22 08:21:40.161] C --> 0 [2022/03/22 08:21:40.168] Create file Handle:000001CC \.\PhysicalDrive0 status:0 [2022/03/22 08:21:40.178] PHYSICALDRIVE0 size 256060514304 bytes [2022/03/22 08:21:40.186] Create file Handle:00000100 \.\PhysicalDrive1 status:0 [2022/03/22 08:21:40.190] PHYSICALDRIVE1 size 3984588800 bytes [2022/03/22 08:21:40.196] PhyDrv:0 BusType:Nvme Removable:0 Size:256GB(256060514304) Name: HFB1M8MO331C0MR [2022/03/22 08:21:40.202] PhyDrv:1 BusType:USB Removable:1 Size:4GB(3984588800) Name:General UDisk [2022/03/22 08:21:40.208] LogicalDrive:\.\C: PhyDrive:0 Offset:290455552 ExtentLength:254825988096 [2022/03/22 08:21:40.213] Logical Drive:C ===> PhyDrive:0 [2022/03/22 08:21:40.222] Create file Handle:00000100 \.\PhysicalDrive1 status:0 [2022/03/22 08:21:40.227] Read MBR Ret:1 Size:512 code:183 [2022/03/22 08:21:40.236] =========== Disk1 MBR Partition 1 ============ [2022/03/22 08:21:40.245] PartTbl.Active = 0x0 [2022/03/22 08:21:40.254] PartTbl.FsFlag = 0x0 [2022/03/22 08:21:40.263] PartTbl.StartSectorId = 0 [2022/03/22 08:21:40.270] PartTbl.SectorCount = 0 [2022/03/22 08:21:40.276] PartTbl.StartHead = 0 [2022/03/22 08:21:40.282] PartTbl.StartSector = 0 [2022/03/22 08:21:40.286] PartTbl.StartCylinder = 0 [2022/03/22 08:21:40.291] PartTbl.EndHead = 0 [2022/03/22 08:21:40.296] PartTbl.EndSector = 0 [2022/03/22 08:21:40.300] PartTbl.EndCylinder = 0 [2022/03/22 08:21:40.305] =========== Disk1 MBR Partition 2 ============ [2022/03/22 08:21:40.310] PartTbl.Active = 0x0 [2022/03/22 08:21:40.315] PartTbl.FsFlag = 0x0 [2022/03/22 08:21:40.319] PartTbl.StartSectorId = 0 [2022/03/22 08:21:40.324] PartTbl.SectorCount = 0 [2022/03/22 08:21:40.329] PartTbl.StartHead = 0 [2022/03/22 08:21:40.334] PartTbl.StartSector = 0 [2022/03/22 08:21:40.339] PartTbl.StartCylinder = 0 [2022/03/22 08:21:40.344] PartTbl.EndHead = 0 [2022/03/22 08:21:40.349] PartTbl.EndSector = 0 [2022/03/22 08:21:40.353] PartTbl.EndCylinder = 0 [2022/03/22 08:21:40.358] =========== Disk1 MBR Partition 3 ============ [2022/03/22 08:21:40.363] PartTbl.Active = 0x0 [2022/03/22 08:21:40.368] PartTbl.FsFlag = 0x0 [2022/03/22 08:21:40.373] PartTbl.StartSectorId = 0 [2022/03/22 08:21:40.378] PartTbl.SectorCount = 0 [2022/03/22 08:21:40.382] PartTbl.StartHead = 0 [2022/03/22 08:21:40.389] PartTbl.StartSector = 0 [2022/03/22 08:21:40.393] PartTbl.StartCylinder = 0 [2022/03/22 08:21:40.398] PartTbl.EndHead = 0 [2022/03/22 08:21:40.403] PartTbl.EndSector = 0 [2022/03/22 08:21:40.408] PartTbl.EndCylinder = 0 [2022/03/22 08:21:40.413] =========== Disk1 MBR Partition 4 ============ [2022/03/22 08:21:40.420] PartTbl.Active = 0x0 [2022/03/22 08:21:40.425] PartTbl.FsFlag = 0x0 [2022/03/22 08:21:40.429] PartTbl.StartSectorId = 0 [2022/03/22 08:21:40.434] PartTbl.SectorCount = 0 [2022/03/22 08:21:40.439] PartTbl.StartHead = 0 [2022/03/22 08:21:40.444] PartTbl.StartSector = 0 [2022/03/22 08:21:40.449] PartTbl.StartCylinder = 0 [2022/03/22 08:21:40.453] PartTbl.EndHead = 0 [2022/03/22 08:21:40.458] PartTbl.EndSector = 0 [2022/03/22 08:21:40.463] PartTbl.EndCylinder = 0 [2022/03/22 08:21:40.468] Part1 not match 0 [2022/03/22 08:21:40.473] < HFB1M8MO331C0MR> is filtered for not USB type. [2022/03/22 08:21:40.520] Load languages from json file ... [2022/03/22 08:21:40.522] language json file len:201779 json parse:0 [2022/03/22 08:21:40.529] Total 45 languages ... [2022/03/22 08:21:40.609] Not ventoy disk, clear secure boot option [2022/03/22 08:21:47.730] SpaceMB:0 SizeInMB:3800 [2022/03/22 08:21:47.741] ##################################################### [2022/03/22 08:21:47.745] InstallVentoy2PhyDrive try1 MBR PhyDrive1 <<General UDisk 4GB>> [2022/03/22 08:21:47.757] ##################################################### [2022/03/22 08:21:47.772] Copy boot img success [2022/03/22 08:21:47.782] Disk signature: 0x0cb2b3e8 [2022/03/22 08:21:47.789] ReservedSector: 0 [2022/03/22 08:21:47.795] Lock disk for clean ............................. [2022/03/22 08:21:47.801] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:47.811] [0] CreateFileA \.\PhysicalDrive1 code:0 000002D8 [2022/03/22 08:21:47.817] FSCTL_LOCK_VOLUME success [2022/03/22 08:21:47.824] LogicalDrive:\.\C: PhyDrive:0 Offset:290455552 ExtentLength:254825988096 [2022/03/22 08:21:47.830] No drive letter was assigned... [2022/03/22 08:21:47.837] GetFirstUnusedDriveLetter D: ... [2022/03/22 08:21:47.844] Will use 'D:' as volume mountpoint [2022/03/22 08:21:47.916] VDS init OK, service 00E1E8DC [2022/03/22 08:21:47.930] Callback 1 process for disk <\?\PhysicalDrive1> [2022/03/22 08:21:47.931] Deleting ALL partitions from disk '\?\PhysicalDrive1': [2022/03/22 08:21:47.940] No partition to delete on disk '\?\PhysicalDrive1' [2022/03/22 08:21:47.945] VDS_DeleteAllPartitions 1 ret:1 (SUCCESS) [2022/03/22 08:21:47.951] Deleting all partitions ......................... OK [2022/03/22 08:21:47.960] Lock disk for write ............................. [2022/03/22 08:21:47.964] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:47.974] [0] CreateFileA \.\PhysicalDrive1 code:0 00000350 [2022/03/22 08:21:47.980] Opened \.\PhysicalDrive1 for exclusive write access [2022/03/22 08:21:47.988] FSCTL_LOCK_VOLUME success [2022/03/22 08:21:47.995] Formatting part1 exFAT ... [2022/03/22 08:21:48.000] Formatting Part1 exFAT ... [2022/03/22 08:21:48.018] WriteFile error bRet:0 WriteSize:4608 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.032] WriteFile error bRet:0 WriteSize:15360 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.037] WriteFile error bRet:0 WriteSize:482304 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.043] WriteFile error bRet:0 WriteSize:32768 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.050] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.055] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.060] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.066] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.072] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.078] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:48.169] Formatting Part1 exFAT failed, write error. [2022/03/22 08:21:48.169] FormatPart1exFAT failed. [2022/03/22 08:21:48.180] FindProcessOccupyDisk for PhyDrive 1 [2022/03/22 08:21:48.184] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:48.269] handles->NumberOfHandles = 90045 [2022/03/22 08:21:48.270] NOTE: Could not identify the process(es) or service(s) accessing \Device\Harddisk1\DR1 [2022/03/22 08:21:48.277] This time install failed, clean disk by disk, wait 5s and retry... [2022/03/22 08:21:48.284] VDS init OK, service 00E1F2B4 [2022/03/22 08:21:49.023] Callback 1 process for disk <\?\PhysicalDrive1> [2022/03/22 08:21:49.545] Disk clean QueryStatus OK [2022/03/22 08:21:49.546] VDS_CleanDisk 1 ret:1 (SUCCESS) [2022/03/22 08:21:54.574] Now retry to install... [2022/03/22 08:21:54.577] ##################################################### [2022/03/22 08:21:54.594] InstallVentoy2PhyDrive try2 MBR PhyDrive1 <<General UDisk 4GB>> [2022/03/22 08:21:54.610] ##################################################### [2022/03/22 08:21:54.632] Disk signature: 0x60872fa6 [2022/03/22 08:21:54.642] ReservedSector: 0 [2022/03/22 08:21:54.654] Lock disk for clean ............................. [2022/03/22 08:21:54.662] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:55.217] [0] CreateFileA \.\PhysicalDrive1 code:0 00000350 [2022/03/22 08:21:55.218] FSCTL_LOCK_VOLUME success [2022/03/22 08:21:55.228] LogicalDrive:\.\C: PhyDrive:0 Offset:290455552 ExtentLength:254825988096 [2022/03/22 08:21:55.240] No drive letter was assigned... [2022/03/22 08:21:55.252] GetFirstUnusedDriveLetter D: ... [2022/03/22 08:21:55.262] Will use 'D:' as volume mountpoint [2022/03/22 08:21:55.313] VDS init OK, service 00E96C54 [2022/03/22 08:21:55.330] Callback 1 process for disk <\?\PhysicalDrive1> [2022/03/22 08:21:55.330] Deleting ALL partitions from disk '\?\PhysicalDrive1': [2022/03/22 08:21:55.337] No partition to delete on disk '\?\PhysicalDrive1' [2022/03/22 08:21:55.348] VDS_DeleteAllPartitions 1 ret:1 (SUCCESS) [2022/03/22 08:21:55.354] Deleting all partitions ......................... OK [2022/03/22 08:21:55.363] Lock disk for write ............................. [2022/03/22 08:21:55.370] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:55.379] [0] CreateFileA \.\PhysicalDrive1 code:0 00000364 [2022/03/22 08:21:55.383] Opened \.\PhysicalDrive1 for exclusive write access [2022/03/22 08:21:55.390] FSCTL_LOCK_VOLUME success [2022/03/22 08:21:55.400] Formatting part1 exFAT ... [2022/03/22 08:21:55.405] Formatting Part1 exFAT ... [2022/03/22 08:21:55.424] WriteFile error bRet:0 WriteSize:4608 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.430] WriteFile error bRet:0 WriteSize:15360 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.437] WriteFile error bRet:0 WriteSize:482304 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.443] WriteFile error bRet:0 WriteSize:32768 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.450] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.455] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.462] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.470] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.473] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.480] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:21:55.564] Formatting Part1 exFAT failed, write error. [2022/03/22 08:21:55.565] FormatPart1exFAT failed. [2022/03/22 08:21:55.581] FindProcessOccupyDisk for PhyDrive 1 [2022/03/22 08:21:55.584] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:21:55.667] handles->NumberOfHandles = 90082 [2022/03/22 08:21:55.668] NOTE: Could not identify the process(es) or service(s) accessing \Device\Harddisk1\DR1 [2022/03/22 08:21:55.681] This time install failed, clean disk by diskpart, wait 10s and retry... [2022/03/22 08:21:55.693] CleanDiskByDiskpart <1> [2022/03/22 08:21:55.707] CreateProcess <C:\Windows\system32\diskpart.exe /s "C:\Users\bonsi\Downloads\ventoy-1.0.71-windows\ventoy-1.0.71\ventoy\diskpart_6888.txt"> [2022/03/22 08:21:55.733] Wair process ... [2022/03/22 08:21:58.804] Process finished... [2022/03/22 08:22:08.809] Now retry to install... [2022/03/22 08:22:08.810] ##################################################### [2022/03/22 08:22:08.822] InstallVentoy2PhyDrive try3 MBR PhyDrive1 <<General UDisk 4GB>> [2022/03/22 08:22:08.833] ##################################################### [2022/03/22 08:22:08.843] Disk signature: 0xbc9748b0 [2022/03/22 08:22:08.852] ReservedSector: 0 [2022/03/22 08:22:08.864] Lock disk for clean ............................. [2022/03/22 08:22:08.876] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:22:09.379] [0] CreateFileA \.\PhysicalDrive1 code:0 0000037C [2022/03/22 08:22:09.387] FSCTL_LOCK_VOLUME success [2022/03/22 08:22:09.391] LogicalDrive:\.\C: PhyDrive:0 Offset:290455552 ExtentLength:254825988096 [2022/03/22 08:22:09.397] No drive letter was assigned... [2022/03/22 08:22:09.406] GetFirstUnusedDriveLetter D: ... [2022/03/22 08:22:09.414] Will use 'D:' as volume mountpoint [2022/03/22 08:22:09.478] VDS init OK, service 00E963E4 [2022/03/22 08:22:09.493] Callback 1 process for disk <\?\PhysicalDrive1> [2022/03/22 08:22:09.493] Deleting ALL partitions from disk '\?\PhysicalDrive1': [2022/03/22 08:22:09.500] No partition to delete on disk '\?\PhysicalDrive1' [2022/03/22 08:22:09.506] VDS_DeleteAllPartitions 1 ret:1 (SUCCESS) [2022/03/22 08:22:09.511] Deleting all partitions ......................... OK [2022/03/22 08:22:09.519] Lock disk for write ............................. [2022/03/22 08:22:09.525] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:22:09.535] [0] CreateFileA \.\PhysicalDrive1 code:0 00000368 [2022/03/22 08:22:09.539] Opened \.\PhysicalDrive1 for exclusive write access [2022/03/22 08:22:09.545] FSCTL_LOCK_VOLUME success [2022/03/22 08:22:09.552] Formatting part1 exFAT ... [2022/03/22 08:22:09.556] Formatting Part1 exFAT ... [2022/03/22 08:22:09.571] WriteFile error bRet:0 WriteSize:4608 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.578] WriteFile error bRet:0 WriteSize:15360 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.582] WriteFile error bRet:0 WriteSize:482304 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.591] WriteFile error bRet:0 WriteSize:32768 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.595] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.601] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.606] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.612] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.618] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.625] WriteFile error bRet:0 WriteSize:512 dwSize:0 ErrCode:5 [2022/03/22 08:22:09.711] Formatting Part1 exFAT failed, write error. [2022/03/22 08:22:09.711] FormatPart1exFAT failed. [2022/03/22 08:22:09.719] FindProcessOccupyDisk for PhyDrive 1 [2022/03/22 08:22:09.723] QueryDosDeviceA success \Device\Harddisk1\DR1 [2022/03/22 08:22:09.806] handles->NumberOfHandles = 89952 [2022/03/22 08:22:09.806] NOTE: Could not identify the process(es) or service(s) accessing \Device\Harddisk1\DR1 [2022/03/22 08:22:12.798] Not ventoy disk, clear secure boot option

jsuelwald commented 2 years ago

More Info:

I've tried the same with this USB-Stick on Win 10. Works fine. I've had this problem with other USB-Devices (2 Sticks and 1 Harddrive) on Win11 as well and i don't think that these devices are faulty.

ventoy commented 2 years ago

WriteFile error bRet:0 WriteSize:4608 dwSize:0 ErrCode:5 ErrCode 5 means access denied Maybe the USB disk was occupied by the system or some other process(es).

ventoy commented 2 years ago

Try other install methods as follows: https://www.ventoy.net/en/doc_ventoy2disk.html

steve6375 commented 2 years ago

Maybe your have third-party antivirus installed on Windows 11 such as Acronis, Eset, etc.? This may block writes to boot sectors.

github-jeff commented 2 years ago

Ventoy does not work for Windows 11 iso when run from Ubuntu 20.04. The USB disk appears to be created, but it fails on boot. I ended up going with woeUSB instead. For the record, Balena-Etcher also failed. This is likely a change that windows is requiring.