Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

SD Card doesn't get device file name assigned

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Tickeldi
n00b
n00b
Posts: 43
Joined: Tue Mar 17, 2009 1:09 pm
Location: Norddeutschland

SD Card doesn't get device file name assigned

  • Quote

Post by Tickeldi » Fri Feb 27, 2015 7:18 pm

Hey guys.

A friend of mine has a SD Card with family photos that doesn't respond anymore. Well it does up to a point but it fails to be mounted on windows, linux and Mac OSX Systems.
dmesg wasn't very helpful because it didn't show an error message.

So I activated verbose debug messages for the Card Reader in the kernel and now it actually shows a lot of messages I can't properly understand.
Any help with that would be appreciated.

The Kernel Version I am using is 3.17.7-gentoo.
--- MMC/SD/SDIO card support
[ ] MMC debugging
[ ] MMC host clock gating
*** MMC/SD/SDIO Card Drivers ***
<*> MMC block device driver
( 8 ) Number of minors per block device
[*] Use bounce buffer for simple hosts
<M> SDIO UART/GPS class support
< > MMC host test driver
*** MMC/SD/SDIO Host Controller Drivers ***
<M> Secure Digital Host Controller Interface support
<M> SDHCI support on PCI bus
[*] Ricoh MMC Controller Disabler

