# Could not write next block after having written 0 bytes to Pico W

**URL:** <https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932>\
**Category:** Support\
**Created:** [January 22, 2024, 9:25pm UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932 "2024-01-22T21:25:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel-Jan](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@Marcel-Jan](https://forums.pimoroni.com/u/Marcel-Jan)\
**Post date:** [January 22, 2024, 9:25pm UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/1 "2024-01-22T21:25:57Z")

</div>

Recently I bought an Inky Frame 7.3 with Raspberry Pico W and I have to say I find the whole Pico thing kind of a struggle. Give me a ssh connection to a regular Raspberry Pi any day of the week.

I tried to upload my Strava dashboard code to the Pico via Thonny and very quickly, after uploading just a handful of .py files and really small .jpg’s I get this message:  
Could not write next block after having written 0 bytes to /StravaInky/strava.json

So I was wondering. Could it really be out of space already? Finding that out was not so easy either. But after some googling I found I could run this command:

```auto
import uos
uos.statvfs('/')

```

And the result is this:

```auto
(4096, 4096, 212, -10, -10, 0, 0, 0, 0, 255)

```

What I understand that there is indeed very little space left. That is weird. I have a 32 GB microSD card in there. Do I have to write to a different device or something?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 23, 2024, 8:47am UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/2 "2024-01-23T08:47:26Z")

</div>

I’m wondering if you are you actually saving to the SD Card?  
I’m thinking you may be saving to the 2MB on the Pico?  
Just a hunch, as I an no expert in this area.

---

<div class="post-metadata">

**Author:** ![Marcel-Jan](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@Marcel-Jan](https://forums.pimoroni.com/u/Marcel-Jan)\
**Post date:** [January 23, 2024, 9:30am UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/3 "2024-01-23T09:30:23Z")

</div>

Probably I’m on the Pico filesystem. This is what Thonny shows.  
 ![CleanShot 2024-01-23 at 10.29.04](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/a/ac6ce1cb51dd061fd77bc62460e808a42fd0bff6.png)

So now I have to figure out how to write to the 32 GB MicroSD instead.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 23, 2024, 9:39am UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/4 "2024-01-23T09:39:56Z")

</div>

I’ll plug a Pico in when I get a chance and poke around in Thonny. I don’t think I have anything with an SD card slot on it though?  
Time for my morning walk with my dog. =)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 23, 2024, 10:58am UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/5 "2024-01-23T10:58:41Z")

</div>

Stock Raspberry Pi Pico running stock Micro Python 1.22.0  
I honestly don’t know what it means though?

```auto
MicroPython v1.22.0 on 2023-12-27; Raspberry Pi Pico with RP2040

Type "help()" for more information.

>>> import os
>>> os.statvfs('/')
(4096, 4096, 352, 350, 350, 0, 0, 0, 0, 255)
>>> 

```

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 23, 2024, 11:05am UTC](https://forums.pimoroni.com/t/could-not-write-next-block-after-having-written-0-bytes-to-pico-w/23932/6 "2024-01-23T11:05:10Z")

</div>

I went to View and selected “Files”.  
Then went to Raspberry Pi Pico, clicked the hamburger icon and selected storage space.  
 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/6/6329a7d7a1c5cc79ff035c8d8ea12ec9b48b5f08.png)

EDIT: This might be worth a look see.  
[Pico Wireless - how to access SD card? - Support - Pimoroni Buccaneers](https://forums.pimoroni.com/t/pico-wireless-how-to-access-sd-card/17751/7)
