Real Swap ON - XPERIA X8 General

Hi , i try to use real swap method for swapon partition on SD with the linux normal method
But i have a problem:
Function not implemented on kernel.
I describe the method:
Partition SD and make a little partition ext2 (100MB or 200MB is fine)
Open Terminal
#su (get root access)
#mkswap /dev/block/mmcblk0p2
and then
#swapon /dev/block/mmcblk0p2
With my kernel in the terminal i'm received a message
"Function not implemented."
I think is not implemented on kernel.
Maybe for other roms works fine.
We need to recompile the kernel with Swap support.
Somebody tried this method?
Regards...

bootloader is not bypassed, so we cannot have custom kernels -> we cannot have swap

Module can help.
Sent from my X8 using XDA Premium App

What module do you use?

maxiblammo said:
What module do you use?
Click to expand...
Click to collapse
None. It's his useless post
Sent from my SH!T Ericsson X8 running Froyobread using Tapatalk

Related

Cache partition size

Hello to all in comunity.
Galaxy s has only 30MB of cache size. And this is bad because some apps on the market can't be installed, since market uses this cache partition for the downloads. Is there a way to increase this size or to symlink it on some bigger partition like /data or somewhere else?
Sent from my GT-I9000 using XDA App
Anybody? I heard that's a way to symlink cache anywhere else, but i can't do it, everytime i try a message saying "resource busy" or something like this appears on Terminal Emulator. I'm trying to symlink cache to /data.
Do you have ext4 lagfix enabled?
Sent from my GT-I9000 using XDA App
No. Do i need to enable it?
Sent from my GT-I9000 using XDA App
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Sent from my Galaxy S/CM7 using XDA App
avary said:
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Click to expand...
Click to collapse
And what version of speedmod are you using? I'm on K12-T 500Hz....if i enable ext4 lagfix on cache, will i get the 100MB too?
And also, were you using CM7 already?
Thanks!!
I tried to symlink the cache to a folder i created ala hardcore's suggestion (Thanks again hardcore!), but unfortunately I got the same sized partition as the original cache folder, which kinda makes sense. Hopefully Samsung or one of the guys on XDA (yeah, they'll probably get a fix out before Sammy does) will have a solution.
avary said:
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Sent from my Galaxy S/CM7 using XDA App
Click to expand...
Click to collapse
I call bull****.
So there isn't a way to do it right now? I guess we need supercurio's or hardcore's help. Please people, help to contact them. Thx!!
Sent from my GT-I9000 using XDA App
I agree
snapper.fishes said:
I call bull****.
Click to expand...
Click to collapse
So do I. I tried using the latest speedmod, and no change. Think the only solution would be to have the cache size changed in the internals. Definitely out of my league; I don't want to try changing a setting and lose the use of my phone. Hopefully someone gets a fix in; battle bears is calling...
Definitely we need to move this thread to android development and see if someone there with enough skills can help us. I think it's an urgent problem. What about battle bears? And what if gameloft start to sell their games on android market now?
Sent from my GT-I9000 using XDA App
Thanks!!!!
gangpe said:
I tried to symlink the cache to a folder i created ala hardcore's suggestion (Thanks again hardcore!), but unfortunately I got the same sized partition as the original cache folder, which kinda makes sense. Hopefully Samsung or one of the guys on XDA (yeah, they'll probably get a fix out before Sammy does) will have a solution.
Click to expand...
Click to collapse
lucbl1 said:
Anybody? I heard that's a way to symlink cache anywhere else, but i can't do it, everytime i try a message saying "resource busy" or something like this appears on Terminal Emulator. I'm trying to symlink cache to /data.
Click to expand...
Click to collapse
How do you guys exactly try to symlink it? I guess more people could help out if they knew exactly what you are doing and what the error messages exactly say.
I'm not really interested in getting a bigger cache partition since I don't use really big apps, but this would probably be thay way I'd do it:
(you could type these command either through adb shell or directly on the device using a terminal emulator -- WARNING: these commands are not tested and may horribly break something)
Code:
mkdir /data/cache
busybox rm -rf /cache
busybox ln -s /data/cache /cache
shantzu said:
How do you guys exactly try to symlink it? I guess more people could help out if they knew exactly what you are doing and what the error messages exactly say.
I'm not really interested in getting a bigger cache partition since I don't use really big apps, but this would probably be thay way I'd do it:
(you could type these command either through adb shell or directly on the device using a terminal emulator -- WARNING: these commands are not tested and may horribly break something)
Code:
mkdir /data/cache
busybox rm -rf /cache
busybox ln -s /data/cache /cache
Click to expand...
Click to collapse
I was just using the same code you posted. But i think that for symlinking, /system and /data must be in Ext2/3 or 4 format, am i right? I'll be testing it in the weekend!
I mentioned this issue to supercurio who is looking into it.
Sent from my GT-I9000 using XDA App
lucbl1 said:
I was just using the same code you posted. But i think that for symlinking, /system and /data must be in Ext2/3 or 4 format, am i right? I'll be testing it in the weekend!
Click to expand...
Click to collapse
well, tbqh I didn't work much with RFS, so I am not sure if it supports symlinks, I guess it can't hurt to try though...
If it doesn't work on RFS you'd have to try some ext FS (ext2, ext4, whatever you prefer).
rlorange said:
I mentioned this issue to supercurio who is looking into it.
Click to expand...
Click to collapse
So maybe supercurio can fix it. Let's hope! Any news please report here.
Sent from my GT-I9000 using XDA App
Problem fixed on last speedmod kernel!
Sent from my GT-I9000 using XDA App
can someone plz help me? i got the problem and its rly annoying..i have 2.3.3 xxjvo with cf_root how do i fix this ****?!
romdroid. said:
can someone plz help me? i got the problem and its rly annoying..i have 2.3.3 xxjvo with cf_root how do i fix this ****?!
Click to expand...
Click to collapse
If rou are rooted just folow this commands in terminal...
su
mkdir /sdcard/tempcache
mount -o bind /sdcard/tempcache /cache
This is temporary, after reboot cache will return normal and you can delete tempcache in sdcard...
Cheers

