[Help] ADB

z3ro-grav1ty

Senior Member
Nov 29, 2012
107
21
0
Sydney
Hi there,

I've been trying to fix my sdcard problem and have resorted to trying to fix it via adb.

So I run the command
Code:
cat /proc/partitions

Code:
cat /proc/partitions
major minor  #blocks  name      alias

   7        7       4096 loop7
 179       32    1912832 mmcblk1
 179       33        128 mmcblk1p1
 179       34        512 mmcblk1p2
 179       35        512 mmcblk1p3
 179       36          1 mmcblk1p4
 179       37        512 mmcblk1p5
 179       38        512 mmcblk1p6
 179       39       4096 mmcblk1p7      pds
 179       40        512 mmcblk1p8
 179       41        512 mmcblk1p9
 179       42       1024 mmcblk1p10
 179       43       2048 mmcblk1p11
 179       44        512 mmcblk1p12
 179       45        512 mmcblk1p13
 179       46       4096 mmcblk1p14
 179       47       8192 mmcblk1p15     boot
 179       48       8192 mmcblk1p16     recovery
 179       49      14336 mmcblk1p17     cdrom
 179       50        512 mmcblk1p18     misc
 179       51        512 mmcblk1p19     cid
 179       52       4096 mmcblk1p20     kpanic
 179       53     334848 mmcblk1p21     system
 179       54        512 mmcblk1p22     prek
 179       55        512 mmcblk1p23     pkbackup
 179       56     204800 mmcblk1p24     cache
 179       57    1319936 mmcblk1p25     userdata
 179        0    7761920 mmcblk0

Its supposed to list mmcblk0p1 as well :\

I ran
Code:
cat /proc/cmdline

Code:
cat /proc/cmdline
console=/dev/null rw [email protected] init=/init ip=off brdrev=P3A omap3_die_
id androidboot.bootloader=0x0000 mmcparts=mmcblk1:p7(pds),p15(boot),p16(recovery
),p17(cdrom),p18(misc),p19(cid),p20(kpanic),p21(system),p22(prek),p23(pkbackup),
p24(cache),p25(userdata) androidboot.mode=normal

Whenever I try to run logcat it goes into a loop of errors

Code:
error: cannot connect to daemon
ADB server didn't ACK
* failed to start daemon *
- waiting for device -
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
ADB server didn't ACK
* failed to start daemon *
- waiting for device -
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
ADB server didn't ACK
* failed to start daemon *
- waiting for device -
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
ADB server didn't ACK
* failed to start daemon *
- waiting for device -

Any help on this issue would be greatly appreciated!

Running 'Show log' from recovery says I can't mount /dev/block/mmcblk0p1 because it doesn't exist.

EDIT:
Code:
fdisk -l /dev/block/mmcblk0

Code:
fdisk -l  /dev/block/mmcblk0

Disk /dev/block/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

              Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1   ?    30441958    57035368   850989111+ 6e Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2   ?           1           1           0  74 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p4          438273      438279         220+  0 Empty
Partition 4 does not end on cylinder boundary

Partition table entries are not in disk order
 
Last edited:

z3ro-grav1ty

Senior Member
Nov 29, 2012
107
21
0
Sydney
Ok I managed to mount it.

You most probably have an unpartitioned sdcard, clockworkmod however assumes that is partitioned and wants to mount the first partition (/dev/block/mmcblk0p1).

You can fix this by repartitioning your sdcard so that it has a mountable fat-formatted first volume and then retry.

If you don't mind using the commandline, boot to recovery and connect via adb shell to it, then mount your sdcard manually: mount /dev/block/mmcblk0 /sdcard and retry.

Technical explanation:

cat /proc/partitions lists:

/dev/block/mmcblk0 is your FAT formatted volume (no more partitions at all)

should be:
/dev/block/mmcblk0 (whole device)
/dev/block/mmcblk0p1 (1st partition, FAT formatted)
/dev/block/mmcblk0p2 (sd-ext partition, only for those that use SD2ext and such)
Source: http://android.stackexchange.com/questions/24427/cant-mount-sdcard-from-recovery-mode-clockworkmod

By running the command
Code:
mount /dev/block/mmcblk0 /sdcard
I can now access the sdcard, but this is only a temporary solution. How do I make it so that I don't have to manually mount the sdcard?