5,604,507 Members 46,384 Now Online
XDA Developers Android and Mobile Development Forum

[Swap][CM11 4.4.2][Go, Sola, ...] Swap Memory Internal to SD Card

Tip us?
 
Elixia
Old
(Last edited by Elixia; 8th January 2014 at 10:05 PM.) Reason: Sorry for same color
#11  
Elixia's Avatar
Junior Member - OP
Thanks Meter 9
Posts: 12
Join Date: Dec 2013
Default Tips

Quote:
Originally Posted by Dritza View Post
i tried but no effect on Xperia Sola
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".

Code:
#!/system/bin/sh

LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text

mount | grep sdcard0
mount | grep sdcard1

Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1

Hope that work.
 
dinoCRO
Old
#12  
Senior Member
Thanks Meter 10
Posts: 179
Join Date: Aug 2012
Location: Opatija
Can this work with Xperia P or just with the phones who have SD card?
Sony Xperia P
Unlocked Bootloader
Rooted
KK 4.4.2
CM11 by percy
 
Elixia
Old
(Last edited by Elixia; 9th January 2014 at 07:47 PM.) Reason: forget space
#13  
Elixia's Avatar
Junior Member - OP
Thanks Meter 9
Posts: 12
Join Date: Dec 2013
Quote:
Originally Posted by dinoCRO View Post
Can this work with Xperia P or just with the phones who have SD card?
It's complicated to apply this metode to device have no sd card.
But I didn't say it's Imposible.
If I find about it, I will share it with you.
for now, you have to be patient. Advantage of the existing first.
The Following User Says Thank You to Elixia For This Useful Post: [ Click to Expand ]
 
ivaneris
Old
#14  
ivaneris's Avatar
Senior Member
Thanks Meter 227
Posts: 1,013
Join Date: Apr 2012
Location: Todanan - Blora
Sori typo
LG OPTIMUS 2X
ROM : TONYP's THE ROM build27 but currently use Tonyp's CM11 as testing but wow...
Kernel : Kowalski exp127 alpha31
 
qaliff
Old
#15  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2014
Unhappy need your assist

Quote:
Originally Posted by Elixia View Post
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.

This is the CODE script to make Internal memory changed to SD Card.

Code:
#!/system/bin/sh

LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.


Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton

Credit:
@nunu_Nugraha
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
 
Elixia
Old
#16  
Elixia's Avatar
Junior Member - OP
Thanks Meter 9
Posts: 12
Join Date: Dec 2013
Quote:
Originally Posted by qaliff View Post
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
Sorry mate, this swap script only for xperia go and similar.
if you running on samsung. than you may try this http://forum.xda-developers.com/show....php?t=2584862
hope it help and solve your problem.
 
abbas23
Old
#17  
Member
Thanks Meter 3
Posts: 51
Join Date: Jul 2013
Quote:
Originally Posted by Elixia View Post
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".

Code:
#!/system/bin/sh

LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text

mount | grep sdcard0
mount | grep sdcard1

Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1

Hope that work.

Didn't work
 
shs77
Old
#18  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Dec 2013
Quote:
Originally Posted by Elixia View Post
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.

This is the CODE script to make Internal memory changed to SD Card.

Code:
#!/system/bin/sh

LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.


Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton

Credit:
@nunu_Nugraha
on xperia sola not work
 
Hukanawa
Old
#19  
Senior Member
Thanks Meter 36
Posts: 132
Join Date: Oct 2013
Location: Kandy
Default Doesn't work..

Hi dude,
Followed everything to the dot, but it doesn't work.. I'm using the CM11 rom by RodgerRules on my Xperia Go.. Please help
 
Einstein69
Old
#20  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Mar 2014
Doesn't work on my xperia go running CM11..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes