# OSError: The logical drive number is invalid

**URL:** <https://forums.openmv.io/t/oserror-the-logical-drive-number-is-invalid/139>\
**Category:** OpenMV Boards\
**Created:** [October 16, 2016, 8:15pm UTC](https://forums.openmv.io/t/oserror-the-logical-drive-number-is-invalid/139 "2016-10-16T20:15:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonC](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RonC](https://forums.openmv.io/u/RonC)\
**Post date:** [October 16, 2016, 8:15pm UTC](https://forums.openmv.io/t/oserror-the-logical-drive-number-is-invalid/139/1 "2016-10-16T20:15:17Z")

</div>

I am trying to save an image to the SD card on my OpenMV.  
My PC sees the OpenMV as drive G:, but I get the error shown on the subject above.  
What am I doing wrong?

Here is a code snippet:  
img = sensor.snapshot()  
img.save(“G:\myPrograms\theImage.jpg”)

Thanks,  
RonC

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [October 16, 2016, 9:00pm UTC](https://forums.openmv.io/t/oserror-the-logical-drive-number-is-invalid/139/2 "2016-10-16T21:00:18Z")

</div>

Hi Ron,

From the camera’s perspective there’s only one drive (the internal flash or micro sd) and it doesn’t use letters. You can save the image as just “theImage.jpg” and it will save it to the internal flash or to micro sd if it’s connected.

---

<div class="post-metadata">

**Author:** ![RonC](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RonC](https://forums.openmv.io/u/RonC)\
**Post date:** [October 16, 2016, 9:45pm UTC](https://forums.openmv.io/t/oserror-the-logical-drive-number-is-invalid/139/3 "2016-10-16T21:45:08Z")

</div>

Thanks “iabdalkader”. It works 🙂
