[Q] how to set up swap? - Milestone XT720 General

hi, i wanna set up swap but i cant find any real tutorial. can someone please give me some steps to get swap running on my phone? thanks!
alright, maybe this is more of a "how should i set up my sd" post cos i also havent used apps2ext. (have been using the internal memory, very noob i know)

So what ROM are you running? Its pretty easy if you have one of the custom ROM's from this forum installed. They all have swap support, all you have to do is fastboot into the fjfalcon kernel and swap will be active. Theres a video by reverend you can search he shows how you can parition your SD card and how to get swap running step by step. Look for that...or wait lemme find you the link.
http://forum.xda-developers.com/showthread.php?t=1034763
Check these videos out. This is assuming you know how to use adb shell etc...

thanks, doing the linux part now. i wanted to do it on my windows emulator (im on a mac) but its stored on my external hard drive and the hard drive just crashed so i went to find other ways. found virtualbox for mac.
btw, can you recommend me a setup for my sd? as in the size for each partition. thanks!

I partitioned my SD card exactly like how reverend does in the video.
6.8 GB FAT32
900 MB EXT3
92 MB LINUX SWAP
Works great

i read somewhere in a malaysian forum where khal recommended someone 513mb for swap... is it too much?
ext3 is for dexter's rom to move apps installed to it so its stored on the card instead of the phone right?

Correct, the EXT3 partition is for moving your apps to the SD card.
I can't say about the swap, you'll have to ask khal or fjfalcon who made the kernel as to what the optimum settings are. I use 91 MB, and according to set CPU even after heavy usage half of my swap remains unused. I cant see how someone can have around half a GB of idle apps open for them to be on swap.

eejin2 said:
i read somewhere in a malaysian forum where khal recommended someone 513mb for swap... is it too much?
ext3 is for dexter's rom to move apps installed to it so its stored on the card instead of the phone right?
Click to expand...
Click to collapse
Khal recommended 500 for ext3, 513 for swap and the rest fat32

crap i dont have a card reader, my phone shows up on the emulator but its kinda "grey-ed" like its not supposed to be able to mount on the virtual machine. any ideas?

eejin2 said:
crap i dont have a card reader, my phone shows up on the emulator but its kinda "grey-ed" like its not supposed to be able to mount on the virtual machine. any ideas?
Click to expand...
Click to collapse
Select memory card access in the USB options if you havent and set USB debugging ON.

hotroddy said:
Khal recommended 500 for ext3, 513 for swap and the rest fat32
Click to expand...
Click to collapse
oO
The phone use 30MB of swap mostly. 513 is a waste of memory for sure.
Also - Yes! ext3 partition is for apps.

eSu.Matix said:
oO
The phone use 30MB of swap mostly. 513 is a waste of memory for sure.
Also - Yes! ext3 partition is for apps.
Click to expand...
Click to collapse
Thats nice to know if true! But I have seen mixed opinions while searching for a straight answer on it lol. I have seen some say 30 and others besides Khal also say 513. I might have to repartition again and see how it does with only 30 as I've been 513 for quite a while now see if there's a difference.
I also read that swap should be bigger than the amount of ram. But I don't know can't get a positive answer. If that's the case then that's why 513 makes sense then. Double the ram plus 1. Anybody else know?
Just found this tutorial it says...
Step 5: Create your new partitions. You can make these any size, but the most common setup is 32 MB linux-swap partition, 512 MB ext2 partition, and remaining free space as a fat32 partition. In order to work properly, the partitions must be created in this order: fat32, ext2, linux-swap.
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/

hotroddy said:
Step 5: Create your new partitions. You can make these any size, but the most common setup is 32 MB linux-swap partition, 512 MB ext2 partition, and remaining free space as a fat32 partition. In order to work properly, the partitions must be created in this order: fat32, ext2, linux-swap.
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Click to expand...
Click to collapse
alright im going to do it this way when i get the time. the june holidays just ended for me (which means school just started again). thanks for all your comments!

sohrab.naushad said:
Select memory card access in the USB options if you havent and set USB debugging ON.
Click to expand...
Click to collapse
usb debugging is on but i still cant select it. extra info: on the emulator, it doesnt show generic mass storage or any other generic name but shows motorola milestone xt720.

eejin2 said:
usb debugging is on but i still cant select it. extra info: on the emulator, it doesnt show generic mass storage or any other generic name but shows motorola milestone xt720.
Click to expand...
Click to collapse
So I understand you are using puppy linux in a virtual box? And you're trying to partion with gparted? I think you have to umount the drive before you can partion it. See the unmount button, and then try. If you are having trouble I can send you a screen shot.

sohrab.naushad said:
So I understand you are using puppy linux in a virtual box? And you're trying to partion with gparted? I think you have to umount the drive before you can partion it. See the unmount button, and then try. If you are having trouble I can send you a screen shot.
Click to expand...
Click to collapse
erm... i dont think u got me. i cant mount my phone onto the virtualbox. under usb devices, a list shows up, and the phone is one of them, but i cant select. like its blocked. help please?

