Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Mounting micro SD cards
Date: Sat, 03 Jul 2010 09:43:32
Message-Id: 201007031139.59753.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Mounting micro SD cards by felix@crowfix.com
1 On Saturday 03 July 2010 08:48:18 felix@×××××××.com wrote:
2 > I want a bigger micro SD card in my cell phone it came with just 2GB),
3 > so I bought a 16GB one complete with carrier to fit in a standard SD
4 > slot. My plan was to turn off the phone, remove the 2GB micro SD
5 > card, make a tarball of what is on there, put in the 16GB one and
6 > untar things, and put the 16GB one in the phone.
7 >
8 > No luck. /dev shows for devices, sd[fghi], and neither mount nor
9 > fdisk knows what to do with them. /var/log/messages has this:
10
11 I had a similar issue with the 8G (class 4) card I got for my phone. No matter
12 what I did, it wouldn't work in the SD slot. Other cards did, but not that
13 one.
14
15 Eventually I just stuck it in a multi-card expansion unit that plugs into USB
16 and it worked just fine. I suspect issues with the card itself - possibly
17 timing related and this confuses the controller. But I never proved this one
18 way or another.
19
20 Maybe you can try a similar USB unit? They are dirt cheap.
21
22 My on-board SD controller for comparison:
23
24 03:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host
25 Adapter (rev 22)
26 03:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
27 03:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter
28 (rev 12)
29 03:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
30
31
32
33
34 >
35 > Jul 2 22:15:54 xxx kernel: [568715.643244] usb 1-4.2.1: new high speed USB
36 > device using ehci_hcd and address 16 Jul 2 22:15:54 xxx kernel:
37 > [568715.730704] usb 1-4.2.1: New USB device found, idVendor=058f,
38 > idProduct=6362 Jul 2 22:15:54 xxx kernel: [568715.730708] usb 1-4.2.1:
39 > New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 2 22:15:54
40 > xxx kernel: [568715.730712] usb 1-4.2.1: Product: Mass Storage Device Jul
41 > 2 22:15:54 xxx kernel: [568715.730714] usb 1-4.2.1: Manufacturer: Generic
42 > Jul 2 22:15:54 xxx kernel: [568715.730716] usb 1-4.2.1: SerialNumber:
43 > 058F312D81B Jul 2 22:15:54 xxx kernel: [568715.731643] scsi7 :
44 > usb-storage 1-4.2.1:1.0 Jul 2 22:15:55 xxx kernel: [568716.732144] scsi
45 > 7:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
46 > Jul 2 22:15:55 xxx kernel: [568716.732744] scsi 7:0:0:1: Direct-Access
47 > Generic USB CF Reader 1.01 PQ: 0 ANSI: 0 Jul 2 22:15:55 xxx kernel:
48 > [568716.733367] scsi 7:0:0:2: Direct-Access Generic USB SM Reader
49 > 1.02 PQ: 0 ANSI: 0 Jul 2 22:15:55 xxx kernel: [568716.734088] scsi
50 > 7:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
51 > Jul 2 22:15:55 xxx kernel: [568716.735972] sd 7:0:0:0: Attached scsi
52 > generic sg5 type 0 Jul 2 22:15:55 xxx kernel: [568716.736777] sd 7:0:0:1:
53 > Attached scsi generic sg6 type 0 Jul 2 22:15:55 xxx kernel:
54 > [568716.737650] sd 7:0:0:2: Attached scsi generic sg7 type 0 Jul 2
55 > 22:15:55 xxx kernel: [568716.738408] sd 7:0:0:3: Attached scsi generic sg8
56 > type 0 Jul 2 22:15:56 xxx kernel: [568717.229510] sd 7:0:0:1: [sdg]
57 > Attached SCSI removable disk Jul 2 22:15:56 xxx kernel: [568717.230883]
58 > sd 7:0:0:2: [sdh] Attached SCSI removable disk Jul 2 22:15:56 xxx kernel:
59 > [568717.231639] sd 7:0:0:3: [sdi] Attached SCSI removable disk Jul 2
60 > 22:15:56 xxx kernel: [568717.232135] sd 7:0:0:0: [sdf] Very big device.
61 > Trying to use READ CAPACITY(16). Jul 2 22:15:56 xxx kernel:
62 > [568717.233510] sd 7:0:0:0: [sdf] Using 0xffffffff as device size Jul 2
63 > 22:15:56 xxx kernel: [568717.233519] sd 7:0:0:0: [sdf] 4294967296 512-byte
64 > logical blocks: (2.19 TB/2.00 TiB) Jul 2 22:15:56 xxx kernel:
65 > [568717.234503] sd 7:0:0:0: [sdf] Write Protect is off Jul 2 22:15:56 xxx
66 > kernel: [568717.234507] sd 7:0:0:0: [sdf] Mode Sense: 03 00 00 00 Jul 2
67 > 22:15:56 xxx kernel: [568717.234510] sd 7:0:0:0: [sdf] Assuming drive
68 > cache: write through Jul 2 22:15:56 xxx kernel: [568717.236749] sd
69 > 7:0:0:0: [sdf] Very big device. Trying to use READ CAPACITY(16). Jul 2
70 > 22:15:56 xxx kernel: [568717.237875] sd 7:0:0:0: [sdf] Using 0xffffffff as
71 > device size Jul 2 22:15:56 xxx kernel: [568717.238874] sd 7:0:0:0: [sdf]
72 > Assuming drive cache: write through Jul 2 22:15:56 xxx kernel:
73 > [568717.238879] sdf:
74 > Jul 2 22:15:56 xxx kernel: [568717.241760] sd 7:0:0:0: [sdf] Unhandled
75 > sense code Jul 2 22:15:56 xxx kernel: [568717.241764] sd 7:0:0:0: [sdf]
76 > Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Jul 2 22:15:56 xxx
77 > kernel: [568717.241770] sd 7:0:0:0: [sdf] Sense Key : Medium Error
78 > [current] Jul 2 22:15:56 xxx kernel: [568717.241778] Info fld=0x0
79 > Jul 2 22:15:56 xxx kernel: [568717.241781] sd 7:0:0:0: [sdf] Add. Sense:
80 > CIRC unrecovered error Jul 2 22:15:56 xxx kernel: [568717.241787] sd
81 > 7:0:0:0: [sdf] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00 Jul 2
82 > 22:15:56 xxx kernel: [568717.241799] end_request: I/O error, dev sdf,
83 > sector 0 Jul 2 22:15:56 xxx kernel: [568717.241803] Buffer I/O error on
84 > device sdf, logical block 0
85 >
86 > I don't remember now if this was the 2GB or 16GB micro SD card, but I
87 > know it wasn't 2TB!
88 >
89 > Is there some trick to reading micro SD cards? I read the SD card
90 > from a camera often with no problems, and it is 1 or 2 GB. If it
91 > matters any, this micro 16GB SD card and its carrier are Polaroid.
92 >
93 >
94 > I suppose I could just USB mount the phone with the 2GB card, copy off
95 > everything, mount the phone with the 16GB card and copy everything back.
96
97 --
98 alan dot mckinnon at gmail dot com