Macrium Support Forum

External Drive Can't Be Removed After 8.1.7280 Update

https://forum.macrium.com/Topic67586.aspx

By owensdj - 12 January 2023 1:23 AM

Windows 11 is unable to "eject" the external USB hard drive I use for Macrium Reflect backups after I installed the update to 7280.  It says the device is in use.  This was a bug in Macrium Reflect in the past and looks like there was a regression.
By dbminter - 12 January 2023 3:07 AM

Possibly something where CBT is holding on to volumes and not letting them go.  Towards the end of beta testing, an update to CBT was causing USB HDD partitions to be listed as In Use on attempts to remove drive letters when they weren't in use.  Maybe not everything in the CBT updates was caught.
By Pawel Orl - 12 January 2023 7:30 AM

I confirm - the USB external drive cannot be removed  8.1.7280

By dbminter - 12 January 2023 1:43 PM

I may have encountered this during the beta testing of 8.1 but unconsciously didn't report it.  I had connected 2 USB HDD's around January 2nd that wouldn't Eject.  I just wrote it off as Windows being picky again as it's wont to not Eject some USB devices.  Like Samsung T5's.
By jphughan - 12 January 2023 5:51 PM

As a workaround, you could uninstall just the CBT component.  It might cause Differential and Incremental backups to take longer than they otherwise would, but the difference will depend on how frequently you make backups and the average size of files on the volume being backed up.  If you want to go that route, go to Programs and Features, select Reflect, click Change, select Modify in the wizard, uncheck CBT, and proceed through the wizard and restart when prompted.
By dbminter - 12 January 2023 5:57 PM

@jphughan


Some other testing done by another user seems to indicate the CBT driver update is the culprit for USB devices not Ejecting after installing 8.1.


https://forum.macrium.com/67528/PC-does-not-boot-anymore-after-81-upgrade?PageIndex=4
By DFINO - 14 January 2023 3:20 PM

owensdj - 12 January 2023 1:23 AM
Windows 11 is unable to "eject" the external USB hard drive I use for Macrium Reflect backups after I installed the update to 7280.  It says the device is in use.  This was a bug in Macrium Reflect in the past and looks like there was a regression.

Same problem with Windows 10 Pro
By dbminter - 14 January 2023 3:24 PM

I cannot replicate the issue with 8.1.7282 on USB flash thumb drives and Samsung T7 USB SSD's.  Haven't been able to test a USB HDD, though.
By Froggie - 14 January 2023 4:01 PM

I can confirm that this is an issue during the v8.1.x testing prior to Build#7280 and is definitely CBT-related.  It's too much trouble to walk back all the BETA test versions to see where it started... the Devs should be able to find this issue.
By dbminter - 14 January 2023 4:25 PM

It most likely started with the release of 8.1.7248.  That was the build where I had a CBT issue where it was keeping partitions "In Use" in Disk Management when attempting to remove drive letters from partitions.  It had not been present before 7248.
By DanDanz - 14 January 2023 4:59 PM

dbminter - 14 January 2023 4:25 PM
It most likely started with the release of 8.1.7248.  That was the build where I had a CBT issue where it was keeping partitions "In Use" in Disk Management when attempting to remove drive letters from partitions.  It had not been present before 7248.

I also believe it started in 8.1.7248.  See my detailed reply to this post
and specifically my reply posted 13 January 2023 1:29 PM (CST) that deals with a locked eSATA disk - configured in BIOS as a removable drive.
By dbminter - 14 January 2023 5:59 PM

The change log for 7248 does indicate a change was made to the CBT driver:

"Changed Block Tracker
Improved I/O scheduling under low memory conditions."
By Netspeedz - 19 September 2023 4:40 PM

I can confirm this is an issue with Build 7368. 

Work around - I use two different batch files and a text file to force eject the USB drive used in cloning drive.

First batch file (I named EjectUSB.bat)
@echo off
set tempfile="%TEMP%\diskscrp.dsk"
REM ***************************************************************************************************
REM * You will need to replace the call to listvolumes.bat with the actual location of the batch file and accompanying TXT file *
REM ***************************************************************************************************
REM diskpart /s %userprofile%\documents\utilities\ejectusb\listvolumes.txt
call %userprofile%\documents\utilities\ejectusb\listvolumes.bat
echo.
set /p volume=" Which volume do you want to eject? "
echo.
echo select volume %volume% >>%tempfile%
echo offline disk >>%tempfile%
echo online disk >>%tempfile%
diskpart /s %tempfile% | findstr /C:"not valid"
if "%ERRORLEVEL%"=="1" (
 echo Disk has been unlocked successfully. Try to safely remove it now.
 pause
)
del /F %tempfile%
pause
echo any key to exit

The second batch file (I named listvolumes.bat)
diskpart /s %userprofile%\documents\utilities\ejectusb\listvolumes.txt
pause

The listvolumes.txt contains the following diskpart command:
list vol

Not 'fancy' but it works:-)
By dbminter - 19 September 2023 4:46 PM

This should have been addressed by now.  I know it's not an issue with Samsung T7 USB SSD's as I've had no issues Ejecting those for months.
By Netspeedz - 19 September 2023 4:55 PM

dbminter - 19 September 2023 4:46 PM
This should have been addressed by now.  I know it's not an issue with Samsung T7 USB SSD's as I've had no issues Ejecting those for months.

Copy that. I sent an email to Macrium Support and the response I received was very disappointing and not very helpful:
At this time, we don’t have the bandwidth to complete your request. I apologize that we can’t provide a direct solution . . .   .
I plan on tinkering with making a Macrium script after the clone is completed that would run the EjectUSB.bat file (given in my initial post).