This happens when the card is inserted (dmesg):
[ 1972.315110] usb 2-8: new high-speed USB device number 4 using ehci-pci
[ 1972.441549] usb 2-8: New USB device found, idVendor=0bda, idProduct=0159
[ 1972.441558] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1972.441563] usb 2-8: Product: USB2.0-CRW
[ 1972.441567] usb 2-8: Manufacturer: Generic
[ 1972.441571] usb 2-8: SerialNumber: 20071114173400000
[ 1972.446751] ums-realtek 2-8:1.0: USB Mass Storage device detected
[ 1972.446977] Vendor: 0x0bda, Product: 0x0159, Revision: 0x5888
[ 1972.446982] Interface Subclass: 0x06, Protocol: 0x50
[ 1972.446987] Transport: Bulk
[ 1972.446990] Protocol: Transparent SCSI
[ 1972.446994] rq=fe rqtype=a1 value=0000 index=00 len=1
[ 1972.447436] GetMaxLUN command result is 1, data is 0
[ 1972.447441] chip->max_lun = 0
[ 1972.447444] lun = 0
[ 1972.447447] xfer 31 bytes
[ 1972.447540] Status code 0; transferred 31/31
[ 1972.447543] -- transfer complete
[ 1972.447546] xfer 16 bytes
[ 1972.448439] Status code 0; transferred 16/16
[ 1972.448444] -- transfer complete
[ 1972.448447] xfer 13 bytes
[ 1972.448808] Status code 0; transferred 13/13
[ 1972.448812] -- transfer complete
[ 1972.448817] chip->status_len = 16
[ 1972.448820] chip->flag = 0x1
[ 1972.448823] addr = 0xfe47, len = 1
[ 1972.448826] xfer 31 bytes
[ 1972.449215] Status code 0; transferred 31/31
[ 1972.449220] -- transfer complete
[ 1972.449223] xfer 1 bytes
[ 1972.449758] Status code 0; transferred 1/1
[ 1972.449762] -- transfer complete
[ 1972.449765] xfer 13 bytes
[ 1972.450045] Status code 0; transferred 13/13
[ 1972.450048] -- transfer complete
[ 1972.450052] addr = 0xfe47, len = 1
[ 1972.450056] xfer 31 bytes
[ 1972.450161] Status code 0; transferred 31/31
[ 1972.450164] -- transfer complete
[ 1972.450166] xfer 1 bytes
[ 1972.450285] Status code 0; transferred 1/1
[ 1972.450288] -- transfer complete
[ 1972.451164] addr = 0xfe77, len = 1
[ 1972.451168] xfer 31 bytes
[ 1972.451282] Status code 0; transferred 31/31
[ 1972.451286] -- transfer complete
[ 1972.451288] xfer 1 bytes
[ 1972.452041] Status code 0; transferred 1/1
[ 1972.452045] -- transfer complete
[ 1972.452047] xfer 13 bytes
[ 1972.452271] Status code 0; transferred 13/13
[ 1972.452274] -- transfer complete
[ 1972.452278] addr = 0xfe77, len = 1
[ 1972.452281] xfer 31 bytes
[ 1972.452432] Status code 0; transferred 31/31
[ 1972.452435] -- transfer complete
[ 1972.452438] xfer 1 bytes
[ 1972.452546] Status code 0; transferred 1/1
[ 1972.452549] -- transfer complete
[ 1972.452551] xfer 13 bytes
[ 1972.453412] Status code 0; transferred 13/13
[ 1972.453413] -- transfer complete
[ 1972.453416] addr = 0xfe77, len = 1
[ 1972.453419] xfer 31 bytes
[ 1972.453533] Status code 0; transferred 31/31
[ 1972.453536] -- transfer complete
[ 1972.453539] xfer 1 bytes
[ 1972.454275] Status code 0; transferred 1/1
[ 1972.454280] -- transfer complete
[ 1972.454281] xfer 13 bytes
[ 1972.454551] Status code 0; transferred 13/13
[ 1972.454553] -- transfer complete
[ 1972.454556] addr = 0xfe47, len = 1
[ 1972.454558] xfer 31 bytes
[ 1972.454666] Status code 0; transferred 31/31
[ 1972.454668] -- transfer complete
[ 1972.454670] xfer 1 bytes
[ 1972.455427] Status code 0; transferred 1/1
[ 1972.455430] -- transfer complete
[ 1972.455432] xfer 13 bytes
[ 1972.455655] Status code 0; transferred 13/13
[ 1972.455657] -- transfer complete
[ 1972.455659] set 0xfe47 to 0x85
[ 1972.455661] addr = 0xfe47, len = 1
[ 1972.455664] xfer 31 bytes
[ 1972.455806] Status code 0; transferred 31/31
[ 1972.455808] -- transfer complete
[ 1972.455810] xfer 1 bytes
[ 1972.455905] Status code 0; transferred 1/1
[ 1972.455907] -- transfer complete
[ 1972.456848] scsi host7: usb-storage 2-8:1.0
[ 1972.456849] *** thread sleeping
[ 1972.456933] ums-realtek 2-8:1.0: waiting for device to settle before scanning
[ 1973.459064] ums-realtek 2-8:1.0: starting scan
[ 1973.459074] rq=fe rqtype=a1 value=0000 index=00 len=1
[ 1973.459439] GetMaxLUN command result is 1, data is 0
[ 1973.459517] *** thread awakened
[ 1973.459523] Command INQUIRY (6 bytes)
[ 1973.459527] bytes:
[ 1973.459529] 12 00 00 00 24 00
[ 1973.459540] Bulk Command S 0x43425355 T 0x9 L 36 F 128 Trg 0 LUN 0 CL 6
[ 1973.459544] xfer 31 bytes
[ 1973.459693] Status code 0; transferred 31/31
[ 1973.459697] -- transfer complete
[ 1973.459700] Bulk command transfer result=0
[ 1973.459704] xfer 36 bytes, 1 entries
[ 1973.461191] Status code 0; transferred 36/36
[ 1973.461196] -- transfer complete
[ 1973.461200] Bulk data transfer result 0x0
[ 1973.461203] Attempting to get CSW...
[ 1973.461206] xfer 13 bytes
[ 1973.461555] Status code 0; transferred 13/13
[ 1973.461560] -- transfer complete
[ 1973.461563] Bulk status result = 0
[ 1973.461568] Bulk Status S 0x53425355 T 0x9 R 0 Stat 0x0
[ 1973.461572] scsi cmd done, result=0x0
[ 1973.461578] *** thread sleeping
[ 1973.461625] scsi 7:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[ 1973.461885] *** thread awakened
[ 1973.461890] Command TEST_UNIT_READY (6 bytes)
[ 1973.461893] bytes:
[ 1973.461896] 00 00 00 00 00 00
[ 1973.461906] Bulk Command S 0x43425355 T 0xa L 0 F 0 Trg 0 LUN 0 CL 6
[ 1973.461910] xfer 31 bytes
[ 1973.462064] Status code 0; transferred 31/31
[ 1973.462068] -- transfer complete
[ 1973.462072] Bulk command transfer result=0
[ 1973.462075] Attempting to get CSW...
[ 1973.462078] xfer 13 bytes
[ 1973.462924] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 1981.369459] Status code 0; transferred 13/13
[ 1981.369465] -- transfer complete
[ 1981.369467] Bulk status result = 0
[ 1981.369470] Bulk Status S 0x53425355 T 0xa R 0 Stat 0x1
[ 1981.369472] -- transport indicates command failure
[ 1981.369474] Issuing auto-REQUEST_SENSE
[ 1981.369478] Bulk Command S 0x43425355 T 0xb L 18 F 128 Trg 0 LUN 0 CL 6
[ 1981.369480] xfer 31 bytes
[ 1981.369557] Status code 0; transferred 31/31
[ 1981.369560] -- transfer complete
[ 1981.369563] Bulk command transfer result=0
[ 1981.369565] xfer 18 bytes, 1 entries
[ 1981.369810] Status code 0; transferred 18/18
[ 1981.369812] -- transfer complete
[ 1981.369814] Bulk data transfer result 0x0
[ 1981.369816] Attempting to get CSW...
[ 1981.369818] xfer 13 bytes
[ 1981.369928] Status code 0; transferred 13/13
[ 1981.369930] -- transfer complete
[ 1981.369932] Bulk status result = 0
[ 1981.369934] Bulk Status S 0x53425355 T 0xb R 0 Stat 0x0
[ 1981.369937] -- Result from auto-sense is 0
[ 1981.369939] -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
[ 1981.369944] Not Ready:
[ 1981.369945] Medium not present
[ 1981.369948] scsi cmd done, result=0x2
[ 1981.369952] *** thread sleeping
[ 1981.369971] *** thread awakened
[ 1981.369973] Bad LUN (0:1)
[ 1981.369976] scsi cmd done, result=0x40000
[ 1981.369978] *** thread sleeping
[ 1981.370083] ums-realtek 2-8:1.0: scan complete
[ 1981.370784] *** thread awakened
[ 1981.370789] Command TEST_UNIT_READY (6 bytes)
[ 1981.370791] bytes:
[ 1981.370793] 00 00 00 00 00 00
[ 1981.370800] Bulk Command S 0x43425355 T 0xc L 0 F 0 Trg 0 LUN 0 CL 6
[ 1981.370802] xfer 31 bytes
[ 1981.370937] Status code 0; transferred 31/31
[ 1981.370940] -- transfer complete
[ 1981.370943] Bulk command transfer result=0
[ 1981.370945] Attempting to get CSW...
[ 1981.370947] xfer 13 bytes
[ 1989.293589] Status code 0; transferred 13/13
[ 1989.293594] -- transfer complete
[ 1989.293596] Bulk status result = 0
[ 1989.293599] Bulk Status S 0x53425355 T 0xc R 0 Stat 0x1
[ 1989.293602] -- transport indicates command failure
[ 1989.293604] Issuing auto-REQUEST_SENSE
[ 1989.293608] Bulk Command S 0x43425355 T 0xd L 18 F 128 Trg 0 LUN 0 CL 6
[ 1989.293610] xfer 31 bytes
[ 1989.293688] Status code 0; transferred 31/31
[ 1989.293690] -- transfer complete
[ 1989.293692] Bulk command transfer result=0
[ 1989.293694] xfer 18 bytes, 1 entries
[ 1989.293946] Status code 0; transferred 18/18
[ 1989.293949] -- transfer complete
[ 1989.293951] Bulk data transfer result 0x0
[ 1989.293953] Attempting to get CSW...
[ 1989.293955] xfer 13 bytes
[ 1989.294071] Status code 0; transferred 13/13
[ 1989.294073] -- transfer complete
[ 1989.294079] Bulk status result = 0
[ 1989.294084] Bulk Status S 0x53425355 T 0xd R 0 Stat 0x0
[ 1989.294090] -- Result from auto-sense is 0
[ 1989.294094] -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
[ 1989.294101] Not Ready:
[ 1989.294103] Medium not present
[ 1989.294107] scsi cmd done, result=0x2
[ 1989.294111] *** thread sleeping
[ 1989.294145] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 1989.294151] *** thread awakened
[ 1989.294153] Command TEST_UNIT_READY (6 bytes)
[ 1989.294155] bytes:
[ 1989.294156] 00 00 00 00 00 00
[ 1989.294162] Bulk Command S 0x43425355 T 0xe L 0 F 0 Trg 0 LUN 0 CL 6
[ 1989.294164] xfer 31 bytes
[ 1989.294732] Status code 0; transferred 31/31
[ 1989.294736] -- transfer complete
[ 1989.294738] Bulk command transfer result=0
[ 1989.294740] Attempting to get CSW...
[ 1989.294742] xfer 13 bytes
[ 1997.222194] Status code -71; transferred 0/13
[ 1997.222198] -- unknown error
[ 1997.222201] Bulk status result = 4
[ 1997.222203] -- transport indicates error, resetting
[ 1997.474103] usb_reset_device returns -19
[ 1997.474110] rq=ff rqtype=21 value=0000 index=00 len=0
[ 1997.474113] Soft reset failed: -19
[ 1997.474116] scsi cmd done, result=0x70000
[ 1997.474120] *** thread sleeping
[ 1997.474148] usb 2-8: USB disconnect, device number 4
[ 1997.480032] Fail command during disconnect
[ 1997.480114] Fail command during disconnect
[ 1997.480370] Fail command during disconnect
[ 1997.480388] Fail command during disconnect
[ 1997.480402] Fail command during disconnect
[ 1997.481237] -- sending exit command to thread
[ 1997.481277] *** thread awakened
[ 1997.481280] -- exiting
[ 1997.482116] -- calling extra_destructor()
After this, the card doesn't have a /dev/sdx where I could access it.
"Linux basiert doch auf DOS oder nicht?" *schüttel*
Top
s0be
Apprentice
Apprentice
User avatar
Posts: 240
Joined: Sat Nov 23, 2002 1:12 pm

  • Quote

Post by s0be » Fri Feb 27, 2015 7:31 pm

I have a few sd cards that behave somewhat like this. What I end up having to do is unplugging and replugging it from the adapter a few times (the adapter/card just don't get along). It's especially common when I use 1 particular microsd to sd adapter.
Top
Tickeldi
n00b
n00b
Posts: 43
Joined: Tue Mar 17, 2009 1:09 pm
Location: Norddeutschland

  • Quote

Post by Tickeldi » Fri Feb 27, 2015 9:44 pm

Thats actually what I am using. This is a micro-sd card. Thanks for the input. We'll keep trying.
"Linux basiert doch auf DOS oder nicht?" *schüttel*
Top
linuxtuxhellsinki
l33t
l33t
User avatar
Posts: 700
Joined: Mon Nov 15, 2004 1:56 pm
Location: Hellsinki

  • Quote

Post by linuxtuxhellsinki » Sat Feb 28, 2015 11:25 am

It could just be that the micro-sd card is "kaput". I lost also one 8gb micro-sd after just one year and cannot read it at all.

I'm happy that I had a backup of most of the photos on my computer :)

I've thought that these flash-cards are reliable and this was the kingston brand, which isn't any prove of quality, cause I've also one of their older 16gb usb-stick which has been acting strangely for few years. It's still working but has lots of errors like, cannot write in it and read some files and folders.
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic