2010年1月26日火曜日

android with opensolarisの続き

試しにDebianでmountしてみる。。。フツー。

dd if=/dev/sda of=android_sd_mbr.txt bs=512 count=1
の結果

$ hexdump android_sd_mbr.txt
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
00001b0 0000 0000 0000 0000 0000 0000 0000 0080
00001c0 0000 000c 0000 0081 0000 cb7f 01da 0000
00001d0 0000 0000 0000 0000 0000 0000 0000 0000
*
00001f0 0000 0000 0000 0000 0000 0000 0000 aa55
0000200

opensolarisでmountして、ファイルを書き込み...破損したSDカード 検出...orz
Debianに接続!...ぐはぁ。。。パーティション読めないって。。。

$ dmesg
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb 2-2: New USB device found, idVendor=0bb4, idProduct=0c01
usb 2-2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb 2-2: Product: Android Phone
usb 2-2: Manufacturer: HTC
usb 2-2: SerialNumber: HT96MLF03039
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access HTC Android Phone 0100 PQ: 0 ANSI: 2
sd 1:0:0:0: [sda] Attached SCSI removable disk
sd 1:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
sd 1:0:0:0: [sda] 31116288 512-byte hardware sectors (15932 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] 31116288 512-byte hardware sectors (15932 MB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda:<6>usb 2-2: reset full speed USB device using uhci_hcd and address 3
sd 1:0:0:0: [sda] Device not ready: Sense Key : 0x2 [current]
sd 1:0:0:0: [sda] Device not ready: ASC=0x3a ASCQ=0x0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
sd 1:0:0:0: [sda] Device not ready: Sense Key : 0x2 [current]
sd 1:0:0:0: [sda] Device not ready: ASC=0x3a ASCQ=0x0
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
unable to read partition table

こうなると dd しても、、、
dd if=/dev/sda of=android_sd_mbr_solaris.txt bs=512 count=1
dd: opening `/dev/sda': No medium found

0 件のコメント: