Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: does this help?
yes (yay!!) 42 91.30%
no (oops!!) 4 8.70%
Voters: 46. You may not vote on this poll

 
Post Reply+
Tip us?
 
-Grift-
Old
#21  
-Grift-'s Avatar
Recognized Contributor - OP
Thanks Meter 1266
Posts: 3,985
Join Date: Jan 2011
Location: Singapore
Can somone upload for him I'm on my mobile. ..

Phone
Samsung Galaxy SII GT-i9100
Nobody knows
Tablet
Asus Nexus 7
CyanogenMod M3
Faux Kernel ES
TWRP 2.5.0.0




Devices That I Have Rooted/Flashed
Asus Google Nexus 7
LG GT540 Optimus Swift
LG Optimus 4X HD P880
Samsung Galaxy Mini
Samsung Galaxy Ace
Samsung Galaxy Note
Samsung Galaxy S II


The Following User Says Thank You to -Grift- For This Useful Post: [ Click to Expand ]
 
darko94
Old
#22  
darko94's Avatar
Senior Member
Thanks Meter 92
Posts: 250
Join Date: Feb 2011
Location: Novi Bečej
Here you go.
Attached Files
File Type: zip 07swapon.zip - [Click for QR Code] (310 Bytes, 145 views)
Devices:
Nexus S GT-i9023 | Trying out new ROMs
LG GT540 Optimus | AOSP 2.3.7 by miroslav_mm

If I helped somehow please don't forget to hit THANKS!
The Following 3 Users Say Thank You to darko94 For This Useful Post: [ Click to Expand ]
 
vita94
Old
(Last edited by vita94; 19th April 2012 at 02:57 PM.)
#23  
Junior Member
Thanks Meter 3
Posts: 24
Join Date: Apr 2011
Location: Niš
Quote:
Originally Posted by darko94 View Post
Here you go.
I've copied it to system/etc/init.d/ rebooted the device, but again when I type free in the console it does not work? It shows swap 0.

Do I need to set some permissions (777) to the file, or do something with the script manager?

---------- Post added at 01:47 PM ---------- Previous post was at 01:38 PM ----------

Quote:
Originally Posted by vita94 View Post
I've copied it to system/etc/init.d/ rebooted the device, but again when I type free in the console it does not work? It shows swap 0.

Do I need to set some permissions (777) to the file, or do something with the script manager?
I forgot to set the execute permission chmod 777 did the trick

Thank you all for your help
 
lars1216
Old
#24  
Senior Member
Thanks Meter 134
Posts: 1,225
Join Date: Oct 2011
Location: Gorredijk
is it possible to have my sd card used for 3 seperate things? link2sd, swap and data? or cant link2sd and swap work on the same sd card?
 
darko94
Old
#25  
darko94's Avatar
Senior Member
Thanks Meter 92
Posts: 250
Join Date: Feb 2011
Location: Novi Bečej
Quote:
Originally Posted by lars1216 View Post
is it possible to have my sd card used for 3 seperate things? link2sd, swap and data? or cant link2sd and swap work on the same sd card?
Yes. it can work. In ClockworkMod recovery you have option to partition your sd card and it asks you how large you want partitions to be for swap and for link2sd.
Devices:
Nexus S GT-i9023 | Trying out new ROMs
LG GT540 Optimus | AOSP 2.3.7 by miroslav_mm

If I helped somehow please don't forget to hit THANKS!
 
liamwli
Old
#26  
liamwli's Avatar
Senior Member
Thanks Meter 49
Posts: 441
Join Date: Jan 2011
Location: Barrow-in-Furness

 
DONATE TO ME
Quote:
Originally Posted by lars1216 View Post
is it possible to have my sd card used for 3 seperate things? link2sd, swap and data? or cant link2sd and swap work on the same sd card?
Yes, just make multiple partitions on the card

Sent from my GT540 using Tapatalk 2
Current Devices Samsung Galaxy S2 (UK Edition) with CyanogenMod10 Sapir, and a Rooted Nexus 16GB with ParanoidAndroid.
Old Phone: LG GT540 Optimus [Sold to sister]

Don't forget to hit - I deserve it (most of the time).

Feel free to PM me for help at any time.........
 
ham4ever
Old
(Last edited by ham4ever; 26th June 2012 at 01:09 AM.)
#27  
Member
Thanks Meter 2
Posts: 31
Join Date: May 2012
i did same steps , and i checked free in terminal and comes swap with 0

anyhelp?

i use [ROM] AOKP (4.0.4) b40 | KERNEL 2.6.35.10
 
thenexor
Old
#28  
Senior Member
Thanks Meter 25
Posts: 104
Join Date: May 2009
Quote:
Originally Posted by ham4ever View Post
i did same steps , and i checked free in terminal and comes swap with 0

anyhelp?

i use [ROM] AOKP (4.0.4) b40 | KERNEL 2.6.35.10
3 things could be wrong:
-permissions: try with chmod 755 /etc/init.d/07swapon (777 is OK too)
-group: chgrp shell /etc/init.d/11link2sd
-interpreter path: change the first line of 07swapon from #!/system/bin/sh to #!/system/xbin/ash (only good for AOKP)

But I believe only the first is really relevant. If it still doesn't work (after rebooting, obviously) make sure you do have a swap partition in the SD, and it's a primary one, not logical.

Quote:
Originally Posted by lars1216
is it possible to have my sd card used for 3 seperate things? link2sd, swap and data? or cant link2sd and swap work on the same sd card?
Make 3 primary partitions, and make sure the fat16/32 one for data is first and the one for link2sd is the SECOND one, either of type ext2 or ext3, ext4 is not recommended for now.
The Following User Says Thank You to thenexor For This Useful Post: [ Click to Expand ]
 
andreas__
Old
#29  
andreas__'s Avatar
Recognized Contributor
Thanks Meter 560
Posts: 1,622
Join Date: Sep 2011
LOL now XDA's portal is reporting about GSIII and Xperia Arc using Swap
GSM Galaxy Nexus
 

[ROM] AK47 [AOKP/VANIR]
[Kernel] 3.0.80 AK Kernel v256
[Recovery] TeamWin TWRP
[Sound] xLouder/Noozxoide
[Baseband] UGLL1
Old Phone: LG GT540 running AOSP 2.3.7
 
andreas__
Old
#30  
andreas__'s Avatar
Recognized Contributor
Thanks Meter 560
Posts: 1,622
Join Date: Sep 2011
Yes they are even running cm10


sent from my phone
GSM Galaxy Nexus
 

[ROM] AK47 [AOKP/VANIR]
[Kernel] 3.0.80 AK Kernel v256
[Recovery] TeamWin TWRP
[Sound] xLouder/Noozxoide
[Baseband] UGLL1
Old Phone: LG GT540 running AOSP 2.3.7

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...