• A bash battle

    From faeychild@2:250/1 to All on Mon Apr 6 02:37:24 2020


    I have these sometimes. Usually when I'm in a hurry.

    The things that don't make immediate sense

    Using Dolphin

    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.

    A bit of head scratching mainly because my Bash skills suck mightily.

    I eventually blasted it with Gparted

    Another of my mysteries. These thing are needed to keeps one ego in
    check :-)

    regards


    --
    faeychild
    Running plasmashell 5.15.4 on 5.5.14-desktop-1.mga7 kernel.
    Mageia release 7 (Official) for x86_64 installed via Mageia-7-x86_64-DVD.iso


    --- MBSE BBS v1.0.7.13 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Mon Apr 6 03:24:14 2020
    On Sun, 05 Apr 2020 21:37:24 -0400, faeychild <faeychild@nomail.afraid.org> 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 dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
    email replies.

    --- MBSE BBS v1.0.7.13 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Tue Apr 7 02:32:08 2020
    On 6/4/20 12:24 pm, David W. Hodgins wrote:


    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


    It's a badged Chinese brand so why not??

    OK I get to it and pass all the SD cards through the TV format and see
    how it goes

    regards


    --
    faeychild
    Running plasmashell 5.15.4 on 5.5.14-desktop-1.mga7 kernel.
    Mageia release 7 (Official) for x86_64 installed via Mageia-7-x86_64-DVD.iso


    --- MBSE BBS v1.0.7.13 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Tue Apr 7 04:01:13 2020
    On 2020-04-07, faeychild <faeychild@nomail.afraid.org> wrote:
    On 6/4/20 12:24 pm, David W. Hodgins wrote:


    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


    It's a badged Chinese brand so why not??

    The software is probably American.

    OK I get to it and pass all the SD cards through the TV format and see
    how it goes

    regards



    --- MBSE BBS v1.0.7.13 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)