[Android Q&A, Help & Troubleshooting] yermandu:
Hellow Droiders :cyclops:

Apparentelly the question is simple, but not so easy.

I have a Mocordroid with scp6820a cpu rooted

First some objections:

1- The sdcard is used in vfat filesystem, move simplely /data folder to sdcard will be cause some problems

2- Copy /data to /mnt/sdcard/data will not work completly because we got some error of permission

adb shell

cp -r /data /mnt/sdcard
cp: can't create directory '/mnt/sdcard/data/misc/bluetoothd/FA:2B:B7:4E:90:59': Invalid argument
cp: can't create symlink '/mnt/sdcard/data/data/org.mariotaku.twidere/lib': Operation not permitted
cp: can't create '/mnt/sdcard/data/data/com.estrongs.android.pop/files/comm/tool_port': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.toss.removeappwidget/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/cn.menue.phonepermance.international/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.jrummy.liberty.toolbox/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/ccc71.at.free/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.google.android.apps.maps/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/jp.co.asbit.pvstar/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.alphascope/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.facebook.orca/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.liveov.rebooter/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.AndroidA.ffmpegCodec.armV7n/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/mobi.androidcloud.app.ptt.client/lib': Operation notpermitted
cp: can't create symlink '/mnt/sdcard/data/data/com.galaxy.instatext.photoeditor/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.fruityfun.ddbeta/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/me.onemobile.android/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.opera.mini.android/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.a0soft.gphone.app2sd/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.lidroid.fileexplorer.supermount/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.speedsoftware.rootexplorer/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.ringdroid/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.lonelycatgames.Xplore/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.devasque.fmount/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.pjw.batterywidget/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.buak.Link2SD/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.jumobile.manager.systemapp/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.AndroidA.MediaConverter/lib': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.google.android.gms/lib': Operation not permitted
#

So first thing i change size of sdcard, decreasing the partition size, and add a second partition with 3 Gbytes using ext2

To do this

Unmount the sdcard in settings>storage>unmount sdcard

i need discover where is the partitions

fdisk /dev/block/mmcblk0

Command (m for help):
m
u
p

Disk /dev/block/mmcblk0: 7948 MB, 7948206080 bytes
119 heads, 29 sectors/track, 4498 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 8192 8634367 4313088 b Win95 FAT32
/dev/block/mmcblk0p2 8634368 15523839 3444736 83 Linux

w
q

For secure i reboot device, and umount card again

So format the second partition

mke2fs -t ext2 -m0 -b4096 /dev/block/mmcblk0p2

And reboot again. This was hopeful action that it would recognize the card. But not ...

# mkdir /mnt/sdext
mount -t ext2 /dev/block/mmcblk0p2 /mnt/sdext
mount: No such device
mount -t ext2 /dev/block/vold/179:2 /mnt/sdext
mount: No such device

Argh

In My Epic Fail I was not successful :eek:

BEFORE that I wrote i try several tentactivies, apps but i m thinkink that use adb will be the more better.

Please tell me what is the best way, my internal device have less than 200 MB internal, so is too little !!!

Maybe i will need change fstab or init scripts.

Reference Links:

Using External Sdcard As /data On Cyanogenmod

http://forum.cyanogenmod.com/topic/...as-data-on-cyanogenmod-101-android-jellybean/

[GUIDE] SD card partitioning for rooted phones

http://xdaforums.com/showthread.php?t=907436