Titano OSError: [Errno 5] Input/output error

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Titano OSError: [Errno 5] Input/output error

Post by jkcbwpnet »

I was porting code from the esp32-s2-tft feather to the Titano to get a bigger screen. There are a lot of differences and I feel like I am devolving to that device honestly. They both have the esp chip, but it says my signal is a smaller number and it says unable to connect more often, even when the devices are very near. I was hitting memory allocation issues. If my code has to be smaller, then I feel the hardware is missing. It's all about the code... So everything was working itself out one error fix at a time. Then blam!

I downloaded the pyportal interface sample thingy to get the wav files and I copied the font and sound folder and merged the image folder with mine and when it rebooted I got input output error. It really sucks because it closed my editor and I hadn't backed up to my other location yet. I had just started to add some buttons and I was going to add the sounds to the button presses like the demo.

OSError: [Errno 5] Input/output error

I reflashed the uf2. I can't do anything. The files are still there of course because that is like a different partition or something, but the file system is weird.

Code: Select all

sparky@USAP42:/media/sparky/CIRCUITPY$ sudo rm code.py
[sudo] password for sparky: 
rm: cannot remove 'code.py': Read-only file system
sparky@USAP42:/media/sparky/CIRCUITPY$ ls -al
total 41
drwxr-xr-x  7 sparky sparky 16384 Dec 31  1969 .
drwxr-x---+ 3 root   root    4096 Jun 22 08:50 ..
-rw-r--r--  1 sparky sparky   111 Dec 31  1999 boot_out.txt
-rw-r--r--  1 sparky sparky 12454 Jun 22 07:44 code.py
drwxr-xr-x  2 sparky sparky  1024 Jun 22 06:27 fonts
drwxr-xr-x  2 sparky sparky  1024 Jun 22 08:29 images
drwxr-xr-x  7 sparky sparky  2048 Jun 21 08:10 lib
-rw-r--r--  1 sparky sparky   206 Jun 15 12:08 secrets.py
drwxr-xr-x  2 sparky sparky  1024 Jun 22 06:27 sounds
drwxr-xr-x  4 sparky sparky  1024 Jun 15 12:02 .Trash-1000
sparky@USAP42:/media/sparky/CIRCUITPY$ cd ..
sparky@USAP42:/media/sparky$ ls -al
total 24
drwxr-x---+ 3 root   root    4096 Jun 22 08:50 .
drwxr-xr-x  3 root   root    4096 Jun  6 06:07 ..
drwxr-xr-x  7 sparky sparky 16384 Dec 31  1969 CIRCUITPY
sparky@USAP42:/media/sparky$ 
and this is the esp32-s2-tft:

Code: Select all

sparky@USAP42:/media/sparky/CIRCUITPY$ ls -al
total 37
drwxr-xr-x  6 sparky sparky 16384 Dec 31  1969  .
drwxr-x---+ 3 root   root    4096 Jun 22 09:08  ..
-rw-r--r--  1 sparky sparky   127 Dec  3  2016  boot_out.txt
-rw-r--r--  1 sparky sparky 12655 Jun 18 12:58  code.py
drwxr-xr-x  2 sparky sparky   512 Jun 16 16:29  images
drwxr-xr-x  7 sparky sparky  1536 Jun 18 11:38  lib
-rw-r--r--  1 sparky sparky   206 Jun 11 11:47  secrets.py
drwxr-xr-x  2 sparky sparky   512 Jun 17 19:10 'System Volume Information'
drwxr-xr-x  4 sparky sparky   512 Jun 11 14:55  .Trash-1000
sparky@USAP42:/media/sparky/CIRCUITPY$ cd ..
sparky@USAP42:/media/sparky$ ls -al
total 24
drwxr-x---+ 3 root   root    4096 Jun 22 09:08 .
drwxr-xr-x  3 root   root    4096 Jun  6 06:07 ..
drwxr-xr-x  6 sparky sparky 16384 Dec 31  1969 CIRCUITPY
I thought it looks as if they have the same permissions. I find this question out there but not relevant to this hardware.

Also not sure if it should be this forum or the circuitpython one?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: Titano OSError: [Errno 5] Input/output error

Post by dastels »

Occasionally the filesystem can get itself into a read-only mode. Have a look at https://learn.adafruit.com/welcome-to-c ... 2987288-34.

Dave

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: Titano OSError: [Errno 5] Input/output error

Post by jkcbwpnet »

Thank you very much. I had read that page previously and now I know what it's for lol

I need to get gooder at python obviously. ;)

I wish I knew how to choose my hardware.
I don't know if I should even pursue the Titano further for this project.
Maybe I should use a pi zero?
I would love input. I am not sure where if I should start a fresh post?

I am making an open software/hardware universal temperature controller/ datalogger. I have seen a lot of examples here and elsewhere.
It will have the MCP9601 unless there is something better. It needs rtc, sd card, wifi either rtd or the MCP9808 or whatever would be recommended for say your average home thermostat. So basically it can plug into a thermocouple or it will read ambient using it's internal sensor. And I was totally fine with that feather display, but it was running out of places to put data and getting cluttered and sometimes that's too distracting for the user and you just want that on a debug or maint screen. A configuration screen etc. and I was going to start getting into groups and menus and whatnot. So then I figured a bigger screen would be easier to see.

Good thing I don't talk too much. I feel like I will never get on Show and Tell except to show my work in progress.

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: Titano OSError: [Errno 5] Input/output error

Post by dastels »

I've found that a Pi is almost always overkill unless you really need to have a full blown operating system, mouse, keyboard, very large screen, etc. The Pyportal (or a feather with a large screen "wing") sounds like a good choice for your use.

Dave

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

Return to “Other Products from Adafruit”