ventoy / Ventoy

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

vhd boot initialization failed on usb 3.0 23h2 #2758

Open hexman1999 opened 8 months ago

hexman1999 commented 8 months ago

Official FAQ

Ventoy Version

1.0.96

What about latest release

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

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

Both

Partition Style

MBR

Disk Capacity

1 tb

Disk Manufacturer

Lexar ssd

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

Windows 11 23h2 vhd boot initialization failed in BSOD appear when booting the ssd in usb 3.0 mode, doesn't matter the port, when I used usb 2.0 cable and booted with no problem, when connected with usb 3.0 cable in a usb 3.0 port the problem occures

Tried wimboot with no success

I guess that the driver of usb 3.0 is not loaded someway

steve6375 commented 8 months ago

What happens if you boot using USB 2 and then disconnect the USB drive and connect it to a USB 3 port - can it be accessed? USB 3 is a lot faster than USB 2 and there can be signal issues.

Could it be that there is some I/O data integrity issue with your USB 3 cable or USB 3 port - or perhaps another USB 3 device which is also connected to the same computer is causing interference - e.g. wifi/bluetooth dongle. Try plugging other USB devices into USB 2 ports or connecting them with a USB 2 cable.

hexman1999 commented 8 months ago

What happens if you boot using USB 2 and then disconnect the USB drive and connect it to a USB 3 port - can it be accessed? USB 3 is a lot faster than USB 2 and there can be signal issues.

Could it be that there is some I/O data integrity issue with your USB 3 cable or USB 3 port - or perhaps another USB 3 device which is also connected to the same computer is causing interference - e.g. wifi/bluetooth dongle. Try plugging other USB devices into USB 2 ports or connecting them with a USB 2 cable.

Okay I don't think that the problem is on my USB port nor the cable because I can already boot Linux vdi file normally and boot I ISOS also normally and run live systems without any problem in USB 3.0 also I can boot the windows installer from the same Port and the same original USB 3.0 cable

My laptop has an option inside the BIOS that allows changing the mode of the external USB ports from USB 3.0 to USB 2.0 when I activate that option it boots normally even with the USB 3.0 cable

steve6375 commented 8 months ago

A BSOD indicates that the windows boot code has loaded. So the windows usb driver is probably being used, not the bios or any Linux driver.

If you don't want to try the simple tests I suggested then it is difficult to help you So what is the exact number and error message?

hexman1999 commented 8 months ago

Sorry, I didn't mention that I already tried to do what you said

When I remove the SSD the system freezes immediately and when I add it back the SSD is not indicating any reading

I have searched a lot on the internet I found a similar issue in ventoy forums but I tried all possible solutions said with no luck

And for the code there is no code number but it is as written above

VHD Boot initialisation failed

These two are not mine but they are similar issues:

https://forums.ventoy.net/showthread.php?tid=416&page=4 https://www.reddit.com/r/Ventoy/s/ZQ7tM2w7Gq

steve6375 commented 8 months ago

Are you using a fixed vhd? Can you try the same file on a different make of usb 3 device?

hexman1999 commented 8 months ago

Look what have I found I know it's not exactly my problem but when I tried I could finally boot my VHD file on the USB 3.0 SSD successfully without any problem but this is a very weird behavior

https://github.com/ventoy/Ventoy/issues/1523

I made a separate partition that is 100 gigabytes inside my SSD and formatted is as exfat then copied the VHD file to that partition and booted ventoy then pressed f2 to browse then selecting the file inside the partition I have created now it's booting normally in that partition

This is very strange because when it was in the main NTFS partition I could only boot with you USB 2.0 cable or when I disable the USB 3.0 port from the BIOS

So I can't determine whether the problem is related to ventoy itself or the NTFS functionality when booting VHD files

The same computer , the same port , the same cable, the same SSD but different partition format

steve6375 commented 8 months ago

Well I guess you should reformat the SAME partition as NTFS.

steve6375 commented 8 months ago

P.S. and also make a 2nd copy of the VHD on partition 1 too and see if that boots ?

hexman1999 commented 8 months ago

When I formatted the 2nd partition as NTFS it could boot successfully but when I tried to boot from the ventoy main partition it couldn't I even tried to move the VHD file from a subdirectory to the main root directory to see what happens with no luck

but I found another bug accidentally that I could open another ticket for it which when I select main search directory and use the file browser in ventoy it only shows the main search directory as if it is the root of the disk and cannot access other directories

steve6375 commented 8 months ago

Moving an NTFS file to a different directory does not actually move the data. The sectors of the VHD are not moved - only the NTFS directory entry changes. That is why I said to make a COPY of the file in Partition 1.

steve6375 commented 8 months ago

It might be worth checking Partition 1 for a bad filesystem using chkdsk /f

hexman1999 commented 8 months ago

Moving an NTFS file to a different directory does not actually move the data. The sectors of the VHD are not moved - only the NTFS directory entry changes. That is why I said to make a COPY of the file in Partition 1.

I tried without success

It might be worth checking Partition 1 for a bad filesystem using chkdsk /f

I tried it didn't show any error and no success

Maybe I have to reformat the partition after backup