Unix Technical Forum

USB Failure After Corrupt SD Card

This is a discussion on USB Failure After Corrupt SD Card within the Linux Operating System forums, part of the Unix Operating Systems category; --> Yesterday I bought a no name 1gig SD card. I wanted to use it in my Palm Lifedrive, but ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:36 PM
Brad McArthur
 
Posts: n/a
Default USB Failure After Corrupt SD Card


Yesterday I bought a no name 1gig SD card. I wanted to use it in my
Palm Lifedrive, but first I inserted it in my Mandriva 2006 box to
add some files. The card was recognized and I was able to write to it
couple of times, but then when trying to unmount it, it seemed to hang.
Removed the card and tried it in a Windows box which was able to read it.
I formatted the card using windows as fat 32, then tried it again in
Mandriva. It was no longer recognized. I then tried this card in my
camera which refused to power up with the card in it.

My trouble is that the card seems to have hosed my USB subsystem. It now
longer mounts any USB storage device (but does work for a bluetooth usb
device I have). I have noticed the following:

Booting into a Knoppix live CD, USB works no worries. Being encouraged
by this, I did a Knoppix Hard Disk install. No USB again. Reinstalled
Mandriva 2006. No USB. However, if a USB stick is installed when
booting, BIOS sees the stick and offers to boot from it. Soon after
linux starts is boot up, the USB stick is no longer recognised and an
error message is generated as per /var/log/messages below.

For info, this is an extract of dmesg while booting:

====cut=====


BIOS EDD facility v0.16 2004-Jun-25, 1 devices found devfs_mk_dev: could
not append to parent for md/0 md: Autodetecting RAID arrays. md: autorun
.... spurious 8259A interrupt: IRQ7. md: ... autorun DONE. RAMDISK:
Compressed image found at block 0 VFS: Mounted root (ext2 filesystem).
input: AT Translated Set 2 keyboard on isa0060/serio0 kjournald starting.
Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered
data mode. Freeing unused kernel memory: 268k freed input: GenPS/2
Genius Wheel Mouse on isa0060/serio1 usbcore: registered new driver
usbfs usbcore: registered new driver hub ohci_hcd: 2004 Nov 08 USB 1.1
'Open' Host Controller (OHCI) Driver (PCI) ACPI: PCI Interrupt Link
[LNKE] enabled at IRQ 3 PCI: setting IRQ 3 as level-triggered ACPI:
PCI Interrupt 0000:00:03.0[A] -> Link [LNKE] -> GSI 3 (level, low) ->
IRQ 3 ohci_hcd 0000:00:03.0: OHCI Host Controller ohci_hcd 0000:00:03.0:
new USB bus registered, assigned bus number 1 ohci_hcd 0000:00:03.0:
irq 3, io mem 0xdfff9000 hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports
detected ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 5 PCI: setting
IRQ 5 as level-triggered ACPI: PCI Interrupt 0000:00:03.1[b] -> Link
[LNKF] -> GSI 5 (level, low) -> IRQ 5 ohci_hcd 0000:00:03.1: OHCI Host
Controller ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus
number 2 ohci_hcd 0000:00:03.1: irq 5, io mem 0xdfffa000 hub 2-0:1.0:
USB hub found hub 2-0:1.0: 3 ports detected ACPI: PCI Interrupt Link
[LNKH] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI:
PCI Interrupt 0000:00:03.3[D] -> Link [LNKH] -> GSI 11 (level, low) ->
IRQ 11 ehci_hcd 0000:00:03.3: EHCI Host Controller ehci_hcd 0000:00:03.3:
new USB bus registered, assigned bus number 3 ehci_hcd 0000:00:03.3:
irq 11, io mem 0xdfffb000 PCI: cache line size of 128 is not supported
by device 0000:00:03.3 ehci_hcd 0000:00:03.3: USB 2.0 initialized,
EHCI 1.00, driver 10 Dec 2004 hub 3-0:1.0: USB hub found hub 3-0:1.0:
6 ports detected ts: Compaq touchscreen protocol output EXT3 FS on hda2,
internal journal Adding 803240k swap on /dev/hda4. Priority:-1 extents:1

====cut=====

This is a dump from /var/log/messages when inserting a stick:

====cut=====

Sep 3 17:56:49 delatite kernel: usb 3-5: new high speed USB device
using ehci_hcd and address 2 Sep 3 17:56:50 delatite kernel: usb 3-5:
device not accepting address 2, error -32 Sep 3 17:56:50 delatite kernel:
usb 3-5: new high speed USB device using ehci_hcd and address 3 Sep 3
17:56:50 delatite kernel: usb 3-5: device not accepting address 3, error
-32 Sep 3 17:56:50 delatite kernel: usb 3-5: new high speed USB device
using ehci_hcd and address 4 Sep 3 17:56:50 delatite kernel: usb 3-5:
device descriptor read/64, error -32 Sep 3 17:56:51 delatite kernel:
usb 3-5: device descriptor read/64, error -32 Sep 3 17:56:51 delatite
kernel: usb 3-5: new high speed USB device using ehci_hcd and address
5 Sep 3 17:56:51 delatite kernel: usb 3-5: device descriptor read/64,
error -32 Sep 3 17:56:51 delatite kernel: usb 3-5: device descriptor
read/64, error -32

====cut====

Another interesting thing I have noted is that when the system shuts
down, when the following scrolls by, the usb system fires up again and
sees a USB stick if it is inserted.

md: md0 switched to read-only mode

Could that mean there is some sort of conflict between hard disk operation
and USB operation?

Brad.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:36 PM
Brad McArthur
 
Posts: n/a
Default Re: USB Failure After Corrupt SD Card - FIXED

On 2006-09-06, Brad McArthur <bgmca1@hotmail.com> wrote:
>
> Yesterday I bought a no name 1gig SD card. I wanted to use it in my
> Palm Lifedrive, but first I inserted it in my Mandriva 2006 box to
> add some files. The card was recognized and I was able to write to it
> couple of times, but then when trying to unmount it, it seemed to hang.
> Removed the card and tried it in a Windows box which was able to read it.
> I formatted the card using windows as fat 32, then tried it again in
> Mandriva. It was no longer recognized. I then tried this card in my
> camera which refused to power up with the card in it.
>
> My trouble is that the card seems to have hosed my USB subsystem. It now
> longer mounts any USB storage device (but does work for a bluetooth usb
> device I have). I have noticed the following:
>
> Booting into a Knoppix live CD, USB works no worries. Being encouraged
> by this, I did a Knoppix Hard Disk install. No USB again. Reinstalled
> Mandriva 2006. No USB. However, if a USB stick is installed when
> booting, BIOS sees the stick and offers to boot from it. Soon after
> linux starts is boot up, the USB stick is no longer recognised and an
> error message is generated as per /var/log/messages below.
>
> For info, this is an extract of dmesg while booting:
>
>====cut=====
>
>
> BIOS EDD facility v0.16 2004-Jun-25, 1 devices found devfs_mk_dev: could
> not append to parent for md/0 md: Autodetecting RAID arrays. md: autorun
> ... spurious 8259A interrupt: IRQ7. md: ... autorun DONE. RAMDISK:
> Compressed image found at block 0 VFS: Mounted root (ext2 filesystem).
> input: AT Translated Set 2 keyboard on isa0060/serio0 kjournald starting.
> Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered
> data mode. Freeing unused kernel memory: 268k freed input: GenPS/2
> Genius Wheel Mouse on isa0060/serio1 usbcore: registered new driver
> usbfs usbcore: registered new driver hub ohci_hcd: 2004 Nov 08 USB 1.1
> 'Open' Host Controller (OHCI) Driver (PCI) ACPI: PCI Interrupt Link
> [LNKE] enabled at IRQ 3 PCI: setting IRQ 3 as level-triggered ACPI:
> PCI Interrupt 0000:00:03.0[A] -> Link [LNKE] -> GSI 3 (level, low) ->
> IRQ 3 ohci_hcd 0000:00:03.0: OHCI Host Controller ohci_hcd 0000:00:03.0:
> new USB bus registered, assigned bus number 1 ohci_hcd 0000:00:03.0:
> irq 3, io mem 0xdfff9000 hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports
> detected ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 5 PCI: setting
> IRQ 5 as level-triggered ACPI: PCI Interrupt 0000:00:03.1[b] -> Link
> [LNKF] -> GSI 5 (level, low) -> IRQ 5 ohci_hcd 0000:00:03.1: OHCI Host
> Controller ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus
> number 2 ohci_hcd 0000:00:03.1: irq 5, io mem 0xdfffa000 hub 2-0:1.0:
> USB hub found hub 2-0:1.0: 3 ports detected ACPI: PCI Interrupt Link
> [LNKH] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI:
> PCI Interrupt 0000:00:03.3[D] -> Link [LNKH] -> GSI 11 (level, low) ->
> IRQ 11 ehci_hcd 0000:00:03.3: EHCI Host Controller ehci_hcd 0000:00:03.3:
> new USB bus registered, assigned bus number 3 ehci_hcd 0000:00:03.3:
> irq 11, io mem 0xdfffb000 PCI: cache line size of 128 is not supported
> by device 0000:00:03.3 ehci_hcd 0000:00:03.3: USB 2.0 initialized,
> EHCI 1.00, driver 10 Dec 2004 hub 3-0:1.0: USB hub found hub 3-0:1.0:
> 6 ports detected ts: Compaq touchscreen protocol output EXT3 FS on hda2,
> internal journal Adding 803240k swap on /dev/hda4. Priority:-1 extents:1
>
>====cut=====
>
> This is a dump from /var/log/messages when inserting a stick:
>
>====cut=====
>
> Sep 3 17:56:49 delatite kernel: usb 3-5: new high speed USB device
> using ehci_hcd and address 2 Sep 3 17:56:50 delatite kernel: usb 3-5:
> device not accepting address 2, error -32 Sep 3 17:56:50 delatite kernel:
> usb 3-5: new high speed USB device using ehci_hcd and address 3 Sep 3
> 17:56:50 delatite kernel: usb 3-5: device not accepting address 3, error
> -32 Sep 3 17:56:50 delatite kernel: usb 3-5: new high speed USB device
> using ehci_hcd and address 4 Sep 3 17:56:50 delatite kernel: usb 3-5:
> device descriptor read/64, error -32 Sep 3 17:56:51 delatite kernel:
> usb 3-5: device descriptor read/64, error -32 Sep 3 17:56:51 delatite
> kernel: usb 3-5: new high speed USB device using ehci_hcd and address
> 5 Sep 3 17:56:51 delatite kernel: usb 3-5: device descriptor read/64,
> error -32 Sep 3 17:56:51 delatite kernel: usb 3-5: device descriptor
> read/64, error -32
>
>====cut====
>
> Another interesting thing I have noted is that when the system shuts
> down, when the following scrolls by, the usb system fires up again and
> sees a USB stick if it is inserted.
>
> md: md0 switched to read-only mode
>
> Could that mean there is some sort of conflict between hard disk operation
> and USB operation?
>
> Brad.
>


The fix is - don't bother reinstalling Linux like I did. USB will still
not work. Instead shutdown the system. Turn off power. Remove power
plug from wall socket. Wait about 3 minutes. Plug power back in and
boot up. USB is back. WOO HOO!

Brad.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com