I have a SanDisk 256GB extreme pro SD card for my camera. It works perfectly fine with the camera and with windows, but when I instert it into the card reader on linux (fedora 38) I can’t copy any files from it:

cp: Fehler beim Lesen von ‘…/DCIM/112_FUJI/DSCF2001.RAF’: Eingabe-/Ausgabefehler

Loosely translated:

cp: error while reading from ‘…/DCIM//112_FUJI/DSCF2001.RAF’: input/output error

the card is automatically mounted and shows up in the file explorer.

The fdisk command return this:

Festplatte /dev/sdg1: 238,27 GiB, 255835766784 Bytes, 499679232 Sektoren
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0xf4f4f4f4

Gerät       Boot     Anfang       Ende   Sektoren Größe Kn Typ
/dev/sdg1p1      4109694196 8219388391 4109694196  1,9T f4 SpeedStor
/dev/sdg1p2      4109694196 8219388391 4109694196  1,9T f4 SpeedStor
/dev/sdg1p3      4109694196 8219388391 4109694196  1,9T f4 SpeedStor
/dev/sdg1p4      4109694196 8219388391 4109694196  1,9T f4 SpeedStor

I tried following this: https://www.reddit.com/r/raspberry_pi/comments/habv0q/fixing_linux_sd_card_reader_issues_inputoutput/
but it didn’t change anything

Does anyone have any idea?

EDIT:
I used the wrong fdisk command. I used /dev/sdg1 as opposed to /dev/sdg which is the actual drive. Here is the output of fdisk -l /dev/sdg:

Festplatte /dev/sdg: 238,3 GiB, 255869321216 Bytes, 499744768 Sektoren
Festplattenmodell: STORAGE DEVICE  
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x00000000

Gerät      Boot Anfang      Ende  Sektoren  Größe Kn Typ
/dev/sdg1  *     65536 499744767 499679232 238,3G  7 HPFS/NTFS/exFAT

  • @Nibodhika
    link
    159 months ago

    Which partition is the one automatically mounted? That sdcard seems weird, it has 4 partitions occupying the same space. Also I would try to mount all 4 partitions manually and check if one of them works.

    • @[email protected]
      link
      fedilink
      Deutsch
      79 months ago

      The partitions also start at a very high sector and are larger than the SD card is supposed to be. I wouldn’t trust the information in that table.

      • @wmassingham
        link
        29 months ago

        Yeah, the partition table is messed up. Format the card from Linux. It would probably work from Windows too. But the camera is doing something wrong.

        • @[email protected]
          link
          fedilink
          English
          29 months ago

          From another comment chain it looks like they used fdisk -l /dev/sdg1 instead of fdisk -l /dev/sdg

          • BentiGorlichOP
            link
            fedilink
            19 months ago

            Thats right, I posted the correct output here somewhere, but here it is again:

            Festplatte /dev/sdg: 238,3 GiB, 255869321216 Bytes, 499744768 Sektoren
            Festplattenmodell: STORAGE DEVICE  
            Einheiten: Sektoren von 1 * 512 = 512 Bytes
            Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
            E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
            Festplattenbezeichnungstyp: dos
            Festplattenbezeichner: 0x00000000
            
            Gerät      Boot Anfang      Ende  Sektoren  Größe Kn Typ
            /dev/sdg1  *     65536 499744767 499679232 238,3G  7 HPFS/NTFS/exFAT
            
            
    • BentiGorlichOP
      link
      fedilink
      19 months ago

      how do I check that? lsblk only shows that /dev/sdg1 is mounted…

      • @Nibodhika
        link
        29 months ago

        Not sure, but one of the commands there showed /dev/sdg1p1 which is a weird name used for subvolumes if I remember correctly.