I/O error on RPI

Linux specific questions, problems.
Post Reply
bananaman
Newbie
Newbie
Posts: 13
Joined: Sat Nov 30, 2024 1:23 pm

I/O error on RPI

Post by bananaman »

Hey so I'm really new to all this stuff, I know some basics but not much tbh.
I'm using a Raspberry Pi and an external SSD (connected via USB). Torrenting works fine but every once in a while the torrent fails with the message

Code: Select all

Error: Invalid Argument
or 'Input Output permission, path not found' (Idk the exact error right now). I am able to solve the 'Invalid Argument' error by simply force rechecking the torrent but the I/O error is a bit harder and annoying to fix. I can't mount the SSD to any linux machine, neither my RPI nor my old laptop. To solve the issue I have to mount the SSD to a windows machine and run

Code: Select all

chkdsk /f F:
. After that it works again (also have to reboot the RPI). It's quite annoying at the moment since the error mostly occurs during the night. Is this common and is there a fix for it?
Thank you in advance
bananaman
Newbie
Newbie
Posts: 13
Joined: Sat Nov 30, 2024 1:23 pm

Re: I/O error on RPI

Post by bananaman »

Oh damn, still no answer...
User avatar
Peter
Administrator
Administrator
Posts: 3044
Joined: Wed Jul 07, 2010 6:14 pm

Re: I/O error on RPI

Post by Peter »

It's the filesystem of the SSD basically. I suppose its NTFS and Linux cannot write NTFS natively.
It means that its using an NTFS driver such as ntfs-3g. In the past it resulted in data corruption for me, fragmented filesystem, etc.

- You can change the filesystem to exFAT, which is natively supported on Linux & Windows both.
- Make sure the external drive never loses power/connection. You can mess with mount options on Linux (changing your fstab). This will result in slower operations / speed, but will ensure data/fs safety.

Ps.: Not every Linux NTFS driver is bad; sometimes it works, sometimes it does not. Sometimes you can use a newer kernel, older kernel, LTS kernel, blah blah blah. Basically you can spend weeks to experiment and you may struck gold. Maybe not.
bananaman
Newbie
Newbie
Posts: 13
Joined: Sat Nov 30, 2024 1:23 pm

Re: I/O error on RPI

Post by bananaman »

thanks a lot, haven't had the error since ;D
Post Reply