[Tool] Swap Internal SDcard With External SDcard no init.d need UPDATE

Search This thread

rickwyatt

Senior Member
Feb 7, 2007
1,227
448
41
london
Swap Internal SDcard With External SDcard

!!!!!!!!!! PLEASE REMEMBER TO BACKUP YOUR STOCK ROM !!!!!!!!!!

You will need a unlocked bootloader

Quoted from CyanogenMod team


Code:
   Your warranty is now void.
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device,
I will laugh at you. Hard. A lot.
 */
* When using this mod make sure you dont remove the microsd whilst phone is powered up




information :
Iv tested this for a few days iv got a 16gb card in the motorola razr I and it is all working great
i made this mod because as you no /data/media is linked to /sdcard so when you fill up your sdcard it also fill up your data

Code:
root@smi:/ # df
df
Filesystem             Size   Used   Free   Blksize
/dev                   484M    76K   484M   4096
/system                  1G   734M   469M   4096
/cache                 629M    10M   619M   4096
/data                    5G   640M     4G   4096
/pds                     7M     4M     3M   4096
/mnt/asec              484M     0K   484M   4096
/mnt/obb               484M     0K   484M   4096
/mnt/sdcard             14G     8G     6G   32768


Things working are :

(1) Media Transfer Protocol
(2) External SDcard being mounted to /sdcard
(3) /data/media is no longer used as /sdcard
(4) Working after reboot

How Too use :
(1) Extract to desktop
(2) Ensure USB debugging is enabled and phone is connected to pc
(3) run run.bat


Download for unlocked bootloaders here

Download for locked bootloaders here
 

Attachments

  • Screenshot_2012-12-09-21-28-48.jpg
    Screenshot_2012-12-09-21-28-48.jpg
    19.6 KB · Views: 5,707
Last edited:

Marco Lomas

Senior Member
Feb 17, 2012
801
206
So this gonna swap all the internal sdcard, not the sistem, to the external sdcard partitioned or whithout partition???

Enviado desde mi GT-S5660 usando Tapatalk 2
 

rickwyatt

Senior Member
Feb 7, 2007
1,227
448
41
london
this will give you 5gb for data and and only data and if you got a 16gb micro sdcard it will be mounted at /sdacrd

so
5gb /data
16 /sdcard

it will not touch any other partition
it is only a init.d script and a mod in framework-res
 
  • Like
Reactions: Marco Lomas

Marco Lomas

Senior Member
Feb 17, 2012
801
206
Ho, i understand now, ty, this is a great work :D,

What about the perfomance? Its the same or change? Just a stupid question :p

Enviado desde mi GT-S5660 usando Tapatalk 2
 

PELLET Nolwenn

Senior Member
May 28, 2011
135
35
It's depend your sd class card..

Make a benchmark with AnTuTu to compare which is faster between your internal and external card. ;)

Envoyé depuis mon XT890
 

PELLET Nolwenn

Senior Member
May 28, 2011
135
35
Just a question, maybe stupid, but somebody know if I use a sd card faster than the internal it'll increase the reactivity and the speed ? Like on a laptop when we change the SSD.

Envoyé depuis mon XT890
 

fabulous69

Senior Member
Jan 26, 2009
947
298
LYON
Just a question, maybe stupid, but somebody know if I use a sd card faster than the internal it'll increase the reactivity and the speed ? Like on a laptop when we change the SSD.

Envoyé depuis mon XT890

If it is faster, yes it will.
You improve read and writing speed, so apps will be a bit faster to launch. Sometimes almost not noticeable, sometimes really faster ;)
 

Daniel 9999

Senior Member
Apr 1, 2007
178
8
Hai fabulous69,Thk for this swap,trying now.Can u include more feature in init.d such as clear ram frequently,clean all cach/dalvik,optimize,speedreadcard,tweak,supercharge,netspeed....(sorry off topic).
 

Le_Poilu

Senior Member
Dec 9, 2010
238
66
le-poilu.whykywa.com
Doesn't work for we :(

