[GUIDE] Partitioning your SD Card to use swap and or lin2sd :) - GT540 Optimus Android Development

There is probably a guide for this already, but if there is, it is deep, deep down
What we will need:
Some way to connect the SD Card to the PC (using the phone USB with storage mode on is fine)
Minitool partition wizard - http://partitionwizard.com - the home edition is fine for this.
The steps:
Connect the SD card to the computer
Launch minitool
{
"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"
}
Select your SD Card MAKE SURE YOU DO NOT SELECT YOUR HARD DRIVE!
On the left, there will be an option to Resize the drive. Select this and resize as necessary (If you have a 6GB drive, and want a 1GB ext2, resize it to 5GB).
Do the same again for a swap partition.
Check the operations on the left bar, to make sure you are happy with them and click 'Apply'.
Wait for it to complete. DONE! Eject you sdcard, and put it back into your phone. You can now download an app like link2sd to use it, or use swap
NOTE: I am in no way responsible if your data goes missing!
NOTE2: Not all ROM's have swap support. Most (if not all) CM rom's now do, however, you may need the 07swapon script. Please check my post to get that

It's the same thread like this?:
http://forum.xda-developers.com/showthread.php?t=1317362

it aint deep down... its pinned >_>

-Grift- said:
it aint deep down... its pinned >_>
Click to expand...
Click to collapse
hahaha true.

-Grift- said:
it aint deep down... its pinned >_>
Click to expand...
Click to collapse
exactly, next time do a LITTLE research, ._.

He did state, "There is probably a guide for this already, but if there is, it is deep, deep down " but i dont mind...

I might as well not do things. I always do them wrong, and I get upset. Delete this thread then
Sent from my GT540 using Tapatalk 2

liamwli said:
I might as well not do things. I always do them wrong, and I get upset. Delete this thread then
Sent from my GT540 using Tapatalk 2
Click to expand...
Click to collapse
Nah, just keep looking for material that's missing, so you can make a tutorial .

Ziore said:
Nah, just keep looking for material that's missing, so you can make a tutorial .
Click to expand...
Click to collapse
I think you or anyone could make a tutorial about how to build up a system (not a kernel, but just a e.g. cm7, cm9, aokp, aosp), in order to make our developer thread much more colorful. Just an idea...

To build from source it builds both system and kernel...

-Grift- said:
To build from source it builds both system and kernel...
Click to expand...
Click to collapse
OK, then both, I think it doesn't mean much...

There are many guides out there but for gt540 its slightly different.

-Grift- said:
There are many guides out there but for gt540 its slightly different.
Click to expand...
Click to collapse
This is the reason I requested this type of guide...

So how is link2sd and clockwormod recovery backup?
When I have ext2/3/4 secondary partition and create backup, than do files and linked stuff go to sd-ext? After restore will there be working linking during boot? And what happens when the secondary partition is fat32?

prwnd said:
So how is link2sd and clockwormod recovery backup?
When I have ext2/3/4 secondary partition and create backup, than do files and linked stuff go to sd-ext? After restore will there be working linking during boot? And what happens when the secondary partition is fat32?
Click to expand...
Click to collapse
When you backup with CWM, as long as the ROM you are using mounts the /sd-ext.
When the backup file is made, the sd-ext file contains all the symlinks, so yes, backups work (I have made it loads of times).

Related

Stock Mounting SDcard for Cyanogenmod and MIUI (universal!)

PATCH STOCK MOUNTING
for AOSP rom
made in
{
"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"
}
To those of you annoyed that the Rom and CyanogenMod MIUI memories are mounted differently than the stock rom based? well, with this patch you will not have worries after her recovery, you will find the flash memory under mnt / sdcard and external sd mounted under mnt / sdcard / _externalsd just like the stock rom!
the patch has been tested by me on build 195,196,197,198 and did not have any problem
changelog:
v1.0
made 100% compatible with any build cm7 and MIUI
v0.2
improved compatibility
v0.1
initial relase
Download v1.0
http://ul.to/95vqhl0o
how to install the patch? simple, just flash with ClockworkMod!!
Before flashing make sure the patch folder /mnt/sdcard is present _ExternalSD
If there is not create it
tanks to all italian boy of iPmartDevTeam and Dangelo.Davide​
Works like it should. Thanx.
Just to point out the usual stuff, stacked mounts are not good and could result in data lost etc
Rusty! said:
Just to point out the usual stuff, stacked mounts are not good and could result in data lost etc
Click to expand...
Click to collapse
Hmmm well, we also risk dying by living, but we're still doin that arent we?
But point taken thanx
Just about
Rusty! said:
Just about
Click to expand...
Click to collapse
;D true hehe
The patch that I designed with the intention of playing as memories of mounting in the stock rom.
reading here on the forum I noticed that there is a debate which was attributed to each build a patch with the buil.prop different, then I have tried to create a patch instead of replacing the build.prop only changes in the present Rom, so there is a universal patch that works on old builds and builds future, think about the loss of data that the risk is comparable to that of the stock rom almost non-existent or very low, otherwise it would be so even on stocks
Mine is clearly a point of view, but I can not say for sure having never lost any data
and no matter what I think the end is better than a patch Universal already seen is not universal
Greetings to all
sorry for my bad English but it's not my mother tongue
Now i am too scared using this patch...Is it safe?There was the similar ones,but it says that it brings the media data lost.
Upd:GUYS,DO NOT INSTALL IT!I have lost all my photos because of this ****.It was tested?yep,NOW it was tested.I hate u,oiza,for doing such things.
On my phone work fine
Inviato dal mio Optimus 2X usando Tapatalk
Works fine here with 203...
Craxx
Send from my 2x with Tapatalk
MantusRus said:
Now i am too scared using this patch...Is it safe?There was the similar ones,but it says that it brings the media data lost.
Upd:GUYS,DO NOT INSTALL IT!I have lost all my photos because of this ****.It was tested?yep,NOW it was tested.I hate u,oiza,for doing such things.
Click to expand...
Click to collapse
That u say it's not possible. This zip can't delete files, nor partitions.
Try give us more info about your situation
Did you create the _ExternalSD folder in /mnt/sdcard before using this zip?
If not, reflash the cyanogenmod rom, create that folder and flash again the Oiza's zip.
It is possible, doing this may result in data loss, I mentioned it earlier.
Rusty! said:
It is possible, doing this may result in data loss, I mentioned it earlier.
Click to expand...
Click to collapse
Everything's possible, but what i wanna understand is "how is it possible to have a datalost in an operation where there is only a changing of mounting point?
In these cases there is often a way back to original situation.
I wonder if data can be deleted by this operation but I'd be very grateful if you could give me some 'of your time to explain this or tell me about some good links.
I don`t know how,but my images and videos on sdcard were deleted after flashing this zip.
Works briliant, thanks man!
than nothing, thank you for your feedback
Inviato dal mio Optimus 2X usando Tapatalk
MantusRus said:
I don`t know how,but my images and videos on sdcard were deleted after flashing this zip.
Click to expand...
Click to collapse
Did you look in /sdcard/_ExternalSD/DCIM?
dangelo.davide said:
Did you look in /sdcard/_ExternalSD/DCIM?
Click to expand...
Click to collapse
It was deleted from there.Right from my sdcard.DCIM,Photo,Video folders were totally pwned after this patch.
MantusRus said:
It was deleted from there.Right from my sdcard.DCIM,Photo,Video folders were totally pwned after this patch.
Click to expand...
Click to collapse
I lost a lot of photos and videos too.
Br.
Enviado desde mi Optimus 2X
MantusRus said:
It was deleted from there.Right from my sdcard.DCIM,Photo,Video folders were totally pwned after this patch.
Click to expand...
Click to collapse
What sd do you have? (dimensions)
Do you lost exactly those three fodlers and no others?

[Q] Increase internal storage

How can I increase it on my Nexus One?
I'm stuck, any easy way? Or not?
Thanks
saulob said:
How can I increase it on my Nexus One?
I'm stuck, any easy way? Or not?
Thanks
Click to expand...
Click to collapse
r u rooted. if so go for sd ext partition.
the other way is to apply blackrose and resize ur partition(but it requires some reading before doing)
Sent from my Nexus One using Tapatalk
Thanks.
But, what's the best? I already used some changes on partition and got the system reall slow...
Any down side on that?
Thanks.
wat changes hv u done?
Sent from my Nexus One using Tapatalk
If your phone is rooted..then depending on the ROM, it's possible to increase the internal memory...for instant with blackrose you can resize the phones partition...what ROM are you using anyway?
Sent from my Nexus One using XDA
n1newbie said:
wat changes hv u done?
Sent from my Nexus One using Tapatalk
Click to expand...
Click to collapse
I tried a extension from the Oxygen ROM, that used data2sd, it worked but the phone became really really small, so I removed.
keyz123 said:
If your phone is rooted..then depending on the ROM, it's possible to increase the internal memory...for instant with blackrose you can resize the phones partition...what ROM are you using anyway?
Sent from my Nexus One using XDA
Click to expand...
Click to collapse
Yes, I'm root, I'm rooted, I'm using the Oxygen rom.
http://forum.xda-developers.com/showthread.php?t=1214543
I'm going to try that blackrose, see if it works. Going to search for some tutorials.
Thanks
No luck using Blackrose, I think I can only change the internal partition, like the internal 512mb, I want to use my SD to the apps.
I was unable to create a big system partition, like 1000mb (1gb)
{
"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"
}
You should read the BlackRose thread some more. 1 Hint:
Code:
SYSTEM + CACHE + USERDATA = 436MB
tommert38 said:
You should read the BlackRose thread some more. 1 Hint:
Code:
SYSTEM + CACHE + USERDATA = 436MB
Click to expand...
Click to collapse
Yeah, I understood that. But I want to Increase it, don't resize. With BlackRose I was only able to resize in 436mb, not increase it
From the BlackRose OP:
FEATURE
Security OFF
None padlock mark even unlocked
Password protection
Engineering command
BlackRose custom command
Change boot logo
Resize Partition
Select menu by pressing trackball
Switch vibration at boot
CRC32 check function
Prevent overwrite HBOOT by RUU
Click to expand...
Click to collapse
You can only resize partitions. For increasing you should use an A2SD-variant.
Thanks, got it. Understood.
Any tips on it? What app, util, should I use?
I don't use A2SD (or any other variant), but I believe there are some threads about it floating around somewhere. Please search
hv u partitioned ur sd with 1gb ext4?
u can find some info in this thread
http://forum.xda-developers.com/showthread.php?t=1555496
Sent from my Nexus One using Tapatalk
Thank you guys. I tried the Darktremor and did not work.
I need to check this partition thing first, I thought I did it right, but no luck.
The problem right now is when I start the Android all my programs are gone, like the system is Wiped
Yes, I made a backup first, but no luck. I think this is right, I will need to start again.

Link2SD but low internal memory

Hello.
Why my internal memory is low (56 mb) but all my aps is linked to SD on a ext4 partition with Link2Sd ?
Where is the problem?
I cleaned and relinked everything and memory still low
Till yasterday my memory was ~110 mb. Maybe Juice defender ultimate is the problem? Is my last installed app.
Sent from my GT-S5830 using xda app-developers app
Screen shots?
sometimes i have seen that when large games are on sd they occupy less space and other times opposite too happen.....
one more thing try formatting ur sd-ext and cleaning your sd-card by sd-maid..
best of luck;;;
Aj.GaLaxY aCE said:
sometimes i have seen that when large games are on sd they occupy less space and other times opposite too happen.....
one more thing try formatting ur sd-ext and cleaning your sd-card by sd-maid..
best of luck;;;
Click to expand...
Click to collapse
then i must install all apps again?
screenshots
{
"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"
}
I encountered this problem once and switched using "INT2EXT4+" instead, you don't have to manually move stuff with that script and I havent noticed any problem with it.
Use titanium backup to backup all your apps if you're not already using it.
http://forum.xda-developers.com/showthread.php?t=1716124
QNBT said:
I encountered this problem once and switched using "INT2EXT4+" instead, you don't have to manually move stuff with that script and I havent noticed any problem with it.
Use titanium backup to backup all your apps if you're not already using it.
http://forum.xda-developers.com/showthread.php?t=1716124
Click to expand...
Click to collapse
ok
how to use INT2EXT4+ ?
I don't have an app like Link2SD.
Try going to data/local with a root explorer and delete .apk files in there. Link2sd sometimes makes a copy when linking apps and they end up in there, just taking up internal space.
m0fom said:
ok
how to use INT2EXT4+ ?
I don't have an app like Link2SD.
Click to expand...
Click to collapse
The tutorial is in the link. It makes the phone have more "internal" storage (using the space from the SD card) so all you gotto do is to install apps and they will work as they usually do. You have to partition your SD-card, just search "partition SD card xda" on google and ull find a tutorial for that.
Used amarulz script dude it can make our internal memory higher with make our sdext become internal i have 1.5GB for internal but u must deleted other script with similar function to avoid bootloop..
CMIIW
NasiJagung said:
Used amarulz script dude it can make our internal memory higher with make our sdext become internal i have 1.5GB for internal but u must deleted other script with similar function to avoid bootloop..
CMIIW
Click to expand...
Click to collapse
a fresh install is ok? CyanogenMod7 - Apocalypse
OK, done.
Thanks for help guys
m0fom said:
a fresh install is ok? CyanogenMod7 - Apocalypse
OK, done.
Thanks for help guys
Click to expand...
Click to collapse
yeah because some ROM already have script sdext u must remove it before using amarulz script..
use rootexplorer go to system>etc>init.d
When you link apps to sd-ext, the data from all those applications still stay on internal memory. Those consumes a lot of space. Better try moving movable applications to sd card.
Even I also faced the same problem on an earlier ROM. Didn't find a solution though.

[Q] CM7 + 2ndboot + Swapper2

Hello guys, I just installed the new CM7 to test 2ndboot. I enabled Compcache RAM to 26% and also installed swapper2 but when I turn it on it says "can't start '/dev/block/mmcblk0p3': No such file or directory".
Can someone help me please?
Did you create a swap paritition on your SD card?
I disabled compcache and made third partition on my SD-card. Filesystem is Linux Swap. In Swapper2 i choose Settings - Advanced Preferences - Use swap partition. Swap partition - /dev/block/mmcblk0p3. It works for me.
Open your terminal and type "free" for testing:
{
"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"
}
Eiertschik said:
Did you create a swap paritition on your SD card?
Click to expand...
Click to collapse
No, I didn't. I read somewhere that it's not need. Am I wrong?
Strokesws said:
No, I didn't. I read somewhere that it's not need. Am I wrong?
Click to expand...
Click to collapse
Check the settings of Swapper2 - if you don't have a swap partition, make sure that it's not trying to use it. You should be able to have it use the FAT or ext partition.
Eiertschik said:
Did you create a swap paritition on your SD card?
Click to expand...
Click to collapse
CanAndroid said:
Check the settings of Swapper2 - if you don't have a swap partition, make sure that it's not trying to use it. You should be able to have it use the FAT or ext partition.
Click to expand...
Click to collapse
Swap place: /sdcard/swapfile.swp
Swap partition: /dev/block/mmcblk0p3
Strokesws said:
Swap place: /sdcard/swapfile.swp
Swap partition: /dev/block/mmcblk0p3
Click to expand...
Click to collapse
It looks like you are still trying to use a swap partition. Go to Settings -> Advanced Preferences, and make sure the "Use Swap Partition" is unchecked. The go to Swap -> Create, to create the new swap file, and then hit the ON button.
Right, I unchecked this option and now I can see the file inside my SD. I rebooted the phone, how can I confirm that it's working?
Thanks for help!
Sent from my Milestone using xda app-developers app
Strokesws said:
Right, I unchecked this option and now I can see the file inside my SD. I rebooted the phone, how can I confirm that it's working?
Thanks for help!
Sent from my Milestone using xda app-developers app
Click to expand...
Click to collapse
Open Terminal, type in 'free' (without quotes), and if there are numbers in the Swap line other than zeroes, its working!
Like this?
Sent from my Milestone using xda app-developers app
Strokesws said:
Like this?
Sent from my Milestone using xda app-developers app
Click to expand...
Click to collapse
Exactly :good:

[Q] Myth 3 Wanted to go back to my default partition of SD card

To install Myth3, i created a ex partition in SD card through Clockwork mod. Now i wanted to flash another rom. My SD card is 8 GB and now if i connect to the system it shows 6.85 GB available. I want to delete the partition created in the SD Card. How to do it?
Thanks in advance
Hi shaneadams!
You could use MiniTool Partition Home Wizard from this link (by eraser0) :
http://forum.xda-developers.com/showthread.php?t=1476121
Go ahead and you'll find it.
Good luck
Sent from my GT-S5830
You can use Computer Management section if You run Windows OS.
You can delete partitions there. I always use it.
{
"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"
}
SzalonyKronikarz said:
You can use Computer Management section if You run Windows OS.
You can delete partitions there. I always use it.
...
Click to expand...
Click to collapse
Hi SzalonyKronicarz!
If the SD partition is ext2/ext3/ext4 Windows OS will not see it.
Though, Windows OS computer management section is useful for FAT/FAT32/NTFS partitions.
Good luck.
Sent from my GT-S5830
I can't agree with You.
It works just fine for deleting partitions.
Windows may not use this type of partitions but can see and delete.
Actually I don't have any english version of Windows but I'd like to show You that I am right:
You can see, that partitons exist.
It says "Zdrowy,nieznana partycja" - english: healthy - unknown partition.
You can also see "Usuń partycję" - english: delete partition.
Both partitions were created under CWM Recovery.
Screenshot is here http://zapodaj.net/images/908ea15d23390.jpg
SzalonyKronikarz said:
I can't agree with You.
It works just fine for deleting partitions.
Windows may not use this type of partitions but can see and delete.
Actually I don't have any english version of Windows but I'd like to show You that I am right:
You can see, that partitons exist.
It says "Zdrowy,nieznana partycja" - english: healthy - unknown partition.
You can also see "Usuń partycję" - english: delete partition.
Both partitions were created under CWM Recovery.
Screenshot is here http://zapodaj.net/images/908ea15d23390.jpg
Click to expand...
Click to collapse
Hi SzalonyKronikarz!
My apologies, you're right.:thumbup: Windows OS can see and delete this type of partitions, and, though, your method is alright.
Thanks and good luck.
Sent from my GT-S5830
BajoPrimate said:
Hi shaneadams!
You could use MiniTool Partition Home Wizard from this link (by eraser0) :
http://forum.xda-developers.com/showthread.php?t=1476121
Go ahead and you'll find it.
Good luck
Sent from my GT-S5830
Click to expand...
Click to collapse
Thanks dude. It worked fine . Thanks for the support .
Sent from my Samsung GT-S5830 using Tapatalk 2
shaneadams said:
Thanks dude. It worked fine . Thanks for the support .
Sent from my Samsung GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
Hi shaneadams!
You're welcome. Thanks to erarser0. I'm so glad reading your good news.
Good luck.

Categories

Resources