I thought I saw someone mentioning this before but can't seem to find it now.
I mostly install the builds with system NAND and data on SDCard on my Vogue. With the larger Eclairs builds, I find the I'm running out of space on system but since I hardly use data on NAND, is it possible to increase the size of the system NAND partition and decrease the data NAND partition to accommodate the larger builds?
I think it had to be done in the nbh file from what I can remember.
my2sense said:
I thought I saw someone mentioning this before but can't seem to find it now.
I mostly install the builds with system NAND and data on SDCard on my Vogue. With the larger Eclairs builds, I find the I'm running out of space on system but since I hardly use data on NAND, is it possible to increase the size of the system NAND partition and decrease the data NAND partition to accommodate the larger builds?
I think it had to be done in the nbh file from what I can remember.
Click to expand...
Click to collapse
Yes this can be done and yes it is in the nbh. I plan to add this to my NBH editor once I get some more time to work on it.
Use a hexeditor like i.Hex and modify the mtdparts sizes. Offsets and sizes are in bytes and hexadecimal but it's not hard to figure out how it works.
Just to get some insight, because I haven't looked at partitions before...
Code:
[email protected](nand)
268435456 bytes at 0x0 offset (which is the total amount of nand storage?)
[email protected](root)
262144 bytes at 0x029a0000 offset
[email protected](system)
107741184 bytes at 0x029e0000 offset
[email protected](userdata)
116785152 bytes at 0x090a0000 offset
right?
if so, why dont the system, data, and root add up to the nand?
loserskater said:
I plan to add this to my NBH editor once I get some more time to work on it.
Click to expand...
Click to collapse
That would be great loserskater.
loserskater said:
Just to get some insight, because I haven't looked at partitions before...
Code:
[email protected](nand)
268435456 bytes at 0x0 offset (which is the total amount of nand storage?)
[email protected](root)
262144 bytes at 0x029a0000 offset
[email protected](system)
107741184 bytes at 0x029e0000 offset
[email protected](userdata)
116785152 bytes at 0x090a0000 offset
right?
if so, why dont the system, data, and root add up to the nand?
Click to expand...
Click to collapse
dont forget boot:
Code:
mtdparts=msm_nand:[email protected](boot),[email protected](root),[email protected](system),[email protected](userdata)
Could someone explain this a bit please?
I tried with atools but somehow it didnt work.
If i open my actual nbh i can find this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My data is mounted to an ext2 partition on my sdcard so i want to use the data partition on nand for my system
Atools handles nand partitioning correctly for me in 1.0.6, but I have kaiser.
dertester123 said:
Could someone explain this a bit please?
I tried with atools but somehow it didnt work.
If i open my actual nbh i can find this:
My data is mounted to an ext2 partition on my sdcard so i want to use the data partition on nand for my system
Click to expand...
Click to collapse
Can't view the pic really well but it might be better, performance wise, to reverse the stup. System on ext2, data on nand.
Sent from my DROID2 using XDA App
Yeah ^^ cant figure out how to copy from that crappy hexeditor
Would be nice if you take a look later at your pc.
Well this is a nice idea to use sdcard for system untill i figure this out.
But the problem that there are 111mb in nand p3(data) that i cant use unless i figure out how to change the partitions.(Or atleast how to test if it worked, i just think it didnt work with atools because it shows me 20-30mb free memory in settings->applications->running app..)
dertester123 said:
Yeah ^^ cant figure out how to copy from that crappy hexeditor
Would be nice if you take a look later at your pc.
Well this is a nice idea to use sdcard for system untill i figure this out.
But the problem that there are 111mb in nand p3(data) that i cant use unless i figure out how to change the partitions.(Or atleast how to test if it worked, i just think it didnt work with atools because it shows me 20-30mb free memory in settings->applications->running app..)
Click to expand...
Click to collapse
It's not too hard to do the hex math by hand and figure out what to change the numbers to - the format is
Code:
[email protected]
Using the info from the nbh, all you should need to change is the size listed for system, then the size and offset listed for userdata.
I don't know the minimum partition size, though. Maybe 1M or 2M for system? that would make it...
Code:
current:
msm_nand:[email protected](nand)ro,[email protected](root),[email protected](system),[email protected](userdata)
small system, big data;
msm_nand:[email protected](nand)ro,[email protected](root),[email protected](system),[email protected](userdata)
this comes with no warranty, of course. please sanity check these numbers for yourself.
Unchanged values out of atools 0.6 said:
nand:[email protected](nand)ro,[email protected](root),[email protected](system),[email protected](userdata)
Click to expand...
Click to collapse
So now i got an idea about this, hope its right:
When its [email protected], offset means the actual position(the byte) in the memory, then:
[email protected](system),[email protected](userdata)
means:
system:107741184(102.75MB) bytes starting @43909120
data 116785152(111.375MB) bytes starting @ 151650304
That makes sense, cause the values are the same as in atools
---------------------------------------------------------
So for my situation:
All in system, and 1-2MB like mrkite38 suggested for data:
system:222429184(212.125MB) bytes starting @43909120
data 2097152(2MB) bytes starting @ 266338304
Back to hex:
system:0xd420000(212.125MB) bytes starting @0x29e0000
data 0x200000(2MB) bytes starting @ 0xfe00000
=>
New Values said:
nand:[email protected](nand)ro,[email protected](root),[email protected](system),[email protected](userdata)
Click to expand...
Click to collapse
There are 2 things that are not clear right now:
1. Why is there 0x..... i can only work with the values after that, so i left it at this position
2. In the original its 0x090a0000 but get 0x90a0000. So is this important? Should i look that the new values have the same amount of numbers like the original ones?
(3. Why is there a space in the five 0´s in the second quote at 0xfe00000)
4. Is it only this line i have to edit?
I hope i got the basics and the idea behind this right
If not please give feedback, im thankful for more information!
dertester123 said:
There are 2 things that are not clear right now:[/SIZE][/U][/B]
1. Why is there 0x..... i can only work with the values after that, so i left it at this position
2. In the original its 0x090a0000 but get 0x90a0000. So is this important? Should i look that the new values have the same amount of numbers like the original ones?
(3. Why is there a space in the five 0´s in the second quote at 0xfe00000)
4. Is it only this line i have to edit?
Click to expand...
Click to collapse
1. It just is. It's one way to denote a hex value. I'm not sure why.
2. a leading zero is not significant in this case; they are the same. He might have padded it out to 8 places to make it easier for atools.
3. Gotta look at that again, I'll edit once I've reviewed.
Edit: can't find that space, but here should not be any spaces in the addresses.
4. Should be!
Edit2: I just realized my post was aimed at sys on sd, data on nand. Didn't mean to 'push' you that way. Looks like you've got it figured out anyway.
Sent from my DROID2 using XDA App
Yeah the space was maby something about my PC, now that i look at it with the notebook, its gone
But thanks for the help^^ The way you suggested was a good way to make me think about it myself
So i will try this later today, hope it will work.
UPDATE
This does not work for me
Is it wrong to look in settings->applications->running applications? (i think my problem is here, that i though the ram was part of the system partition)
My SD is average 18,5Mb/s and 2.5ms, would this be fast enough for system (or data and system?) Dont know what speeds the nand works wíth..
Here is the nbh i edited: http://www.mediafire.com/file/6bue21uwq85cjbp/POLAIMG.NBH (just in case: Virustotal check: here, feel free to check again for yourself
I wanna ask if someone know, what is the better way to do my Polaris run more speedy.
I have installed GINGERBREAD, i have included in him some little fixes for the sync of Contacts, Calendar, Gmail to works fine and some apps that i need for the daily use (File Expert, Rogue Tools ... ).
After the install when i look in Settings\Applications\Running Applications "Running" submenu i see that my system use 63MB and i have 8.5MB free. In the other hand in the "All" submenu i see that i use 9.3MB and i have 102MB free. I wanna ask if i will relocate from Data P3 some space to System P2 (for example: System=175MBs and Data=38MBs) will work better for me? I wanna obtain a system that open fast or very fast the apps, without lags.
I use one Card of 8GB Class 6 and i can do one ext2 partition on it of 1-2GB for Data storage of apps.
Now i wanna ask again, will work OK this configuration do it with ATools? I ask someone ho have more experience with this kind of operations and optimization.
Thanks in advance, and sorry for the long post and my poor English.
The bottleneck for the polaris is cpu/ram. Using Roguetools and finding your maximum stable cpu clock is a first step.
Take a light-weight rom like "fat free" or a very optimized like "not so super 18" or newer, this will help a lot with the low ram.
For me this made the most speed increase.
---
Placing system or data on sd was not better or worse than using the whole build in nand.
I only would do this only if i need more space and app2sd is not working.
Possible problems:
-sd-card gets worn out
-lags if many apps on sd
-higher battery drain due to active sd.
-no unmounting of the sd anymore!(mass storage could be a problem too)
---
/ot
Im very thankfull to all the devs that are keeping the polars/kaier/vogue alive!
I changed to HD2 now, which is a really amazing device. Even WP7 is running and maby its worth a look, because the devs there know some cool tricks like mounting some parts of the build in ram or sd/nand combinations! Maby this can be helpful for polaris too in some ways .
But thanks!!
with atools >1.0.0 you can select in fstab your partition order.
many people likes this setup: system on nand, data on sd.
you can change partition nand size using atools.
Thanks l1q1d i have understand by reading the other threads how to do the resize (operation and procedure), but i don't understand if will help me to solve the problem of having RAM for running apps, and if i install all my apps on one ext2 SD partition the programs will run slower?
dertester123 thanks for your quick reply, you say i may have lags on opening the programs from the sd... you try that with a class 6 card? From what i have read can have problems with the slower cards class 2 or 4... I ask this because i don't have used (SD6) yet in the proper way to see how slow or fast can run with apps on it.
If i can't mount the sd anymore will not be a problem, i can turn off my phone, insert the card in a reader/writer and transfer from/on it all the data's i need.
Yes the higher drain of battery can be a serious problem...
L.E. After smoking one cigarette i realize that can be an better solution to improve performance in the theory.
If i will resize the System NAND-P2 to the 150MBs value, the rest remaining from Data NAND-P3 63MBs can be use as swap partition (*to improve RAM when the physical RAM is full) and the Data partition to be on the mSD ext2 2GBs patition. This will help to improve performance?
The ram of the device is independent from the nand space so if you resize you have only more space in one partition and less in the other.
The idea of using the nand partition as swap has a big issue:
the swap partition is written many times (over and over and over) and nand has a limit of read/write cycle so your nand will be corrupted quite fast.
You can create a big swap partition on a class 6 sd. I write big because also the sd has a limit of read/write cycle and so...
If you place data or system on sd the system could be slow (on class <6)
Is the swap partition not enabled at default, when system/data on nand?
As far as i remember, all this made no "big" differences.
I had:
System on Nand
Data on SD
Swap on SD
But wasnt sure it is used at all.
Related
Hi,
is it possible to tell dd to create a swap-file at a specified cluster ?
If not, did anyone know if there is an Android-tool, wich allocates Diskspace on FAT32 without actually writing data to a file ?
I`ve tried dd with the seek Option, but this wont work on FAT.
Thx in advance
Thom
TheGenesis said:
Hi,
is it possible to tell dd to create a swap-file at a specified cluster ?
If not, did anyone know if there is an Android-tool, wich allocates Diskspace on FAT32 without actually writing data to a file ?
I`ve tried dd with the seek Option, but this wont work on FAT.
Thx in advance
Thom
Click to expand...
Click to collapse
An empty file would be a file full of zeros (?)
also
has anybody tried to put a swap-file in /data partition yet? Should be way faster...
Wrong sect btw
I'm not sure if this is what you mean but
"dd if/dev/zero of=/sdcard/swapfile bs=1024 count=524288"
This command will tell dd to create output file with the size of 512MB full of zeros.
Then you run "mkswap /sdcard/swapfile" in order to create the swap file-system on the output file
Finaly you run "swapon /sdcard/swapfile" in order to make the swap avaialbe to the kernel.
This is how it goes on RH, I belive it will work the same on Android as well.
and I'm sorry if this isn't what you meant.
zrubi said:
I'm not sure if this is what you mean but
"dd if/dev/zero of=/sdcard/swapfile bs=1024 count=524288"
This command will tell dd to create output file with the size of 512MB full of zeros.
Then you run "mkswap /sdcard/swapfile" in order to create the swap file-system on the output file
Finaly you run "swapon /sdcard/swapfile" in order to make the swap avaialbe to the kernel.
This is how it goes on RH, I belive it will work the same on Android as well.
and I'm sorry if this isn't what you meant.
Click to expand...
Click to collapse
yeap, it works on Android
bs=1024k count=512 makes the maths easier
you could put it on data BUT I wouldn't advise it, its going to limit the life of the mtd, an SD card is much cheaper to replace
Thx for the replies.
No, I dont want a file full of 0x00 ... I need a way to force the physical position of the swap-file.
I have tried dd with the seek option wich allocates space without writing to the file. But it doenst work on a fat partition (resulting to a file full of zeroes).
Any Idea how to force the creation of a file starting at a specified cluster (or a near by position) ?
Thom
TheGenesis said:
Thx for the replies.
No, I dont want a file full of 0x00 ... I need a way to force the physical position of the swap-file.
I have tried dd with the seek option wich allocates space without writing to the file. But it doenst work on a fat partition (resulting to a file full of zeroes).
Any Idea how to force the creation of a file starting at a specified cluster (or a near by position) ?
Thom
Click to expand...
Click to collapse
can I ask why you want to specify the cluster?
why do you need your swapfile to be in a certain place?
I want simulate wear-leveling on the free space of my FAT32-Partition to dramaticly extend the lifetime of my sdcard.
I have done some forensics on how dd reallocates free clusters and find out, that it preferable uses the space at the begin of the partition.
Currently I build "rotating" swap-files (names) every boot/reswap until free space is completely used. Then I delete all old swap-files so the next file will be created again at the begin of the partition.
I have about 10GB space left, so I would reach about Factor 70 of the "unknown" lifetime of my sdcard.
This is working but not very handy, because I have to delete old swap files if I need free space when the "wear space" is getting "full".
If I could force the start position of the swap file (probably by allocating only the FAT entries) I wont need these temp files permanently blocking the free space.
Anyy Idea ?
TheGenesis said:
I want simulate wear-leveling on the free space of my FAT32-Partition to dramaticly extend the lifetime of my sdcard.
I have done some forensics on how dd reallocates free clusters and find out, that it preferable uses the space at the begin of the partition.
Currently I build "rotating" swap-files (names) every boot/reswap until free space is completely used. Then I delete all old swap-files so the next file will be created again at the begin of the partition.
I have about 10GB space left, so I would reach about Factor 70 of the "unknown" lifetime of my sdcard.
This is working but not very handy, because I have to delete old swap files if I need free space when the "wear space" is getting "full".
If I could force the start position of the swap file (probably by allocating only the FAT entries) I wont need these temp files permanently blocking the free space.
Anyy Idea ?
Click to expand...
Click to collapse
ahh, I see now
tbh I thought wear-leveling was handled in firmware
Edit : nope, now I think about it I'm might getting it mixed up with SSD firmware
You are wasting your time. The SDCARD already does its own wear leveling.
I dont think so ... wear-levelling is integrated in the "drive"-electronic of modern usb-sticks and in solid-disk-drives (some communicating to the os at driver level).
I have not found any confirmation, that micro-sdcards own native wear-levelling. The customer support of A-Data did not respond to inquiries to this topic.
Do you have any reference, that confirms that wear-levelling is supported natively by any MICRO-sdcard ?
Regards
Thom
TheGenesis said:
I dont think so ... wear-levelling is integrated in the "drive"-electronic of modern usb-sticks and in solid-disk-drives (some communicating to the os at driver level).
I have not found any confirmation, that micro-sdcards own native wear-levelling. The customer support of A-Data did not respond to inquiries to this topic.
Do you have any reference, that confirms that wear-levelling is supported natively by any MICRO-sdcard ?
Regards
Thom
Click to expand...
Click to collapse
http://www.cs.ucr.edu/~amitra/sdcard/ProdManualSDCardv1.9.pdf
Sorry if this is plainly obvious, but how do you check to see the size of your MTD partition. Also, I changed the size of my internal partition but it still only shows a low number (23 mb). Is that normal?
lbcoder said:
I suspect that you have no idea about the difference between volatile and non-volatile memory. Understanding this distinction is the FIRST STEP that you should take BEFORE EVER trying any kind of firmware changes.
You reading that "23 MB" from the bottom line of "advanced task manager"? This has NOTHING to do with storage partitioning (non-volatile) and EVERYTHING to do with RAM (volatile).
First learn about the different kinds of memory, then come back and ask your question again.
Click to expand...
Click to collapse
No, the 23 mb is what's displayed as internal memory. The reason I am asking is because in the superfroyo thread, the op suggested you use firerats patch so you can have all apps on internal memory. I did the patch (even used a config file from thread) and my internal memory is still low. So am I still completely wrong here?
lbcoder said:
Seeing as STOCK userdata partition is about 75 MB, you are DEFINITELY reading something wrong.
Click to expand...
Click to collapse
Okay thanks for your help. I did set mine to 90 and 2 I believe. Do you mind answering my other question on how to see the size of your partitions?
Note: Please keep this thread restricted to Bionic-specific issues. Atrix (and general) webtop2sd issues should be discussed in this thread instead. Threads for other devices are referenced at the top of the main webtop2sd thread.
Discuss webtop2sd here (the other thread will be kept clean for announcements, FAQs, etc.).
Before you report an issue:
Make sure it's not on the Known Issues list first!.
Basic debugging, since these are going to be questions I ask anyways:
If you hit problems with the Android webtop2sd application, you'll need to tell me the error, and give me the last few lines of adb logcat. Run this adb command, which will filter out most of the unimportant lines:
adb logcat ActivityManager:i AndroidRuntime:i webtop2sd:i *:s
Are you actually booting from your SD card? You can find this out by checking the Diagnostics tab in webtop2sd, under "Currently mounted webtops". If webtop isn't listed, you're not booted from your SD card. If this is the case, report what ROM you're running from.
Don't worry about webtop-configurator on the Droid Bionic for now. The current version won't work, but the next version will.
Note: One of the early updates will involve being able to create a filesystem file in /data so that you don't need an SD card (something that was present in earlier versions of my scripts but ended up being impractical for the Atrix, but is quite practical for the Bionic).
Thanks to tallnerd1985, who made this port possible.
Make some noise people! Looking forward to this! 900M /osh just doesn't cut it
I'm personally stoked for this. have some spare mini sd cards just calling my name to be used.....
Sogarth, you da man. tallnerd, same goes for you.
Natronics said:
I'm personally stoked for this. have some spare mini sd cards just calling my name to be used.....
Sogarth, you da man. tallnerd, same goes for you.
Click to expand...
Click to collapse
Hell, since our phone is so much better than the Atrix as far as storage space goes, we will not need to use our slow sdcards, we can use part of the 8gb of internal memory for the Webuntu partition.
you know, I'm glad you said that. I was hoping we could change that partition. Use up some of that extra space.
tallnerd1985 said:
Hell, since our phone is so much better than the Atrix as far as storage space goes, we will not need to use our slow sdcards, we can use part of the 8gb of internal memory for the Webuntu partition.
Click to expand...
Click to collapse
Sorry, but somebody else is going to have to figure out how to repartition the internal memory. That's one of those things that I'm not going to touch with a 20-ft pole....
The main reason I don't want to use /mnt/sdcard for a file is that it will then cause some pretty severe problems if you ever try to mount that from a computer (since Android won't be able to unmount /mnt/sdcard, since the filesystem file is still in use). I suppose if you wanted to guarantee that you would never, ever want to get to contents of /mnt/sdcard over USB, maybe, but that's not something I'd want to try to enforce.
so back to the sdcard-ext partition.
out of curiosity, how large are you making the webuntu partition?
Natronics said:
so back to the sdcard-ext partition.
out of curiosity, how large are you making the webuntu partition?
Click to expand...
Click to collapse
How big do you want it? Picture from the webtop2sd development thread:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Minimimum: 1 GB.
that's a loaded question. lol. and like a boss I almost spit my coffee out when I saw that pic.
4 gigs looks fine to me....i see you've got it set to 7790 as the max. thats perfect. Didn't realize your app would allow adjustment of the partition size. forgive me.
Natronics said:
that's a loaded question. lol. and like a boss I almost spit my coffee out when I saw that pic.
4 gigs looks fine to me....i see you've got it set to 7790 as the max. thats perfect. Didn't realize your app would allow adjustment of the partition size. forgive me.
Click to expand...
Click to collapse
Who said 7,790 MB is the max? That was just because it was an 8 GB card I was testing with.
lol. roger that. makes sense that it could be set to the size of whatever card you have.
Would it be possible to install the system partitions to /osh and have /usr and /home on the
Sd card or is that useless with class 10 cards? Not sure about the speed of the internal memory. If it's faster it would be a worthy feature...
Sent from my DROID BIONIC using Tapatalk
xaero252 said:
Would it be possible to install the system partitions to /osh and have /usr and /home on the
Sd card or is that useless with class 10 cards? Not sure about the speed of the internal memory. If it's faster it would be a worthy feature...
Click to expand...
Click to collapse
afaik, internal memory is going to be a fair amount faster than an SD card. Also, /home is a symlink to /data/home, so it wouldn't end up on the SD card anyways. At that point, /osh/usr is going to be most of /osh, so you might as well just have all of /osh live on the SD card.
Any progress on webtop2sd? I'm completely out of space with the limited amount... Can't wait till this is ready
Sent from my DROID BIONIC using XDA Premium App
2.0.0 (October 10, 2011):
Multi-device support.
Sogarth said:
2.0.0 (October 10, 2011):
Multi-device support.
Click to expand...
Click to collapse
Link?
Sent from my Xoom using XDA Premium App
runandhide05 said:
Link?
Click to expand...
Click to collapse
I tend to leave the bulk of content on the main webtop2sd thread, which is pointed to from the first post.
Sogarth said:
I tend to leave the bulk of content on the main webtop2sd thread, which is pointed to from the first post.
Click to expand...
Click to collapse
sorry i see it, my bad.. im so impatient sometimes, executing right now... cant wait
i read you told us how to report issues if it is not working properly so u can help us out, but how/ what info do u need if it will not execute?
I am running rom rebluerd3d 1.5
After configuring the partition and location, I hit go on execute tab, unmount SD card,
Partition complete formatting both partions complete,
SD card is then remounted,
Execution complete
Extraction complete
Calculation list
Calculation complete
Synchonizing files from mmcblk1p24 to mmcblk0p2...(screen cuts of can't see the exact directory)
Sync complete
Config mmcblk0p2...
Proplem occurred configuring the target partition. Aborting
runandhide05 said:
i read you told us how to report issues if it is not working properly so u can help us out, but how/ what info do u need if it will not execute?
I am running rom rebluerd3d 1.5
After configuring the partition and location, I hit go on execute tab, unmount SD card,
Partition complete formatting both partions complete,
SD card is then remounted,
Execution complete
Extraction complete
Calculation list
Calculation complete
Synchonizing files from mmcblk1p24 to mmcblk0p2...(screen cuts of can't see the exact directory)
Sync complete
Config mmcblk0p2...
Proplem occurred configuring the target partition. Aborting
Click to expand...
Click to collapse
Heres a screen shot of progress
Sent from my DROID BIONIC using XDA Premium App
Hi guys m running fusion cm9 beta and want to increase the size of ram with the help of swap size I want to know how to partition my sdcard and want to create 2nd partition as swap partition and which app to use to set the swapiness without moving apps to external
You are going to be dissapointed. Not possible...
It is possible I have done it on my galaxy mini about 2 months ago and every Linux devices ram can be increased
Increasing your swap space on any operating system does not increase your RAM. The OS might be able to start more processes, etc., but your RAM size remains the same.
The RAM in the Captivate is just that--RAM. Its size is fixed. All of your other solid-state memory is not RAM--it is behaving as file system storage.
dhlalit11 said:
It is possible I have done it on my galaxy mini about 2 months ago and every Linux devices ram can be increased
Click to expand...
Click to collapse
well how did you do it for the galaxy mini? I can't see there being a big difference in how something like that would be done from one phone to another.
Also, are you sure that there was an improvement in how the galaxy mini performs?
I ask because google specifically designed android to not have a swap partition nor to use one.
DaNaRkI said:
well how did you do it for the galaxy mini? I can't see there being a big difference in how something like that would be done from one phone to another.
Also, are you sure that there was an improvement in how the galaxy mini performs?
I ask because google specifically designed android to not have a swap partition nor to use one.
Click to expand...
Click to collapse
after creating swap partition the system thinks swap partition as ram and uses it for some background and foreground tasks it works great on mini
but the problem is I don't know how to partition sdcard through windows. before that I can partition through cwm recovery but in this mobile there are 2 SD cards so am fearing of partitioning internal one
dhlalit11 said:
after creating swap partition the system thinks swap partition as ram and uses it for some background and foreground tasks it works great on mini
but the problem is I don't know how to partition sdcard through windows. before that I can partition through cwm recovery but in this mobile there are 2 SD cards so am fearing of partitioning internal one
Click to expand...
Click to collapse
You can probably google it. To do it, I'm pretty sure you use command prompt in windows
Sent from my CM9 ICS i897 Captivate
I don't see that actually improving your experience. Android manages the ram pretty efficiently since GB (even better on ICS). As Danarki said google design it without swap partition. The method used on your galaxy mini should work (mostly) for our i897. If it was a .zip file open it up and look at the code see what it did exactly. Just my 2 cents.
prbassplayer said:
I don't see that actually improving your experience. Android manages the ram pretty efficiently since GB (even better on ICS). As Danarki said google design it without swap partition. The method used on your galaxy mini should work (mostly) for our i897. If it was a .zip file open it up and look at the code see what it did exactly. Just my 2 cents.
Click to expand...
Click to collapse
its not a zip file its a second partition of our sdcard and I want to know how to partition my external sdcard
I used Swapper from the Market when I tried your approach. The way I used my Cappy on stock GB the benefits seemed to fade over time.
I switched to SD Boost & SD Tools both before and after flashing Doc's Master ICS. Conclusion: speeding up disk i/o had a much more noticeable effect (especially on ICS) than RAM tweaking.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If the kernel supports it...
Open android terminal emulator and cd to /etc... run
$ cat fstab
(it might be a variation of fstab... its vold.fstab on my transformer)
This will give you you sd card device name... i think it is referred to as 'emmc' rather than sdcard... sdcard is the internal memory... idk why they insist on this.. it's just confusing.. in short locate emmc not sdcard!
Run
$ fdisk
Delete the partitions and create 2 new ones... you'll need to change the type of the first partition to swap and the 2nd to Linux..then write the changes to the disk.
Run
$ mkswap
Then run
$ swapon /dev/emmc0 (not literal... device is probably different but it needs to be the first partition..which is 0)
Then for the rest of the card run
$mkfs.ext4 /dev/emmc1 (again not literal)
(or mkfs.vfat)
The kernel must support swap before swapon will work. I'd make absolutely sure that the external sd card is emmc... it is on mine but this might be different between roms... also, a higher class SD would make swap faster.
I don't see how trying swap could hurt anything....other than potentially deleting the wrong partitions. That's part of the beauty of Linux... messing with it to see what you can do. It's one of the reasons i love android.. i wish more of these android newbs would realize this and encourage poking around with the coolest part of android and give the information that was requested rather than reasons why its dumb or impossible. Nothing is impossible or dumb except the ones discouraging you.
If you want to hack around on your devices... do it!
Sent from my Transformer TF101 using XDA Premium HD app
pierut said:
If the kernel supports it...
Open android terminal emulator and cd to /etc... run
$ cat fstab
(it might be a variation of fstab... its vold.fstab on my transformer)
This will give you you sd card device name... i think it is referred to as 'emmc' rather than sdcard... sdcard is the internal memory... idk why they insist on this.. it's just confusing.. in short locate emmc not sdcard!
Run
$ fdisk
Delete the partitions and create 2 new ones... you'll need to change the type of the first partition to swap and the 2nd to Linux..then write the changes to the disk.
Run
$ mkswap
Then run
$ swapon /dev/emmc0 (not literal... device is probably different but it needs to be the first partition..which is 0)
Then for the rest of the card run
$mkfs.ext4 /dev/emmc1 (again not literal)
(or mkfs.vfat)
The kernel must support swap before swapon will work. I'd make absolutely sure that the external sd card is emmc... it is on mine but this might be different between roms... also, a higher class SD would make swap faster.
I don't see how trying swap could hurt anything....other than potentially deleting the wrong partitions. That's part of the beauty of Linux... messing with it to see what you can do. It's one of the reasons i love android.. i wish more of these android newbs would realize this and encourage poking around with the coolest part of android and give the information that was requested rather than reasons why its dumb or impossible. Nothing is impossible or dumb except the ones discouraging you.
If you want to hack around on your devices... do it!
Sent from my Transformer TF101 using XDA Premium HD app
Click to expand...
Click to collapse
thanks man will surely do it in future after backing up my data and you are right it's emmc but it's mount point is /mnt/emmc will it be a prob
please reply on this thread also
http://forum.xda-developers.com/showthread.php?t=1535360
Any new about this? Repartition or use some internal memory for system memory?
I am starting to get not enough memory when updating apps but when I check the app storage there is 45 MB free on Running, and 9 GB free on internal SD
What does this do?
make 3 partitions on SDCARD
-FAT32 > Primary Storage
-EXT4 > Secondary Storage Internal memory dummy
-Linux Swap > Extra RAM
Do I need to Backup my SDCARD contents?
Not needed, but if you want you can, it doesn't erase your sdcard data unless you did something wrong.
1/ Boot up your Windows machine
2/ Unmount your sdcard card on phone eject it and Insert your Micro SD card into a card reader and attach it to the computer
3/ Install Mini Partition Wizard Home Edition
4/ Run Partition Wizard Home Edition.
5/ Look for your SD card along the bottom and identify your FAT32 Partition
6/ Right click on it and choose "Move/Resize Partition"
7/ Use the down arrow in the middle field "Partition Size:" to change the value and consequently the value of the "Free Space After: field as well until you have created around 2307 MB of free space. *Warning - Do not create free space before the first primary FAT32 partition!!! If you do discard changes and start over!
8/ Click "OK"
9/ Identify the new unallocated space on the drive map.
10/ Right click on it and choose "Create"
11/ When you get the warning about the partition not being able to be used in Windows click "Yes" to continue
12/ Choose Ext4 for partition type. Primary, Resize to 2000 MB
13/Right click on empty 300 MB left Create Linux swap partition, Primary
14/ Make sure it is all primary not a logical partition
15/ Name it if you want.
16/ Click "OK" to continue
17/ Click the BIG "Apply" button in the top left of the window
18/ Choose "Yes" to continue from the pop up
19/ Let it do it's work.
Congratulations! Step 1 Complete!
Now to step 2:
1/ Eject and place your SD card back into your phone
2/ Install Link2SD from the Android Market
3/ Run it
4/ On first run it will ask you the type of partition your second SD card partition is. Choose Ext4 depending on which you made it.
5/ Follow the directions to reboot your phone
Congratulations! Link2SD is now working on your phone!
1.choose the funnel and choose User
2.choose multi select and select apps to to be moved to sd-ext and choose actions then create link choose all 3 checkbox
At this point I recommend you Menu click and go to Settings and choose "Autolink" to automatically link programs (.APK), dalvik cache files (.DEX) and library files (libs) to your SD Card 2'nd partition when a new program is installed.
Now for some strategy!
You say, "I've got all this external space! Why bother putting any programs on the internal space?"
Well...SPEED MAN! SPEED!
I keep Launchers, Widgets, Background processes like Titanium Backup, etc, on the internal as space allows to allow for speed when booting. The internal memory is faster than your SD card and keeping these programs here helps a lot in speeding up your boot time. This is an option with Link2SD that you DON'T have with Data2SD or Data2Whatever!
You can also keep commonly accessed programs like Tapatalk for example, on this internal fast memory.
You can also mass move by multi selecting, several programs to and from either internal, SD card, or SD card second partition. Ideal for your initial move to your new second partition of your apps pre-installed prior to link2sd.
People wanted instructions for a third swap download 81swap.rar in attachment extract 81swap script and push to /system/etc/init.d/ folder, during boot it would mount sdcard swap.
in cmd.
adb remount
adb push 81swap /system/etc/init.d/
adb shell chmod 777 /system/ect/init.d/81swap
reboot phone
to check if it mounted in terminal emulator type
su
free
see swap if it changed size to 400.
WARNING: From now on your SDCARD should not be Unmounted or ejected when phone is on.
Only eject SDCARD if phone is off.
Otherwise some problems might occur.
AUTHOR: d33ps1x
EDITED BY: me
FAQ:
Why when I created linked apps why does my Internal Memory Storage still low
A: After linking your apps to EXT4, reboot phone to see if Internal Storage increased.
Why my internal memory is still 700+ mb
A: link2sd ext4 partition is like a drawer so instead of 1 drawer you have 2, transfering stuff to your second drawer.
How can I check memory info?
A: In link2sd app hold recent apps button then choose storage info.
How does link2sd work?
It creates a link shortcut like in windows in internal memory and transfer the main apps files in sd-ext.
Can I connect my phone to usb storage mode?
Sure you can sd-ext partition won't be unmounted only your fat32 partition will be so computer will read contents of sdcard.
Stoshke says:
If you connect HTC desire C in USB mode on computer running linux OS, you can mount ext partition on your PC using Device Notifier, but this way you will dismount it from the phone. So be careful if you have automount enabled.
Questions
Hi einstein.frat ,are you running all this on your phone atm?
I ask because I've been waiting for my new sd card to arrive(it has) and have been looking and trialling this Mod over the last few days or so and I've met a few problems and irregularities .
I was going to PM you originally but I thought asking you in the thread might actually prove useful to others as well as myself .
I've read 3 other threads on this subject , the first http://forum.xda-developers.com/showthread.php?t=1432459 is referred to you in this thread.
The second http://forum.xda-developers.com/showthread.php?t=919326 is the thread about the app we are using to link to our ext partitions.
Now first question ;
Are the partition sizes you quote , the sizes you used as to me (and reading the other thread) they seem small . I wonder if you have typed KB instead of MB ?
Second question is about the swap file , the thread I referenced is this one http://forum.xda-developers.com/showthread.php?t=1659231
The Author basically goes through all the same procedures as everyone else but he uses an app instead of your script to manage the swapfile .
Now I agree with your thoughts here(i assume you wrote the script for this reason) that your script is a more elegant way of implementing the swap file at boot up .
But I think your line ;
adb shell chmod 777 /system/ect/init.d/81swap
should actually read;
adb shell chmod 777/system/etc/init.d/81swap
Just 2 very small differences
Anyway I have done it all and got it working on my new sd card so thankyou very much .:good:
Now my last tip? I guess I could call it that , is to do with checking if swap is working . Going back to this thread http://forum.xda-developers.com/showthread.php?t=1659231
The Author points out that if you run 'free' in terminal emulator if you have failed it will look like this (swap is all zeros)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and if it is successful it will look like this
Hopefully I havn't annoyed you with this post and hopefully it will help others get this Mod going .
All the best ,
Richard
SD card
Guys, what do you think, when doing this, is there any real phone performance difference between Class4 and Class10 SD cards, other then usb transfer speed?
neoyoli said:
Guys, what do you think, when doing this, is there any real phone performance difference between Class4 and Class10 SD cards, other then usb transfer speed?
Click to expand...
Click to collapse
I only got mine yesterday (a UHS-1 class 10) to move up from a class 4 , but it's way too soon to say whether there is a noticeable improvement (especially as I've implemented this mod)
.http://forum.xda-developers.com/showthread.php?t=1947560 This is a good thread to read especially where he finds a good class 4 is better than a poor class 10 . Have a read it's worth the time :good:
fixed kb to mb
Your chmod is wrong that is directory 777/ which doesnt exists right way is 777(space)/ chmod is attrib in windows like making it read only, hidden or write protect. 777 means read, write, executable to the file in all groups. If this it not set it won't run.
2000 = 2gb
300 = 300mb
Swap script is to enable linux swap partition on sdcard, nothing else.
einstein.frat said:
fixed kb to mb
Your chmod is wrong that is directory 777/ which doesnt exists right way is 777(space)/ chmod is attrib in windows like making it read only, hidden or write protect. 777 means read, write, executable to the file in all groups. If this it not set it won't run.
2000 = 2gb
300 = 300mb
Swap script is to enable linux swap partition on sdcard, nothing else.
Click to expand...
Click to collapse
Yup I realise what the script is for and my taking the space out of 777 / explains why the script hasn't stuck ( I think?)Just realised I erased the script myself last night as I decided to do a fresh install of your Rom and added a fresh init.d folder when I was doing all the bits with the Aroma installer after ...Doh
Hi einstein., thanks for your mod and development. Could this mod (Link2SD and swap) running on other devices with init.d support (I would like to test it with me)? If so, I would your permission I use your guide as a template for mine get in the S3 mini section, or not? Thanks for your answer and I wish you all the best for the new year, more!
Regards, leather.face
Sure you can, but swap partition on ur s3 might be diff mmblck so script might not work. You can find it if ur sdcard is mmblk03 swap will be 05 smething like that on 3rd place, modify script
Sent from my HTC Desire C using xda premium
einstein.frat said:
Sure you can, but swap partition on ur s3 might be diff mmblck so script might not work. You can find it if ur sdcard is mmblk03 swap will be 05 smething like that on 3rd place, modify script
Sent from my HTC Desire C using xda premium
Click to expand...
Click to collapse
Okay, thanks! I test first Link2SD and it should work then swap. Should questions arise then I write ...
Regards
sorry for my double post but ...
Hi einstein., Link2SD works very good and fine but I have problems with the swap script. My sdcard is mmcblk0 and I have mmcblk1, these are split on again in mmcblk1p1, mmcblk1p2, mmcblk1p3. What is the partition for swap? I've tried several but none worked. The value in the terminal emulator is 0 for swap. At the moment I do not go on, unfortunately ... Or can I see in a file where is the partition for swap in my device? Or do I need to swap a unsecured boot.img with swap support? I have enabled the init.d for stock rom and secured kernel but all scripts in the init.d and Link2SD works very good and fine. Thanks for your help.
Regards
Maybe your kernel doesn't support swap if you tried all 3 partitions.
Desire c kernel config have it enabled by default.
Will add this to index thread soon.
einstein.frat said:
Maybe your kernel doesn't support swap if you tried all 3 partitions.
Desire c kernel config have it enabled by default.
Click to expand...
Click to collapse
Hi einstein., thanks for your answer. I'll try again now. So one of these mmcblk1p1, mmcblk1p2, mmcblk1p3 partitions be destined for swap, I understand this correctly? Thanks for your mods and roms. Link2SD works perfectly. Can something happen when I test a another partition in the script specified and this is not be used for swap? Thanks for your help but sorry for my english ...
Regards leather.face
Edit:
@einstein., thanks for your help but my question has been settled. The stock kernel in the S3 mini supports no swap. I tested all the partitions but not working. Link2SD works perfectly. Thanks einstein. and have a nice evening.
Regards
Just in case anyone is thinking of adding this mod to their desire c my opinion is that It's worth it.
Performance when switching between apps is much better. I've tried most of the tweaks I can find, and this single change has made the most difference.
Boot time is significantly longer and I suppose you run the risk of wearing out your SD card sooner but its still worth it.
Thanks for the detailed instructions.
When using the latest version of nameless the swap will setup automatically ( you still need to create the partitions before flashing the Rom)
Sent from my HTC Desire C using Tapatalk 2
einstein, if I delete the symlink of an app, it goes back to the internal storage, right?
and an other thing: after doing the swap, my recent apps button goes straight into 2nd option mode, as if I held it longer, so no recent apps menu comes up. Do you have a tip how to fix it?
Same Issue
neoyoli said:
einstein, if I delete the symlink of an app, it goes back to the internal storage, right?
and an other thing: after doing the swap, my recent apps button goes straight into 2nd option mode, as if I held it longer, so no recent apps menu comes up. Do you have a tip how to fix it?
Click to expand...
Click to collapse
I get the same issue with the recent apps button . I've been reading through the original thread for the app but I've had no luck finding an answer.
And yes neoyoli if you delete the symlink the app goes back to internal
Wasn't the recent apps button changed/remapped to long pressing the home button in nameless v7.1.1 ?
Sent from my HTC Desire C using xda app-developers app
nikhil16242 said:
Wasn't the recent apps button changed/remapped to long pressing the home button in nameless v7.1.1 ?
Sent from my HTC Desire C using xda app-developers app
Click to expand...
Click to collapse
Does it work for you ?
Doesn't for me :silly:
LOool, silly us
whoamigriffiths, are you sure if you press the home button longer, the recent apps menu doesn't come up?