Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk becomes readonly after access to many small files #694

Open
WSandwitch opened this issue Sep 3, 2024 · 1 comment
Open

Disk becomes readonly after access to many small files #694

WSandwitch opened this issue Sep 3, 2024 · 1 comment

Comments

@WSandwitch
Copy link

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
Copy link
Author

WSandwitch commented Sep 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant