You are not logged in.

#1 2017-02-19 13:14:19

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Can't load a SD card second time

I have a Gopro camera with a SD card.

After recording some videos I removed the SD card from the camera and inserted it to my USB hub (Grand-X DH-80XDC).

The Gnome automatically mounted the card and it wasn't empty,  however, there were no readable media files inside. I ejected it from Nautilus and tried to put it back to my Gopro camera in order to connect with it, but the camera informed me "SD ERR".
I tried to connect to my computer once again with no success: the SD card wasn't mountable any more:

dmesg -wH:

[feb14 14:37] usb 2-2: USB disconnect, device number 2
[ +10,002169] usb 9-2: new full-speed USB device number 3 using ohci-pci
[  +0,195307] input: Advanced Silicon S.A. CoolTouch(TM) System as /devices/pci0000:00/0000:00:16.0/usb9/9-2/9-2:1.0/0003:2149:2122.0004/input/input16
[  +0,000301] hid-multitouch 0003:2149:2122.0004: input,hidraw0: USB HID v1.10 Device [Advanced Silicon S.A. CoolTouch(TM) System] on usb-0000:00:16.0-2/input0
[  +0,007794] hid-generic 0003:2149:2122.0005: hiddev0,hidraw1: USB HID v1.10 Device [Advanced Silicon S.A. CoolTouch(TM) System] on usb-0000:00:16.0-2/input1
[feb14 14:38] usb 5-4: USB disconnect, device number 3
[  +0,000005] usb 5-4.1: USB disconnect, device number 4
[  +6,916189] usb 1-2: new high-speed USB device number 3 using ehci-pci
[  +0,139130] hub 1-2:1.0: USB hub found
[  +0,000822] hub 1-2:1.0: 4 ports detected
[  +0,280077] usb 1-2.1: new full-speed USB device number 4 using ehci-pci
[  +0,439943] usb 1-2.1: new high-speed USB device number 5 using ehci-pci
[  +0,098897] usb-storage 1-2.1:1.0: USB Mass Storage device detected
[  +0,000328] scsi host6: usb-storage 1-2.1:1.0
[  +1,015500] scsi 6:0:0:0: Direct-Access     Mass     Storage Device        PQ: 0 ANSI: 0 CCS
[  +0,003771] sd 6:0:0:0: Attached scsi generic sg2 type 0
[  +0,002726] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[  +4,723789] r8169 0000:03:00.0 enp3s0: link down
[  +6,227440] Viber[8209]: segfault at 8 ip 00007f325f656c50 sp 00007ffddf278b08 error 4 in libQt5Gui.so.5[7f325f53c000+552000]
[лют14 14:39] usb 9-2: USB disconnect, device number 3
[  +3,101134] snd_hda_codec_hdmi hdaudioC1D1: HDMI: invalid ELD data byte 28
[  +1,086732] usb 9-1: new full-speed USB device number 4 using ohci-pci
[  +0,193668] input: Advanced Silicon S.A. CoolTouch(TM) System as /devices/pci0000:00/0000:00:16.0/usb9/9-1/9-1:1.0/0003:2149:2122.0006/input/input18
[  +0,000126] hid-multitouch 0003:2149:2122.0006: input,hidraw0: USB HID v1.10 Device [Advanced Silicon S.A. CoolTouch(TM) System] on usb-0000:00:16.0-1/input0
[  +0,007903] hid-generic 0003:2149:2122.0007: hiddev0,hidraw1: USB HID v1.10 Device [Advanced Silicon S.A. CoolTouch(TM) System] on usb-0000:00:16.0-1/input1
[ +32,599888] sd 6:0:0:0: [sdc] 124735488 512-byte logical blocks: (63.9 GB/59.5 GiB)
[  +0,005911]  sdc: sdc1
[  +0,127832] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183274] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,186763] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183306] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,190047] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183234] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,097432] sd 6:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  +0,000007] sd 6:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 00 00 01 10 00 00 f0 00
[  +0,000003] blk_update_request: I/O error, dev sdc, sector 272
[  +0,082582] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,186691] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,193426] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,010225] r8169 0000:03:00.0 enp3s0: link up
[  +0,189697] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[feb14 14:40] sd 6:0:0:0: [sdc] 124735488 512-byte logical blocks: (63.9 GB/59.5 GiB)
[  +0,004772]  sdc: sdc1
[  +0,358169] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183444] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183351] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183347] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183267] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183331] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,097450] sd 6:0:0:0: [sdc] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[  +0,000004] sd 6:0:0:0: [sdc] tag#0 CDB: opcode=0x28 28 00 07 6f 4d 00 00 00 f0 00
[  +0,000002] blk_update_request: I/O error, dev sdc, sector 124734720
[  +0,079215] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci
[  +0,183436] usb 1-2.1: reset high-speed USB device number 5 using ehci-pci

Whom to blame?

How to fix it? Can I restore my SD card after that?

Offline

#2 2017-02-19 17:14:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Can't load a SD card second time

When you connect the SD card, it does show up as sdc, then things go Tango Uniform.
First, I would take Gnome/Nautilus out of the equation.  I don't care for things that try to 'help' by doing invisible things behind the curtain.  I would suggest using a console and command line commands.

