[Desire Android Development] Droidzone:
Damn..Did every step without getting any error this time..though the mount was a bit different..

Sibere/Mattiadj/Others who know these code...Can you guys look at my log and tell me where I went wrong. I did have to modify the chown code a bit to make it work.

C:\Software\htc\android-sdk-windows\tools>adb shell
~ # mount /sdcard
mount /sdcard
~ # mount /system
mount /system
~ # mount -o remount,rw /system
mount -o remount,rw /system
~ # chmod 755 /system/xbin/busybox
chmod 755 /system/xbin/busybox
~ # mkdir /data/busybox
mkdir /data/busybox
~ # /system/xbin/busybox --install -s /system/xbin/
/system/xbin/busybox --install -s /system/xbin/
~ # exit
exit

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

C:\Software\htc\android-sdk-windows\tools>adb push c:\e2fsck_recvy /system/bin/e
2fsck_recvy
1358 KB/s (195628 bytes in 0.140s)

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
~ # adb push c:\01data.txt /system/etc/init.d/01data
adb push c:\01data.txt /system/etc/init.d/01data
/sbin/sh: adb: not found
~ # adb push d:\01data.txt /system/etc/init.d/01data
adb push d:\01data.txt /system/etc/init.d/01data
/sbin/sh: adb: not found
~ # exit
exit

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

C:\Software\htc\android-sdk-windows\tools>adb shell
~ # mount /data
mount /data
~ # mount /sdcard
mount /sdcard
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: Device or resource busy
~ # mount /dev/block/mmcblk0p1 /sdcard
mount /dev/block/mmcblk0p1 /sdcard
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: Device or resource busy
~ # 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/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)
/dev/block/mtdblock3 on /system type yaffs2 (rw,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,relatime)
~ # chmod 755 /system/xbin/busybox
chmod 755 /system/xbin/busybox
~ # chown 0 0 /system/xbin/busybox
chown 0 0 /system/xbin/busybox
chown: 0: No such file or directory
~ # 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
839+0 records in
837+1 records out
878366720 bytes (837.7MB) copied, 79.570884 seconds, 10.5MB/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)
53648 inodes, 214445 blocks
0 blocks (0%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
7 block groups
32768 blocks per group, 32768 fragments per group
7664 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840
~ # 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
~ # ls -l /sd
ls -l /sd
drwxrwx--x 2 system system 4096 Dec 2 17:58 app
drwxrwx--x 2 system system 4096 Dec 2 07:32 app-private
drwx------ 4 system system 4096 Dec 2 17:58 backup
drwxrwx--x 2 system system 4096 Dec 2 17:58 dalvik-cache
drwxrwxrwx 141 root root 12288 Dec 2 17:58 data
drwxr-x--- 2 root log 4096 Dec 2 07:32 dontpanic
lrwxrwxrwx 1 root root 11 Dec 2 19:51 drm -> /data/local
drwxrwx--x 4 shell shell 4096 Dec 2 07:32 local
drwxrwx--- 2 root root 16384 Dec 2 07:32 lost+found
drwxrwx--t 10 system misc 4096 Dec 2 17:58 misc
drwx------ 2 root root 4096 Dec 2 17:58 property
drwxrwxr-x 8 system system 4096 Dec 2 19:25 system
~ # df
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 208116 0 208116 0% /dev
/dev/block/mtdblock4 40960 2848 38112 7% /cache
/dev/block/mmcblk0p1 3062384 24 3062360 0% /sdcard
/dev/block/mtdblock3 256000 248744 7256 97% /system
/dev/block/mtdblock5 151168 24756 126412 16% /data
/dev/block/mmcblk0p2 857784 857784 0 100% /sd-ext
/dev/loop0 844280 24420 819860 3% /sd
~ # /system/xbin/busybox umount /sd
/system/xbin/busybox umount /sd
~ # exit
exit

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