yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] egandt:
Unable to install via CWM

The installation fails with a permission error, I assume that is something to do with /etc/init.d being r/o I manually copied the file over (using root explorer as it is only 1 file 991swap).

Mnaully executing it from a root prompt works, but it does not appear to be run on startup, so there has to be more to it, not to mention having to manually load this ever time I flash the system would be annoying, but doable.

Setup: Rooted CM10 nighty with a SiyahKernel S3 v1.6.6 kernel, but I saw that this should work.

So what am I doing wrong, first why is the install failing with permission denied (I even tried editing install.sh so that it did not check for a swap partition) and second how do I manually copy over the files, so that it gets run.

Thanks,

ERIC
[Galaxy S III Android Development] hectorcore:
PLZ helpme guys, i have a Foxhound 1.4.3 ICS and i install Siyah kernel 1.5.3 and dont have the folder init.d, WHy?
[Galaxy S III Android Development] Yank555:
It'd be easiest to flash the zip from recovery.

JP.

PS: Saw your PM, will have a look this WE, won't have time any sooner ;)

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Yank555:
You need 2 things for hardswap to work :

- a kernel with swap support

- a ROM with init.d support (sometimes the ramdisk that comes with a kernel may add this)

If there is no /system/etc/init.d folder, try creating one and then reboot into recovery and reflash hardswap.

If it still won't work, you lack one of the two things above.

If you have a file /data/swap.0.log, post it, maybe I can help, if you don't, then you don't have init.d support. You may ask for this in your ROM thread in this case...

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] hasbai:
can a use 2gb swap partition?
[Galaxy S III Android Development] Yank555:
Will work, but I'm not convinced it's usefull, I've gone back to 256 from 512Mb.

Whatever the size, the mod will work, but more is not always better :D

I suppose you'd need to test what works best for you.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] aarick:
When i type free in Android terminal emulator..I get a free: not found

Any idea why?

Also..anyone know how yo disable zram in Latest siyah kernel..option is not in sttweaks..or has it been turned off for now?
[Galaxy S III Android Development] Yank555:
Probably busybox is not properly installed, try busybox app from Play Store (Stericson) and let it install/update busybox for you.

I've posted an updated script that disables zram, shouldn't be too far back.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] aarick:
Installing busybox worked! thanks. Sadly, I get too much lag/freeze with custom kernel...before and after enabling swap...so it's not caused by swap...

So back to stock kernel with no swap for now.. =(
[Galaxy S III Android Development] Yank555:
If you're still on a Sammy ICS Rom, give my kernel a try (link in my signature), worth a try, it's very close to stock with a few goodies and swap support (haven't had the time to update it to Sammy's latest JB source drop nor kernel.org 3.0.44, will probably do this WE).

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] aarick:
Unfortunately I'm on latest checkrom EvoHD JB rom...but will definitely be looking out for when you do release one for JB..thanks..
[Galaxy S III Android Development] ph3nom:
Quick Question, can this mod work with extsd2internalsd mod?

I have sandisk 64GB class 10. but i'm using extsd2internalsd mod.

Thank you
[Galaxy S III Android Development] gaetanolip:
HI yANK,

on jellybean i flashed first perseus kernel and now the last syiah kernel, but swap does not work. if i type free in terminal i see only 0.

It is possible that the script does not start at boot. how can i start it after boot?

u0_a96@android:/ $ export PATH=/data/local/bin:$PATH

u0_a96@android:/ $ free

/system/bin/sh: free: not found

127|u0_a96@android:/ $ free

/system/bin/sh: free: not found

127|u0_a96@android:/ $ free

/system/bin/sh: free: not found

127|u0_a96@android:/ $ free

total used free shared buffers

Mem: 852896 802900 49996 0 28352

-/+ buffers: 774548 78348

Swap: 0 0 0

u0_a96@android:/ $

u0_a96@android:/ $ fdisk -l dev/block/mmcblk0

fdisk: can't open 'dev/block/mmcblk0': Permission denied

u0_a96@android:/ $ su

u0_a96@android:/ # fdisk -l dev/block/mmcblk0

Disk dev/block/mmcblk0: 15.7 GB, 15758000128 bytes

1 heads, 16 sectors/track, 1923584 cylinders

Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System

dev/block/mmcblk0p1 1 1923584 15388671+ ee EFI GPT

Partition 1 does not end on cylinder boundary

u0_a96@android:/ # swapon /dev/block/mmcblk0p1

swapon: /dev/block/mmcblk0p1: Invalid argument

1|u0_a96@android:/ #
[Galaxy S III Android Development] mattiadj:
Yes mate. No problem or conflict with my mod

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Either that or busybox is not installed correctly, use busybox app from Playstore to update/install it correctly.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.42 (Linux 3.0.43) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] gaetanolip:
i solved.

there is something strange with my rom ( check rom) that has troubles with busybox and init.d

i launched the command swapon #!/system/bin/sh

#Swap

swapon /dev/block/mmcblk1p2 and now it works, but never at boot only manually. I installed busybox from playstore, if i install i xbin the command 'free' is 'not found', if i install it in bin swap the command 'free' is alway 0 at boot.

Suggestion?
[Galaxy S III Android Development] ph3nom:
Is this mod only work if the kernel support swap or init support kernel is work fine?

I tried galaxsih and it is not working.

-----------------------
[Galaxy S III Android Development] Yank555:
Since it's a 'swap' mod, you need a kernel with swap support compiled in.

Since the mod needs it's activation script to be run on every reboot, it uses init.d folder for this, so your ramdisk / ROM needs to support init.d, you will have to check / ask for it in the kernel thread (ramdisk) or in the ROM thread.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.5 (Linux 3.0.44) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] daniel.hajdinjak666:
Hey mate, i format whole 2 GB of SD crd to swap linux (whole card), flesh mod, but when i type "free" says just 0 in Terminal?! I run AOKP Mileston 6 and Siyah 1.4.

But now i cant connect my phone to lap-top. Not recognize phone. OK, i flash rom and kernel again, now recognize USB port, but not sure why it says 000 in "swap" on Terminal?!
[Galaxy S III Android Development] hellsgod:
Same problem here. Installed busybox installer and installed the newest one. After every reboot i have to activate it manually with:

swapon /dev/block/mmcblk1p1
cat /proc/swaps
free

hells

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Galaxy S III Android Development] Yank555:
Sounds like for the both of you init.d is not supported by your ramdisk / ROM :(

Can you see a "/data/swap.0.log" file ?

JP.
[Galaxy S III Android Development] gaetanolip:
my init.d is supported because it applies v6 supercharger script at boot. not swap script instead.permissions are rwxr-xr-x right?
[Galaxy S III Android Development] Yank555:
Busybox installed correctly in /system/xbin ?

JP.
[Galaxy S III Android Development] gaetanolip:
no, it is installed in system-bin.

i also tried to install it i xbin but after that the command 'free' was ' not found'
[Galaxy S III Android Development] hellsgod:
Here is my log:

Hard Swap Flasher by Yank555.lu v1.1 for SGS3

-----------------------------------------------

SD-card device = /dev/block/mmcblk1

Paratition table for SD-card :

------------------------------

Disk /dev/block/mmcblk1: 31.9 GB, 31914983424 bytes

4 heads, 16 sectors/track, 973968 cylinders

Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System

/dev/block/mmcblk1p1 33 8192 261120 82 Linux swap

Partition 1 does not end on cylinder boundary

/dev/block/mmcblk1p2 8224 973920 30902303+ f Win95 Ext'd (LBA)

Partition 2 does not end on cylinder boundary

/dev/block/mmcblk1p5 8225 973920 30902272 b Win95 FAT32

Swap partition = /dev/block/mmcblk1p1

- formating swap partition '/dev/block/mmcblk1p1'

Setting up swapspace version 1, size = 267382784 bytes

- copying swap activation script to /system/etc/init.d

done.

Hope it helps. I'm using MIUI and Siyah 1.5.3. Thank you :)

hells

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Galaxy S III Android Development] Yank555:
Well that is very strange ?! You did use Stericson's Busybox installer app from Playstore to update / install it ?

