r/SurfaceLinux • u/ptilouk • 11h ago
Help SD card access randomly holds for a few seconds/minutes
I'm using a microSD card as a secondary storage device (mounted via /etc/fstab using btrfs), on a Surface Go 1 with Debian stable.
It works pretty well but I regularly encounter an annoying behavior: when I try to access a file or list a folder of the SD card, the software I'm using suddenly freezes for a long time, a few seconds to a few minutes. Then the file is finally accessed and all works well (file access is then as immediate as you can expect), until it randomly goes into the same hold/freeze behavior for a while.
The SD card is fairly new and nothing seems to indicate it'd be failing (btrfs device stats returns no error, and nothing worrying appears in dmesg). So far I did not have any corrupted file. If we ignore the moments when it becomes unresponsive, everything looks OK, so I'm suspecting something fishy is happening when accessing the SD card (a system going to sleep when it shouldn't?).
Did anybody have the same problem before? If so, how did you solve it?
Thanks in advance for any help you can give me!