8042 run tablet from sdcard.

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Linux and windows users can do this if you know how to format a sdcard via linux livecd or run linux in virtual.

anyway you need to have CWM installed already, boot into cwm make a backup copy the backup to your desktop either via adb pull, or mount sdcard to computer.

once backup is on your pc, make sure sdcard is mounted to pc, use gparted format sdcard make three partitions.


1.fat32
2.ext4
3.ext4

size is up to you # make each at least 1GB, can be larger if your sdcard is large.

once done umount sdcard from pc reboot to recovery.

use adb to create the clockworkmod directoires.

adb shell

mkdir /sdcard/clockworkmod
mkdir /sdcard/clockworkmod/backup
mkdir /sdcard/clockworkmod/backup/name_of_your_directory #example mine is 2012-06-15.17.02.23

now open another teminal

adb push name_of_your_directory /sdcard/clockworkmod/backup/name_of_your_directory/

cd /

mount -t ext4 /dev/block/mmcblk0p2 /data

mount -t ext4 /dev/block/mmcblk0p3 /system

busybox tar -xvf /sdcard/clockworkmod/backup/2012-06-15.17.02.23/data.ext4.tar

busybox tar -xvf /sdcard/clockworkmod/backup/2012-06-15.17.02.23/system.ext4.tar


download boot_ds.img.zip

adb push boot_ds.img.zip /sdcard

use cwm to install it.

reboot and enjoy using your tablet from sdcard.

Now if you install an app that causes your tablet to crash or you make a change to your tablet that crashes, it's only on your sdcard, your real tablet system and data are untouched.

to get back to regular tablet boot into recovery and re flash your boot.img


This is my current setup out put. I ordered a 16Gb class 10, when I get it, I plan on upping my /data partitions to 4GB, 1GB is plenty big enough for /system right now my /data is almost 2GB, and /system 1GB, /sdcard fat32 almost 5GB


# busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 407.1M 44.0K 407.1M 0% /dev
tmpfs 407.1M 0 407.1M 0% /mnt/asec
tmpfs 407.1M 0 407.1M 0% /mnt/obb
/dev/block/mmcblk0p3 1005.9M 236.1M 718.8M 25% /system
/dev/block/mmcblk0p2 1.9G 204.4M 1.6G 11% /data
/dev/block/nandh 503.9M 8.4M 495.6M 2% /cache
/dev/block/vold/93:64
1.1G 716.6M 437.1M 62% /mnt/extsd
/dev/block/vold/179:1
4.7G 893.8M 3.8G 19% /mnt/sdcard
/dev/block/vold/179:1
4.7G 893.8M 3.8G 19% /mnt/secure/asec
 
Last edited:

dymedog

Member
May 29, 2012
54
1
is there asnyway to partition the sd card without a computer? if so which partition is for what? I got a 16gb card and want to do this right. thanks!
 

tpaine

Senior Member
Aug 18, 2012
525
130
vamp, I'm trying to decide between the 7042 and the 8042. will this method work for the 7042 or can it be modified ? Thanks for all your work on the cobys.
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
vamp, I'm trying to decide between the 7042 and the 8042. will this method work for the 7042 or can it be modified ? Thanks for all your work on the cobys.

It will work on any android, you just need to change the mount points in the boot.img
 

tpaine

Senior Member
Aug 18, 2012
525
130
It will work on any android, you just need to change the mount points in the boot.img

Excuse my ignorance, I'm an android newbie, but would this work unchanged on the coby 7042? One more question. I see you have both the 7042 and the 8042. How does the battery life compare between the two ?
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
Excuse my ignorance, I'm an android newbie, but would this work unchanged on the coby 7042? One more question. I see you have both the 7042 and the 8042. How does the battery life compare between the two ?

No wont work unchanged for 7042, you would need to edit mount points in the 7042 boot.img to get this to work on a 7042.
 

magicmaker

Member
Dec 15, 2012
23
1
I can't get any further than this. Please help.
mount -t ext4 /dev/block/mmcblk0p2 /data

mount: mounting /dev/block/mmcblk0p2 on /data failed: Invalid argument
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
well two thing, are you in cw recovery mode? do you have your sdcard partitioned as ext4?
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
vampirefo@Vamp:~/Desktop$ adb shell
~ # cat /proc/partitions
major minor #blocks name

93 0 16384 nanda
93 8 2048 nandb
93 16 32768 nandc
93 24 262144 nandd
93 32 1048576 nande
93 40 1024 nandf
93 48 32768 nandg
93 56 262144 nandh
93 64 2232320 nandi
179 0 15634432 mmcblk0
179 1 10600448 mmcblk0p1
179 2 1048576 mmcblk0p2
179 3 3981312 mmcblk0p3
~ # mount -t ext4 /dev/block/mmcblk0p2 /data
~ #
 

magicmaker

Member
Dec 15, 2012
23
1
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.


C:\Windows\system32>cd C:\androidadb\sdk\platform-tools


C:\androidadb\sdk\platform-tools>adb shell
adb server is out of date. killing...
* daemon started successfully *
~ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name


93 0 16384 nanda
93 8 2048 nandb
93 16 32768 nandc
93 24 524288 nandd
93 32 1572864 nande
93 40 1024 nandf
93 48 32768 nandg
93 56 524288 nandh
93 64 1183744 nandi
179 0 15558144 mmcblk0
179 1 1305600 mmcblk0p1
179 2 1 mmcblk0p2
179 5 3957728 mmcblk0p5
179 6 10288128 mmcblk0p6
~ #
 

vampirefo.

Senior Member
Developer
Nov 8, 2011
3,836
1,394
should be crystal clear to you why you have the error. you have no mmcblk0p2 partition, can't mount something that doesn't exist. these partitions must be primary not extended.

179 2 1 mmcblk0p2
179 5 3957728 mmcblk0p5
179 6 10288128 mmcblk0p6

once done correctly, your cat /proc/partitions, will match mine.

179 0 15634432 mmcblk0
179 1 10600448 mmcblk0p1
179 2 1048576 mmcblk0p2
179 3 3981312 mmcblk0p3
 
Last edited:

magicmaker

Member
Dec 15, 2012
23
1
should be crystal clear to you why you have the error. you have no mmcblk0p2, can't mount something that doesn't exist. these partitions must be primary not extended.

179 2 1 mmcblk0p2
179 5 3957728 mmcblk0p5
179 6 10288128 mmcblk0p6

So I need to start over from the beginning and reformat my sd card and make sure all partitions are primary?
 
Top