Skip to content

storage.remount disable_concurrent_write_protection #9334

Open
@mikeysklar

Description

@mikeysklar

CircuitPython version

CircuitPython 9.0.5
Feather RP2040

Code/REPL

import storage

# Remount the filesystem as writable with concurrent write protection disabled
storage.remount("/", readonly=False, disable_concurrent_write_protection=True)

Behavior

Still seeing drive mounted as read-only when laptop is rebooted, but Feather is powered from USB hub.

Description

In this case the desired behavior is to override the write_protection so development work can be resumed when the computer USB connection comes back.

MacOS Ventura (13.6.3)
MacBook Air M2

Additional information

Based on Forum Thread from @blakeBR who shutdown his Windows desktop each night and would like to resume work on his USB hub powered controllers in the AM. His testing was on Windows and mine was on MacOS.

simple cpu temp code running as code.py

import time
import microcontroller

while True:
    print(microcontroller.cpu.temperature)
    time.sleep(5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions