News

August 5, 2009

Using Cyanogen’s Recovery Tools to Partition a 16GB SD Card for Apps2SD

More articles by »
Written by: Allen Kiehl

After waiting and waiting I decided it was time to setup and Ext3 partition and give Apps2SD a try. I have a 16GB Class 4 SD card and had read that using a Class 4 card would be slower but it would work. I was previously under the impression that using a Class 4 SD card could cause problems, but that seems to have been old news (or news that was invalid).  So I went ahead and decided to try it out and in the process wrote this guide.

Please read this COMPLETE GUIDE before using any of the commands

It ‘s much easier today using the recovery tools provided in Cyanogen’s latest recovery image available at the XDA forums or here in our downloads section (v1.4 is the version I was using for this guide).

The rrecovery image includes the following tools to help you manage your partitions:

PARTED:
Parted allows you to manage your partitions so you can easily create and delete partitions without having to use Linux or other complicated methods.

MKE2FS:
mke2fs is used to create an ext2/ext3 filesystem.

UPGRADE_FS:
Upgrade_fs is used to upgrade your existing Ext partition to Ext3

The hardest part is working out what parameters should be used in parted to create your partitions.  I hunted around and found lots of information on the number of blocks to use on an 8GB SD card but I wouldn’t find anything for a 16GB.  It appeared that it wasn’t as simple as just doubling the block sizes for an 8GB SD card so trial and error was required.

Before you do any partition work, I recommend that you backup anything you have alternatively is a good idea to use a new SD card so you know if anything goes wrong you can just take out the bad card and insert your old card and be back up and working again.

The number I have used leave room for linux-swap partition.

Even if you don’t use this right now, I was informed it would be a good to plan out my partition sizing with this in mind so I left 128MB at the end of the SD Card.

So the first you have to do is boot your phone into Cyanogen’s Recovery Tools using the Home and Powerbuttons and then select the “go to console” option..

I can’t say for sure that these parameters are correct for every 16GB card (maybe someone can confirm and explain this better) but the commands and parameters I used where as follows:

parted /dev/block/mmcblk0
print

This will give you a list of any existing partitions on your SD Card.  Each partition is numbered and you to use the

rm #

command to remove each partition.  Where # is the partition number shown on the list from the print command

mkpartfs primary fat32 0 15292
mkpartfs primary ext2 15292 15804

If you want the linux-swap partition, run the following command, otherwise just skip this partition creation and the space will still be there if you want to add in the future.

mkpartfs primary linux-swap 15804 15932

quit
upgrade_fs
recovery

I’m not an Android OS /  linux guru but after much research in XDA and other place on the Internet, these steps are what worked for me.

I cannot guarantee that this guide will work for you and I am not responsible for any issues that may arise from following this guide.
** TRY THIS AT YOUR OWN RISK **

To find out more about Cyanogen’s Recovery image, head over to Cyangen’s Recovery Image XDA thread.







About the Author

Allen Kiehl
I'm a technology enthusiast, and I love to spend my time designing and developing websites. I have been into web design for about 5 years now. I started my smart phone venture with the g1, and since then it has grown into a passion. I currently rock a myTouch 4G from T-Mobile. I love to work hard and play hard. Live life to the fullest, as you only have one of them.





 
 

 
ics

[APW Theme] Ice Cream Sandwich with a little Cherry Sauce

Now I have already told you guys about Android Pro Widgets new Ice Cream Sandwich themes, Modern ICS and Dark Modern ICS, which a lot of you were quite interested in. Well I kept a little secret from you. There is yet another...
by David Pena
0

 
 
google-wallet

Google Wallet PIN Gets Cracked on Rooted Devices

Looks like Google Wallet running on any rooted Android device is getting a little compromised. The reason why this only appeals to rooted devices is because the security PIN is stored on the device and not in an NFC element. No...
by David Pena
0

 
 
610px-Verizon-Wireless-Logo_svg

Verizon Brings Back Double Data Deal Starting Friday

Big Red is going to be somewhat generous again, by bringing back the double-data plan they had back in November. Customers signing up for a new 4G plan will get double the data they pay for, but it is only be available for new ...
by David Pena
0

 

 
google-screenwise_device_screenshot-4f328ac-intro-thumb-640xauto-30090

Google Paying Users for all of their Web Usage

We all know that Google can keep track of what their users are looking at via the web, services, and Android devices. As much as we all hate that fact, it is what comes with all this data that we can retrieve in seconds. Google...
by David Pena
1

 
 
Temple Run

Androids Temple Run still on its way, just not tomorrow like many Though

We see our fair share of rumors, speculations, hopes and dreams in the Android world. Be it the launch date of a new phone, ICS update or the launch of a new application or game. We hope that our deductions turn out to be true,...
by Stormy Beach
0

 
 
White Gnex

White Unlocked Galaxy Nexus hits Negri, pre-order Now

For those of you with some money to burn and who like to be ahead of the curve, then this is for you. The prized white version of the Samsung Galaxy Nexus is available for pre-order via Negri.com. According to ACS, the white Gn...
by Stormy Beach
0

 




0 Comments


Be the first to comment!


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>