You are not logged in.
Pages: 1
I've got this 4 GB MicroSD card here that works all fine when used in a normal card reader but somehow acts up when I put it
into a MicroSD USB adapter (A USB keychain that takes a MicroSD card and uses it as storage instead of having own storage built in)
The memory card is formatted as FAT and, as I've said, works fine on it's own. If I place it into my keychain and plug it in, this is what happens in dmesg:
usb 1-1.4: new high speed USB device using ehci_hcd and address 74
scsi22 : usb-storage 1-1.4:1.0
scsi 22:0:0:0: Direct-Access Generic STORAGE DEVICE 0202 PQ: 0 ANSI: 0
sd 22:0:0:0: Attached scsi generic sg4 type 0
sd 22:0:0:0: [sdc] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB)
sd 22:0:0:0: [sdc] Write Protect is off
sd 22:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 22:0:0:0: [sdc] Assuming drive cache: write through
sd 22:0:0:0: [sdc] Assuming drive cache: write through
sd 22:0:0:0: [sdc] Unhandled sense code
sd 22:0:0:0: [sdc] Result: hostbyte=0x00 driverbyte=0x08
sd 22:0:0:0: [sdc] Sense Key : 0x3 [current]
sd 22:0:0:0: [sdc] ASC=0x47 ASCQ=0x1
sd 22:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
end_request: I/O error, dev sdc, sector 0
Buffer I/O error on device sdc, logical block 0
ldm_validate_partition_table(): Disk read failed.
sdc: unable to read partition table
sd 22:0:0:0: [sdc] Assuming drive cache: write through
sd 22:0:0:0: [sdc] Attached SCSI removable disk
What could be the root of the problem here?
Offline
Bump and update
If I rewrite the partition table when it's plugged in, dmesg will tell me (directly after the output from the first post):
sd 30:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
and I can mount the file system just fine. When I unplug and replug the device, all is forgotten again!
If I go through the same procedure again, it'll work.
Offline
Please do not bump your own threads, there are many posts on forums about this kind of problem
Search Wiki too
The problem could be your micro usb key is faulty, try testing on a different system
When you say plug and unplug are you mounting/ unmounting drive correctly?
Mr Green I like Landuke!
Offline
Oh I searched quite a while before deciding to open up a new thread for this.. maybe I'm just a bad searcher.
When I say plug and unplug I merely mean plugging and unplugging the device into the USB port.
If it would mount, I wouldn't have a problem here. I can only mount when I've rewritten the partition table
and the sd<x>1 partition is actually reported to the system, and not just the "sx<x>" device that the USB
adapter creates when it's plugged in without a card.
Offline
Oh I searched quite a while before deciding to open up a new thread for this.. maybe I'm just a bad searcher.
When I say plug and unplug I merely mean plugging and unplugging the device into the USB port.
If it would mount, I wouldn't have a problem here. I can only mount when I've rewritten the partition table
and the sd<x>1 partition is actually reported to the system, and not just the "sx<x>" device that the USB
adapter creates when it's plugged in without a card.
Plug in the adapter with the card and check lsusb then sudo fdisk -l
Does your adapter show up in lsusb?
Do you get partition of stick in fdisk?
MrG
Mr Green I like Landuke!
Offline
$ lsusb
[...]
Bus 001 Device 084: ID 05e3:0727 Genesys Logic, Inc.
[...]# fdisk -l /dev/sdd
Disk /dev/sdd: 3965 MB, 3965190144 bytes
106 heads, 30 sectors/track, 2435 cylinders, total 7744512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008497aDevice Boot Start End Blocks Id System
/dev/sdd1 2048 7744511 3871232 b W95 FAT32
Strangely, cfdisk bails out because it can't read the partition table.
Last edited by Sadface (2011-01-12 15:26:12)
Offline
Pages: 1