Ooops, added ext 4 partition for new leedroid, - Desire HD Q&A, Help & Troubleshooting

And my SD card is blank. being naive i though it was going to add a partition and not wipe away the old one.
I have my stock rom backed up on the old partition and would like it back, I havent used the SD since and need to know is there a way to restore the partition,
I have done this with a standard hard disk and succeeded but have no idea what to do with an SD card in a phone.
Any help would be much appreciated.

try photorec an try to recover.. hope you have luck and nothing is gone...
http://www.cgsecurity.org/wiki/PhotoRec

Related

partitioning the sd card

I partitioned my sd while in recovery, I did 32mb swap 1024mb ext 2 and the rest fat 32. I then did the ext2 to ext3, then did ext3 to ext4 in the hopes of getting app2sd to work. but now all my nandroid backups are gone as well as everything I had on the card. when I boot into recovery and do msusb it has nothing in it and if i try to do a restore I get an error that says "E:couldn't open directory /sdcard/nandroid." I can still boot into roms if I put it on the root of the sd card, and i can still use root apps and if i use a file explorer in android the stuff on the phones internal rom is still there, so i guess what im trying to ask is what the heck did i do by partitioning the sdcard?
It's weird that you weren't notified, but partitioning the sdcard for app2sd is SUPPOSED to wipe the sdcard. But it IS a bug if it didn't warn you all data was going to be erased.
I had the same issue last night, luckily I figured partitioning "might" lose my data so I backed it up on my comp first.
Well I was right, it totally wiped the card. Glad I made a backup.

[Q] No Partition Options

YO!!
First off I want to say this site is dope and tons of help to match.
This has most likely been asked before, but..uh I dont see/get it.
I have been trying to create partition ext3-ext4 on my sd with absolutly no luck.
I've been readin this for days now and never seem to find a definitive answer.
Everyone says that while in recovery you have option to partion ext3-ext4, but I guess my phone is retarded for some reason. While in recovery(any version and its clockwork btw) if i go to partition sd, once in that menu it brings up 5 different sizes. I check the last one and then the second step is to pick the swap. After I check what I want for the swap it starts the partition. Nowhere in the recovery menus(anywhere) do i see any options for ext2-4(ext2, ext3, etc etc).
So my question is: If it's not there where do I find it or is there any other option and is it really worth it?
I know how to gpart (or whatever you call it) but not sure how to allocate the sizes. 32GB sd class4
I've finally figured out adb and flashed several times. Call me blind, call me crazy, call me stupid...just don't call me coffee.
any help would be great.
T-Mo G2 is the device.
ps. I guess I'll get this out of the way so i don't have to keep posting dumb questions. I notice when flashing roms and it goes to mount the sd-ext(might have that spelled wrong sorry) I always get an error saying unable to load dev/block/mmcblk1 not formating. Nothing happens and the roms still flash just fine(usually). I saw this question before but everything I read that was supposed to be a"fix" didn't work. I am assuming I'm getting this because my sd isn't properly partitioned. any help on this would swell as well
oh yeah and it's ENG S-Off and all that other jazz. Used the gfree/rage method
cheers
Theres an option in ROM Manager to partition your sdcard for you but I have never had any luck getting it to work.
Heres A LINK that will walk you thru partitioning your sdcard thru ADB, it works, I used it to partition my sdcard, Just remember the sdcard for the HTC VISION is at dev/block/mmcblk1, the instructions will tell you to partition dev/block/mmcblk0, but this is for a diffrent phone. You want to partition dev/block/mmcblk1.
WARNING: DO NOT TRY TO PARTITION dev/block/mmcblk0
thanks for the reply. I learned that last night, lol thats the one I learned from last night. Problem is I need some input on how much to allocate for each partition. 32GB card.
cheers
Are you trying to partition your sdcard for use with apps2ext? If so since you have such a high capacitiy sdcard I would partition it to 1024mb ext2, 32mb linux swap and the rest FAT32.
Just a side note, remember to remove the existing partiton (which is the stock fat32) before starting the partitioning process,
â– Command: rm 1 (deletes partition number 1)
so how to I get the ext4 partition? same as i did the first 3? the reason I ask is because I still dont have sd-ext after i partition with recovery. I want to move dalvic cache so that my widgets will work from sd card
If it helps im using GV1.5 rom with the proper recovery 3.0.0.5 ( which as I just noticed is now the new recovery rom manager wants you to flash...got tired of having to adb 3.0.0.5 everytime I wanted to test CM7 or GV1.5)
thanks
i just tried running the following in adb after card was wiped:
mkpartfs primary fat32 0 31712 that worked
mkpartfs primary ext2 31712 32736 and then got error saying:
The location 32736 is outside of the device /dev/block/mmcblk1
so i think the problem is my card is actually 29.9GB and since my math is crap I cant figure what esactly to put...
Just move your ext partiton a little lower, the same thing happened to me when I tried to partition at first, had to play with the numbers a little. You don't have to get the total card capacity filled with a card that big what's a few mb's.
Sent from my HTC Vision
maybe I should of asked this first.
My reasoning for doing this is I read somewhere that if you can upgrade to ext4 you would be able to run widgets off sd card because the phone thinks it's stll on the actual internal storage,
am I wrong?
There's only one rom that supports apps2ext , which is what your looking to do and that is Enoms rom, but there is also Darktremor's apps2sd mod in the dev section which will enable this on all roms, in either case you need a card partitioned to at least FAT/EXT2.
Sent from my HTC Vision
got it. after darktremors script while in shell i ran ap2sd cachesd and wa la.
thanks again

Getting "Error mounting /sdcard" when formatting.

Hi guys.
I'm having a bit of trouble restoring my ROM after testing the ICS. What happened was I flashed the ICS ROM, played around with it, then decided to go back to my original ROM (CM7) which I had made a nandroid backup of through recovery.
I did a full wipe through recovery (CWM 5.0.2.0), but when I came to format the sdcard, it said error mounting /sdcard, skipping format. At first I though it was the sdcard, so I got a new one, formatted it on my pc and retried. It failed again. I can't mount the sdcard to my pc too.
I tried partitioning using amonRA recovery too, it didn't work either. I don't think it's an sdcard issue, so I'm not sure what's going on. I can't flash any ROM now, the only thing working is booting to CM7 in safe mode, but I don't know what use that would be.
Any help would be very much appreciated. Please let me know if I can give any more information to help you out.
Thanks.
Hi!
Welcome to the forums
Sorry to see you are having trouble, let me help you out:
Why are you formatting your SD card in the fist place?? If your phone doesn't recognize the SD card there is little you can do. Seeing as it doesn't read the new SD card either is no surprise as the files for the Recovery are on the SD card..
Do you have an SD-Card reader? Try connecting it to your PC/Mac/Whatever using that and see what happens. It could be your phone, and not your SD-Card after all
USUALLY a nandroid backup does not require wiping for restoration. And wiping doesn't mean you wipe your SD card.
Good Luck,
AU
I connected the sdcard to my pc and I accessed it without any issues. I found .dm files in it though, some sort of debug logs.
Hmm, sounds weird.
Have you tried formatting it on your computer and then formatting it on your phone? Can't see why it should help, just troubleshooting here.
Perhaps your card is dead
Why are you formatting your SD-Card in the first place, if you're only doing a nandroid restore?
Try different recovery, CWM can get picky. Or you can try formatting card within Android. Use SDFormatter in Windows.
I followed these steps and it worked. Now I can access the SD Card.
Thanks anyway for your help guys. I appreciate your support.

[Q] Moving to a new sd card

hello,
first of all i would like to point out that i have searched for this topic and have tried a few solutions, but it didnt work..
here it goes..
so im switching to a new sd, and just tried to swap the cards but when i do that im either stuck in bootloop,
or if i reflash i have nothing installed on the phone (and i dont mean apps, bcs there isnt a lot of them and i dont mind reinstalling),
for example when i press settings it says it is not installed lol..
there is also nothing on the homescreens, and when the screen locks i cannot unlock it bcs there are no buttons..
Its a 16GB class 6 card with a fat 32, and ext3 (1024mb), and a ext4 (768mb), as is requred by some roms (feel free to correct me if im wrong)
The formatting was done by minitool, as i cannot go into disk drive mode to do it with gparted (with the new card inserted almost nothing works)
the old one is a 4gig with a etx3(1024mb) and works normally when i put it back, although sometimes it needs reflashing..
i have tried mirroring the old cards folder to the new one, via sd card reader, but it doesnt solve the problem...it stays the same..
any and all help is appreciated
You should do a nandroid backup of your rom, copy entire FAT32 over to the new card and then do a nandroid restore.
dusty_m said:
Its a 16GB class 6 card with a fat 32, and ext3 (1024mb), and a ext4 (768mb), as is requred by some roms (feel free to correct me if im wrong)
Click to expand...
Click to collapse
It was used by scripts which are not developed for about a year and thus obsolete. No mainstream script requires that.
Thx (hvala
will try it later on today....do i need any ext partitions?
is ext3 enough?
dusty_m said:
Thx (hvala
will try it later on today....do i need any ext partitions?
is ext3 enough?
Click to expand...
Click to collapse
It is enough, but the question remains whether it will work if you used that same dual ext partitions setup on your old 4GB card. I'm not sure, but maybe someone could clarify that. Ext partition is needed, otherwise you'll end in a bootloop - especially if some vital parts of the rom were symlinked there.
I presume you have cwm recovery installed.
If so format your card with SDformatter V 3.1. TO FAT 32 with size adjustment on.
This will format all your card to fat32,
Put the card back in phone and partition the card from within cwm recovery,
Select size of ext partition (1024kb is usually big enough) select 0 for swap.
Ext partitions are used to save on internal memory by moving apps ( (and sometimes data and dalvik cache aswell) to the ext partition and using it as if it was internal memory.
Hope this helps...
i have used only ext3 on my old card...so i guess the same would work on the new one....
so if i got this right, i can restore the old rom via nandroid...and i guess flashing something else in the future should also work...
CWM Recovery is at version 5.0.2.6 at the moment this partitions sdext with ext3 which works fine on nearly all roms. There is a 4Ext Recovery available which can convert ext3 to ext4 if required, just do a search for it if you need it, but you should be fine with ext3.
i have AmonRA
edit: am i able to to the same with it?
i remember it has the format option in the menu...
also 1024kb?
i have 1024mb lol
Yea I presume so, I use cwm!. Just follow the instructions for your rom..and create the partition if required
The restore thingy didnt help, ima still stuck at boot logo, or if i try another restore, i manage to boot, but again nothing is installed (settings and stuff)
will try the reformat and see how it goes...
why cant i just flash a brand new rom to this empty card?

[Q] Sd card problems

Hi guys, sorry for the newbie question but here I go. Just now I decided to flash a new ROM so I do what I normally did before I flash a new ROM (backup my sd card contents and do a nandroid backup). After I done those, I reformat my sd card using my laptop and place the ROM I wanted into the sd card. After I flash the ROM I get stuck in the HTC screen and my backup doesn't work but luckily I manage to revive my Desire. After that I notice that my previous partition that I made using gparted is gone and that's why the ROM didn't work at first. So, am I still able to recover my lost partition from my sd card or they are gone for good?
If you have a working nandroid backup, you can try to recreate your partitions first and restore then.
Windows laptop? The reformat using will have wiped your Ext partition. As said recreate fat32 and Ext using Gparted and restore nandroid (assuming under AmonRa or 4Ext recoveries you included sd-ext) or flash new Rom.
Sent from my HTC Desire using Tapatalk 2
yurimizu said:
Hi guys, sorry for the newbie question but here I go. Just now I decided to flash a new ROM so I do what I normally did before I flash a new ROM (backup my sd card contents and do a nandroid backup). After I done those, I reformat my sd card using my laptop and place the ROM I wanted into the sd card. After I flash the ROM I get stuck in the HTC screen and my backup doesn't work but luckily I manage to revive my Desire. After that I notice that my previous partition that I made using gparted is gone and that's why the ROM didn't work at first. So, am I still able to recover my lost partition from my sd card or they are gone for good?
Click to expand...
Click to collapse
Looks like u didn't perform a full wipe... Via recovery...
Nd by full wipe I mean cleaning cache, dalvik cache, sd-ext, etc...
No need to format the sd card before flashing a new Rom....
help
hi having problems partion my sd card so that i can use runnymeade rom i have tried to partion it as 1.2 gb .3gb and .1gb but it does not fully boot the rom i dont know what i am doing wrong please help am a complete noob with the desire
thanks in advance
akhillad said:
Looks like u didn't perform a full wipe... Via recovery...
Nd by full wipe I mean cleaning cache, dalvik cache, sd-ext, etc...
No need to format the sd card before flashing a new Rom....
Click to expand...
Click to collapse
I did the full wipe via recovery but I reformatted my sd card using my laptop and I think that's the problem since the process wipe out everything including the partitions I made before. And thanks for the answer, greatly appreciate
beachcomber said:
Windows laptop? The reformat using will have wiped your Ext partition. As said recreate fat32 and Ext using Gparted and restore nandroid (assuming under AmonRa or 4Ext recoveries you included sd-ext) or flash new Rom.
Sent from my HTC Desire using Tapatalk 2
Click to expand...
Click to collapse
Yes, a windows laptop and unfortunately it has wiped my previous partition. I did manage to partition it again but I found out that my sd card size is reduced. So does the reformat process wipe out my old partition for good or I still can somehow recover back my lost partition?
robbani123 said:
hi having problems partion my sd card so that i can use runnymeade rom i have tried to partion it as 1.2 gb .3gb and .1gb but it does not fully boot the rom i dont know what i am doing wrong please help am a complete noob with the desire
thanks in advance
Click to expand...
Click to collapse
Although I'm not an expert in partitioning but I can provide some info about this. Firstly, how you partition your sd card (gparted, rom manager or other methods)? And which partition you made (EXT3/4)?
yurimizu said:
Yes, a windows laptop and unfortunately it has wiped my previous partition. I did manage to partition it again but I found out that my sd card size is reduced. So does the reformat process wipe out my old partition for good or I still can somehow recover back my lost partition?
Click to expand...
Click to collapse
The ext partition itself is gone, but if you re-partition using Gparted, copy your sd card backup from laptop onto sd card, then providing your nandroid included sd ext backup a restore should get you back to where you were.
yurimizu said:
Although I'm not an expert in partitioning but I can provide some info about this. Firstly, how you partition your sd card (gparted, rom manager or other methods)? And which partition you made (EXT3/4)?
Click to expand...
Click to collapse
hi i used 4ext to make the partion and i made all partion ext4 i think dont really know what i am doing please help

Categories

Resources