Are there any clips on that SD you must have?  I don't know that they are recoverable, but you might try with a tool like photorec.
The camera should have the ability to reformat that drive; you might try that.  If that does not work, try formating it from Linux -- but again, do it from an environment like a console window where there are no invisible hands that try to automount things.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-02-19 18:02:00

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't load a SD card second time

Wow, that's one messy dmesg snippet. Multiple random USB devices disconnecting and coming back - did you touch them at the time? Heck, even ethernet link apparently went down for half a minute. WTF? If you haven't been touching these cables there is something wrong going on in there.

As for the card reader, it keeps being reset by Linux for some reason - normally it happens due to cable failure or USB device locking up and failing to respond to commands. Try this card in some other reader maybe? Most likely either the card had broke badly and causes your USB reader to hang or the reader is broken and wrote some garbage data to the card, which confuses the poor GoPro, but otherwise the card is good and a format will fix it.

Offline

#4 2017-02-20 17:57:42

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: Can't load a SD card second time

mich41 wrote:

Wow, that's one messy dmesg snippet. Multiple random USB devices disconnecting and coming back - did you touch them at the time? Heck, even ethernet link apparently went down for half a minute. WTF? If you haven't been touching these cables there is something wrong going on in there.

As for the card reader, it keeps being reset by Linux for some reason - normally it happens due to cable failure or USB device locking up and failing to respond to commands. Try this card in some other reader maybe? Most likely either the card had broke badly and causes your USB reader to hang or the reader is broken and wrote some garbage data to the card, which confuses the poor GoPro, but otherwise the card is good and a format will fix it.

I tried it on Windows machine and it doesn't mount as well. My network cable is broken, so, yeah network problem may appear from time to time.

ewaller wrote:

Are there any clips on that SD you must have?  I don't know that they are recoverable, but you might try with a tool like photorec.
The camera should have the ability to reformat that drive; you might try that.  If that does not work, try formating it from Linux -- but again, do it from an environment like a console window where there are no invisible hands that try to automount things.

Damn. Photorec somehow restored files. They are corrupted anyway (low quality, clipped or unplayable). I mounted my external HDD (Seagate Expansion 2TB STEA2000400) in order to move them all there and guess what ...
... now it doesn't work as well. Moreover,  fdisk doesn't recognize the device at all, light doesn't blink...

What the hack with my Linux??

Last edited by SkyTod (2017-02-20 18:01:25)

Offline

#5 2017-02-20 18:38:28

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't load a SD card second time

SkyTod wrote:

My network cable is broken, so, yeah network problem may appear from time to time.

This explains network. But why are those USB devices connecting and disconnecting randomly? I think you may have some hardware problem with the USB controller, cabling or PSU.

SkyTod wrote:

I mounted my external HDD (Seagate Expansion 2TB STEA2000400) in order to move them all there and guess what ...
... now it doesn't work as well.

As in, the hard disk doesn't work now, even on other computers? Well, one not very optimistic thing that comes to my mind is broken 5V rail in the computer's PSU or the PSU of the hub (if it has one) frying USB devices. Can you test this PSU or try some spare one? Software shouldn't be able to do permanent damage to USB devices.

Last edited by mich41 (2017-02-20 18:40:13)

Offline

#6 2017-02-20 19:04:30

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: Can't load a SD card second time

mich41 wrote:

This explains network. But why are those USB devices connecting and disconnecting randomly? I think you may have some hardware problem with the USB controller, cabling or PSU.

The SD card isn't fit there well (you can move a little bit around). Maybe that could be the reason of massive reconnections.

mich41 wrote:

As in, the hard disk doesn't work now, even on other computers? Well, one not very optimistic thing that comes to my mind is broken 5V rail in the computer's PSU or the PSU of the hub (if it has one) frying USB devices. Can you test this PSU or try some spare one? Software shouldn't be able to do permanent damage to USB devices.

Yeah, tried a Windows machine (the light doesn't work as well, no sounds, so it seems  to be a power issue).
1. Still be possible to mount my USB stick and it works well (tried few times).
2. My external HDD doesn't work at all.
3. My SD card isn't mountable (I guess reformatting will fix the problem, but I hope somehow to restore my data).

I consider it's hardware issue, but my Windows friends blame the Linux.

Last edited by SkyTod (2017-02-20 19:05:29)

Offline

#7 2017-02-20 21:55:27

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: Can't load a SD card second time

dd the (unmounted) device into a file and run "testdisk" on it
("pacman -S testdisk", "man testdisk"! - do not operate on your only copy, misuse may nuke the data forever)

Offline

#8 2017-02-21 06:55:42

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: Can't load a SD card second time

seth wrote:

dd the (unmounted) device into a file and run "testdisk" on it

There is no way to perform dd for my HDD any more.

Offline

#9 2017-02-21 07:36:56

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: Can't load a SD card second time

HDD?? I thoght this is about an SD card?
You may try dd_rescue but either the cable, reader or card are done if you cannot access even the raw device :-(

If it's the card, usually the electronics break, not the NAND chips. It's then possible to solder them out and onto an equal device to rescue the data - but that a professional data rescue company and is quite expensive.

I'd first try a completely different system to access the devices to rule out HW issues with your board.

Offline

Board footer

Powered by FluxBB