|
|||||||
| Register | FAQ | XDA-Portal | XDA-Wiki | Device database | Donate! | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
i needed a way to format my sdcard & install swap capable rom with no card reader...grrr...my gray hair is your gain!
READ THIS FIRST: i wrote a script that automagically partitions the sdcard. get it here. if you still want to partition manually, read on. i did this with a BLANK 8gb card and a fresh rom install, so i had no data to lose..be careful. i take no responsibility for what happens to your phone, sdcard, data, sanity, etc if you follow these instructions. remember to backup your sdcard to your pc before you begin. ![]() technically, you don't need adb for this, as you can partition your card in the recovery console on the g1(...not the terminal app) using the commands in this post. however, once you wipe your sdcard, you may want some way of getting a new rom onto the phone. ;p these instructions apply to both, the windows command prompt and the mac terminal. just about any size and/or class of sdcard will work, but you will want to use a class 6 cause it's wicked fast. 16gb transcend sdcards seem to be giving some people trouble and throwing "ERROR: input/output error during write on /dev/block/mmcblk0" when trying to partition. use them at your own peril. the example in this thread is for MY sdcard...YOUR sdcard will be different and the partition sizes may vary. apply ur information(sdcard size, partition size) when appropriate. following the instructions in this post will erase ALL DATA on the sdcard before creating new partitions. read the ENTIRE post VERY carefully BEFORE proceeding or asking questions... ##### note #1: all typed commands are in bold. adb/console commands in black. windows prompt commands in green. note #2: if all else fails...remove all partitions and create new. this seems to solve 99.9% of non-hardware related problems. note #3: if note #2 fails...try 'mklabel msdos'. see below for more info. ![]() note to ext3/ext4 fs users: parted does NOT support CREATING ext3/ext4 partitions..you MUST create with ext2 and upgrade. also, parted CAN RESIZE ext3 partitions, but with restrictions. check out the table on the features page, of their website. i will NOT go into resizing partitions in this post as there are many variations... ##### need to backup your ext partition? note: these backup commands must be run while phone is booted, not recovery. to backup your ext partition to your current directory: adb pull /system/sd/ %CD%\sdbackup to restore back to sdcard: adb push %CD%\sdbackup /system/sd ##### having issues? please post the following when asking for help: output from the following commands parted /dev/block/mmcblk0 print parted /dev/block/mmcblk0 check 1, if any. parted /dev/block/mmcblk0 check 2, if any. parted /dev/block/mmcblk0 check 3, if any. what rom are you using? what brand/size/class sdcard? can you see fat32 partition on the phone? ie. through andExplorer or similar.. ##### materials: g1 with cm-recovery-1.4 part i - prepare the sdcard: boot your g1 into recovery (using home + power) part ii - create partitions: for a2sd & swap to work properly, partitions MUST be created in this order: fat32, ext2, linux-swap part iii - convert ext2 to ext3/ext4: parted will not create ext3/ext4 partitions...see beginning of post part iv - copy rom to sdcard and install, enable swap: open another win cmd prompt, enter:##### all told, i end up with: ~7.5GB fat32 ~500MB ext4 ~32MB swap cyanogen-v3.6.8.1 running faster than ever! hope this wasn't too painful. btw, you could use a live cd, but i think this is easier and maybe a little more fun! ![]()
__________________
# my new rules for life (courtesy of Ted Nelson): 1. most people are fools if you like good music, check out my other endeavour. #################### # phone=g1 pvt # radio=2.22.19.26I # spl=1.33.2005 # recovery=cyanogen-v1.4 # rom=cyanogen-v4.2.14.1 #################### Genius may have its limitations, but stupidity is not thus handicapped. -Elbert Hubbard Last edited by 51dusty; 14th September 2009 at 12:48 AM.. Reason: 16gb transcend cards |
| Sponsored Links |
|
#2
|
|||
|
|||
|
very nice guide! I will have to test it out later on! Thanks!
.
__________________
Phone :: Rooted MyTouch 3G ADP2 Edition Rom :: Latest CyanogenMod SD Card :: 4GB Class 6 Like My Guide(s)? Donate [GUIDE] The Ultimate Beginner's Guide {Downgrade, Root, Partition, ADB, and MORE!} ADB, Fastboot, and Nandroid Guide for Noobs Want to Run Hero? READ THIS FIRST Partition your Sd Card, Upgrade to Ext3, and Install Apps2SD |
|
#3
|
|||
|
|||
|
does this damage the sd card in anyway? i was running jac hero with swapper and it killed my sd card...but nice tut..might try it
__________________
Phone: T-Mobile G1
Theme: HERO by Nabz ROM Build: Cyanogen's Mod 3.9.7 ![]() Recovery Menu: Cyanogen's Recovery 1.4 Radio: 2.22.19.26I SPL: Haykuro's SPL SDCard: 4GB Class 4 500EXT3 COMPCACHE W/ BACKUP AUTO SWAP |
|
#4
|
|||
|
|||
|
wow... I never knew you were allowed to partition straight from terminal or I wouldn't have wasted a CD on g-parted... =/ nice guide, next time I need to partition, I'll use this method.
jay22are, partitioning the card will not damage it, but if you use it for swap you will always run the risk of corrupting your card, however, I read that someone calculated that it would still take 2yrs for your card to start having problems using swapper. So good luck. |
|
#5
|
|||
|
|||
|
Is their a noticeable increase in speed when running a non hero rom with swapper?
|
|
#6
|
||||
|
||||
|
Quote:
now i have a question... does anyone know if there are speed/reliability differences between using the swapfile(like with the swapper app) and the swap partition? i did the partition b/c that's how i've always configured linux installs and it let's me mount the sdcard w/o issues.
__________________
# my new rules for life (courtesy of Ted Nelson): 1. most people are fools if you like good music, check out my other endeavour. #################### # phone=g1 pvt # radio=2.22.19.26I # spl=1.33.2005 # recovery=cyanogen-v1.4 # rom=cyanogen-v4.2.14.1 #################### Genius may have its limitations, but stupidity is not thus handicapped. -Elbert Hubbard |
|
#7
|
|||
|
|||
|
when i'm trying to do the commands I run into this:
(parted) mkpartfs fat32 0 7584 mkpartfs fat32 0 7584 mkpartfs fat32 0 7584 parted: invalid token: fat32 Partition type? primary/extended? doesn't seem like the guide covers all of the steps. |
|
#8
|
|||
|
|||
|
same problem as engaged...
|
|
#9
|
||||
|
||||
|
Was wondering when someone would write this guide!
Quote:
![]() Quote:
Parted can also resize your existing partitions without erasing data.
__________________
Nexus One - CyanogenMod-5.0-beta4 Google ION - CyanogenMod-4.2.14.1 Twitter: cyanogen Website: http://www.cyanogenmod.com Issue Tracker: http://code.google.com/p/cyanogenmod/issues/list Wiki: http://wiki.cyanogenmod.com GitHub: http://github.com/cyanogen If you like my stuff, buy me a beer! |
|
#10
|
|||
|
|||
|
I'm gonna try when I get home always wanted to resize my partition without apps and data being loss
__________________
White T-Mobile G1 aka Dream Switching Roms Everyday 2.22.19.26I 1.33.205 SPL |
![]() |
| Tags |
| ext4, linux-swap, parted, partition, swap |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|