ventoy / Ventoy

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

[issue]: After formatting USB using Ventoy2Disk.exe, Ventoy partition does not show in File Explorer on USB plug-in #1975

Open rewritten1 opened 1 year ago

rewritten1 commented 1 year ago

Official FAQ

Ventoy Version

1.0.82

What about latest release

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

Try alternative boot mode

No. I didn't try these alternative boot modes.

BIOS Mode

UEFI Mode

Partition Style

GPT

Disk Capacity

256GB

Disk Manufacturer

Corsair Voyager GTX SCSI Disk Device

Image file checksum (if applicable)

No response

Image file download link (if applicable)

No response

What happened?

I prepared a Corsair Voyager GTX SCSI USB drive for Ventoy using the Ventoy2Disk.exe utility with the following options:

I clicked the "Install" button and it created the Ventoy drive successfully. However, after unplugging and re-plugging in the USB drive, the USB drive's Ventoy partition takes forever to show in File Explorer and other programs. Sometimes, the Ventoy partition never shows up in File Explorer and other programs. Sometimes, I receive timeout errors by Windows and the USB LED light continuously flashes trying to mount the Ventoy partition in File Explorer.

Formatting this drive with only one partition allows the USB to mount successfully consistently. Tested unplugging and re-plugging and couldn't get the File Explorer hang delay to occur when the USB has one partition.

Ventoy2Disk.exe log: log.txt

ventoy commented 1 year ago

I have no idea about this. Let's ignore Ventoy for now, if you just create two partitions manually as Ventoy does, does it show in File Explorer OK?

rewritten1 commented 1 year ago

I have no idea about this. Let's ignore Ventoy for now, if you just create two partitions manually as Ventoy does, does it show in File Explorer OK?

I created a second partition using diskmgmt.msc on the corsair USB drive and attempted to unplug and re-plug the USB drive at least 10 times to try to reproduce the issue. Each of the 10 times, both USB partitions appear in File Explorer with no delay.

image

rewritten1 commented 1 year ago

Is there anything else I can try to provide to help find the cause of this problem? Seems to only affect my USBs when they are formatted with the tool. Is there a manual configuration I can try running from the command prompt or powershell?

steve6375 commented 1 year ago

Try testing drive with fakeflashtest or h2testw or just filling it with video files and then playing first and last one. Sounds like a fake flash drive

rewritten1 commented 1 year ago

Try testing drive with fakeflashtest or h2testw or just filling it with video files and then playing first and last one. Sounds like a fake flash drive

Here's the result from h2testw after running the write+verify operation:

image

steve6375 commented 1 year ago

Can you try a different USB drive and also a different OS/PC? Many thousands of people use Ventoy without any problem, so this problem only seems to effect you. So it is probably something odd about your USB drive or system or maybe antivirus/antimalware software?

rewritten1 commented 1 year ago

I tried with a different generic USB that is not as large, 2GB in size, and I could not reproduce the stalling/hang problem in File Explorer. I tried another USB flash drive, a Sandisk Extreme Pro USB 3.0 128GB, and the stalling/hang problem in file explorer returned. Tested both USBs on another computer with Windows 10 instead of Windows 11, and they too had the same stalling/hang problem.

So far, I am experiencing this issue with large capacity USB drives on Windows. The small capacity USBs mount instantly in File Explorer after Ventoy has formatted them.

steve6375 commented 1 year ago

What happens if you just use the default Ventoy options (run Ventoy2Disk.exe but do not change any options)? Are you using standard Windows 10 and 11 - Retail? Pro? any added software? Modified OS in any way? Can you think of how your Windows systems may be different from other peoples Windows systems?

rewritten1 commented 1 year ago

What happens if you just use the default Ventoy options (run Ventoy2Disk.exe but do not change any options)? Are you using standard Windows 10 and 11 - Retail? Pro? any added software? Modified OS in any way? Can you think of how your Windows systems may be different from other peoples Windows systems?

I just got a replacement USB drive from Corsair to finally test this. I left all the default options for Ventoy2Disk.exe using release 1.0.84 and it still hangs on insertion. This is what my Windows 11 File Explorer looks like when Windows is trying to read and mount the drive letter: explorer_This_PC_tUE40XAzV5 It slowly fills up the gray bar with green until the mount operation times out. When it times out, the USB mounts the drive letter, F:, and I can save files to it normally. I can only reproduce this behavior when Ventoy2Disk.exe formats the drive.

  1. I am using Windows 11 Education, retail channel. Yes, there is a lot of added software on this installation. In terms of OS modification, the only thing I can think of is the DisplayFusion Pro 9.9 software that could modify OS files. However, I'm not entirely sure if it does or not.

  2. That's a good question. I have two monitors, wireless keyboard and mouse, 4 PCIe add-in cards, an nvme drive. I don't know, its nothing too crazy. I'm gonna install a clean installation of Windows 11, fully updated, with no third party software to see if I get the same behavior. I still need to try it on a different system other than mine. I won't be able to until we get closer to the end of this year.

Edit: Format logs. log.txt

ventoy commented 1 year ago

Try this CI release to see whether it behave differently: https://github.com/ventoy/Ventoy/actions/runs/3720691355 https://www.ventoy.net/en/doc_github_ci.html

rewritten1 commented 1 year ago

Try this CI release to see whether it behave differently: https://github.com/ventoy/Ventoy/actions/runs/3720691355 https://www.ventoy.net/en/doc_github_ci.html

Tried the latest CI release and it still hangs on insertion. log.txt

Also, I got two new error messages when trying to access the drive in File Explorer and Initialize the drive from Diskmgmt after Ventoy formatted the drive: explorer_Location_is_not_available_0HGQ6Ai9J5

mmc_Virtual_Disk_Manager_4SG9xG48ec

ventoy commented 1 year ago

After install Ventoy, manually reformat the Ventoy partition again with Windows disk manager.

rewritten1 commented 1 year ago

After install Ventoy, manually reformat the Ventoy partition again with Windows disk manager.

I performed a manually reformat immediately after ventoy install, unplugged and re-plugged the USB. However, the USB still stalls on insertion.

ventoy commented 1 year ago

When install Ventoy, try reserve large amount of space, for example, reserve 200GB.

rewritten1 commented 1 year ago

Logs: log.txt

image Still, the USB drive has trouble mounting in a timely manner.

Also, here is a video representation of the issue I face (I only ever showed screenshots of the behavior): https://www.youtube.com/watch?v=TtZNdBrVGd0

steve6375 commented 1 year ago

Can you try a USB 2 port and all ports (front, rear, sides). If you dont have a USB 2 port, connect the USB drive to a USB 3 port using a USB 2 extension cable.

rewritten1 commented 1 year ago

Can you try a USB 2 port and all ports (front, rear, sides). If you dont have a USB 2 port, connect the USB drive to a USB 3 port using a USB 2 extension cable.

I have the ASUS PRIME Z690-P D4 motherboard in my system. I'm reviewing its manual and it says it has two USB 2 ports in the rear. I plugged in this USB drive into both and they make the USB drive appear immediately! I tried 8 times, 4 times each per USB 2 port, and each time it showed up in File Explorer right away.

Hmm, so if its my USB 3 ports that are causing it to hang, how should I go about fixing that?

steve6375 commented 1 year ago

Try ALL USB ports - there are also two USB 3 (blue) ports in the rear. Do they work? Try using a USB 2 cable in the USB 3 port - USB 3 PORT - USB 2 CABLE - USB 3 DRIVE You will need a USB 2 male-female cable. Again try ALL USB 2 and 3 ports. If you find rear usb 3 ports work ok but front usb 3 ports don't work then could be:

  1. You are using wrong mainboard pcb header connection for the front port module
  2. There is a design flaw in front usb cable or module, perhaps grounding or shielding issue.
  3. You have another usb device connected to front usb module which is causing electrical interference with usb 3 flash drive. E.g. Bluetooth or WiFi or wireless mouse/kbd dongle. If so, connect the 'bad' device to a rear usb port instead of the front usb module.
