← index #4058Issue #6761
Related · high · value 0.551
QUERY · ISSUE

pyboard, swapping sd cards

openby rhubarbdogopened 2018-08-17updated 2024-09-29
port-stm32

hi,
in my /flash directory i have a SKIPSD file
i mount my SD card as follows os.mount(pyb.SDCard(),'/sd')
using screen i enter a REPL session
I issue the command os.umount("/sd")
os.listdir('/') proves it's safe to remove the disk.
I extract it and put a new SD Card in.
When i issuse the command os.mount(pyb.SDCard(),'/sd') i get an OSError , error 19 ENODEV.

is it possible to swap SD cards whilst the pyboard is running? or does in need to be hard reset?

CANDIDATE · ISSUE

Can't mount SD card error

closedby W-Erwinopened 2021-01-09updated 2022-06-10
port-stm32

I am just starting with coding and bought a pyboard to make my projects. I want to use a SD card but when I insert it, it gives the error code 'Can't mount SD card'.

It does recognize the SD card, because when I use the code pyb.SDCard().present() it says it is True. I have tried a few different Sd cards but they all give the same problem. I tried formatting the Sd cards but that doesn't help either.

Does anyone know how I can solve this? Because to my knowledge it should be 'plug and play'.
afbeelding

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied