Input/Output error

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RoseNose
 
Posts: 17
Joined: Thu Jan 25, 2018 2:50 pm

Input/Output error

Post by RoseNose »

Code: Select all

Failed to open directory "CIRCUITPY"
Error when getting information for file "/media/tost/CIRCUITPY/lib": Input/Output error.
I had an unexpected reboot on my QT PY rp2040 and the drive has locked up on me. At first I just had to reinstall the uf2 and rebuild the lib folder, but when it happened again the little bugger locked up for good. I can enter the bootloader but neither the 7.x or latest .uf2 allow me to access the drive. Is my board just shot, or are there more comprehensive resets I could do?

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Input/Output error

Post by adafruit_support_carter »

Can you still access the REPL?

User avatar
RoseNose
 
Posts: 17
Joined: Thu Jan 25, 2018 2:50 pm

Re: Input/Output error

Post by RoseNose »

I can't access the REPL or the drive at all, even from my file browser

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Input/Output error

Post by adafruit_support_carter »

OK, sounds like maybe the filesystem got corrupted and that's preventing CicuitPython from coming up. Recovery involves erasing all of the file contents. But at this point I'm not sure you can even access them anymore. So you will lose any of your code (.py) files you had stored on the board.

To recover, try this:

First, download a 7.x version of the CircuitPython firmware from here:
https://circuitpython.org/board/qtpy_m0/
Put your board in bootloader mode and drag that UF2 to the BOOT folder.
It'll reset and most likely you will still not see the CIRCUITPY folder.
We now want to try to get the board into safe mode. To do that, press the reset button and watch the RGB NeoPixel on the Qt Py. Soon after pressing reset, you should see it flash yellow. When it does, press reset again.

Doing that, can you get the CIRCUITPY folder to show up?

User avatar
RoseNose
 
Posts: 17
Joined: Thu Jan 25, 2018 2:50 pm

Re: Input/Output error

Post by RoseNose »

Huzzah! Took a few tries but I've managed to successfully access the folder. I can see the lib folder, .Trashes, default code.py, etc. Is it now safe to use, or is there another recovery step I need to take to make sure it doesn't revert when I boot normally?

(Also, I'd recommend putting the safe boot instructions in the FAQ part of the instructional)

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: Input/Output error

Post by adafruit_support_carter »

OK, that safe mode process was just to get us to a point where we could access the board again.

Go ahead and copy off whatever files you want to save from CIRCUITPY, if it lets you.

Then, you should be able to access REPL and do this next:
https://learn.adafruit.com/welcome-to-c ... 2987288-27

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”