Init.d initialisation seems ok
Rebot
Apply run.bat for sdcard
Reboot..
but still external1 and Sdcard after reboot :(

I don't know what's going wrong ...
 

Le_Poilu

Senior Member
Dec 9, 2010
238
66
le-poilu.whykywa.com
I've checked and it seems that init.d doesn't work. The 99test doesn't create the test log file on reboot

I'm root, busybox installed, evething should be ok .. but no

CONFIRM ALL THE ABOVE THEN
Appuyez sur une touche pour continuer...
--- STARTING ----
--- WAITING FOR DEVICE
--- remounting system
remount failed: Operation not permitted
--- checking
--- pushing files
push: files\system/bin/sysinit -> /data/local/tmp/./bin/sysinit
push: files\system/bin/multiconfig_boot_script.sh -> /data/local/tmp/./bin/multi
config_boot_script.sh
push: files\system/etc/init.d/99test -> /data/local/tmp/./etc/init.d/99test
3 files pushed. 0 files skipped.
53 KB/s (2075 bytes in 0.038s)
--- copying to system
--- correcting permissions
--- checking
-rwxr-xr-x root shell 1825 2012-12-01 16:16 multiconfig_boot_script.sh
-rwxr-xr-x root shell 140 2012-12-01 16:16 sysinit
-rwxrwxrwx root root 110 2012-12-01 16:16 99test
drwxrwxrwx root root 2012-12-01 16:11
ALL DONE!!!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Swap Internal SDcard With External SDcard

    !!!!!!!!!! PLEASE REMEMBER TO BACKUP YOUR STOCK ROM !!!!!!!!!!

    You will need a unlocked bootloader

    Quoted from CyanogenMod team


    Code:
       Your warranty is now void.
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device,
    I will laugh at you. Hard. A lot.
     */
    * When using this mod make sure you dont remove the microsd whilst phone is powered up




    information :
    Iv tested this for a few days iv got a 16gb card in the motorola razr I and it is all working great
    i made this mod because as you no /data/media is linked to /sdcard so when you fill up your sdcard it also fill up your data

    Code:
    root@smi:/ # df
    df
    Filesystem             Size   Used   Free   Blksize
    /dev                   484M    76K   484M   4096
    /system                  1G   734M   469M   4096
    /cache                 629M    10M   619M   4096
    /data                    5G   640M     4G   4096
    /pds                     7M     4M     3M   4096
    /mnt/asec              484M     0K   484M   4096
    /mnt/obb               484M     0K   484M   4096
    /mnt/sdcard             14G     8G     6G   32768


    Things working are :

    (1) Media Transfer Protocol
    (2) External SDcard being mounted to /sdcard
    (3) /data/media is no longer used as /sdcard
    (4) Working after reboot

    How Too use :
    (1) Extract to desktop
    (2) Ensure USB debugging is enabled and phone is connected to pc
    (3) run run.bat


    Download for unlocked bootloaders here

    Download for locked bootloaders here
    2
    i Hvae found here on XDA an aplication called foldermount, I have tested and works fine is very easy, this is the link to the page

    http://xdaforums.com/showthread.php?t=2192122
    2
    I have done the boot.img

    it's swaps sdcard
    hacked adbd to get root just type adb root
    enabled init.d

    I'm upload once iv done auto root at boot should be tonight
    1
    this will give you 5gb for data and and only data and if you got a 16gb micro sdcard it will be mounted at /sdacrd

    so
    5gb /data
    16 /sdcard

    it will not touch any other partition
    it is only a init.d script and a mod in framework-res
    1
    you'll need root explorer extract this to sdcard and move files to the right places on /system set right permissions to

    system/etc/init.d/99test rwxrwxrwx
    system/etc/init.d rwxrwxrwx
    system/etc/init.d/01sd rwxrwxrwx
    system/etc/init.d/03sdadb rwxrwxrwx
    system/etc/init.d/install-recovery.sh rwxrwxrwx
    system/bin/multiconfig_boot_script.sh rwxr-xr-x
    system/bin/sysinit rwxr-xr-x
    system/xbin/adbd rwxrwxrwx

    then reboot