maharmstone / btrfs

WinBtrfs - an open-source btrfs driver for Windows
GNU Lesser General Public License v3.0
5.92k stars 225 forks source link

[win] unmount/undock btrfs-datastick (usb) #652

Open AndreasQuast opened 6 months ago

AndreasQuast commented 6 months ago

Started using a btrfs-formatted usb-datastick both with linux and windows because problems with FAT but still failing with undocking it from win.

All MS-recommended ways to "Safely Remove Hardware" collapse because of being still busy with a program. Can't find a btrfs-process in taskmanager to be killed and duckduckgo did'nt help either.

Do we really have to restart windows to unplug the btrfs-stick from the notebook? Thanks for any answers. aq

LeonCame commented 6 months ago

In the meantime, to avoid having to restart,

a solution is to go to "Disk Management" - then on the disk concerned, right-click "Offline". Then the "eject" function works. (I don't know if this step "eject" is still necessary).

But when you reconnect the disk you will have to go through the same path and do "Online" again.

LeonCame commented 6 months ago

It worked twice and the third time I got a BSOD.

I have lost confidence, it is simply unusable with a DAS for which we need to simply eject the disks after an eject request from Windows.

For now it's either "not possible" or BSOD

Finally you're even happier when he tells you it's not possible.

lucianm commented 6 months ago

Alright, this is like the 6th or 7th issue related to not being able to cleanly unmount an USB-attached btrfs formatted disk (and no reaction in any of them, from the author, oh boy) in WinBtrfs-1.9. I did not have a BSOD yet, but also just trying out a professional brand new (arrived today) SanDisk G-DRIVE of 4TB which I wanted to use as a backup for my OMV data, and wondered what FS would be best to be able to also plug the external drive in my Windows10 work laptop. Apparently it's not btrfs, I will uninstall WinBtrfs.

LeonCame commented 6 months ago

Yes, development and responsiveness are too low.

And dealing with the old Microsoft gas plant must be complicated too, you have to be a code archaeologist.

Concerning the uninstallation, it's not easy either, I had to:

(Otherwise even this is not properly done or explained)

lucianm commented 6 months ago

Thanks for posting about uninstallation. I installed via chocolatey as suggested in the github frontpage. Wondering if it would manage to uninstall, probably it won't. Just had dinner while you already answered, now I'm back and will first shutdown before unplugging the drive, maybe I'll leave the driver installed even if I won't use it anymore, could that be a problem actually?

lucianm commented 6 months ago

Concerning the uninstallation, it's not easy either, I had to:

...

* use TakeOwnershipEx on files to be able to delete them in System32

Thanks for these hints. It took some patience and few reboots, even got around seeing any BSOD, found these registry hacks for taking ownership of files and got it uninstalled.