On Sun, 05 Apr 2020 21:37:24 -0400, faeychild <
[email protected]> wrote:
I attempted to copy a bunch of video's onto an SD card in a card reader
and got unable to write errors
Then I found that I could copy only one (portello-2.mp4) file. A
luck choice, some others I tried singly hit write errors
Then I couldn't delete it.
6436-3731 is the SD card in the reader.
So I went to the command line--
[faeychild@unimatrix ~]$ cd /run/media/faeychild/6436-3731 [faeychild@unimatrix 6436-3731]$ ls -la
ls: cannot access '_MSTPVR': Input/output error
total 2148512
drwxr-xr-x 3 faeychild faeychild 32768 Jan 1 1970 ./
drwxr-x---+ 3 root root 60 Apr 6 11:10 ../
d?????????? ? ? ? ? ? _MSTPVR/
-rw-r--r-- 1 faeychild faeychild 2200014370 Mar 31 21:17 portello-2.mp4 [faeychild@unimatrix 6436-3731]$ rm portello-2.mp4
rm: cannot remove 'portello-2.mp4': Read-only file system
'_MSTPVR' is a directory written to the SD card by the TV when it's
plugged in.
The i/o error would force the file system to be remounted read only, so that you can attempt to recover anything that is still readable.
A bit of head scratching mainly because my Bash skills suck mightily.
Nothing to do with bash, it's the kernel that handles i/o.
I eventually blasted it with Gparted
While that will make it appear to be error free, as formatting only writes to the beginning of the card, as soon as you attempt to fill it, I would expect errors to reappear.
Make sure the contacts on the card are making firm contact with the ones in
the slot. Both sets of contacts may need to be cleaned, to remove fingerprints,
etc.
There's a possibility that the tv software is really bad. For example, it may be set up to use fat12 intstead of fat16 or fat32, not recognizing that the file system on the card is not what it's designed to use, and then corrupting the file allocation table. In that case, instead of using gparted to format
the card, use "dd if=/dev/zero of=/dev/sd? bs=1M" to erase the card, and then let the tv format it, rather then using gparted to format it.
Regards, Dave Hodgins
--
Change
[email protected] to
[email protected] for
email replies.
--- MBSE BBS v1.0.7.13 (GNU/Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)