[Desire Android Development] Droidzone:
Was just setting up DATA2SD in Cyanogenmod..

Started from scrap beginning with Wipe and Fat32(2) format..

Each and every step in the process proceeded perfectly. Yet, at the end of it, the Internal Storage is shown as 142 Mb only. Did I overlook something? Danfrance setup DATA2SD in Defrost, so Cyanogen also should work..

C:\Software\htc\android-sdk-windows\tools>start/MIN .

C:\Software\htc\android-sdk-windows\tools>cmd
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Software\htc\android-sdk-windows\tools>adb shell
~ #
C:\Software\htc\android-sdk-windows\tools>adb shell
~ # mount /system
mount /system
~ # exit
exit

C:\Software\htc\android-sdk-windows\tools>adb push c:\busybox-armv6l /system/xbi
n/busybox
1731 KB/s (1062992 bytes in 0.599s)

C:\Software\htc\android-sdk-windows\tools>adb push c:\e2fsck_recvy /system/bin/
1438 KB/s (195628 bytes in 0.132s)

C:\Software\htc\android-sdk-windows\tools>adb push c:\01data.txt /system/etc/ini
t.d/01data
49 KB/s (394 bytes in 0.007s)

C:\Software\htc\android-sdk-windows\tools>adb shell
~ # chmod 755 /system/bin/e2fsck_recvy
chmod 755 /system/bin/e2fsck_recvy
~ # chown 0.2000 /system/bin/e2fsck_recvy
chown 0.2000 /system/bin/e2fsck_recvy
~ # mount /data
mount /data
~ # mount /sdcard
mount /sdcard
~ # mount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)
/dev/block/mtdblock3 on /system type yaffs2 (rw,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,relatime)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,relatime,fmask=0000,dmask=0000,all
ow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-
ro)
~ # chmod 755 /system/xbin/busybox
chmod 755 /system/xbin/busybox
~ # chown 0.0 /system/xbin/busybox
chown 0.0 /system/xbin/busybox
~ # chmod 755 /system/etc/init.d/01data
chmod 755 /system/etc/init.d/01data
~ # chown 0.0 /system/etc/init.d/01data
chown 0.0 /system/etc/init.d/01data
~ # cd /
cd /
~ # mount /dev/block/mmcblk0p2 /sd-ext
mount /dev/block/mmcblk0p2 /sd-ext
~ # dd if=/dev/zero of=/sd-ext/ext2 bs=1048576
dd if=/dev/zero of=/sd-ext/ext2 bs=1048576
dd: writing '/sd-ext/ext2': No space left on device
1160+0 records in
1158+1 records out
1215000576 bytes (1.1GB) copied, 451.654268 seconds, 2.6MB/s
~ # /system/xbin/busybox mke2fs -m 0 -F -L userdata /sd-ext/ext2
/system/xbin/busybox mke2fs -m 0 -F -L userdata /sd-ext/ext2
Filesystem label=userdata
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
74240 inodes, 296631 blocks
0 blocks (0%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
10 block groups
32768 blocks per group, 32768 fragments per group
7424 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
~ # mkdir /sd
mkdir /sd
~ # /system/xbin/busybox mount -o loop /sd-ext/ext2 /sd
/system/xbin/busybox mount -o loop /sd-ext/ext2 /sd
~ # cd /data
cd /data
/data # cp -a * /sd
cp -a * /sd
/data # cd /
cd /
~ # sync
sync
~ # ^V

~ # ls -l /sd
ls -l /sd
drwxrwx--x 2 system system 4096 Dec 21 03:56 app
drwxrwx--x 2 system system 4096 Dec 21 03:53 app-private
drwx------ 4 system system 4096 Dec 21 03:54 backup
drwxrwx--x 2 system system 4096 Dec 21 03:56 dalvik-cache
drwxrwx--x 59 system system 4096 Dec 21 03:56 data
drwxr-x--- 2 root log 4096 Dec 21 03:53 dontpanic
drwxrwx--x 3 shell shell 4096 Dec 21 03:53 local
drwxrwx--- 2 root root 16384 Dec 21 03:53 lost+found
drwxrwx--t 9 system misc 4096 Dec 21 04:10 misc
drwx------ 2 root root 4096 Dec 21 03:54 property
drwxrwxr-x 8 system system 4096 Dec 21 04:11 system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 208116 0 208116 0% /dev
/dev/block/mtdblock4 40960 1168 39792 3% /cache
/dev/block/mtdblock3 256000 101836 154164 40% /system
/dev/block/mtdblock5 151168 31244 119924 21% /data
/dev/block/mmcblk0p1 14459072 9642480 4816592 67% /sdcard
/dev/block/mmcblk0p2 1186528 1186528 0 100% /sd-ext
/dev/loop0 1167836 30556 1137280 3% /sd
~ # /system/xbin/busybox umount /sd
/system/xbin/busybox umount /sd
~ # exit
exit

C:\Software\htc\android-sdk-windows\tools>