Thursday, April 7, 2011

Formatting your microSD card and make partitions including Swap

WARNING!!! this will reformat you entire microSD card!! So, take backup before proceeding with the steps.

You can use the recovery console by pressing Home + Power when powering up your G1.

If you have “Terminal Emulator” installed , you can also use that. We will make 32 MB swap here in these tutorial.

Example for 8GB card (this example plays it safe and will leave a small amount leftover regardless of the 8GB card)

Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700 7732

#print (to verify we have the 3 partitions)

Example for my 4GB card

#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964

Example for a 2GB card playing it safe
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 1200
mkpartfs primary ext2 1200 1700
mkpartfs primary linux-swap 1700-1732

“End?” you need to place the last value for the linux swap eg.3964 for my 4GB card

#print (to verify we have the 3 partitions)

Next we need to “quit” parted and upgrade our ext2 partition to ext3

#upgrade_fs

Swap value is set to 30 currently, you can change this by modifying the “echo” value for swappiness using swapper application available in the Market for free.

Soon will publish more on G1. icon smile Formatting your microSD card and make partitions including Swap Hold tight till then…..

No related posts.

This entry was posted on September 18, 2009, 10:26 pm and is filed under My G1 - Android. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.



View the original article here



Peliculas Online

No comments:

Post a Comment