Author Topic: Running phone from sdcard  (Read 4385 times)

0 Members and 1 Guest are viewing this topic.

Running phone from sdcard

« on: June 09, 2014, 06:00:18 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • vampirefo

    Posts: 38
    User Rating: +10/-0
    Offline
    • *
    • Jr. Member
    The purpose of this guide is to setup a dual boot phone, with almost unlimited app space, almost being the size of your data partition, in this guide we will make data partition 4GB, you can make yours larger or smaller up to you.

    My way is much more complex than "Hacking the LGL38C - More app install space - How to" method, requires more time, more computer knowledge but the profits are much more.

    Today sdcards are on sale on Amazon. bestbuy pretty much everywhere today, I just got back with a scandisk 16GB class 10 for less than $15, this is the sdcard I will use in this guide.

    Download these boot files extract to desktop, you will need to push them later via adb.

    You are not allowed to view links. Register or Login

    You need to partition your sdcard into 3 partition.

    1 fat
    2 ext4
    3 ext4






    You need a card reader and computer to partition your sdcard, I use Linux so I use gparted.

    Once your sdcard is partitioned all partitions need to be primary, remove from pc and place in phone, reboot phone into recovery mode. You must have custom recovery and adb setup and working.

    in recovery mode mount

    system
    data
    cache
    sdcard

    now open terminal window, and type following adb commands.

    Code: You are not allowed to view links. Register or Login
    adb shell
    Code: You are not allowed to view links. Register or Login
    busybox tar -czvf /sdcard/LGL38C_system.tgz /system
    once first commands finishes

    Code: You are not allowed to view links. Register or Login
    busybox tar -czvf /sdcard/LGL38C_data.tgz /data
    when this job finishes

    Code: You are not allowed to view links. Register or Login
    umount /system
    umount /data

    Code: You are not allowed to view links. Register or Login
    mount -t ext4 /dev/block/mmcblk1p2 /system
    mount -t ext4 /dev/block/mmcblk1p3 /data

    Code: You are not allowed to view links. Register or Login
    busybox tar -xzvf /sdcard/LGL38C_system.tgz
    when finishes

    Code: You are not allowed to view links. Register or Login
    busybox tar -xzvf /sdcard/LGL38C_data.tgz
    close terminal then open another terminal.

    Code: You are not allowed to view links. Register or Login
    adb push boot_phone.zip /sdcard/
    when finishes

    Code: You are not allowed to view links. Register or Login
    adb push boot_sdcard.zip /sdcard/
    Code: You are not allowed to view links. Register or Login
    umount /system
    umount /data

    in cwm select install zip from sdcard

    select boot_sdcard.zip

    reboot

    to boot back to phone, reboot into recovery in cwm select install zip from sdcard

    select boot_phone.zip

    reboot


    Below you can see my system 25% used and data 6% used, data is 4GB system is 1Gb more than I will ever need on this phone, if you need more simply redo the process and make your data partition bigger.

    Code: You are not allowed to view links. Register or Login
    busybox df -h
    Filesystem                Size      Used Available Use% Mounted on
    tmpfs                   150.6M     40.0K    150.6M   0% /dev
    tmpfs                   150.6M         0    150.6M   0% /mnt/asec
    tmpfs                   150.6M         0    150.6M   0% /mnt/obb
    tmpfs                   150.6M         0    150.6M   0% /mnt/extasec
    tmpfs                   150.6M         0    150.6M   0% /mnt/extobb
    //dev/block/mmcblk1p2
                           1007.9M    239.1M    717.6M  25% /system
    /dev/block/mmcblk1p3      4.0G    247.3M      3.5G   6% /data
    /dev/block/mmcblk0p15
                              7.9M      4.3M      3.6M  54% /persist
    /dev/block/mmcblk0p16
                             70.9M     22.5M     48.4M  32% /cache
    /dev/block/mmcblk0p18
                              7.9M      4.1M      3.8M  52% /drm
    /dev/block/mmcblk0p22
                             15.7M      4.0M     11.7M  26% /mpt
    /dev/block/vold/179:20
                           1023.7M    827.7M    196.0M  81% /mnt/sdcard
    /dev/block/vold/179:20
                           1023.7M    827.7M    196.0M  81% /mnt/secure/asec
    • Stock
    • ZTE OPEN C
    • Clock Work Mod
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #1 on: June 11, 2014, 04:41:19 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • cowellalexander

    Posts: 8
    User Rating: +0/-0
    Offline
    • VIP Member
    • *
    • Jr. Member
    Are there any drawbacks or slowdowns from doing this mod?

    Sent from my LG-L38C using Tapatalk 2

    • Custom
    • L38C LG Optimus Dynamic
    • Clock Work Mod
    • AreaRomQ v1.1
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #2 on: June 11, 2014, 04:54:48 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • vampirefo

    Posts: 38
    User Rating: +10/-0
    Offline
    • *
    • Jr. Member
    class 10 should make phone a little faster, below class 6 might make phone lag, draw back is no external sdcard, unless you put ext4 before fat partitions on GB, Newer OS doesn't matter ICS kernel and above can read sdcard just fine no matter where ext4 partitions are, So GB draw back.

    I may later reparation the sdcard, and put fat partitions last, that's the fun with it, runs faster, you can have as much space as you want and redo it anytime you want, and no danger to your phone, as nothing on phone is changed but modified boot.img,
    • Stock
    • ZTE OPEN C
    • Clock Work Mod
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #3 on: June 11, 2014, 05:23:31 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • cowellalexander

    Posts: 8
    User Rating: +0/-0
    Offline
    • VIP Member
    • *
    • Jr. Member
    Might have to try it out after i get home from work tonight.

    So I am going to put the Fat partition last, so I should have an external SD now?



    Sent from my LG-L38C using Tapatalk 2

    • Custom
    • L38C LG Optimus Dynamic
    • Clock Work Mod
    • AreaRomQ v1.1
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #4 on: June 13, 2014, 04:04:08 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • vampirefo

    Posts: 38
    User Rating: +10/-0
    Offline
    • *
    • Jr. Member
    It should but the boot.img as it is most likely wont work, as it is setup to see fat first, you would need to edit boot.img yourself to adjust for the difference if there is a difference in the partition numbers, I would for now just set it up as  outlined in thread get it working then, can adjustt as needed.

    Right now I am working on my new ZTE Open C, so not putting  much time in this phone right now, I use it as is, works great for me, my zte open C isn't even connected to phone service yet, as I am modifying it a lot.
    • Stock
    • ZTE OPEN C
    • Clock Work Mod
    • Rooted-Rom

    some good news to add...

    « Reply #5 on: June 24, 2014, 09:34:53 AM »
  • Thank You
  • -Given: 4
  • -Receive: 3
  • smallhagrid

    Posts: 43
    User Rating: +14/-0
    Offline
    • *
    • Jr. Member
    Right now I am looking at cards to do this and found:
     Kingston Digital microSD Class 10 UHS-1 Memory Card 30MB/s with Adapter SDC10/16GBET by Kingston $7.99
    You are not allowed to view links. Register or Login

     Kingston Digital 8 GB microSD Class 10 UHS-1 Memory Card 30MB/s with Adapter (SDC10/8GBET) by Kingston $5.82
    You are not allowed to view links. Register or Login

    Now I wonder if the info in the OP works just as well for an 8GB card as for a 16GB card ??
    • Stock
    • LG L38C
    • Stock
    • Stock-Rooted

    Re: Running phone from sdcard

    « Reply #6 on: June 25, 2014, 02:16:04 PM »
  • Thank You
  • -Given: 10
  • -Receive: 1
  • paul1947

    Posts: 87
    User Rating: +19/-1
    Offline
    • *
    • Full Member
    Thanks vampirefo

          It took about 30 minutes counting repartitioning my sdcard and all.
    I got about 3 gbs of system space, and the same on data
          Can't use link2sd but now you don't need it.
    Just wondering if this will work on my s738c centura phone?
    Thanks for a great mod
    • Stock
    • LG ULTIMATE 2 (L41C)
    • TWRP
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #7 on: June 25, 2014, 03:48:54 PM »
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Phydeux

    Posts: 553
    User Rating: +179/-3
    Rom Developer -- Network Admin -- Forum Admin
    Offline
    • VIP Member
    • *
    • Hero Member
    • Personal Text
      Let me know. I appreciate help.
    You are not allowed to view links. Register or Login
    ...
    Just wondering if this will work on my s738c centura phone?
    ...

    Look in the Centura Forum
    • Custom
    • Samsung Galaxy Exhilarate i577
    • Clock Work Mod
    • AreaRom X
    • Rooted-Rom
    Donations are appreciated!

    Phydeux's PayPal email:
    You are not allowed to view links. Register or Login

    AndroidArea51 PayPal email:
    You are not allowed to view links. Register or Login




    Re: Running phone from sdcard

    « Reply #8 on: June 28, 2014, 06:28:04 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • userb

    Posts: 7
    User Rating: +0/-0
    Offline
    • *
    • Jr. Member
    You are not allowed to view links. Register or Login
    It should but the boot.img as it is most likely wont work, as it is setup to see fat first, you would need to edit boot.img yourself to adjust for the difference if there is a difference in the partition numbers, I would for now just set it up as  outlined in thread get it working then, can adjustt as needed.

    Right now I am working on my new ZTE Open C, so not putting  much time in this phone right now, I use it as is, works great for me, my zte open C isn't even connected to phone service yet, as I am modifying it a lot.

    Thank you for useful tutorial. I tried to edit boot.ing for LG e400f L3. It have same partitions like l38c, but boot image is different. Can you tell me which and how lines in init.rc should be changed to boot from sd card ( or may be should change other files in boot.img)?
    • Stock
    • 972545504472
    • Clock Work Mod
    • Stock-Rooted

    Re: Running phone from sdcard

    « Reply #9 on: June 28, 2014, 07:22:31 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • vampirefo

    Posts: 38
    User Rating: +10/-0
    Offline
    • *
    • Jr. Member
    I can't tell you what lines to change, as you stated it is a different boot.img. You can take the boot.img I posted apart and see what has been changed then look for similar lines in your boot.img
    • Stock
    • ZTE OPEN C
    • Clock Work Mod
    • Rooted-Rom

    Re: Running phone from sdcard

    « Reply #10 on: June 29, 2014, 04:28:47 PM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • userb

    Posts: 7
    User Rating: +0/-0
    Offline
    • *
    • Jr. Member
    You are not allowed to view links. Register or Login
    I can't tell you what lines to change, as you stated it is a different boot.img. You can take the boot.img I posted apart and see what has been changed then look for similar lines in your boot.img

    Thanks for advice. Yes, now I found the lines and changed. All work perfect except external sdcard with fat32 partition (first in sd like your) not mounted - not in android, not when connect to pc, not when boot from phone not when boot from sdcard.  But when boot from phone and use other sd with one partition - external sdcard mounted fine.

    I search in init.rc, but not found lines with "mmcblk1p1" words? What I should to change or add , so external sdcard will mount?

    Thank you
    • Stock
    • 972545504472
    • Clock Work Mod
    • Stock-Rooted

    Re: Running phone from sdcard

    « Reply #11 on: June 30, 2014, 02:28:39 AM »
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Corbow6

    Posts: 1
    User Rating: +1/-0
    Offline
    • *
    • Newbie
    So everything looks good. I'm actually running the Vamprom as well. One issue which I'm not sure is intended or not, my phone is not seeing any SD Storage, and when attempting to mount it comes up blank. Care to clarify?
    • Stock
    • 4792210576
    • Stock
    • Not Rooted

    Tags:
     

    Related Topics

      Subject / Started by Replies Last post
    3 Replies
    2703 Views
    Last post November 15, 2012, 08:36:02 PM
    by kway
    4 Replies
    3049 Views
    Last post April 18, 2013, 04:49:29 PM
    by kingmt01
    24 Replies
    6236 Views
    Last post October 11, 2014, 12:23:56 AM
    by Droidriven
    8 Replies
    3137 Views
    Last post May 17, 2014, 05:28:25 PM
    by gargash
    2 Replies
    1992 Views
    Last post October 20, 2014, 07:35:56 PM
    by daddy366
    3 Replies
    557 Views
    Last post August 21, 2016, 09:35:33 PM
    by Droidriven