Solved Windows caching USB drive, even after reboots.


Calab

Well-known member
Member
Local time
3:23 PM
Posts
111
Location
Alberta, Canada
OS
Windows 11 / Linux Mint
I have a very odd issue here...

I have a USB drive (actually a Raspberry Pi Pico 2) where the filesystem is not behaving as expected. I updated some code on the Pico 2, ejected the drive letter (K:), unplugged the cable, re-plugged the cable and now the filesystem seems "stuck". If I try to create a file, I get an unexpected error... Error 0x8000FFFF: Catastrophic failure.

I reboot my system and see the same issue. I assume a corrupted file system, so I wiped the flash memory successfully. I reinstall firmware, that I freshly downloaded from the internet, and my code is back on the drive, and I'm getting the same error. It looks like nothing was wiped.

So I assume that the Pico 2 has a hardware failure. I shut down the system and replace the Pico 2 with a brand new one. I boot back into Windows and... My old files are *STILL* there on the USB drive. That is impossible as the old Pico 2 is not physically connected to the computer and thew new Pico 2 has never been plugged into a PC before.

Why do I think that this is a Windows issue? I shut down my PC and booted into Mint Linux. Both Pico 2 drives work normally. No issues whatsoever. I reboot into Windows and the issue returns. I still see the old files and can't write to the filesystem.

Thinking that this is a device issue. I unplug the Pico2. Then I go to device manager and show hidden devices. I uninstall every Pico 2 that I can find. Reboot the PC and then plug in the Pico 2... Same issue.

Where would Windows be caching this outdated drive information and how can I correct this?
 
Windows Build/Version
25H2 OS build 26200.7462

My Computers

System One System Two

  • OS
    Windows 11 / Linux Mint
    Computer type
    PC/Desktop
    Manufacturer/Model
    C.S.D.
    CPU
    i9-12900k
    Motherboard
    Gigabyte Z690 UD AX DDR4
    Memory
    32 GB DDR4
    Graphics Card(s)
    Strix RTX 3060
    Sound Card
    Onboard
    Monitor(s) Displays
    LG QNED75URA 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    One 1tb M.2 for Windows, one 500gb M.2 for Linux, and a 8 TB HDD for data
    PSU
    850 watt
    Case
    Cougar
    Cooling
    upHere D6SEC CPU Cooler
    Keyboard
    Logitech G213
    Mouse
    Logitech G305
    Internet Speed
    1Gbit/100mb
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Bluray optical writer drive
  • Operating System
    SpartaDOS
    Computer type
    PC/Desktop
    Manufacturer/Model
    Atari 600XL
    CPU
    6502C
    Memory
    Ultimate 1MB
    Graphics card(s)
    Sophia 2
    Monitor(s) Displays
    Sony MFM-HT95
    Screen Resolution
    320x200
    Hard Drives
    SIDE3
    PSU
    USB
Maybe the is an issue with not setting it up correctly. Take a look at these video's. The Pico2 device should be under COM devices as an USB device. If Windows has not installed the correct driver for it the system it can get issues.
How to setup things:
An other video;
This video if you experience a yellow question mark along the COM device of the Pico2.
Maybe one of these video's give you a clue what is going wrong.
There seems to be an driver issue on your Windows PC.
 

My Computer

System One

  • OS
    Win 11 Pro "25H2" Build 26200.8524, Zorin OS Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self built
    CPU
    Intel® Core™ i7-12700KF 12th Gen.
    Motherboard
    ASUS Prime Z690-A, BIOS v4505
    Memory
    32GB DDR5 5600-36 Vengeance
    Graphics Card(s)
    PCIe4.0 Asus NVIDIA RTX3060Ti
    Sound Card
    Onboard; Realtek
    Monitor(s) Displays
    34" LG 34UC79G-B Curved 21:9 144Hz
    Screen Resolution
    2560x1080 (No HDR)
    Hard Drives
    250Gb Samsung 870PRO NVMe (Win 11 Pro)
    1Tb Samsung 980PRO NVMe
    1Tb Samsung 970EVO NVMe
    2Tb Samsung 990PRO NVMe with heatsink.
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    3Tb WDC WD30EFRZ Red SATA (Int.)
    256Gb Samsung 840PRO SSD (RHEL 9,5)
    256Gb Samsung 850PRO SSD (Zorin OS Pro 18)
    PSU
    Coolermaster 850W V2 Gold with internal 12cm exaust fan
    Case
    Be-Quiet Pure Base 600.
    Cooling
    3x Be-Quiet! 12/14cm "Silent Wings 4" casefans, 1x Arctic Freezer i35 CPU towerblock with fan.
    Keyboard
    Steelseries APEX 7 keyboard.
    Mouse
    Logitech G-502 Hero
    Internet Speed
    1Gb
    Browser
    Brave
    Antivirus
    F-Secure
    Other Info
    No Noise system.
    256Gb Kingston Travler USB 3.0 drive.
    64Gb Sandisk USB 3.2 drive. (Ventoy)
    8Gb Philips USB 3.0 drive. (Win. Inst.)
    8Gb Philips USB 3.0 drive. (Rescue disk)
    2Tb WD USB 3.0 Passport drive.
    USB Ext. 500Gb WD SATA drive.
    External USB 3.0 C.A. CD/DVD* burner.
Can you disconnect all usb devices and if the Linux system is on a separate drive,then disconnect it.The intention is to only have Win 11 available.
If so,then restart the PC and in Task Manager>Startup,disable all third party programmes from autostart.
In Terminal [admin] type in---dism /online /cleanup-image /restorehealth ---and run it.
Next type in ---sfc /scannow ---and run it until a clean report is given.
Reintroduce the drive and usb devices ONE at a time to identify which one,if any ,caused the problem.
 

My Computer

System One

  • OS
    win 10
    Computer type
    PC/Desktop
    Manufacturer/Model
    home built
    CPU
    amd ryzen 5-2600
    Motherboard
    gigabyte b450m-ds3h
    Memory
    ng skill sniper x 16gb
    Graphics Card(s)
    nvidea gtx 1050
    Monitor(s) Displays
    benq fp 92
    Hard Drives
    samsung 860 evo 500gb m2 ssd
    PSU
    antec ea550g
    Case
    nzxt noctis 450
    Browser
    edge
Just to test further. I opened a Windows 10 VM on my Windows 11 PC. I connected the Pico 2 USB device to the VM and the devices came up in the Device Manager. I was able to edit the code.py file without any issues. I shut down the VM and let the Pico 2 connect back to the host and it's won't let me write do the Pico 2 disk again.

This rules out any hardware issues on the USB side of things.

There must be something corrupted in my Windows 11 system... no idea what it could be.

What I've tried:
- Deleting all the Pico 2 devices from device manager, including hidden ones
- Changing the drive letter used my the Pico 2
- Tested fine on Mint Linux
- Tested fine on another Windows PC
- Tested fine on a Windows 10 VM on the same PC that is having problems.
 

My Computers

System One System Two

  • OS
    Windows 11 / Linux Mint
    Computer type
    PC/Desktop
    Manufacturer/Model
    C.S.D.
    CPU
    i9-12900k
    Motherboard
    Gigabyte Z690 UD AX DDR4
    Memory
    32 GB DDR4
    Graphics Card(s)
    Strix RTX 3060
    Sound Card
    Onboard
    Monitor(s) Displays
    LG QNED75URA 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    One 1tb M.2 for Windows, one 500gb M.2 for Linux, and a 8 TB HDD for data
    PSU
    850 watt
    Case
    Cougar
    Cooling
    upHere D6SEC CPU Cooler
    Keyboard
    Logitech G213
    Mouse
    Logitech G305
    Internet Speed
    1Gbit/100mb
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Bluray optical writer drive
  • Operating System
    SpartaDOS
    Computer type
    PC/Desktop
    Manufacturer/Model
    Atari 600XL
    CPU
    6502C
    Memory
    Ultimate 1MB
    Graphics card(s)
    Sophia 2
    Monitor(s) Displays
    Sony MFM-HT95
    Screen Resolution
    320x200
    Hard Drives
    SIDE3
    PSU
    USB
I tried out the Device Cleanup Tool found here: Tools for Windows and it seems to have helped some. The Pico 2 still has issues occasionally, but I can work around them and get it back to normal.

I think the issue is that I am trying to use the Pico2 to be a HID keyboard and gaming device and I'm not setting the descriptors properly... or there is an issue with the CircuitPython modules that I am using.
 

My Computers

System One System Two

  • OS
    Windows 11 / Linux Mint
    Computer type
    PC/Desktop
    Manufacturer/Model
    C.S.D.
    CPU
    i9-12900k
    Motherboard
    Gigabyte Z690 UD AX DDR4
    Memory
    32 GB DDR4
    Graphics Card(s)
    Strix RTX 3060
    Sound Card
    Onboard
    Monitor(s) Displays
    LG QNED75URA 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    One 1tb M.2 for Windows, one 500gb M.2 for Linux, and a 8 TB HDD for data
    PSU
    850 watt
    Case
    Cougar
    Cooling
    upHere D6SEC CPU Cooler
    Keyboard
    Logitech G213
    Mouse
    Logitech G305
    Internet Speed
    1Gbit/100mb
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Bluray optical writer drive
  • Operating System
    SpartaDOS
    Computer type
    PC/Desktop
    Manufacturer/Model
    Atari 600XL
    CPU
    6502C
    Memory
    Ultimate 1MB
    Graphics card(s)
    Sophia 2
    Monitor(s) Displays
    Sony MFM-HT95
    Screen Resolution
    320x200
    Hard Drives
    SIDE3
    PSU
    USB
This is a really strange issue! It sounds like Windows is holding onto cached drive letter assignments in the registry even after the physical device has changed. Here are some things to try:

