UNpartition my SD card: how do i do it? - G1 Q&A, Help & Troubleshooting

hi
i partitioned my sd a while ago to get apps to sd (8G right down the middle) but now i want to format the ENTIRE sd card but my copm wont recognize the EXT part bc it will only show the fat32 portion; when i try to format that, it only clears the 4g not the full SD. how can i get the two parts back together to 8G?

Read this thread http://forum.xda-developers.com/showthread.php?t=534714 and stop after the rm 1 rm 2 part

CharonTheGreat said:
hi
i partitioned my sd a while ago to get apps to sd (8G right down the middle) but now i want to format the ENTIRE sd card but my copm wont recognize the EXT part bc it will only show the fat32 portion; when i try to format that, it only clears the 4g not the full SD. how can i get the two parts back together to 8G?
Click to expand...
Click to collapse
Your computer (windows I'm assuming) will never show ext partitions because it can't read them, they are linux filesystem partitions. Format the card in your phone, that should do it. Btw, a 4GB ext partition, are you nuts?!! Who has that many apps? and more to the point I dont think the netire market is 4GB big!!! All roms have issues with ext bigger than 1.5GB.

CharonTheGreat said:
hi
i partitioned my sd a while ago to get apps to sd (8G right down the middle) but now i want to format the ENTIRE sd card but my copm wont recognize the EXT part bc it will only show the fat32 portion; when i try to format that, it only clears the 4g not the full SD. how can i get the two parts back together to 8G?
Click to expand...
Click to collapse
Easiest way is to do so on your mobile phone. However I've noticed that in newer ROMs the option is greyed out. If that is the case for you, you can still format the SD card under windows using Paragon Partition Manager. I'm not 100% sure if you can use a low level formatter like the HP USB Format tool to do the job too, as its been a while since I've last cleared out such partitions.

Ok here you go do the following
reboot into recovery
enter console
press enter
type the following
Code:
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
rm 3 (only if you have a swap partition)
mkpartfs primary fat32 0 3999
999 for 1GB
1999 for 2GB
3999 for 4GB
You get it... lol

Easiest way for windows is to download sdcard formatter
http://www.sdcard.org/consumers/formatter/eula/

Option 1.
Plug your phone in and go to My Computer, right click w.e drive your SD is on and click "Format"
Option2.
On your phone, rebooted into recovery type in.
su
parted /dev/block/mmcblk0
print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1 (removes fat32)
rm 2 (removes ext2/3)
rm 3 (removes swap partition)
quit
Click to expand...
Click to collapse
And follow other instructions if you wish to recreate them.

tinyaznboi said:
Option 1.
Plug your phone in and go to My Computer, right click w.e drive your SD is on and click "Format"
Click to expand...
Click to collapse
Windows will only the fat32 partition...

Edit: I'll just buy a new higher class sd card.

if u have Ra's latest recovery just go to partition and set ext to 0 and swap to 0 and it should make everything fat32

acejoker25000 said:
if u have Ra's latest recovery just go to partition and set ext to 0 and swap to 0 and it should make everything fat32
Click to expand...
Click to collapse
Thanks so much! I had the same problem, and this definitely helped.

CharonTheGreat said:
hi
i partitioned my sd a while ago to get apps to sd (8G right down the middle) but now i want to format the ENTIRE sd card but my copm wont recognize the EXT part bc it will only show the fat32 portion; when i try to format that, it only clears the 4g not the full SD. how can i get the two parts back together to 8G?
Click to expand...
Click to collapse
an easy way is in recovery mode to go to partition, then 0, 0, then rest.

acejoker25000 said:
if u have Ra's latest recovery just go to partition and set ext to 0 and swap to 0 and it should make everything fat32
Click to expand...
Click to collapse
hiddengopher said:
an easy way is in recovery mode to go to partition, then 0, 0, then rest.
Click to expand...
Click to collapse
+1 to this method!

If you want to do it from your windows machine, it's simple.
Right Click My Computer > Manage > Disk Management > Find your SD card in the list > It will show the ext partition, but for obvious reasons you can't navigate it > delete all the partitions > right click on unallocated space > Create new volume > enter the max, which will be like 7.9gb or something > Presto, you have your full sd card back.

tehseano said:
If you want to do it from your windows machine, it's simple.
Right Click My Computer > Manage > Disk Management > Find your SD card in the list > It will show the ext partition, but for obvious reasons you can't navigate it > delete all the partitions > right click on unallocated space > Create new volume > enter the max, which will be like 7.9gb or something > Presto, you have your full sd card back.
Click to expand...
Click to collapse
thanks alot. this is by far the easiest method. to be honest, i dont know what is the adb all about. everytime i see those commands i dont know what to do..

tinyaznboi said:
Option 1.
Plug your phone in and go to My Computer, right click w.e drive your SD is on and click "Format"
Option2.
On your phone, rebooted into recovery type in.
Code:
su
parted /dev/block/mmcblk0
print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1 (removes fat32)
rm 2 (removes ext2/3)
rm 3 (removes swap partition)
quit
And follow other instructions if you wish to recreate them.
Click to expand...
Click to collapse
That's great ... if the parted and print commands worked for me or I could actually access the console from the recovery menu ... UGH!

I used MiniTool Partition Wizard, I deleted all the partitions and then right clicked on the unallocated space, click create select fat32 make it primary, max out the size bar and click ok.

dood just go back to recovery on your device and go to partition sd card. than choose 0mb swap and 0 mb ext!! when its all done you will have your full 8g back
personally every other post seems so much more difficult than what i just said... lol i've done it many times i know it works man simple as that! just re partition everything to 0 lol

If i set it all do 0,0 do I have to wipe my card first? my desktop is an older computer with not that much memory to hold everything

no when you partition your sd card it formats it (wipes everything) so if you want to keep anything i suggest saving before you un-partition lol

Related

Reset SD card?

How do you reset the SD card after you partioned it to scratch?
blackfire1 said:
How do you reset the SD card after you partioned it to scratch?
Click to expand...
Click to collapse
what do you mean by reset...
blackfire1 said:
How do you reset the SD card after you partioned it to scratch?
Click to expand...
Click to collapse
Do you mean format and start again with just fat32? If so put the card in to your phone, then go to Settings > SD Storage (can't remember exactly what it's called) > Unmount > Format and choose yes. Make sure you backup your stuff as that will delete everything.
DO you want to start from a non-formatted sdcard? If so, boot into recovery console (you must have CMrecovery1.3.1) and then type:
parted /dev/block/mmcblk0
rm 1
rm 2 <if existent>
rm 3 <if existent>

Partition and A2SD setup

I have been trying to set up A2SD for a while now but i cant set up a partition on my sd card.
So far i have got adb to work, but when i connect my g1 to my computer (and mount it) it automatically disconnects when i go into the disk management section.
(my sd card is an 8 gig and trying to set it up on CyanogenMod)
shockaj said:
I have been trying to set up A2SD for a while now but i cant set up a partition on my sd card.
So far i have got adb to work, but when i connect my g1 to my computer (and mount it) it automatically disconnects when i go into the disk management section.
(my sd card is an 8 gig and trying to set it up on CyanogenMod)
Click to expand...
Click to collapse
you can't format your card by mounting it to windows....
if you don't have a card reader, read this tutorial
http://forum.xda-developers.com/showthread.php?t=534714
it has instructions for a swap setup as well but modify it to not have one if you dont want it
Or you can go to the link in my sig. Its a different way of setting up your partitions through a linux live cd.
recovery console (i assume you have 7948 mb, you can verify using "print" after typing "parted /dev/block/mmcblk0) don't type stuff in < >
parted /dev/block/mmcblk0
rm 1 <removes fat32 partition, might want to backup data on this>
rm 2 <removes ext partition, backup apps if you want to (adb pull)>
rm 3 <removes 3rd partition, if existent>
mkpartfs primary fat32 0 7436
mkpartfs primary ext2 7436 7948
quit
upgrade_fs <converts ext2 - ext3>
reboot recovery
flash ROM if you want to...
thanks everyone i was looking for a guide just like these!
your help is much apperciated!

Have A2SD, SD card fried but apps still work. I'm confused!

Okay so I'm pretty sure my SD card got fried (or damaged) last night.
The notification of "Damaged SD card" kept on showing up.
I tried running the repair file systems from CM recovery 1.4, all variations of rebooting, powering down, removing the SD card and all that to help 'fix' my problem.
I also went into settings to see if i have the option to mount and format the SD, but shows unavailable. Also SD secondary is unavailable as well.
So for sure my SD card is fried..... i think lol.
The thing that I am confused about is that I have apps2sd and try to use the apps that I know are installed on my SD card, I'm still able to access and use them, even though my SD card is damaged. I tried rebooting without the SD card inserted and I get FC's galore.
So does that mean my FAT32 partition is damaged and not my EXT partition?
How do I go about to remedy this?
Do I go ahead and click the on the notification to format my SD card?
Then it'll format my FAT32 partition and not my EXT partition?
Or is that totally wrong?
Confused and in need of some guidance. Thanks.
mrcrs said:
So does that mean my FAT32 partition is damaged and not my EXT partition?
.
Click to expand...
Click to collapse
Spot on
Format your card. If you use Linux, you can back up your apps, but you'll have to format and then re-install the EXT2 partition.
Basically, the FAT32 partition got corrupted. Anytime you actually see anything about the SD card on the phone itself, it's always the FAT32 partition.
hey there i had that same problem all i did was resize my fat32 partition
i used GNU parted so go to console and type
Code:
parted /dev/block/mmcblk0
now type
Code:
print
this displays the sd cards size in MB write down the max memory
now type
Code:
resize
it will ask what partition number type 1 it will the ask for a start size just type 0 if it errors saying couldnt write 0 but can write 8192B just say yes and for the end size type 1MB less than your max
Example for my 8gig card
Code:
resize
1
8192B
7965 - change to 7964
this will bring up a error saying the filesystem is damaged do you want to fix say yes
then type
Code:
quit
then
Code:
upgrade_fs
and that should do it
forgot to add your going to have to delete your ext partition FIRST! for that type
Code:
rm 2

Problem Partitioning New Card

I just got a Transcend 8gb class 6 microsd card and am having trouble switching to it. When I enter recovery with the new card in and go to partition sd card it partitions much faster than usual. Then, once I go to upgrade ext 2 to ext 3 it says error, please run in console. When I got the card I formatted it using another phone by unmounting and pressing format sd card.
bump, really need some help here getting this to work
hiddengopher said:
bump, really need some help here getting this to work
Click to expand...
Click to collapse
I would try what it says and partition via console...
how would I do that?
hiddengopher said:
how would I do that?
Click to expand...
Click to collapse
If you have a g1, go to recovery. Then go to console and type;
Code:
*Warning, Back up everything on your sdcard first!*
<enter>
parted /dev/block/mmcblk0
rm 3
rm 2
rm 1
mkpartfs primary fat32 0 (total sdcard size - swap size - ext size)
mkpartfs primary ext2 (end of fat 32) (total sdcard size - swap size)
mkapartfs primary linux-swap (end of ext2) (end of sdcard)
print (check if it worked)
quit
reboot recovery
Now go to recovery, choose USB Toggle and put a rom on your sdcard
JAguirre1231 said:
If you have a g1, go to recovery. Then go to console and type;
Code:
*Warning, Back up everything on your sdcard first!*
<enter>
parted /dev/block/mmcblk0
rm 3
rm 2
rm 1
mkpartfs primary fat32 0 (total sdcard size - swap size - ext size)
mkpartfs primary ext2 (end of fat 32) (total sdcard size - swap size)
mkapartfs primary linux-swap (end of ext2) (end of sdcard)
print (check if it worked)
quit
reboot recovery
Now go to recovery, choose USB Toggle and put a rom on your sdcard
Click to expand...
Click to collapse
I appreciate the help, but I'm just going to try reformatting the card and some more things first, I hate consoles even though I've used them quite a bit before.
hiddengopher said:
I appreciate the help, but I'm just going to try reformatting the card and some more things first, I hate consoles even though I've used them quite a bit before.
Click to expand...
Click to collapse
This will repartition the card. You want to reformat. OHHHH, well if you have windows I would try to plug it in via sdcard reader (usb disconnects for some reason), and right click on the drive and choose format. I think in the phone you can also go to Settings>Sdcard & Phone Storage> Format to format the card

Copying ext2 from one SD Card to another

Here's what I am looking to accomplish. I wanted a backup sd card just in the event mine goes bad. I ran a search with 'SD Card" in the title and read each thread. Here are my roadblocks.... I installed DiskInternals Linux Reader and although it let me copy the ext3 partition files to my pc, it does not allow me to copy them back to the new card. Partition Manager does not have a 64-bit free version. Installed Ext2 IFS for Windows, however, it refused to see my sd card when mounted. I used RA-dream-v1.5.2 recovery to do a Bart + Ext Backup and verified the ext-backup.tar is on my sd card. I was going to install ADB, however, it doesn't say it works on Windows 7 64-bit. I have already partitioned the new card and have everything copied to the Fat32 partion. How now is the easiest way for me to get the ext-backup.tar untarred to my ext3 partition on the new sd card? Please don't flame me as I have been reading threads since 10 this morning. Thanks for any help!
The best thing I've found for managing the Linux partitions is a GParted Live disc. Just download and burn to a bootable CD. Pop it in and reboot your machine and you're free to do pretty much whatever you want with your SD card partitions without having to worry about Windows getting in the way.
Appreciate it. Gonna try it now. Thank you!
Well, I did as instructed. However, it failed to "Buffer I/O error on device sr0, logical block 57107. Any other way to accomplish what I am looking for?
any possibility that your USB port is flakey? Any way to try it on a differenty machine? I've got one PC that has USB problems and has been known to give similar kinds of error messages.
It seems fine for everything. It's a brand new Dell, only 2 months old. It was kinda freaky when I booted from the cd...lines of text scrolling on my screen for a couple minutes, lol. I was like...this better not be wiping my pc out Then at the end it just died on that error... The one thing I notice in reading threads...people keep giving console commands to do things on the phone using adb, however, I tried and it says adb isn't found... Here is an example. I can't believe there isn't an easy way to do this with so many folks rooted, etc.
----------------------------
best thing to do is this while in recovery, use adb and type
Code:
adb shell mount /system/sd/
adb pull /system/sd/ system_sd_backup
turn off phone, change sd card, go back into recovery, then
Code:
adb shell mount /system/sd/
adb push system_sd_backup /system/sd/
ok so I have copied an EXT from one card to another and this is how you do it. You need to be using RA recovery. Go into your console from recovery and type "bart -e -s EXT" that will create a back up of your EXT in a folder called "bart" on the fat32 partition of your SD card. Plug your phone into your PC and copy the bart folder to the PC. Now take the SD card out of your phone and put in the one that you want to restore the EXT to in. Copy the bart folder from your PC to your new cards fat32 partition. Make sure you partition the new card so that it has an EXT partition on it and then go into the recovery console and type "bart -e -r" it will ask you to select which back up to restore. Input the number for the back up that says "EXT" and restore it.
Joe333x said:
ok so I have copied an EXT from one card to another and this is how you do it. You need to be using RA recovery. Go into your console from recovery and type "bart -e -s EXT" that will create a back up of your EXT in a folder called "bart" on the fat32 partition of your SD card. Plug your phone into your PC and copy the bart folder to the PC. Now take the SD card out of your phone and put in the one that you want to restore the EXT to in. Copy the bart folder from your PC to your new cards fat32 partition. Make sure you partition the new card so that it has an EXT partition on it and then go into the recovery console and type "bart -e -r" it will ask you to select which back up to restore. Input the number for the back up that says "EXT" and restore it.
Click to expand...
Click to collapse
Worked flawlesly! Your help coupled with a PM I received from 'shadowch31' made this seamless. Thanks so much!
I tried to run the BART backup via console, but I keep getting an error message as following:
Storing app data...
tar: empty archive
Error occurred during storing of app data...
tar operation failed.
Do you have enough space on the /sdcard?
Click to expand...
Click to collapse
I have about 4 times more free space on the SD card then my ext-4 partition is. What could be the problem?

Categories

Resources