native swap does not work on cm9 android 4.0.3

hi,
i have followed the native swap tut but it does not work for me maybe the problem is that i have clockwork recovery 2.x.x ive done everything like in the tut and when i type free in terminal swap displays 0.
what is the problem?
Sent from my LG-GT540 using XDA
you need the swapon file in /system/etc/init.d . just take one from any rom.
How can I open *.img file to extract the swapon file?
Can you give me the link for swapon file?
Google it or search on xda for 07swapon.
Sent from my GT540 using xda premium
which is the maxmum swap partition size that i can make.??im currently having a 256mb partition..running miro's ics
odi032 said:
which is the maxmum swap partition size that i can make.??im currently having a 256mb partition..running miro's ics
Click to expand...
Click to collapse
in theory you can have 32 gigabyte i think ;P
Try make and load swap manualy with adb mkswap swapon swapoff it is not ICS feature it kernel feature
It works on andoroid 4.0.4
vita94 said:
hi,
i have followed the native swap tut but it does not work for me maybe the problem is that i have clockwork recovery 2.x.x ive done everything like in the tut and when i type free in terminal swap displays 0.
what is the problem?
Sent from my LG-GT540 using XDA
Click to expand...
Click to collapse
Do you have an init.d script called 07swapon in your /system/etc/init.d folder?
It only works on CM roms.....
If not, tell me and I will attach it for you
EDIT: File attached. Rename to 07swapon and copy to /system/etc/init.d directory

Thread closed.

Thread closed.
Thread closed.
Yank555 said:
Hi,
REMEMBER
FIRST OF ALL, do a Nandroid backup, as well as a backup of your sd-card content !
You're doing this at your very own risk, I'm not to be held responsible if something goes wrong
Now that said, let's get going
In case somebody wants to check it out, here is the swap activation script I wrote (attached) as well as explanations on how to make it all work :
1) Partition your sd-card (Minitool Partition Wizard, 4ext, CWM...)
2) Boot your system with the partitionned sd-card
3) If necessary customize the 99swap script (attached to this post) and then put it onto your sd-card's root folder, you'll need it while executing the commands in step 4.
4) Open a terminal and type the following
NB: Change "mkswap /dev/block/mmcblk0p3" accordingly to point to the swap partition you've created in step 1.
5) Reboot your phone, start a terminal again and type free, you'll need to see something different than 0 in your swap line, look at the attached print-screen
Swappiness will be set to 50 by the script, which is a rather conservative swap use, made sense to me since SD-swap is slower than ram, better not to use it too agressively. Feel free to experiment with the swappiness variable in the script (values between 0 and 100, 0 meaning "try not to swap", 100 meaning "try to swap all the time")
If you want to try and have a question, just let me know !
JP.
PS: You can find the thread for hard swap for the htc Sensation / XE here.
Click to expand...
Click to collapse
Hi JP,
This is a gem of a post! Thanks alot for the script and the detailed breakdown. Before I get into it though, I must warn you that I am more of a beginner with no coding/scripting experience (I don't know how to use adb or anything)...
Here's what I'm trying to do: I'm trying to activate hard-swap on my hd2 (currently) running the ParanoidAndroid by Xylograph. I've created 3 partitions on my 16gb class 6 sd card: first, fat32 (32k cluster), next, 1GB ext2 (default), 500MB swap.
Procedure:
1. I extracted the script and copied it directly to system/etc/init.d folder of the Rom (I looked at the terminal commands you posted and the first few lines looked like copying the file from the sd root to the init.d folder (it was just a guess though), so I figured might as well put it into the rom before I flash it)
2. Flashed the rom
3. To activate it, I typed the following into the terminal:
su
mount -o remount,rw /system
mkswap /dev/block/mmcblk0p3
mount -o remount,ro /system
exit
after the mkswap command, I did get an activation notification that a certain amount was assigned to swap. But my celebrations were cut short after I rebooted and used the free command to check. The entire swap row still read 0.
I was wondering if you can point me in the right direction... thanks!
Also, is there a way to create a cwm flashable version?
bullcrapr said:
Hi JP,
This is a gem of a post! Thanks alot for the script and the detailed breakdown. Before I get into it though, I must warn you that I am more of a beginner with no coding/scripting experience (I don't know how to use adb or anything)...
Here's what I'm trying to do: I'm trying to activate hard-swap on my hd2 (currently) running the ParanoidAndroid by Xylograph. I've created 3 partitions on my 16gb class 6 sd card: first, fat32 (32k cluster), next, 1GB ext2 (default), 500MB swap.
Procedure:
1. I extracted the script and copied it directly to system/etc/init.d folder of the Rom (I looked at the terminal commands you posted and the first few lines looked like copying the file from the sd root to the init.d folder (it was just a guess though), so I figured might as well put it into the rom before I flash it)
2. Flashed the rom
3. To activate it, I typed the following into the terminal:
su
mount -o remount,rw /system
mkswap /dev/block/mmcblk0p3
mount -o remount,ro /system
exit
after the mkswap command, I did get an activation notification that a certain amount was assigned to swap. But my celebrations were cut short after I rebooted and used the free command to check. The entire swap row still read 0.
I was wondering if you can point me in the right direction... thanks!
Also, is there a way to create a cwm flashable version?
Click to expand...
Click to collapse
Thanx
In fact you understood correctly that is was about copying the file to init.d.
By the way, these commands do the following :
mount -o remount,rw /system - Mount system partition in read-write
mount -o remount,ro /system - Mount system partition in read-only
So to format the swap partition "mkswap /dev/block/mmcblk0p3" there was no need for it, but it didn't harm in any way, so you're fine there
I guess what is missing is the "chmod 755 /system/etc/init.d/99swap" command which will set the correct file access to the script so it can get executed at boot.
You might do the following in a terminal :
su
mount -o remount,rw /system
chmod 755 /system/etc/init.d/99swap
mount -o remount,ro /system
exit
It should be fine then.
Alternatively you could set the rights with your file explorer (in root explorer mode), they must be "rwxr-xr-x" (which is Read-Write-Execute, Read-Execute, Read-Execute), most file-manager will allow you to do that as well.
I've been working on the script variant for htc Sensation, it is more advanced, dynamic so it can find the swap partition by itself.
I'll make a CWM flashable as soon as I get to it that will handle everything except partitioning the SD card, obviously, for both devices.
As soon as I'm done I'll post the HD2 version here as well (very little change, between both devices, just the access path to the sd-card partitons to change (=1 line in the script).
JP.
Edit ------------------------------------------------
I just reread your post, if in fact you put it into the ROM zipfile, then file access should be correct !?
Could you post the following file (if it exists) :
/data/swap.0.log ?
JP.
Yank555 said:
Thanx
In fact you understood correctly that is was about copying the file to init.d.
By the way, these commands do the following :
mount -o remount,rw /system - Mount system partition in read-write
mount -o remount,ro /system - Mount system partition in read-only
So to format the swap partition "mkswap /dev/block/mmcblk0p3" there was no need for it, but it didn't harm in any way, so you're fine there
I guess what is missing is the "chmod 755 /system/etc/init.d/99swap" command which will set the correct file access to the script so it can get executed at boot.
You might do the following in a terminal :
su
mount -o remount,rw /system
chmod 755 /system/etc/init.d/99swap
mount -o remount,ro /system
exit
It should be fine then.
Alternatively you could set the rights with your file explorer (in root explorer mode), they must be "rwxr-xr-x" (which is Read-Write-Execute, Read-Execute, Read-Execute), most file-manager will allow you to do that as well.
I've been working on the script variant for htc Sensation, it is more advanced, dynamic so it can find the swap partition by itself.
I'll make a CWM flashable as soon as I get to it that will handle everything except partitioning the SD card, obviously, for both devices.
As soon as I'm done I'll post the HD2 version here as well (very little change, between both devices, just the access path to the sd-card partitons to change (=1 line in the script).
JP.
Edit ------------------------------------------------
I just reread your post, if in fact you put it into the ROM zipfile, then file access should be correct !?
Could you post the following file (if it exists) :
/data/swap.0.log ?
JP.
Click to expand...
Click to collapse
Hi JP
You are incredibly helpful and I appreciate it!
I finally got some time off and tried out what you mentioned... but to no avail. I applied the necessary permissions through the terminal (chmod 755) as well as through the root browser, but it was still the same. After that I even retried the terminal commands, and included the "chown 0:2000...", but that didn't work either...
... and then I saw your post update...
About that, i just typed it into the terminal, and I got "not found".
Was that what I was supposed to do?
bullcrapr said:
Hi JP
You are incredibly helpful and I appreciate it!
I finally got some time off and tried out what you mentioned... but to no avail. I applied the necessary permissions through the terminal (chmod 755) as well as through the root browser, but it was still the same. After that I even retried the terminal commands, and included the "chown 0:2000...", but that didn't work either...
... and then I saw your post update...
About that, i just typed it into the terminal, and I got "not found".
Was that what I was supposed to do?
Click to expand...
Click to collapse
Hi,
You're welcome
The file '/data/swap.0.log' is a text-file containing info on the execution of the script...
If it's not there, then the script didn't run at all...
I should have a little time later today, will try to make the CWM flashable solution for you, should be a no fuss solution, as long as the sd-card has a swap partition
How did you partition the card ? CWM ?
JP.
Sent from my Android Revolution HD 6.6.5 XE / faux kernel 007b3 powered htc Sensation XE using xda premium
I created a 256Gb partition...
Click to expand...
Click to collapse
man thats a helluva sd card ya have there! hehe.
samsamuel said:
man thats a helluva sd card ya have there! hehe.
Click to expand...
Click to collapse
Haha I noticed that too :') I want one of those now
Nigeldg said:
Haha I noticed that too :') I want one of those now
Click to expand...
Click to collapse
Thanx for pointing that out Mb of course, but in a few years that might be possible
My first hdd had 60Mb, and that's not soooo long ago
JP.
Sent from my Android Revolution HD 6.6.5 XE / faux kernel 007b3 powered htc Sensation XE using xda premium
heh, my first was a 20mb HDD mounted on a pcb card and plugged into an ISA slot, took up the full length of the PC, weighed LOADS, could have beaten burglars to death with it.
bullcrapr said:
Hi JP
You are incredibly helpful and I appreciate it!
I finally got some time off and tried out what you mentioned... but to no avail. I applied the necessary permissions through the terminal (chmod 755) as well as through the root browser, but it was still the same. After that I even retried the terminal commands, and included the "chown 0:2000...", but that didn't work either...
... and then I saw your post update...
About that, i just typed it into the terminal, and I got "not found".
Was that what I was supposed to do?
Click to expand...
Click to collapse
+1 with this (also on Paranoid Rom 1.1a) but I think that it's something with the ROM coz on earlier build v1 this method worked verry good I hope that Yank will find a solution coz it reallly helps wit our 576 ram
samsamuel said:
heh, my first was a 20mb HDD mounted on a pcb card and plugged into an ISA slot, took up the full length of the PC, weighed LOADS, could have beaten burglars to death with it.
Click to expand...
Click to collapse
Mine was huge at the time, was on of the first to have such a big one, even partitioned it into 3 since it was just too big And it was an external device, the size of a pizza-box (it was en Atari Megafile 60, I still have it !!).
triggaz said:
+1 with this (also on Paranoid Rom 1.1a) but I think that it's something with the ROM coz on earlier build v1 this method worked verry good I hope that Yank will find a solution coz it reallly helps wit our 576 ram
Click to expand...
Click to collapse
I'm working on the CWM flashable right now, should be done within 1-2 hours at most
Yank555 said:
Hi,
You're welcome
The file '/data/swap.0.log' is a text-file containing info on the execution of the script...
If it's not there, then the script didn't run at all...
I should have a little time later today, will try to make the CWM flashable solution for you, should be a no fuss solution, as long as the sd-card has a swap partition
How did you partition the card ? CWM ?
JP.
Sent from my Android Revolution HD 6.6.5 XE / faux kernel 007b3 powered htc Sensation XE using xda premium
Click to expand...
Click to collapse
Hi JP, once you told me it was the address to the file, i just navigated there using my explorer and lo and behold!, there it was (attached). If you must know, in my earlier post, the idiot in me just typed it in the terminal and the terminal replied not found.
I made my partition using freeware called Minitool partition wizard. Is 500mb too big for swap in your opinion? I was thinking of compensating for zram, and hence the size... thanks for your speedy responses...
edit...
and hey! whadya know? in the meantime, this place is coming alive!!
bullcrapr said:
Hi JP, once you told me it was the address to the file, i just navigated there using my explorer and lo and behold!, there it was (attached). If you must know, in my earlier post, the idiot in me just typed it in the terminal and the terminal replied not found.
I made my partition using freeware called Minitool partition wizard. Is 500mb too big for swap in your opinion? I was thinking of compensating for zram, and hence the size... thanks for your speedy responses...
edit...
and hey! whadya know? in the meantime, this place is coming alive!!
Click to expand...
Click to collapse
Hmm ... strange, the content of the file looks like a logcat ?! Not what I was expecting to see
Give me a little hour, and I think I should be done with the flashable hard-swap and we'll go from there
Minitool is excellent, but did you pay attention to only create "primary" partition ? If it is a logical partition it won't work...
Can you insert your SD card into your card reader, start Minitool an post a print screen of it ?
JP.
EDIT :
About size ... I believe 256Mb is enough, even read somewhere t shouldn't be more than 256, but I think there was no specific reason given.
Yank555 said:
Hmm ... strange, the content of the file looks like a logcat ?! Not what I was expecting to see
Give me a little hour, and I think I should be done with the flashable hard-swap and we'll go from there
Minitool is excellent, but did you pay attention to only create "primary" partition ? If it is a logical partition it won't work...
Can you insert your SD card into your card reader, start Minitool an post a print screen of it ?
JP.
EDIT :
About size ... I believe 256Mb is enough, even read somewhere t shouldn't be more than 256, but I think there was no specific reason given.
Click to expand...
Click to collapse
Here we go...
Minitool image attached... I typically pay attention to the partition type and made sure both of them were primary
About the logcat, I suspect you're right... I was trying to do one from my pc for the first time using adb and tried the only few commands I know (mkswap...), I think that's what you saw then...
Incidentally, do you feel if I reduce the swap size, the script has a better chance at surviving the boot?
bullcrapr said:
Here we go...
Minitool image attached... I typically pay attention to the partition type and made sure both of them were primary
About the logcat, I suspect you're right... I was trying to do one from my pc for the first time using adb and tried the only few commands I know (mkswap...), I think that's what you saw then...
Incidentally, do you feel if I reduce the swap size, the script has a better chance at surviving the boot?
Click to expand...
Click to collapse
Don't bother, I will test 500Mb and let you know if that is the issue
JP.
I have 512mb partition and it worked without problems as I mentioned earlier so I think that opposite to the "size does matter" in this case it doesn't plus I used it with zram from marc1706.
triggaz said:
I have 512mb partition and it worked without problems as I mentioned earlier so I think that opposite to the "size does matter" in this case it doesn't plus I used it with zram from marc1706.
Click to expand...
Click to collapse
Hi triggaz, are you using the built in zram on Para1.1a? Or have you applied a script from elsewhere? I enabled the built-in zram, but get a "not found" reply when i try zram_stats in the terminal. Can you tell me how you got zram working? thanks...
bullcrapr said:
Hi triggaz, are you using the built in zram on Para1.1a? Or have you applied a script from elsewhere? I enabled the built-in zram, but get a "not found" reply when i try zram_stats in the terminal. Can you tell me how you got zram working? thanks...
Click to expand...
Click to collapse
https://www.dropbox.com/s/xr3z102gxiw2f62/marc1706_zram_100MB.zip
all credits to Dorimanx for ZRAM mod and mark1706 for modifications
I flashed this and then used the compcashe options in Paranoid (set to 26%)

[i9100] (SHARE) Swap SdCard init.d script for CM11/4.4.2

Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
brainbeatuk said:
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
You're welcome my friend, thanks for visiting my thread..
Step by Step
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
I just flashed thru cwm recovery here is script I pulled. Is supernexus a cm11 build? If no init.d try installing dorimanc go in stweaks app and enable init.d control may help as did for me on linaro cm11.
#!/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=1023,gid=1023 /dev/block/vold/179:9 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /mnt/secure/asec 1>>$LOG 2>>$LOG
Sent from my GT-I9100 using XDA Premium HD app
CliffMcl said:
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
Click to expand...
Click to collapse
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Noriyuki_Fariz said:
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Click to expand...
Click to collapse
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
CliffMcl said:
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
Click to expand...
Click to collapse
Glad it work for you.. META-INF not needed if you place script manually, just init.d..
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
brainbeatuk said:
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
Will see what i can do.. have you try modify your a3000 vold.fstab before ?
mohaxs said:
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This for you Bro
1. Tinggal hapus script nya aja gan di system/etc/init.d file nya "swapFIXcm11" lalu reboot
2. kalo ane sih ga ada yg ilang.. cuman seperti yg ane rekomen di trit baik nya backup aja data-data agan yg di rasa perlu.. cuman buat jaga-jaga aja..
nanti gunain trit aja ya gan buat diskusi nya, karena lebih banyak yang bisa bantu agan
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
brainbeatuk said:
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
Click to expand...
Click to collapse
Try swap /storage/sdcard0 and /storage/sdcard1 in your vold.fstab using root explorer or notepad , i think it will swap your sd..
Didn't work like that but I found workaround. I mount sdcard1 and didn't mount a 2nd card. Now internal shows 13gb capacity 3.5 free with 33gb app data. So works well I cannot move apps to SD as I think the ROM is made without option. Also titanium backup still shows it as extsd. Anyways thanks for the spur to try it out. I'll see if I can modify your script
Edit: It didn't work as planned my way as it still was downloading internally, I am now back to normal using link2sd and foldermount pro, actually I try move apps to SD using native2sd option in link2sd. App told me native2sd is unavailable as internal SD card is emulated from internal nand. Thanks for ya help though I presume my ROM isn't asop, even in app settings there no option to move to SD, only games like gameloft ever put data there, which I am then bind mounting extsdcard/obb over, only foldertmount can do bind though, my android tuner script doesn't work ever.
Sent from my GT-I9100 using XDA Premium HD app
:crying:
This script was working on slimkat 4.4.2 .. (by slimroms)
now i'm using slimkat 4.4.4 and the script is not working.
nothing happen after reboot the phone
Can someone help me?
Galaxy S2 i9100\slimkat 4.4.4
thats a good script, so usefull
Works fine on NamelessRom KK 4.4.4
This script is perfect for the NamelessRom 4.4.4 KitKat based, Tnx! (i9100P)
Hi i'm glad this script work for you all guys..
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi,
I've tried this mod while using xiaomi.eu_multi_GT-I9100_4.9.19_v5-4.4, and it's working flawlessly
Thanks Noriyuki_Fariz for an awesome mod!!

Idea to get temporary root access on moto g lollipop using overlay filesystem for /sy

Guys, I have a moto g xt1033, and I think su binary can be kept in an rw layer above the /system partition for a temporary root (I think). So, for that, an aufs.ko module is required. Then I could use insmod to load the module from an sdcard location.
The problem is, I can't get my hands on aufs.ko from anywhere. Can you guys please help me get one?
layman806 said:
Guys, I have a moto g xt1033, and I think su binary can be kept in an rw layer above the /system partition for a temporary root (I think). So, for that, an aufs.ko module is required. Then I could use insmod to load the module from an sdcard location.
The problem is, I can't get my hands on aufs.ko from anywhere. Can you guys please help me get one?
Click to expand...
Click to collapse
Why don't you just root using the fastboot method?
gabreek said:
Why don't you just root using the fastboot method?
Click to expand...
Click to collapse
That's not what I'm seeking.
I'm trying to get a layer over /system which is linked to a different memory location. Thus giving the impression that it's executing from /system, but that partition is actually untouched.
Do you know, where I can get the precompiled aufs.ko module for moto g?
Because I am running into space limits on my computer hard disk, and need to buy a new one... Will take some time.
Can someone build me the module and kernel patch?
Anyone? Please reply
layman806 said:
Anyone? Please reply
Click to expand...
Click to collapse
A kernel developer will need to compile the module against a stock source or against the kernel source which you are trying to boot.
madman said:
A kernel developer will need to compile the module against a stock source or against the kernel source which you are trying to boot.
Click to expand...
Click to collapse
Yes, I know. I was about to patch the kernel version and make the aufs module, but was running out of space and broadband bandwidth, so decided to do it later.
Yet, it would be nice of someone to do that for me.
BTW, I'm not a noob. I'm a Linux superuser on ARCH Linux with customized kernel and using BF scheduler.
layman806 said:
That's not what I'm seeking.
I'm trying to get a layer over /system which is linked to a different memory location. Thus giving the impression that it's executing from /system, but that partition is actually untouched.
Do you know, where I can get the precompiled aufs.ko module for moto g?
Because I am running into space limits on my computer hard disk, and need to buy a new one... Will take some time.
Can someone build me the module and kernel patch?
Click to expand...
Click to collapse
This method would work, let me try it out and tell you tomorrow or day after.
MasterAwesome said:
This method would work, let me try it out and tell you tomorrow or day after.
Click to expand...
Click to collapse
Yes, thanks! ?
MasterAwesome said:
This method would work, let me try it out and tell you tomorrow or day after.
Click to expand...
Click to collapse
Hey, did you get anything??

Categories

Resources