rewritten1 commented 1 year ago

Try ALL USB ports - there are also two USB 3 (blue) ports in the rear. Do they work? Try using a USB 2 cable in the USB 3 port - USB 3 PORT - USB 2 CABLE - USB 3 DRIVE You will need a USB 2 male-female cable. Again try ALL USB 2 and 3 ports.

I was able to find a USB 2.0 male-female extension cable and plugged in my USB to it. I plugged the extended USB cable to every single USB port on my system (two Case USB 3.0 ports and two USB 2.0 ports, two USB 3.0 ports and the teal USB port all on the back of my motherboard.) For each insertion, I visually inspected the File Explorer GUI and watched for the Ventoy USB drive to appear. For all ports connected to using the USB 2.0 extension, the USB appeared in File Explorer GUI near instantly each time.

steve6375 commented 1 year ago

Sure, but what about two rear usb 3 ports without a cable?

rewritten1 commented 1 year ago

Sure, but what about two rear usb 3 ports without a cable?

Without the extension cable, my USB still hangs for minutes when I plug it into either USB 3.0 port at the rear of my motherboard.

steve6375 commented 1 year ago

That is surprising. can you disconnect ALL other USB devices and try it again. Even disconnect mouse and kbd if USB - you can still see how Explorer reacts.

rewritten1 commented 1 year ago

That is surprising. can you disconnect ALL other USB devices and try it again. Even disconnect mouse and kbd if USB - you can still see how Explorer reacts.

I disconnected all other USB devices from my system and tried my USB into both rear USB 3.0 ports again:

I still encounter the same insertion hang in File Explorer GUI.

steve6375 commented 1 year ago

That's very strange! Maybe it is a driver problem? Or possibly some strange software you have installed? Usb 3 works at rates approx 2.4megahz and other devices can interfere with it but the rear usb 3 ports should be electronically well designed. Maybe some other device is causing a problem like PCI cards? Is your pc home built? Anything special about it? Cards, PSU, peripherals, ?

rewritten1 commented 1 year ago

That's very strange! Maybe it is a driver problem? Or possibly some strange software you have installed? Usb 3 works at rates approx 2.4megahz and other devices can interfere with it but the rear usb 3 ports should be electronically well designed. Maybe some other device is causing a problem like PCI cards? Is your pc home built? Anything special about it? Cards, PSU, peripherals, ?

Yes, this PC is home built. It has standard hardware installed into the slots and USB ports. Peripherals include:

  1. Logitech - ERGO M575 mouse
  2. Logitech K350 keyboard
  3. Logitech unifying receiver (for mouse and keyboard)
  4. AudioEngine A2+ USB speakers
  5. TP-Link UH720 USB hub
  6. Xbox Wireless Adapter USB dongle
  7. Rodecaster Pro 2 USB connection

The power supply is a Seasonic PRIME TX-1000 PSU.

These are the cards in my system as it relates to PCI cards/NVMe drives

  1. Seagate FireCuda 530 NVMe
  2. EVGA GeForce RTX 3090 FTW3 ULTRA GAMING add-in card
  3. Intel Optane P5800X add-in card
  4. ASUS PCE-AX58BT wireless add-in card
  5. Corsair Force MP600 NVMe
  6. Elgato 4k60 PRO MK.2 capture add-in card
  7. Crucial SSD in SATA port

In addition, here's a diagram of what slots they are installed into: image

steve6375 commented 1 year ago

Well the USB peripherals are irrelevant since you disconnected ALL of them and still got the problem.

Do you have a USB 3 male to female USB extension cable - you could try that too because sometimes the braid/screening in a good quality USB 3 cable can absorb the high frequency interference on the ground and data lines on a USB 3 device and can fix a conducted rf noise issue.

It could be a driver issue - maybe Optane driver? or ASUS PCE-AX58BT wireless add-in card may be causing a problem by generating electrical noise which is interfering with the USB 3 data I/O signals or ground..

Easiest thing to do is maybe just pull out the wireless card from the PCI slot - just as a test. If that doesn't fix then maybe uninstall the Optane driver?

After that, you will have to remove all of the other peripherals.

I think this has to do with I/O data corruption at fast USB 3 speeds but I am not sure what it is caused by.

rewritten1 commented 1 year ago

Well the USB peripherals are irrelevant since you disconnected ALL of them and still got the problem.

Do you have a USB 3 male to female USB extension cable - you could try that too because sometimes the braid/screening in a good quality USB 3 cable can absorb the high frequency interference on the ground and data lines on a USB 3 device and can fix a conducted rf noise issue.

It could be a driver issue - maybe Optane driver? or ASUS PCE-AX58BT wireless add-in card may be causing a problem by generating electrical noise which is interfering with the USB 3 data I/O signals or ground..

Easiest thing to do is maybe just pull out the wireless card from the PCI slot - just as a test. If that doesn't fix then maybe uninstall the Optane driver?

After that, you will have to remove all of the other peripherals.

I think this has to do with I/O data corruption at fast USB 3 speeds but I am not sure what it is caused by.

I will give this a try and report my findings. In addition, I have another PC coming to me that is AMD-based to compare the behavior of what happens when I insert a Ventoy-formatted USB drive. I am going to have Windows 10 installed on the AMD PC, too, so I can compare if the OS version introduced a bug with my USB device.

rewritten1 commented 1 year ago

Well the USB peripherals are irrelevant since you disconnected ALL of them and still got the problem.

Do you have a USB 3 male to female USB extension cable - you could try that too because sometimes the braid/screening in a good quality USB 3 cable can absorb the high frequency interference on the ground and data lines on a USB 3 device and can fix a conducted rf noise issue.

It could be a driver issue - maybe Optane driver? or ASUS PCE-AX58BT wireless add-in card may be causing a problem by generating electrical noise which is interfering with the USB 3 data I/O signals or ground..

Easiest thing to do is maybe just pull out the wireless card from the PCI slot - just as a test. If that doesn't fix then maybe uninstall the Optane driver?

After that, you will have to remove all of the other peripherals.

I think this has to do with I/O data corruption at fast USB 3 speeds but I am not sure what it is caused by.

While I wait for the PC to arrive, I went ahead and installed a new copy of Windows 10 64-bit Version 22H2 on the Corsair NVMe. I fully updated the Windows OS to the latest build version (Windows 10 22H2, OS Build 19045.2364) and tried my ventoy formatted USB again. Each time I inserted the Ventoy USB in this copy of Windows 10, it came up immediately in File Explorer, no delay or error.

Perhaps my issue is software related? I tried the USB in Safe Mode on my Windows 11 installation and it still exhibited the same behavior. I am not sure if perhaps my Windows 11 installation has some corruption somewhere for it to persist within Safe Mode. I will continue to try different combinations of configuration.

ghost commented 1 year ago

Windows 11 22H2 has a bug where file transfer speeds are slower than they should be. Maybe that's causing the drive to take so long to show up? Either that, or you have some sort of driver issues.

ghost commented 1 year ago

I tried with a different generic USB that is not as large, 2GB in size, and I could not reproduce the stalling/hang problem in File Explorer. I tried another USB flash drive, a Sandisk Extreme Pro USB 3.0 128GB, and the stalling/hang problem in file explorer returned. Tested both USBs on another computer with Windows 10 instead of Windows 11, and they too had the same stalling/hang problem.

So far, I am experiencing this issue with large capacity USB drives on Windows. The small capacity USBs mount instantly in File Explorer after Ventoy has formatted them.

Interesting, so it persists even on 2 completely different PCs running different Windows versions. Maybe indexing is slowing Explorer down? Well, since the drive is empty after being formatted, then there's nothing there to index, so it can't be indexing. Have you tried accessing the drive through CMD/Powershell to see if it hangs there?

Sunrongguo2008 commented 1 year ago

Can you try to reproduce this problem on windows 10 system?

Sunrongguo2008 commented 1 year ago

My usb drive also had this problem in win 11, but in win 10, this problem doesn't happen anymore.

rewritten1 commented 1 year ago

Can you try to reproduce this problem on windows 10 system?

I installed a clean copy of Windows 10 22H2 and fully updated it and I could not reproduce the USB issue. I will test again on an AMD system with windows 11 sometime Jan next year.

I updated my optane driver, optane SSD firmware and the Intel rapid storage device driver to the latest. Still the same USB issue on my Intel windows 11 system.

rewritten1 commented 1 year ago

Windows 11 22H2 has a bug where file transfer speeds are slower than they should be. Maybe that's causing the drive to take so long to show up? Either that, or you have some sort of driver issues.

Drivers are up to date. I needed a new optane, nvme and Intel rapid storage driver. Still facing the issue on my Windows 11 computer. I will try reproducing this issue on a new AMD cpu computer and see if it happens there sometime in Jan.

rewritten1 commented 1 year ago

I'm really confused right now. After updating both the Intel NVMe and Rapid Storage drivers from the intel website, the problem with my USB hanging File Explorer now only happens once on each of the USB ports available on my computer. Then, on subsequent insertions to the same USB port, the USB shows up immediately in File Explorer with any issues. I want to say that the two driver installs managed to fix the issue I reported here, but, I'm not really sure. I'm unable to reproduce the problem again with my USB drive.

Really, really strange. But, at least its working for me now. Thank you everyone for your input!

jianboss1991 commented 1 year ago

U盘安装完 Ventoy 以后,插到系统中识别非常慢,复现问题

Ventoy Version 1.0.88

BIOS Mode UEFI Mode

Partition Style GPT

Disk Capacity 128GB

Disk Manufacturer thinkplus TU100 Pro

PC1:9400F+ASUS主板 PC2:thinkpad X1 Extreme Gen 3 (CPU:10885H)

估计是:USB Attached SCSI 设备+USB3.0+WIN11 的BUG

48f31d7772f14fcd71a5dbfafa543a5

Sunrongguo2008 commented 1 year ago

U盘安装完 Ventoy 以后,插到系统中识别非常慢,复现问题

Ventoy Version 1.0.88

BIOS Mode UEFI Mode

Partition Style GPT

Disk Capacity 128GB

Disk Manufacturer thinkplus TU100 Pro

PC1:9400F+ASUS主板 PC2:thinkpad X1 Extreme Gen 3 (CPU:10885H)

估计是:USB Attached SCSI 设备+USB3.0+WIN11 的BUG

48f31d7772f14fcd71a5dbfafa543a5

和我一样型号的U盘,一样的系统(win11),一样的问题 我多次格式化了此U盘(低格和高格),最后,这个BUG奇迹般地消失了

Aleksards commented 1 year ago

Unfortunately, I have the same problem as described above. Windows 11 22H2, USB SSD Transcedent 480GB, Ventoy 1.0.88. When connected to USB on different PCs (2 laptops and 1 desktop PC), the drive is detected for a very long time. Windows 11 installed a clean Pro version, without third-party software. Without Ventoy, there are no problems with the drive.

When connecting a drive with Ventoy to a computer with Windows 10 22H2, the problem is not observed. Sorry for my english, google translate.

rewritten1 commented 1 year ago

I spoke too soon. Now, the USB behavior is back to doing the same thing in my first post. It seems there is something that Windows doesn't like about USB with multiple partitions. Which is wildly strange because for the past two months, I wasn't running into this issue. I don't know what changed. Immediately after formatting the USBs I am testing with to be single partition, all of these mount delays and error messages go away.

steve6375 commented 1 year ago

The usual reason is you are using a fake capacity usb drive which has no memory in the last half of the drive.

rewritten1 commented 1 year ago

And if the USB is not one with a fake capacity, do you think the problem that @AleksanderS faced with Ventoy on a clean installation of Windows 11 without third-party software mean maybe Microsoft shares part in the blame of why the USB drives are taking forever to detect? Perhaps it isn't an issue that Ventoy is introducing at all. I thought the intel rapid storage drivers would keep my issue with it resolved but it ended up returning :/

steve6375 commented 1 year ago

It depends on the storage driver. Most windows storage drivers have very long timeouts and multiple retries on errors. So if there was a read error on any sector, it often takes ages to timeout and report an error to the calling code. If the partition 2 at the very end of the usb drive cannot be accessed then you can expect problems. Ventoy always creates a small partition at the very end of the drive, some other products don't.

Aleksards commented 1 year ago

My USB drive is not "Chinese", the capacity is checked and tested. Model SSD USB 3.1 480GB Transcend (TS480GESD240C). Made a BackUP of the driver "USB_AttachedSCSI(UAS)_Mass_Storage_Device) from Windows 10. Tomorrow I'll try to install Windows 11 and "slip" the driver from Windows 10

steve6375 commented 1 year ago

Why not just test the drive? Run FakeFlashTest.exe or h2testw.exe or use windows to create an NTFS partition 1 and an NTFS partition 2 in the last 1gb. Then copy video files to partition 2 to fill it and then try to play them.

Aleksards commented 1 year ago

USB drive tested FakeFlashTest.exe or h2testw.exe. The question is that in Windows 10 everything works fine, but in Win 11 when connected, the definition is very long. And yes, the problem is most likely in windows, and not ventoy. You can leave everything as it is, but sometimes you need to urgently connect a flash drive and transfer data, but you have to wait a couple of minutes until the flash drive is detected by the system. Whether the drive is empty or not doesn't matter. I'll continue testing tomorrow :)

ekszz commented 1 year ago

This is likely to be caused by a firmware bug in the bridge chip of the USB driver. When the bridge chip of the solid-state USB disk (such as Lenovo TU100 Pro) or mobile hard disk box you use is ASMedia (such as ASM235CM, ASM225CM, ASM1153E, etc.), some old versions (such as 171120_D1_1E_80.bin) of the firmware will cause the USB driver with multiple partitions to be recognized very slowly under WIN11. Even timed out. Try to upgrade to a different version of the firmware to solve it. I tried the firmware version 210830_D1_00_00.bin on the ASM235CM chip, and the problem completely disappeared. There are many leaked firmware and mass production tool on the Internet. Try it :)

Aleksards commented 1 year ago

This is likely to be caused by a firmware bug in the bridge chip of the USB driver. When the bridge chip of the solid-state USB disk (such as Lenovo TU100 Pro) or mobile hard disk box you use is ASMedia (such as ASM235CM, ASM225CM, ASM1153E, etc.), some old versions (such as 171120_D1_1E_80.bin) of the firmware will cause the USB driver with multiple partitions to be recognized very slowly under WIN11. Even timed out. Try to upgrade to a different version of the firmware to solve it. I tried the firmware version 210830_D1_00_00.bin on the ASM235CM chip, and the problem completely disappeared. There are many leaked firmware and mass production tool on the Internet. Try it :)

Thanks for the info. I flashed asm235cm with version 210830_D1_00_00, the disk detection worked. The activity indicator also works.

A-YouRanZiDe commented 12 months ago

Oh, I had the same problem with my ventoy on Windows 7, when I inserted my USB drive, Explorer showed that it was hanging.

A-YouRanZiDe commented 12 months ago

I formatted my USB drive, and it was fine! It's confusing.

wgetnz commented 11 months ago

My usb drive also had this problem in win 11, but in win 10, this problem doesn't happen anymore.