Related

Someone make this app

To Dev:
Make an app where it asks if you'd like to save apps/memory/cache/etc to your SD card. =\
We already have that in two forms...
LucidREM's version of JF
Just open up terminal emu and type:
su
copy.sh app
copy.sh data (if u want to move data/data to sd)
And we have Astro. You can back up your apps to the sd card...
Simple as that...
There isn't a script thhat moves Cache to SD, but it's still extremely easy.
It's funny to see someone barking orders at developers when they can't even be bothered to search or read.
If you can't do the research what makes you think someone is going to jump just because you demand it?
no
(filler filler)
APrinceAmongMen said:
There isn't a script thhat moves Cache to SD, but it's still extremely easy.
Click to expand...
Click to collapse
Actually there is.
It's post on this forum somewhere, it's called transfer.sh
I saw THOSE posts but that's not exactly what I meant.
i'm guessing he wants an app that does the "run apps from sd card" hack
The Terminal commands
http://forum.xda-developers.com/showthread.php?t=494187
And the Transfer.sh Script
http://forum.xda-developers.com/showthread.php?t=471653
71CH said:
no
(filler filler)
Click to expand...
Click to collapse
Lol'd.
/agree
I think the OP wants a GUI to do it prettily, how about someone throw it together and put it up on the market, a fair price (hahahaha) would be $10. This might motivate the lazy folk who are terrified of the terminal to figure these rather simple processes out.
Honestly, with the scripts already written, all you have to do is enter a couple quick and easy commands into the terminal and bam! No problem.
It's one thing to ask for help doing something, it is quite another to ask someone to do all the work for you. Just my opinion.
the way i read the post seems like he wants to install apps BOTH on his sdcard and phone and have an app that can let him/her choose/select whether to install on sdcard or phone itself, not a awful question
but in my mind whats wrong with haviing ALL the apps on the sdcard, theres virtually no lag and you get more space on you phone
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
haitiankid4lyf said:
the way i read the post seems like he wants to install apps BOTH on his sdcard and phone and have an app that can let him/her choose/select whether to install on sdcard or phone itself, not a awful question
but in my mind whats wrong with haviing ALL the apps on the sdcard, theres virtually no lag and you get more space on you phone
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
Click to expand...
Click to collapse
Copying from one SD card to another should work. If not, just undo the apps-to-SD process by moving the files back to the phone (there should be instructions in this thread near the bottom) and re-do it with the other SD card.
I'm fairly certain you won't have to do the latter, though.
Depends- Are you on Windows?
If so, use a Live CD of Ubuntu to boot into (installing is optional), it will effectively allow you to view the ext2 partition (as Windows doesn't read ext2 partitions)
Good luck
haitiankid4lyf said:
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
Click to expand...
Click to collapse
you will need two things .. a card reader .. linux .. you can attempt to undo the apps to SD as stated but if you lack the space on the phone now you've run into a problem .. most people move apps to the SD because they lack space on the phone so trying to put them back will bring trouble
since many people have already touched on this i'll just direct you to the other thread:
http://forum.xda-developers.com/showthread.php?t=497275

help with formatting sd card

I think I messed up my sd card for my G1.
I have a 8gb memcard and it was with 2 partitions ext2 and fat32. I just wanted to enlarge the fat32 side because the ext2 was 4gb big. Useless I thought So i deceided to make it only 500mb as ext2 and 7gb as fat32.
Now the computer can't access the card, it says that the cardslot is empty.
I use Paragon Partition Manager and there I can't modifie my sdcard. Nothing helps. I can see my sdcard in Paragon, but can access it and modify it!
Is my card messed up and do I have to buy a new one? Anybody knows how to restore it as it was when I bought it (only fat32 8gb)
Try this: http://www.sdcard.org/consumers/formatter/
mikedmeyer said:
Try this: http://www.sdcard.org/consumers/formatter/
Click to expand...
Click to collapse
YES you are so great!
It works now! Just like new. 8gb no partitions.
Thx!
No problem.
Now I have an another problem!
It always says write delay failed constantly!
Cannot access it, cannot format it, even not with sd formatter.
Is it now realy broken?
nobody :'(
Otherwise I have to order a new 8gb memory card which costs me a lot
use partition magic, create 2 partitions, make the primary partition your biggest and format it fat32, the second partition format in ext2. Then you will be okay
atlmatt said:
use partition magic, create 2 partitions, make the primary partition your biggest and format it fat32, the second partition format in ext2. Then you will be okay
Click to expand...
Click to collapse
The problem is that I cant access my mem.card.
Always a fault: write delay failed. It makes even my computer freeze.
well if you have to get a new one get one of these:
http://www.androidaccess.com/sdcard/store.html
read about it here:
http://androidcommunity.com/forums/...allow-you-to-run-apps-from-the-sd-card-15502/
M3 SMGII said:
I think I messed up my sd card for my G1.
I have a 8gb memcard and it was with 2 partitions ext2 and fat32. I just wanted to enlarge the fat32 side because the ext2 was 4gb big. Useless I thought So i deceided to make it only 500mb as ext2 and 7gb as fat32.
Now the computer can't access the card, it says that the cardslot is empty.
I use Paragon Partition Manager and there I can't modifie my sdcard. Nothing helps. I can see my sdcard in Paragon, but can access it and modify it!
Is my card messed up and do I have to buy a new one? Anybody knows how to restore it as it was when I bought it (only fat32 8gb)
Click to expand...
Click to collapse
Had the same problem after i used Paragon, would not read micro sd anymore. I did a system restore to before i installed Paragon. Problem solved. I am able to read my cards again. I noticed that in that "finish formatting after reboot" Paragon had an error. Figured thats what caused the problem.
antempire4 said:
well if you have to get a new one get one of these:
http://www.androidaccess.com/sdcard/store.html
read about it here:
http://androidcommunity.com/forums/...allow-you-to-run-apps-from-the-sd-card-15502/
Click to expand...
Click to collapse
hmm that's nice!
I will buy a new one then.
Did You try sdsplit ??
It worked good for me, when there was no PC / laptop available.
(ps. Happy with the white version?? )
karloe said:
Did You try sdsplit ??
It worked good for me, when there was no PC / laptop available.
(ps. Happy with the white version?? )
Click to expand...
Click to collapse
Hi Karloe
Yes very happy with my white G1.
How is it with the black one running ADP 1.5?
I will try SDSPLIT, but i think it will not help
If it doesn't work, try a linux live CD (Ubuntu, OpenSuse, Knoppix (I like Knoppix because of the extensive toolset for testing))
[offtopic]
The black one is doing fine, engineering bootloader, ADP1.5 with appstosd
[/offtopic]
wow thanks!!!! i tried and it worked awesome!!!
pr0cl1v1ty said:
wow thanks!!!! i tried and it worked awesome!!!
Click to expand...
Click to collapse
It would be nice to tell us what You tried, so other users can learn from your reply

Partitioning - I'm baffled

I've looked through all the tutorials and read an obscene amount of how-to's, yet I can't figure out partitioning. Tried it from the SDK on a mac and pc and got some sort of path error right from the start. I've tried disk utility on a mac but I am confused on what entries I need to make. Same goes with disk manager on a PC. I've also tried Ubuntu with no luck (got an error). You name it, I've tried it and now I'm exhausted. All I am trying to do it partition a 4GB card to get a linux-swap of 128MB for one of the hero ROMs I want to try...If someone could show me the entries I'd need to make for size for the 3 partitions, that would be great. Any guidance would be greatly appreciated.
Boot into recovery, create a partition.
Boot ubuntu, get the gnome partition editor
Resize the partitions as you need them.
Done.
If you were to flash Amon Ra's recovery it has an option to partition your sd card for you. I'm not exactly sure how much it would set the swap at, but I'm sure you could find it with a little searching. Here's the link to the recovery http://forum.xda-developers.com/showthread.php?t=530492
This is for a 8gb
adb shell
# parted /dev/block/mmcblk0
print
rm 1 (make sure you back up sdcard)
rm 2
rm 3
mkpartfs primary fat32 0 7599
mkpartfs primary ext2 7599 7604
mkpartfs primary linux-swap 7668 7732
quit
# reboot recovery
this is making the linux swap 128mb.
I use the method mentioned above:
adb shell
# parted /dev/block/mmcblk0
print
rm 1 (make sure you back up sdcard)
rm 2
rm 3
mkpartfs primary fat32 0 7599
mkpartfs primary ext2 7599 7604
mkpartfs primary linux-swap 7668 7732
quit
Click to expand...
Click to collapse
Here are some tips though on how to get these numbers...
1. You MUST have the SDK installed correctly with the drivers so you can initiate the adb command and communicate with the device.
2. Partition in Recovery mode. Either Cyanogen or Amon_Ra... I use Cyanogen, so I can't speculate as to how to do this with Amon_Ra
3. BACK-UP YOUR SD CARD, this WILL WIPE YOUR CARD!!
Ok, once you are in recovery, go into the shell:
adb shell
Once there, mount the card with parted:
parted /dev/block/mmcblk0
Once there, get your SD Card Information:
print
This will give you the size of your SD Card and list the partitions that currently exist on it. The number is gives you for SIZE is what you need to go off of, NOT ALL SD CARDS ARE THE SAME!!!
Be sure to remove any parititions that are there already (use the rm # command (# being the partition number you want to remove)).
The 8MB card above stops at 7732 where my 8GB card stops at 8053, so keep an eye on the numbers!!
Ok, now you have to work backwards... If you wanted to make 3 partitions, you work from back to front with the numbers:
For my card, since it ENDS at 8053, and I want a 128MB linux-swap partition, I simply take 8053 - 128 = 7925, so the THRID partion will be:
mkpartfs primary linux-swap 7925 8053
Now I have a 500MB ext3 parition so I take 7925 - 500 = 7425 which makes the SECOND partition:
mkpartfs primary ext2 7425 7925
And then the remaining space is for FAT32:
mkpartfs primary fat32 0 7425
So you will actually run them in the reverse order:
FAT32 > ext2 > linux-swap:
mkpartfs primary fat32 0 7425
mkpartfs primary ext2 7425 7925
mkpartfs primary linux-swap 7925 8053
Click to expand...
Click to collapse
You can adjust the numbers however you want for space assignment.
Once you are done, you should (unless the ROM dev states otherwise) upgrade the ext2 partition to ext 3.
In parted type:
quit
This will drop you to the shell and then type:
upgrade_fs
Wait for this to complete and you now have FAT32 + ext3 + linux-swap
Hope this helps explain it some!
this android and me how to is the best ive seen has pictures and step by step, made partitioning a breeze http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Thanks for the help guys. I'll keep trying but I haven't been able to get the ADB working via the SDK. I know I am doing something wrong with the path because its not even letting me get past the initial command. By the way, I have the Amon Ra recovery and I believe it auto-partitioned 32MB. I need 98, possibly 128.
On the bright side, I just received a replacement phone because my first mytouch was defective and giving me horrible reception (BEFORE I ever tried messing around with it). So, now I have two phones, one of which I can mess around with.
staunty said:
I've looked through all the tutorials and read an obscene amount of how-to's, yet I can't figure out partitioning. Tried it from the SDK on a mac and pc and got some sort of path error right from the start. I've tried disk utility on a mac but I am confused on what entries I need to make. Same goes with disk manager on a PC. I've also tried Ubuntu with no luck (got an error). You name it, I've tried it and now I'm exhausted. All I am trying to do it partition a 4GB card to get a linux-swap of 128MB for one of the hero ROMs I want to try...If someone could show me the entries I'd need to make for size for the 3 partitions, that would be great. Any guidance would be greatly appreciated.
Click to expand...
Click to collapse
staunty said:
Thanks for the help guys. I'll keep trying but I haven't been able to get the ADB working via the SDK. I know I am doing something wrong with the path because its not even letting me get past the initial command. By the way, I have the Amon Ra recovery and I believe it auto-partitioned 32MB. I need 98, possibly 128.
On the bright side, I just received a replacement phone because my first mytouch was defective and giving me horrible reception (BEFORE I ever tried messing around with it). So, now I have two phones, one of which I can mess around with.
Click to expand...
Click to collapse
Staunty: I was in your position yesterday. I'm thinking about making a write up for noobs solely about partitioning, simply because until you do it, the language and way to do it was extremely hard to find. Here is how I did it:
I could not get ADB to work at all, not sure why but I get an error every time I try to mount or find my device in console, I've heard of ADB problems on windows 7 and even tried a fix to no avail. Realizing ADB was out of the question, I needed to format the SD card outside the phone. I did not have a card reader, so I drove to best buy and for 19.99 purchased a card reader for my pc. It is by rocketfish and comes in a red box in case you go my route. Thankfully it reads micro SD cards WITHOUT a converter to normal SD. If you have all the materials, time to format the card.
Because Android needs a linux-swap and EXT2 or EXT3 partition for what we're doing, windows can't format the card correctly without using ADB. The workaround is to use linux. You don't have to install linux, you can just burn it onto a CD and boot up with it for a 1 time use to format your SD card. If you don't have a CD burner like myself, you can use a USB drive. I went to www.linuxmint.com and downloaded linux mint for free. Mint is like ubuntu but extremely user friendly. It comes with Gparted, the partition editor. In mint, there is a search bar right in the program menu. Search for partition or Gparted and it will show up. Put your card into the card reader. Select your SD card from the drop down window in Gparted. Look for the "device" with 3.69gb of available space, thats your 4GB SD card. Right click each partition and select "unmount". Once your entire SD card is "unallocated" you're ready to divide up your memory card into partitions.
You stated that you have a 4 gig card. I'm assuming it's the stock class2 mytouch card. Thats the card I'm using as well, so I'll give you my numbers. Just an FYI, I decided to use a very large EXT3 and very large swap as I've heard not having enough swap can lead to lag so I decided to be overly generous, you can change these numbers to whatever you want. I also left some space unpartitioned just to be on the safe side since this was my first time partitioning the card.
Right click on Unallocated and select new at the top. We're going to do your FAT32 first. In the middle box on the left that says "Size" type 2900, I believe it asks you for the # in mb. If it asks for GB just type 2.9. On the lower right hand side, select FAT32 and then less ok. The second partition we'll make is an EXT3 partition. Most other methods can't directly create an EXT3 partition, however Gparted does let us do this. Lets take advantage while we can. Right click again on unallocated and fill in 575 for size. This time select EXT3 from the drop down menu. Hit create. Last and certainly not least, our Linux-Swap partition. Create a new partition again, fill in 225 for the size and select Linux-Swap for the partition. After you've created all 3, click the green check mark above the white partitioning area. You will get a message that all data on the card will be lost. Click yes. Wait for the computer to create the new partitions on the card and then viola, you've partitioned your SD card without ADB. I apologize if any of this seemed long winded or condescending, however I simply wanted to write out every possible step because I know at one point I really wanted to see something as step by step as this.
Mr. Nefarious said:
Staunty: I was in your position yesterday. I'm thinking about making a write up for noobs solely about partitioning, simply because until you do it, the language and way to do it was extremely hard to find. Here is how I did it:
I could not get ADB to work at all, not sure why but I get an error every time I try to mount or find my device in console, I've heard of ADB problems on windows 7 and even tried a fix to no avail. Realizing ADB was out of the question, I needed to format the SD card outside the phone. I did not have a card reader, so I drove to best buy and for 19.99 purchased a card reader for my pc. It is by rocketfish and comes in a red box in case you go my route. Thankfully it reads micro SD cards WITHOUT a converter to normal SD. If you have all the materials, time to format the card.
Because Android needs a linux-swap and EXT2 or EXT3 partition for what we're doing, windows can't format the card correctly without using ADB. The workaround is to use linux. You don't have to install linux, you can just burn it onto a CD and boot up with it for a 1 time use to format your SD card. If you don't have a CD burner like myself, you can use a USB drive. I went to www.linuxmint.com and downloaded linux mint for free. Mint is like ubuntu but extremely user friendly. It comes with Gparted, the partition editor. In mint, there is a search bar right in the program menu. Search for partition or Gparted and it will show up. Put your card into the card reader. Select your SD card from the drop down window in Gparted. Look for the "device" with 3.69gb of available space, thats your 4GB SD card. Right click each partition and select "unmount". Once your entire SD card is "unallocated" you're ready to divide up your memory card into partitions.
You stated that you have a 4 gig card. I'm assuming it's the stock class2 mytouch card. Thats the card I'm using as well, so I'll give you my numbers. Just an FYI, I decided to use a very large EXT3 and very large swap as I've heard not having enough swap can lead to lag so I decided to be overly generous, you can change these numbers to whatever you want. I also left some space unpartitioned just to be on the safe side since this was my first time partitioning the card.
Right click on Unallocated and select new at the top. We're going to do your FAT32 first. In the middle box on the left that says "Size" type 2900, I believe it asks you for the # in mb. If it asks for GB just type 2.9. On the lower right hand side, select FAT32 and then less ok. The second partition we'll make is an EXT3 partition. Most other methods can't directly create an EXT3 partition, however Gparted does let us do this. Lets take advantage while we can. Right click again on unallocated and fill in 575 for size. This time select EXT3 from the drop down menu. Hit create. Last and certainly not least, our Linux-Swap partition. Create a new partition again, fill in 225 for the size and select Linux-Swap for the partition. After you've created all 3, click the green check mark above the white partitioning area. You will get a message that all data on the card will be lost. Click yes. Wait for the computer to create the new partitions on the card and then viola, you've partitioned your SD card without ADB. I apologize if any of this seemed long winded or condescending, however I simply wanted to write out every possible step because I know at one point I really wanted to see something as step by step as this.
Click to expand...
Click to collapse
Dude, thanks for the detailed info. However, I finally figured out what was happening with the SDK...Maybe you're having a similar issue. First of all, I went with the 2.0 initially but was having some sort of error that I found others to be having. I scrapped the 2.0 and went with the 1.6 SDK. Dropped it on C:\ and renamed it (rename it whatever you want). That solved issue 1 and my command prompt found the right path. Issue 2 was needing to delete any and all HTC drivers in my system. After I did that, I plugged the phone back in an reinstalled the drivers that popped up with plug and play. Problems solved. Only problem I now have is remembering which ROM for which I was doing all this. Seriously, I've looked at and read about so many that they all sound the same. We should collaborate on this noob tutorial, I knew nothing whatsoever about 2 days ago and have spent countless hours figuring out stuff that is relatively simple in hindsight.
or try amon ra's preview of his new recovery, it has dynamic partitioning http://bit.ly/aXCh8
I am in the same boat. I have used Gpartition Live CD, Amon RA's Recovery 1.2.3. After partitioning the SD (4GB Class 4), when I put it in Windows XP via a SD adapter, it says the SD is not formated. The same happens when I use my phone. They phone sees the SD memory as "Blank Media".
Anyone have any ideas what I am getting wrong?
themetatron said:
or try amon ra's preview of his new recovery, it has dynamic partitioning http://bit.ly/aXCh8
Click to expand...
Click to collapse
That's what I use and it works best for me.

Partitions, appstosd, MoDaCo

I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
2) What is each used for?
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Also, what's taking up all my internal phone space? If the update.zip moved apps to the SD card, why do I only have 50 MB left of internal space?
jonnythan said:
I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
2) What is each used for?
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Click to expand...
Click to collapse
32 mb swap, 500mb ext2 rest fat32
swap is for linux swap if its used in the rom, ext2 is for your apps, and fat32 is for your storage
yes it loads all of your /data/app and /data/app-private apps on your sd card, your /system/app stays there
you can do a df -h under adb to see your free space
jonnythan said:
I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
Click to expand...
Click to collapse
I believe it makes a 32MB Swap partiton, a 500 MB Ext2 partition and the rest fat32.
jonnythan said:
2) What is each used for?
Click to expand...
Click to collapse
The Fat32 is normal files like music, pictures, etc. The ext2 is used for apps2sd. Don't worry, 500MB is more than enough for this. The swap is used for bakcground applications so they run better without slowing the phone down as much.
jonnythan said:
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
Click to expand...
Click to collapse
The Fat32 it shouldnt do anything. Obviously you will have less space because the other partitions are taking some of it's space. It loads the apps onto your ext2 partition but not all of them. System apps such as the calculator, browser, phone, etc stay on the system partition because it's faster.
jonnythan said:
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Click to expand...
Click to collapse
Do you have Windows, Linux or Mac. I don't know about Mac but I know Linux can view ext partitions natively (obviously, it's the native filesystem). For Windows you might be able to load the disk management application but if that doesnt show it you need a partitioning application or any other application that can read ext partitions off an sdcard. Don't know any off hand except paragon partitioning manager 9.0 (8.0 never seemed to work with my sd cards)
jonnythan said:
Also, what's taking up all my internal phone space? If the update.zip moved apps to the SD card, why do I only have 50 MB left of internal space?
Click to expand...
Click to collapse
See the above explanation.
nelson8403 said:
32 mb swap, 500mb ext2 rest fat32
swap is for linux swap if its used in the rom, ext2 is for your apps, and fat32 is for your storage
yes it loads all of your /data/app and /data/app-private apps on your sd card, your /system/app stays there
you can do a df -h under adb to see your free space
Click to expand...
Click to collapse
That answers my questions, thank you.
I found another though. I unmounted my SD card via Settings to see if the apps would fail to work in an effort to try to figure out if they were actually installed there. Predictably, they failed to work, but the system didn't pick the card back up after I reinserted it. So I rebooted the phone with the SD card in.
Then everything died. The apps didn't come back, but the phone still had them listed and tried to launch them, resulting in force-closes. An ext2 repair didn't fix it, so I just went back to my last Nandroid backup and reapplied update.zip.
I learned that this is a Bad Thing to do, but I'm wondering if this was a fluke or is it generally inadvisable to unmount the SD card for this reason?
im a noob to the whole android thing.but how do i partition the sd card and create ext2?????
jonnythan said:
I learned that this is a Bad Thing to do, but I'm wondering if this was a fluke or is it generally inadvisable to unmount the SD card for this reason?
Click to expand...
Click to collapse
Since this is a simple symlink, if you reboot the phone without the target of the symlink being there, and the phone tries to use it...
The results are left as an exercise for the reader.
Now for anyone who asks why it isn't smart enough not to break... that's like asking why your car doesn't run if you take half the spak plugs out.
posguy99 said:
Since this is a simple symlink, if you reboot the phone without the target of the symlink being there, and the phone tries to use it...
The results are left as an exercise for the reader.
Now for anyone who asks why it isn't smart enough not to break... that's like asking why your car doesn't run if you take half the spak plugs out.
Click to expand...
Click to collapse
Ah, but I'm asking why it still doesn't work once you put the spark plugs back in
It's not a big deal, I certainly learned not to do it.
jonnythan said:
Ah, but I'm asking why it still doesn't work once you put the spark plugs back in
It's not a big deal, I certainly learned not to do it.
Click to expand...
Click to collapse
Because booting the phone with it thinking the app was installed but it not able to find it trashed other data structures.
BTW, people trying to do stuff with the SD card removed after putting the apps on the SD card is probably one of the main reasons it currently is root only.
The OS needs to be modified to handle removable app storage gracefully (not something that happens in a standard phone.)
So should you format the card prior to flashing Modaco's ROM so the system knows to install all the apps to the ex2 partition. Or can you format the card AFTER you have already flashed Modaco's ROM and still have the apps automatically install on ext2 partition? I only ask cuz I formatted after flashing the ROM and wanna make sure it's installing it on the ext2.
I formatted mine afterwards and it moved all my apps over to the sd card automatically.

[Q] Xperia J swap internal/SD card

Yesterday I root my Sony Xperia J.. I want to swap Internal with SD card(8gb), but I don`t know how..
I want to install apps to SD card..
Sony Xperia J
Jelly Bean 4.1.2
Takisamtija said:
Yesterday I root my Sony Xperia J.. I want to swap Internal with SD card(8gb), but I don`t know how..
I want to install apps to SD card..
Sony Xperia J
Jelly Bean 4.1.2
Click to expand...
Click to collapse
Although this is possible, and many noobs here will do it, I cannot advise doing this as the risks of hard-bricking your phone are very high.
For example:
You do the swap and then factory reset = Hard Brick
or
You do the swap and then Wipe Internal Data = Hard Brick.
Either way it's not worth it, even with a class 10 sdcard you'll notice how much slower your phone becomes.
CtrlAltDelIrl said:
Although this is possible, and many noobs here will do it, I cannot advise doing this as the risks of hard-bricking your phone are very high.
For example:
You do the swap and then factory reset = Hard Brick
or
You do the swap and then Wipe Internal Data = Hard Brick.
Either way it's not worth it, even with a class 10 sdcard you'll notice how much slower your phone becomes.
Click to expand...
Click to collapse
I couldn't agree more. A friend of mine has done it with his Ace. Hard bricked.
What I did( Ihave a 32 GB SD card, so yeah), was shrinking my Fat32 partition, and making an ext2 partiton of 2,5 gb. With the help of Link2SD you can move 99% of apps to this partition. I have 110 apps, and my internal memory has 1,2 GB left, and my phone memory 551 mb.
No performance loss, and even a little (may be placebo, I don't know) improvement.
Partitioning your SD card may decrease the the life time, but I find it very effective and handy.
Have a nice day!
MatsPunt said:
I couldn't agree more. A friend of mine has done it with his Ace. Hard bricked.
What I did( Ihave a 32 GB SD card, so yeah), was shrinking my Fat32 partition, and making an ext2 partiton of 2,5 gb. With the help of Link2SD you can move 99% of apps to this partition. I have 110 apps, and my internal memory has 1,2 GB left, and my phone memory 551 mb.
No performance loss, and even a little (may be placebo, I don't know) improvement.
Partitioning your SD card may decrease the the life time, but I find it very effective and handy.
Have a nice day!
Click to expand...
Click to collapse
hello there sir, I'm interested in your way of doing this, so would you explain it in a more detailed way? I don't really get it...
what do you mean by 'shrinking my Fat32 partition' ?
and what do you mean by 'making an ext2 partition of 2,5 gb' ?
you also stated that your sd card is 32 gb, is this your internal SD card or external SD card?
what's the difference between link2SD from the other apps such as app2sd? and fyi i'm using titanium backup (not pro) and it CANNOT move the apps to my micro sd card (ext sd card)
thank you~
eryannda said:
hello there sir, I'm interested in your way of doing this, so would you explain it in a more detailed way? I don't really get it...
what do you mean by 'shrinking my Fat32 partition' ?
and what do you mean by 'making an ext2 partition of 2,5 gb' ?
you also stated that your sd card is 32 gb, is this your internal SD card or external SD card?
what's the difference between link2SD from the other apps such as app2sd? and fyi i'm using titanium backup (not pro) and it CANNOT move the apps to my micro sd card (ext sd card)
thank you~
Click to expand...
Click to collapse
We're talking about the external SD here.
Storage is accessed by partitions. See a partition as a little chunk of code that defines how the storage is used.
A normal micro SD without any modifications will have 1 FAT 32 partition.
What you could do is using a tool like Mini Tool Partition Wizard(Windows only), to shrink the existing FAT32 partition, so there is unallocated space left. Every size is possible, but the unallocated space has to be smaller than the FAT 32 partition. Please note that a Class 10 SD is preferred, or at least Class 6. Lower classes can't handle the app loading very well, and the apps will sooner start to lag.
Now you can create a new partition, since there is unallocated space left. You will use Ext2, Ext3 or Ext4, it doesn't really matter, but Ext2 works 99℅ of the time, so use that one. These are all part of the Linux file system, as your phone memory is. Your micro SD will act like an extra phone memory. But it will be slower, since flash will always be faster than the maximum R/W speed of a SD card.
(Root access is required)
You now have 2 partitions, one FAT 32 and one Ext.... Insert the micro SD card in the phone and download Link2SD from the Play Store. Open it and it will prompt you that it has detected a second partition. Grabt Superuser rights. Select the kind, and let it generate the needed information. Reboot and you're good to go! You can now move any user app to the external SD.
(Way more extensive tutorials are available. Just Google: how to use link2sd? I'm on my phone now, so sorry)
Oh, and the difference between apps like App2SD and Link2SD, is that with the former you can only move apps to the internal SD, and not the external, micro SD. The latter does give you this option, but root is required.
Hope this helps! Feel free to ask any question!
Sent from my C1605 using XDA Premium 4 mobile app
MatsPunt said:
We're talking about the external SD here.
Storage is accessed by partitions. See a partition as a little chunk of code that defines how the storage is used.
A normal micro SD without any modifications will have 1 FAT 32 partition.
What you could do is using a tool like Mini Tool Partition Wizard(Windows only), to shrink the existing FAT32 partition, so there is unallocated space left. Every size is possible, but the unallocated space has to be smaller than the FAT 32 partition. Please note that a Class 10 SD is preferred, or at least Class 6. Lower classes can't handle the app loading very well, and the apps will sooner start to lag.
Now you can create a new partition, since there is unallocated space left. You will use Ext2, Ext3 or Ext4, it doesn't really matter, but Ext2 works 99℅ of the time, so use that one. These are all part of the Linux file system, as your phone memory is. Your micro SD will act like an extra phone memory. But it will be slower, since flash will always be faster than the maximum R/W speed of a SD card.
(Root access is required)
You now have 2 partitions, one FAT 32 and one Ext.... Insert the micro SD card in the phone and download Link2SD from the Play Store. Open it and it will prompt you that it has detected a second partition. Grabt Superuser rights. Select the kind, and let it generate the needed information. Reboot and you're good to go! You can now move any user app to the external SD.
(Way more extensive tutorials are available. Just Google: how to use link2sd? I'm on my phone now, so sorry)
Oh, and the difference between apps like App2SD and Link2SD, is that with the former you can only move apps to the internal SD, and not the external, micro SD. The latter does give you this option, but root is required.
Hope this helps! Feel free to ask any question!
Sent from my C1605 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You now have 2 partitions, one FAT 32 and one Ext....
Click to expand...
Click to collapse
you explained it very well, but sorry sir, i'm still a lil bit confused about partitioning the sd card.. what do you mean by 'Ext' ? because the only formats i know are ntfs, fat32, and exFAT..
As the others above me said, it's not advised. But if you really want to swap the memories check this post:
http://forum.xda-developers.com/xpe...eria-sd-card-fix-remount-sd-internal-t1943643
eryannda said:
you explained it very well, but sorry sir, i'm still a lil bit confused about partitioning the sd card.. what do you mean by 'Ext' ? because the only formats i know are ntfs, fat32, and exFAT..
Click to expand...
Click to collapse
With Ext I mean Ext2, Ext3 or Ext4. These are Linux file systems. Since Android is based on Linux, Android recognizes this Et2/3/4 partition as a storage where it can write data. A little help from link2SD is needed, but it works fine. If you're still interested, follow this tutorial: http://forum.xda-developers.com/showthread.php?t=2142844
It's quite easy to follow.
MatsPunt said:
With Ext I mean Ext2, Ext3 or Ext4. These are Linux file systems. Since Android is based on Linux, Android recognizes this Et2/3/4 partition as a storage where it can write data. A little help from link2SD is needed, but it works fine. If you're still interested, follow this tutorial: http://forum.xda-developers.com/showthread.php?t=2142844
It's quite easy to follow.
Click to expand...
Click to collapse
Hi,
You guys saying about hard brick possibilities. I had swapped my External with Internal. Now after seeing your posts I am thinking of reverting back to normal. Would it cause any issues ? I am not sure how much it would improve the performance though. I am quite sure the lag I have sometime is because of higher RAM usage [I have more than 120 apps installed including games such as PES (more than 150 MB) utilizing 8 GB external as Internal] . I am on Xperia Miro
about my rooted xperia j st26i
Paduretu Ionut said:
As the others above me said, it's not advised. But if you really want to swap the memories check this post:
http://forum.xda-developers.com/xpe...eria-sd-card-fix-remount-sd-internal-t1943643
Click to expand...
Click to collapse
hi, im not that good on the sony flashtool and i would like to know why my xperia j 11.0.A.3.28 gets rooted when i click on 'My ST26/Root/Force Emulator'. i dont need to download any rooting files it just roots with Force Emulator...
danieltaylorlevi1996 said:
hi, im not that good on the sony flashtool and i would like to know why my xperia j 11.0.A.3.28 gets rooted when i click on 'My ST26/Root/Force Emulator'. i dont need to download any rooting files it just roots with Force Emulator...
Click to expand...
Click to collapse
If you see an app like Superuser or SuperSU installed, it means your phone is rooted...Download any root explorer app and copy the vold.fstab file (in that thread ) in root/system/etc then reboot.
Hi Guys I Swapped My Xperia J's External Memory With Internal & Now i want to revert back to normal.
Will it work if i flash stock ftf?
Thanks in advance
manthan29jamdagni said:
Hi Guys I Swapped My Xperia J's External Memory With Internal & Now i want to revert back to normal.
Will it work if i flash stock ftf?
Thanks in advance
Click to expand...
Click to collapse
First, swap them as they were than flash stock ftf. It's highly possible to hard brick your J if you don't swap them back.
Good Luck.
Xperia M2 D2303 on K.K. 4.4.4
Dzepar said:
First, swap them as they were than flash stock ftf. It's highly possible to hard brick your J if you don't swap them back.
Good Luck.
Xperia M2 D2303 on K.K. 4.4.4
Click to expand...
Click to collapse
Thanks for replying...Appreciate it ...but the problem is that someone else swapped the memories before...& I am not aware of the method by which he did that...nor I know about swapping them back..
I was hoping for some help on swapping back the memory to their original state..
manthan29jamdagni said:
Thanks for replying...Appreciate it ...but the problem is that someone else swapped the memories before...& I am not aware of the method by which he did that...nor I know about swapping them back..
I was hoping for some help on swapping back the memory to their original state..
Click to expand...
Click to collapse
I never did this, but look Here you'll find answer.
Good Luck.

Categories

Resources