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

Read only SD card when using Seedvault #760

Open
Kamul-PL opened this issue Oct 1, 2024 · 4 comments
Open

Read only SD card when using Seedvault #760

Kamul-PL opened this issue Oct 1, 2024 · 4 comments
Labels
needs info Requires more information from reporter

Comments

@Kamul-PL
Copy link

Kamul-PL commented Oct 1, 2024

Hello,
I've been using Seedvault with LineageOS for a few days now and I noticed, that my external SD card is read only since a few days also. I'm not 100% sure, that guilty is Seedvault, but I've made some research and here are my observations:

  • I use the external SD card as my backup destination
  • when I reboot my phone, the SD card is becoming writable again
  • some time after next Seedvault activation the SD card is read only again (for test purposes I use manually triggered backups)
  • it seems there's not such an effect if I use internal (emulated) SD card as a place for backups

My SD card (128 GB) is quite new (about 1 month), and not used much, so the hardware shouldn't be the problem.
Does anyone have any ideas, what could that mean? Has anyone had a similar experience? Should I create an issue here?

@grote
Copy link
Collaborator

grote commented Oct 1, 2024

Should I create an issue here?

You already created an issue. There's also discussions for questions.

I noticed, that my external SD card is read only since a few days also.

Seedvault uses the Storage Access Framework (SAF) to access the SD card. This is a public system API that also other apps like the file manager use. Seedvault isn't setting anything to read-only intentionally.

My SD card (128 GB) is quite new (about 1 month), and not used much, so the hardware shouldn't be the problem.

Can still be the problem. Did you try running fsck on it?

You can also disable seedvault and see if the problem continues. If not, try writing large amounts of data via the file manager to the card and see if this creates readonly state.

@Kamul-PL
Copy link
Author

Kamul-PL commented Oct 1, 2024

Thank you for your reply!

You already created an issue. There's also discussions for questions.

It's hard to disagree. ;)

My SD card (128 GB) is quite new (about 1 month), and not used much, so the hardware shouldn't be the problem.

Can still be the problem. Did you try running fsck on it?

Of course, new doesn't necessarily mean working, but the probability should be much higher.
About fsck - didn't I need root for that? Unfortunately I unrooted my phone quite recently. ;)

You can also disable seedvault and see if the problem continues. If not, try writing large amounts of data via the file manager to the card and see if this creates readonly state.

I'll make some tests and get back here.

@grote
Copy link
Collaborator

grote commented Oct 1, 2024

About fsck - didn't I need root for that? Unfortunately I unrooted my phone quite recently. ;)

It is an SD card. Can't you power off the phone, remove the card, run tests with a computer and then put it back?

@Kamul-PL
Copy link
Author

Kamul-PL commented Oct 1, 2024

True, sometimes the hardest thing is to come up with the most obvious solutions.
But on the other hand - it's enough to reboot the phone to temporarily solve the problem. So, disconnecting it from the phone and placing in computer's card reader probably will do the same.

@grote grote added the needs info Requires more information from reporter label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Requires more information from reporter
Projects
None yet
Development

No branches or pull requests

2 participants