# Cannot save to SD card

**URL:** <https://forums.openmv.io/t/cannot-save-to-sd-card/7008>\
**Category:** OpenMV Boards\
**Created:** [April 12, 2022, 3:22am UTC](https://forums.openmv.io/t/cannot-save-to-sd-card/7008 "2022-04-12T03:22:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://forums.openmv.io/u/Philip)\
**Post date:** [April 12, 2022, 3:22am UTC](https://forums.openmv.io/t/cannot-save-to-sd-card/7008/1 "2022-04-12T03:22:59Z")

</div>

Hi,

I am trying to save video to the SD card using a H7+, as in the mjpeg example. However, it appears the SD card is not being detected by the camera during startup: the SD card is not visible when mounting the camera in windows, the camera does not run a main.py loaded there manually, and scripts run from the IDE save output to the internal flash. However, the card is visible when running

```auto
import pyb
sd=pyb.SDCard()
print(sd.present(), sd.info())

```

as recommended [here](https://forums.openmv.io/t/detect-sd-card-absence-to-give-warning/6032/2), which showed that pyb.SDCard().present() was true. However, using uos.statvfs(‘/’) showed that the root FS had only 8183 x 4096 byte blocks.

I also tried manually mounting, in accordance with the [micropython documentation](https://docs.micropython.org/en/latest/library/machine.SDCard.html#machine.SDCard) but this failed with errorno ENODEV.

It does not appear to be a hardware issue: the card works fine on my laptop’s own slot, but not in any H7 or HT+ I tried, and the card is a SanDisk Ultra 16GB C10 card (a type tested successfully [here](https://forums.openmv.io/t/problems-with-counting-time-intervals-sd-performance/1928/6)). I am using the latest firmware (4.3.0), but had the same problem before updating too, so I suspect the problem is user error somehow. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [April 13, 2022, 3:39am UTC](https://forums.openmv.io/t/cannot-save-to-sd-card/7008/2 "2022-04-13T03:39:52Z")

</div>

When you connect the card to the camera and then plug the camera into the PC what disk shows up?

Is present just tests a GPIO pin… but, if the card file system cannot be mounted then it will not appear.

---

<div class="post-metadata">

**Author:** ![Philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Philip](https://forums.openmv.io/u/Philip)\
**Post date:** [April 19, 2022, 1:56am UTC](https://forums.openmv.io/t/cannot-save-to-sd-card/7008/3 "2022-04-19T01:56:16Z")

</div>

I see the internal flash when connected via USB.

I can write to the SD card using `pyb.SDCard().writeblocks()`, and then extract the data from the raw device file on a laptop, which makes me think that the problem is mounting the card, but I’ve tried both exFAT and FAT formats and neither worked

---

<div class="post-metadata">

**Author:** ![Stimpy](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@Stimpy](https://forums.openmv.io/u/Stimpy)\
**Post date:** [April 19, 2022, 3:24pm UTC](https://forums.openmv.io/t/cannot-save-to-sd-card/7008/4 "2022-04-19T15:24:08Z")

</div>

Any resolution on this one? seems to be the problem I have as well.
