maharmstone / btrfs

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

Disk becomes readonly after access to many small files #694

Open WSandwitch opened 2 weeks ago

WSandwitch commented 2 weeks ago

I am using Yoga book 2 laptop, and the only way to extend storage is SD card. Unfortunately disk becomes readonly after copying many files (first it happens after 400k+). Now it happens when I try to run configure for nginx build in WSL1. To reproduce:

wget https://nginx.org/download/nginx-1.24.0.tar.gz
tar -xf nginx-1.24.0.tar.gz
cd nginx-1.24.0
./configure

and after that it becomes readonly. After reboot it works well and scrub does not find any errors.

WSandwitch commented 1 week ago

I have found a way to avoid readonly state. I make raw dump disk.img file of whole disk and copy it on sd card, formatted to exfat. After that I mount exfat drive as ntfs folder c:/sd, and configure app OSFMount for mount disk.img as virtual drive in read/write mode. Command to mount file in my environment is:

"C:\Program Files\OSFMount\OSFMount.com" -a -t file -m D: -o rw -f C:\SD\disk.img

If you need automount you can add task like in this tutorial. This is not a solution for general problem, but now I can use disk without issues, with one limitation - properties of virtual drive do not contain "btrfs" tab, but properties of files contains it.