Skip to content

Consider adding a storage.format() to erase and create a fresh filesystem #577

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

Closed
dhalbert opened this issue Feb 3, 2018 · 3 comments
Closed

Comments

@dhalbert
Copy link
Collaborator

dhalbert commented Feb 3, 2018

It would be nice to be able to erase and re-create a damaged filesystem from the REPL or a program. Currently on non-Express boards we need to erase all of flash and then reload CircuitPython. On Express boards we have a special Arduino program that erases SPI flash, and then we need to reload CPy.

Something like storage.format(<filesystem>) would be helpful. One minor issue is how to specify the filesystem if it's so damaged we don't know what it's named.

Some previous discussion: #386 (comment) ff.

@dhalbert dhalbert added this to the Long term milestone Feb 3, 2018
@tannewt
Copy link
Member

tannewt commented Feb 5, 2018 via email

@dhalbert
Copy link
Collaborator Author

dhalbert commented Feb 5, 2018

The question I had was whether we can identify the mount point name if it's not mountable due to corruption. But I haven't looked at the code yet.

@tannewt
Copy link
Member

tannewt commented Feb 5, 2018 via email

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

No branches or pull requests

2 participants