1. **Clear the USB storage driver cache** - Open Device Manager, go to View > Show hidden devices. Expand "Disk drives" and look for any grayed-out entries (your old Pico 2). Right-click and uninstall them, checking "Delete the driver software" if the option appears.

2. **Remove mountpoint registry entries** - Open Registry Editor and navigate to:
`HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices`

Look for entries related to K: drive and delete them (backup first!). This forces Windows to rebuild the drive letter associations from scratch.

3. **Try USBDeview** - This free utility from NirSoft can show you all USB devices that have ever been connected. You can remove ghost entries that Windows is still tracking.

4. **Assign a different drive letter** - Try manually assigning a different letter to your new Pico 2 in Disk Management to see if the issue follows the letter or the device.

The fact that it works fine in Linux confirms this is definitely a Windows caching issue rather than hardware.
 

My Computer

System One

  • OS
    windows 11
It was the USB descriptors I was using on the Pico. Now that I have proper descriptors I haven't had any issues.
 

My Computers

System One System Two

  • OS
    Windows 11 / Linux Mint
    Computer type
    PC/Desktop
    Manufacturer/Model
    C.S.D.
    CPU
    i9-12900k
    Motherboard
    Gigabyte Z690 UD AX DDR4
    Memory
    32 GB DDR4
    Graphics Card(s)
    Strix RTX 3060
    Sound Card
    Onboard
    Monitor(s) Displays
    LG QNED75URA 43" TV
    Screen Resolution
    3840x2160
    Hard Drives
    One 1tb M.2 for Windows, one 500gb M.2 for Linux, and a 8 TB HDD for data
    PSU
    850 watt
    Case
    Cougar
    Cooling
    upHere D6SEC CPU Cooler
    Keyboard
    Logitech G213
    Mouse
    Logitech G305
    Internet Speed
    1Gbit/100mb
    Browser
    Firefox
    Antivirus
    Microsoft
    Other Info
    Bluray optical writer drive
  • Operating System
    SpartaDOS
    Computer type
    PC/Desktop
    Manufacturer/Model
    Atari 600XL
    CPU
    6502C
    Memory
    Ultimate 1MB
    Graphics card(s)
    Sophia 2
    Monitor(s) Displays
    Sony MFM-HT95
    Screen Resolution
    320x200
    Hard Drives
    SIDE3
    PSU
    USB
It was the USB descriptors I was using on the Pico. Now that I have proper descriptors I haven't had any issues.
Glad to see that this has been solved.
So in the end; The pico2 USB device was sending the wrong information about itself in such a way that it screwed up things?
I suppose that should not be the case by default. What did you do to deviate from that default settings?
Was this a Windows 11 driver issue?
Curious to know.... We take it for granted; Sticking a USB device into a system and let the O/S know what it is and how it should behave...
 

My Computer

System One

  • OS
    Win 11 Pro "25H2" Build 26200.8524, Zorin OS Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self built
    CPU
    Intel® Core™ i7-12700KF 12th Gen.
    Motherboard
    ASUS Prime Z690-A, BIOS v4505
    Memory
    32GB DDR5 5600-36 Vengeance
    Graphics Card(s)
    PCIe4.0 Asus NVIDIA RTX3060Ti
    Sound Card
    Onboard; Realtek
    Monitor(s) Displays
    34" LG 34UC79G-B Curved 21:9 144Hz
    Screen Resolution
    2560x1080 (No HDR)
    Hard Drives
    250Gb Samsung 870PRO NVMe (Win 11 Pro)
    1Tb Samsung 980PRO NVMe
    1Tb Samsung 970EVO NVMe
    2Tb Samsung 990PRO NVMe with heatsink.
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    4Tb WDC WD40EZRZ Blue SATA (Int.)
    3Tb WDC WD30EFRZ Red SATA (Int.)
    256Gb Samsung 840PRO SSD (RHEL 9,5)
    256Gb Samsung 850PRO SSD (Zorin OS Pro 18)
    PSU
    Coolermaster 850W V2 Gold with internal 12cm exaust fan
    Case
    Be-Quiet Pure Base 600.
    Cooling
    3x Be-Quiet! 12/14cm "Silent Wings 4" casefans, 1x Arctic Freezer i35 CPU towerblock with fan.
    Keyboard
    Steelseries APEX 7 keyboard.
    Mouse
    Logitech G-502 Hero
    Internet Speed
    1Gb
    Browser
    Brave
    Antivirus
    F-Secure
    Other Info
    No Noise system.
    256Gb Kingston Travler USB 3.0 drive.
    64Gb Sandisk USB 3.2 drive. (Ventoy)
    8Gb Philips USB 3.0 drive. (Win. Inst.)
    8Gb Philips USB 3.0 drive. (Rescue disk)
    2Tb WD USB 3.0 Passport drive.
    USB Ext. 500Gb WD SATA drive.
    External USB 3.0 C.A. CD/DVD* burner.

Latest Support Threads

Back
Top Bottom