But anyhow, the mod will only work if busybox (and all its symlinks) are installed in xbin since that's where it's looking for them :(

JP.
[Galaxy S III Android Development] Yank555:
Looks good on the installation side, but as for MIUI, have had the experience with htc Sensation users running MIUI, who didn't have init.d support.

I'm afraid there is very little I can do on my end to change this ... You'd need to ask on the ROM thread if someone managed to add init.d support, or I know there are apps that allow to run scripts on boot (though never needed one, always had init.d support).

JP.
[Galaxy S III Android Development] hellsgod:
Thank your for your answer,

Supercharger was also running a few days ago, so init.d Scripts should work. Idk... There is an App called GScript to make a Script to run the Script. Sounds funny... :D

I used the Hardswap Script a few hours now. Everything was good, but at some point the whole system became very laggy. I have a Class 10 SD Card installed. I'll test again and look if it happens again.

hells
[Galaxy S III Android Development] gaetanolip:
My log

No SD-card swap partition has been found, quitting ... sorry no swap for you, I'm afraid !

------- SD-card partition table ------

----------- swappiness ---------------

But if launch manually the script works.

I installed v6supercharger starter script with its own busybox and after busybox from market in system bin

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Can you post the result of "which swapon" ?

JP.
[Galaxy S III Android Development] gaetanolip:
/system/bin/swapon

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] daniel.hajdinjak666:
Nothing work for me. I make particions on SD again, install busybox in system/bin, and now my laptop recognize my phone, bus still in TE says 0?! I put AOKG JB rom with stock CM kernel, and again nothing?!
[Galaxy S III Android Development] hellsgod:
Stock CM Kernel dont have SWAP support.

hells

Gesendet von meinem GT-I9300 mit Tapatalk 2
[Galaxy S III Android Development] daniel.hajdinjak666:
OK, but on Siyah 1.4 with AOKG ICS and Siyah 1.6V14 with AOKG JB not work any way?!
[Galaxy S III Android Development] Yank555:
And you have checked MD5 is correct ?

JP.
[Galaxy S III Android Development] gaetanolip:
Me too
[Galaxy S III Android Development] mozgoder:
I checked. MD5 correct.

But i have same error
[Galaxy S III Android Development] Yusei:
So 1gb it's ok? :)
[Galaxy S III Android Development] Yank555:
I just reflashed it, worked just fine ?!

Can you check it the file "/data/hardswap.log" exists ? If so, could you post it ?

Thanx, JP.
[Galaxy S III Android Development] gaetanolip:
That log exists but it id empty. I cannot install the mod
[Galaxy S III Android Development] Yank555:
Can you then at least give me the complete error message that is displayed ? I can't really do much with the informations I have, I'm afraid.

JP.
[Galaxy S III Android Development] gaetanolip:
Error in /emmc/blablabla... Installation aborted (Status0

Do you need exact message?
[Galaxy S III Android Development] Yank555:
I guess or rather I hope it's going to be a little bit more conclusive than "blablabla" :D

JP.
[Galaxy S III Android Development] mattiadj:
Wonderful! I really need multitasking since sg3 has really annoying memory management.

So I have to make a 512 mb of partition

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
Yep, that is what I use. Just be sure the partition is primary and of type "Linux Swap", the MOD will take care of the rest.

JP.
[Galaxy S III Android Development] fastcx:
Basically I had the same problem in unable to install thru cwm, so I just created 1gb within my 64gb extsd :P Copied the init.d script to /etc/init.d and set appropriate permission and reboot, now I'm running 1gb swap :laugh: swappiness to 100 and memory management settings to adviced value, give me a full day of use and i'll give you a better feedback later tomorrow ;)
[Galaxy S III Android Development] Yank555:
If I understand you correctly, you had not created the partition prior to flashing the mod ?

The Mod will do everything

except

partitioning your card, that would be step 2 in the OP.

Glad it's working and awaiting your feedback :D

JP.
[Galaxy S III Android Development] brenogbi:
I can't instal either. (bad instalation 0 )
[Galaxy S III Android Development] Yank555:
You did create a swap partition ?

Can you open a terminal and post the result of this command :

fdisk -l /dev/block/mmcblk1

JP.
[Galaxy S III Android Development] gaetanolip:
Substitute blabla with the path and the name of your mod and you have the exact error message (status0).

I downloaded 2 times your file , flashed trough cwm 5,same error. I have just partitioned my SD card. I use supercharger on foxhound rom. Help please
[Galaxy S III Android Development] Yank555:
Can you as well open a terminal and post the result of this command :

fdisk -l /dev/block/mmcblk1

That will help me have a little first insight...

Thanx, JP.
[Galaxy S III Android Development] gaetanolip:
app_115@android:/ $ export PATH=/data/local/bin:$PATH

app_115@android:/ $ fdisk -l /dev/block/mmcblk1

fdisk: can't open '/dev/block/mmcblk1': Permission denied

app_115@android:/ $
[Galaxy S III Android Development] Yank555:
Sorry, forgot to point out that you need to be root, so you need those 2 commands :

su
fdisk -l /dev/block/mmcblk1

JP.
[Galaxy S III Android Development] shorty1483:
app_157@android:/ $ export PATH=/data/local/bin:$PATH
app_157@android:/ $ su
app_157@android:/ # fdisk -l /dev/block/mmcblk1

Disk /dev/block/mmcblk1: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 1 3593 28860741 c Win95 FAT32 (LBA)
/dev/block/mmcblk1p2 3594 3847 2040255 83 Linux
/dev/block/mmcblk1p3 3848 3880 265072+ 82 Linux swap
app_157@android:/ #

I also have an old Ext4 partition from hd2 times. On HD2 this combo worked well.

sent with Samsungs unleashed beast using Tapatalk 2
[Galaxy S III Android Development] Yank555:
Cannot work then, this means busybox is installed in /system/bin when it should (and my mod expects it to) be installed in /system/xbin...

Install busybox using stericson's busybox app from Playstore and let it update / install busybox.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.5 (Linux 3.0.44) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Yank555:
Busybox needs to be installed in '/system/

x

bin'...

Plus you need kernel swap support.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.5 (Linux 3.0.44) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] eitama:
Your mod works for me with a 8GB sdcard, but I can't set up a partition on my 64GB card.

Iv'e tried using minitool, but the problem is - If I already have an exFAT partition, I can't resize it. If I delete it and try to create a small one, I don't have exFat as an option.

I want exFAT for large video files. Any ideas?

Thanks!
[Galaxy S III Android Development] gaetanolip:
Hey Yank

the mod is working when i manually launch that.no need to update busybox (please read better what i formerly said) .the only problem is that the mod does not work at boot

Inviato dal mio GT-I9300 con Tapatalk 2
[Galaxy S III Android Development] Yank555:
From your first post I quoted here, I read that you can manually activate swap by using "swapon /dev/block/mmcblk1p2".

From your second post I quoted here, I read the swapon command (symlink) is located in "/system/bin".

Conclusion remains, the mod won't work unless busybox is installed in "/system/

x

bin".

To validate, reboot, check that swap is disabled (mod didn't work at boot), and then run the init.d script from terminal (/system/etc/init.d/991swap), not just the "swapon" command.

My guess, swap will still not be working.

JP.

Sent from my custom ARHD 2.3.0 / Yank555.lu kernel v1.5 (Linux 3.0.44) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] Yank555:
exFAT is not supported by Minitool. I've tested 2 64Gb cards, no success using them, plus they both stopped working after a few hours (seems a known issue with SanDisk 64Gb cards as I found out later, luckily Amazon accepted me to return them and refunded).

From what I've read since then (as I don't have a 64Gb card anymore), is that it would work if you format the card in recovery (but that was on htc Sensation with 4ext recovery !!), but that would create a big FAT32 (not exFAT) plus the swap partition.

JP.
[Galaxy S III Android Development] bigmo7:
Right! After playing around for a few hours I think I've finally got it working!

Tried to use the software you recommended but just ended up using CWM to partition it, I found it much easier especially since I don't have to dual boot on my mac.

Now to see if there are any noticeable changes! :D I have seen that I've got more RAM so far, which is nice and I'm not a massive fan of V6 so double win.

Many thanks OP! Awesome developing :)
[Galaxy S III Android Development] eitama:
First, thanks for taking the time to respond to my post.

---

My 64GB sdcard has been formatted to all sort of formats, including FAT32 and NTFS and exFAT, it's working great and no problems for a few months now. No problem at all.

Crap about minitool and exFAT :() i'll try looking for a different solution.
[Galaxy S III Android Development] bigmo7:
Also on a side note, contrary to what I thought might happen, I've had no problems with playing music/videos/etc from the SD card. It's seamless! :good:
[Galaxy S III Android Development] Geo1997:
I'm trying Omega 27.1, with swap and supercharger v6.

For the moment no problem : free ram never below 150Mb, usually 250-300mb.

Will see if there is a problem with battery or lag in the next days :)

Any known problem when using supercharger and swap ?

Oh and LMK level with SuperCharger on Omega are

Foreground app 8mo

visible 16mo

secondary 155mo

hidden 171mo

content 186mo

empty 202mo

It's really high so when we have a lot of app it's should be a great combo with swap...

Edit : Still not good. After some hour, keep near 200mb and go often below 200mb and lag.

So i remove supercharger et and reinstall swap with high lmk values :) :p
[Galaxy S III Android Development] bordikun:
Format your 64gb sd card with fat32 in minitool with the swap partition and after format the fat32 partition to exfat in windows, that's how I did with my 64gb card :)

Sent from xda premium powered by GT-I9300 :D
[Galaxy S III Android Development] Marek3:
I was reading this thread but I've got some questions:

1. e.g. I've got 8GB sd card, so how mb will be used by swap?

2. In what format I have to format it? 4ext or smth other?
[Galaxy S III Android Development] Yank555:
I'd suggest going for 256Mb (or 512Mb if you're a heavy multitasker).

You need 2 partitions, both must be primary (as opposed to logical) :

First partition need to be primary FAT32, sized 8Gb - 256Mb, and second primary Linux Swap, sized 256Mb.

Once that is done, you just need to flash the mod and you're done ;)

JP.

Sent from my custom ARHD 11.0.0 / Yank555.lu JB kernel v1.5 Aroma (Linux 3.0.38) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] bttcp12:
Hello Yank555 it works perfect with the galaxy note, but no matter how i config swappiness and lmw, the system freezes badly when i am multitasking hard, any advice?

It is when the swap it's working but the normal was it freezes and come back, in my case it hardly comes back from the freeze cold take minutes, and some times i have to force reboot.

My card it's 8 gb class 4, and the partition it's 512 mb.

Thanks in advance.

P.S.: I/O Scheduler has something to do with the speed of the swap?, if it is so what scheduler it's the best.
[Galaxy S III Android Development] nawat:
Good job!

I'm using this script with Android Revolution HD 13.0 and Perseus kernel alpha 25.1. It is very good. Swapping does not introduced much lag and the phone still feels snappy. But it looks like Chrome does not go along well with swapping though; using Chrome will kill all other background apps that's swapped out previously. Maybe it consumes too much memory.
[Galaxy S III Android Development] hemanbond:
y dont you swap into internal memory......i thought 1 gb was enough...and was going for s3.....nw m thinking of optimus g....or note 2
[Galaxy S III Android Development] Yank555:
Or S3 i9305 which had 2Gb ? ;)

I'm not a keen internal memory swapper, it sure is faster, but if you wear out internal memory, you 'somewhat' brick your phone, whereas an sd card is not too expensive and easily changed ...

JP.

Sent from my custom ARHD 13.0 / Yank555.lu JB kernel v1.5a Aroma (Linux 3.0.38) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] hemanbond:
ya u r right...
[Galaxy S III Android Development] uberto.costanzo:
hi Yank i have brick my galaxy s+ for swapp internal memory and for sdcard work very well whit aroma 1.5 thanks
[Galaxy S III Android Development] Yank555:
Did I get you right, your s3's internal memory has issues after using swap on internal memory ?

JP.
[Galaxy S III Android Development] uberto.costanzo:
no, with galaxy s plus the suggestion wrong, I installed in wrong partition and the phone brick, luckily it was locked so that they adjusted assistance, s3 works well

:good:
[Galaxy S III Android Development] goldenson:
Hi yank555

I'm going bck to Ics omega 13.1

And I'm using ur kernel v1.8

but how to enable swap?

It was working before with siyah 1.5.3 and ur jb kernel v1.6 When I switch to a jb rom

Tks!!
[Galaxy S III Android Development] Yank555:
I suppose you have flashed the hardswap mod ?

If so, then I'd say your ICS ROM doesn't support init.d script execution. You may ask how to enable it in the ROM thread, or there was a universal thread to add init.d support ...

JP.
[Galaxy S III Android Development] goldenson:
Tks for the reply.

I will stay with omega 13.1 siyah 1.5.3 with ur hard swap script. Still the best combination thus far.

None of the jb rom I tried r smooth. W or wo ur script
[Galaxy S III Android Development] Yank555:
Seriously !? JB is way smoother for me than ICS ever was... and I was satisfied with ICS performance until I saw JB...

JP.

Sent from my custom ARHD 13.0 / Yank555.lu JB kernel v1.6a Aroma (Linux 3.0.38) powered Samsung Galaxy S3 using xda premium
[Galaxy S III Android Development] anup123456:
I can't get this to work.

I am on omega v31 with 64gb class 10 card

(64gb minus 520mb ----> fat32) and the rest 520 ----> ext4

Both are primary partitions.

It says no swap partition found on install.

Installation aborted.

V6 supercharger working fine though :S

Can you gimme the installation script to be run in terminal emulator ?