8042 run tablet from sdcard.

Discussion in 'Coby Generation 3 Development' started by vampirefo., Jun 15, 2012.

  1. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    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: Jun 15, 2012
    • Like Like x 10
  2. dymedog

    dymedog Member

    Joined:
    May 29, 2012
    Messages:
    54
    Likes Received:
    1
    Trophy Points:
    72
    Location:
    NJ
    Tablet / Device:
    Coby 8042-4
    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!
     
  3. tpaine

    tpaine Senior Member

    Joined:
    Aug 18, 2012
    Messages:
    525
    Likes Received:
    130
    Trophy Points:
    132
    Location:
    Socal
    Tablet / Device:
    Coby 7042, Coby 8065, Lenovo A2109
    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.
     
  4. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    It will work on any android, you just need to change the mount points in the boot.img
     
  5. tpaine

    tpaine Senior Member

    Joined:
    Aug 18, 2012
    Messages:
    525
    Likes Received:
    130
    Trophy Points:
    132
    Location:
    Socal
    Tablet / Device:
    Coby 7042, Coby 8065, Lenovo A2109
    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 ?
     
  6. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    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.
     
    • Like Like x 2
  7. magicmaker

    magicmaker Member

    Joined:
    Dec 15, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    62
    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
     
  8. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    well two thing, are you in cw recovery mode? do you have your sdcard partitioned as ext4?
     
  9. magicmaker

    magicmaker Member

    Joined:
    Dec 15, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    62
    I am in CWM Recovery and I have 2 partitions with ext4.
     
  10. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    cat /proc/partitions
     
  11. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    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
    ~ #
     
  12. magicmaker

    magicmaker Member

    Joined:
    Dec 15, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    62
    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
    ~ #
     
  13. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    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: Dec 23, 2012
  14. magicmaker

    magicmaker Member

    Joined:
    Dec 15, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    62
    Well I'm a newb so it really isn't crystal clear still. How do I fix it?
     
  15. magicmaker

    magicmaker Member

    Joined:
    Dec 15, 2012
    Messages:
    23
    Likes Received:
    1
    Trophy Points:
    62
    So I need to start over from the beginning and reformat my sd card and make sure all partitions are primary?
     

Share This Page

Search tags for this page

linux img to sd card tablet

,

run android tablet from sdcard