Reset SD card? - G1 Q&A, Help & Troubleshooting

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>

Related

App2sd with more than one card?

I installed Cyanogen´s last version, and did a ext3 partition in my sd card...
All work fine, and now I have apps in sd card, BUT...when I try to change the card for another one, the phone hangs....
I can´t activate or deactivate sd card like I did when no app2sd before change it, because the option is disabled in settings and secondary sdcard is show with all ext3 space...
I have a lot of multimedia files and need more than one sd card, so... is not possible to change the sd card when you configured the phone for app2sd?
josepz said:
I installed Cyanogen´s last version, and did a ext3 partition in my sd card...
All work fine, and now I have apps in sd card, BUT...when I try to change the card for another one, the phone hangs....
I can´t activate or deactivate sd card like I did when no app2sd before change it, because the option is disabled in settings and secondary sdcard is show with all ext3 space...
I have a lot of multimedia files and need more than one sd card, so... is not possible to change the sd card when you configured the phone for app2sd?
Click to expand...
Click to collapse
because Cm rom automatically move your app, app-private, lost+found & dalvik-cache to your SD and when you boot your phone with a different SD it will definitely freeze because you don't have you dalvik-cache in ext partition
its a chicked & egg problem. Does anybody know if the phone can be connected to a computer when in recovery mode? Because if it can't, the phone needs to be wiped everytime the SD card goes bad or you need to replace it for some reason.
If recovery console can be connected to the computer, then the card can be backed up to a folder on the computer and restored back into another card.
devsk said:
its a chicked & egg problem. Does anybody know if the phone can be connected to a computer when in recovery mode? Because if it can't, the phone needs to be wiped everytime the SD card goes bad or you need to replace it for some reason.
If recovery console can be connected to the computer, then the card can be backed up to a folder on the computer and restored back into another card.
Click to expand...
Click to collapse
You can use adb from JF's or Cyanogen's recovery, or you can mount your card manually through the recovery console:
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
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/
RaiderX303 said:
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/
Click to expand...
Click to collapse
These are fired from the computer, right? NVM. figured that. Thanks for the command. A nudge in the right direction is always very helpful! Now I know, I will not be in dark if my SD card gives up on me.
Similar Problem
I've got a similar problem...
My SD card has corrupted a couple of times, so I've ordered a new one. However, I've now got round to setting up App2sd and all is working well. A few questions about swapping cards around:
Am I right in thinking that I can use the above method (adb shell commands) to copy the relevant info across to the new SD card? Assumably after it's been partitioned.
I was thinking that a Nanodroid backup and restore would do the trick - not so convinced now...?

UNpartition my SD card: how do i do it?

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

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

A new SD card

My HTC Dream currently holds 4.2.5 cyan rom. I would like to change to a higher capacity SD card. Can I just plug in the SD card right away and start using? Is the 4.2.5 cyan rom installed to the phone storage or the SD card?
Do I need to first format the SD card before I use it and if so, format to what version?
are you using apps2sd? If you are not, just plug in the sd card and go. If you are, you are going to need to partition it and reflash more than likely. The rom is stored on the phone, but apps, if you are using apps2sd, is obviously on the sd card, as well as some other things that could prevent it from starting up after the switch.
Yeah using apps2SD, so how should i go about using this new SD card to my phone?
format your new sdcard and copy over all the files from the ext off the old card
Format to which format? Fat32 or?
Erm how do I copy over all the files from the ext off the old card?
Sorry, a noob here.
format the new sd card to have both an FAT32 and EXT3
to backup/restore, you can get an ext viewer such as paragons EXTfs (free) just copy and paste to the new sdcard
B-man007 said:
format the new sd card to have both an FAT32 and EXT3
to backup/restore, you can get an ext viewer such as paragons EXTfs (free) just copy and paste to the new sdcard
Click to expand...
Click to collapse
Sorry, can I check with you, how to format the new sd card to have both an FAT32 and EXT3?
This application paragons EXTfs is a windows application?
Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.
Binary100100 said:
Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.
Click to expand...
Click to collapse
I don't have adb installed, that's why.
bryant_16 said:
I don't have adb installed, that's why.
Click to expand...
Click to collapse
Setup ADB on your computer
Use terminal and copy the directories on your ext
Maybe consider a root file directory application (I suggest SUFBS it's a paid app but very much worth it.)
How do you setup ADB?
Compared to the earlier method, which one will be faster and easier?
Sorry, a noob here.
Look. i'm not trying to be rude but you really need to read links like:
***Informative Links*** - Read before clicking "New Thread"
and if you were to do that instead of using the "noob" excuse (hard to be a noob when you've been using this forum since 2007... but whatever. Not judging.) you would come across this:
[HOW-TO] ADB for Dummies(How-To Learner's Guide)
So... yeah. I'm finished helping for the night. Good luck. No more spoons.
So should I use adb or?
Binary100100 said:
Why don't you just format your new sdcard with the Amon_Ra recovery?
Just thinking out loud here and trying to keep it as simple as possible.
Here is what I would do:
Install Amon_Ra recovery (see my signature for the link)
Go to console and enter "switchrom -s YOURROMNAMEHERE"
Wait until it finishes then reboot back into recovery again.
Mount the SDCARD to your computer and copy the directories (to include the switchrom directory) then unmount the card. No need to unplug it yet from the usb port on the computer.
Remove the old SDCARD and replace it with your new (blank) one.
While in the recovery main menu select "Partition" and then "Partition SD".
This should make your FAT32/ext2 partition.
After that has completed mount the SDCARD to the computer and copy the old sdcard data to your new card (FAT32 partition).
Unmount the SDCARD and go to console again.
Type "switchrom -r YOURROMNAMEHERE"
After it has completed then you should now have your app and app_private directories on your EXT2 parition. If you need to convert ext2 to ext3 or 4 simply select those options from the partition menu in the recovery.
If you have anything else stored to your old sdcard's ext partition just adb pull those files. (adb pull /system/sd \backupdirectory)
I think that is probably the easiest way. Just my opinion/advice.
Click to expand...
Click to collapse
Hi there, is adb absolute necessary here?

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

Categories

Resources