Data.img corrupt - HD2 Android Q&A, Help & Troubleshooting and Genera

hello, I encountered a problem with my android build yesterday :
My phone reboot alone one time I don't know why and return to winmo.
when I launch haret, I've got a blue or black screen.
I reinstall my build on the SD card but leaving my original data.img
Same problem : blue or black screen at start.
So, I replace the data.img by a new one and the phone boot correctly.
My conclusion is : the data.img was corrupted. Is there a solution to repair it in order to me to rescue all my apps ?
Or another usefull tips ?
Thanks

Try to mount it with linux... I heard it can work. Next time you to do schedules backups with titanium each night so you will never loose your apps and data.

delet the data.img and the folder named cache

Related

[Android] ext2 and haret questions

Would someone write a tutorial on installing Android on ext2? I thought I understood how it works, but realized I was only booting from haret, and not installing onto the ext2 partitions I had made. I went back and reread a lot of the old threads, but find it hard to figure out when to push vol down or hit end. Also, I prefer to boot into 320 x 480 so I can see the whole Market. This makes the print so tiny, I'm not sure what I'm seeing. (I did manage to get it on to my ext2 partition, I think. How do I know for sure.) Thirdly, the choices when booting are different, depending on whether you want to install for the first time or not. So, could someone tell us what the correct selections are if you are:
1. Installing onto ext2 partitions for the first time.
2. Just wanting to change resolution.
3. Wanting to change builds completely from say, Donut to Eclair.
Also, I understand that you can backup your data.img. But how do you go about reusing it if you are wanting to go back to a version of Android you've used in the past?
Lastly, if you are moving from, say Donut to Eclair, (moving to a completely different build), must you use a backup app to take your apps, settings, ringers, wallpapers and so on, to the new build?
If someone would write a tutorial addressing these questions, I'd be forever grateful and I'd imagine it would help those who want to try Android for the first time. Having all this information in one place would really help.
Thank you so much.
Not a pro by any means, I am still trying to figure everything out myself but here is how I understand it...
To install on ext2, you need to partition your SDcard into 3 partitions, 1 FAT32 and 2 ext2. When you run haret, it will detect the partitions and ask you to "upgrade". If you choose yes, it will install on the ext2 partition. If you choose to back up your data, it will create a backup of your data.img file and then upgrade. If you press End, you have the option to wipe the data file before you install.
You can verify if it installed to the ext2 partitions by browsing your SDcard. You should not see a data.img file on your FAT32 partition and you should see a backupsystem folder with the system.sqsh file in it.
If you want to change the resolution, all you need to do is change it in your default.txt or startup.txt file.
Don't have any advice going from one build to another as I normally just wipe my data file and start over to ensure I am starting clean.
Thanks, it helped me too...
But; I made 2 partitions, 1 Fat32 and 1 EXT2. I'm running haret now, he didn't ask anything about updating... Now it hangs on a black screen, but the backlight is still on. I didn't see any linux penguin neither like the last times (without ext2).

SD Card changed format, lost all my apps, can't reinstall. Help!

So I just traded my iPhone for a rooted MyTouch. It has the Cyanogen mod I believe. Well all of a sudden I could not access my SD card and when I tried to open it on my computer it said 'Wrong Format'. Wouldn't work on the phone either. So I formated Fat32 and thought I could start over.
It still shows my apps installed in the Marketplace, although they were on the SD and deleted. I can't uninstall them, but it thinks they are there, somewhere. Has anyone had this problem? I am relatively new to Android and rooting. I had a jailbroken iPhone before. Thanks!
kinda depends really. I would suggest first going thru recovery console if you are using amon recovery and partition sd card there. With most modified roms you have apps 2 sd so there are actually 3 partions. The biggest is fat32 for data like music, then ext2,3,4 for applications then a linux swap partition to help expand the ram on the phone and if you formated on PC or from settings on phone those partitions are gone. So I would do that first and then try to uninstall from market and reinstall again if not you may need to wipe and restart the device.
How do I get into recovery mode? I tried going to the terminal and using the flash_image recovery /sdcard/imgfile but it says I do not have permission?
Any ideas??
If your phone has been rooted right by the previous owner, you can access the recovery mode by first powering down, then pressing home and power at the same time.
Ahh! That worked! thanks!
I have a variation on this problem and lost my apps and Market, hope someone can help. Started with the SD card coming unmounted randomly, known issue with EVO I guess. Followed the recommendation of reformatting the SD by plugging it into a Windows PC and doing a FAT32 format. I backed up everything I could "see" from SD to C: drive. I am running a custom ROM with APPS2SD feature and Clockworkmod recovery. I'm very new to Linix and Android but, it looks like there is a Linix Ext3 partition that is made by APPS2SD on the SD card and that is where all my apps where, including android Market app. So, upon copying all the folders back to the re-formatted SD I had no apps and no android Market to able to re-download all my apps. I guess Market is like a licensed deal that you can't just get a .apk of and reload it. I do HAVE a current recovery backup that was on the FAT32 directory of the SD card but it appears the the Ext3 partition is not in that recovery file. I tried booting into recovery with Clockworkmod and reformatting the SD again, I tried a "Restore ext3.img" but Clockworkmod comes back with 'sd-ext.img not found" so I am guessing that the Linix Ext3 partition backup was stored IN the Ext3 partition of the SD(?) and the system and data stuff is stored in the FAT32 recovery file. Brilliant idea (not)! I tried a re-flash of the ROM, flashes OK but no apps. Anyway, the SD is properly partitioned now, the FAT32 stuff is back on, I don't know how to look in to the Est3 partition but, I know there is one program there cause I installed a file explorer by downloading and executing an .apk and there was an option to install it to SD. Going to factory reset and starting over again is not an option. Any ideas please?
SOLVED this issue:
apperantly the android market application is called "vendor.apk" and can be downloaded from various sites BUT WAIT, it's not that simple. Apperantly the vendor app has to be specific to your phone (hardware)? On a whim, I downoaded the previous version of my custom ROM (happedned to be Fresh ROM) .zip, I extracted the vendor.apk from the .zip and installed that. Then, I had an apk called MarketUpdater.apk, or something like that, that had installed in the phones system/app from the last Fresh ROM update. I ran this to update the vendor (android market) to the latest version, then I ran that. Did it work? NO, it crashed hen I tied to run market. I then did a re-boot. Did it it work? NO Upon attempting to reboot it got stuck in a loop and froze. Very scary. So, remove the battery and try again. I think I had to remove and re-install the SDcard somewhere in there to get it to a first time boot and, after a re-boot, whalla, come back with a working market. Market remembered all the apps that I purchased and I re-downloaded everything. Of course, I don't know for sure where they are stored right now (SD card or phone??)
And, my original problem of SD card constantly coming unmounted has been fixed.

Set-up micdoSD for Android Partition ext3 - Help Pleease.

Hi,
how are you today? For me good, thanks for asking, ha ha ha hanb
It's alredy my second thread for today, all problems, wow.
So I will try to explain, like in the thread before, I got HTC HD2 and I have Mdeejay eVo on my sd card and I launch Android from WM6.5.
The Android which I use have already the data_1024 folder, inside data.IMG file which it use for storage the Androids apps, but from my research I find the news to some how edit my microsd card and set-up a Partition which be the sobstitute of the data_1024.
I will be glad to know HOW?
Like I said, I got my Android on sd and I try for a week to find the solution with no success, I try to make a ext3 partition on sd of 2048mb but the android do not see that partition. I can't flash anything because on my ROM is WM 6.5.
I also will be glad to make another data_2048 folder with inside data.IMG file, if the Partition can't be done.
Please guys let me know how do I have set-up the partition for the Android?
Thanks.
hmmm not really sure here, but you can make a back up of your SD card then use minitool partition to partition & create EXt3/ Ext 4 / Fat 32 partitions, try the links below they might help
mengfei said:
hmmm not really sure here, but you can make a back up of your SD card then use minitool partition to partition & create EXt3/ Ext 4 / Fat 32 partitions, try the links below they might help
Click to expand...
Click to collapse
before post here I already saw your thread and like I said I do not have MALGDR on my phone or CWM, also I don't know which type of partition need my Android but I am sure is not the last type of Androids which they have the folders; kernel, META-INF, sdcard (inside NativeSD) and system folder. My Android is whit rootfs.img with external data_1024 folder for storage system.
I used Gparted live and I made a partition of 2048mb of ext3 partition but the Android do not see the partition because somehow I can't make a link to it.
I want more storage for my Android and delete data_1024 folder so I try to figure out, with some help, how to do that?
Any ideas?
Use toporesize app on pc to expand your present data img size without losing present data. . To get more space. .No need for ext 3 and all
Search for topo resize
If youwant to use apps 2 sd or link 2sd app from market to use ext 3.. Then you can move apps to sd ... That is for nand installs. . You don't need that on sd builds. ...
You try native sd builds. . Fastest ever.sd builds. . You can boot from wm also . You need ext4 partition for it. ..
sent from my galaxy note 2 (7100)
pakure said:
Use toporesize app on pc to expand your present data img size without losing present data. . To get more space. .No need for ext 3 and all
Search for topo resize
If youwant to use apps 2 sd or link 2sd app from market to use ext 3.. Then you can move apps to sd ... That is for nand installs. . You don't need that on sd builds. ...
You try native sd builds. . Fastest ever.sd builds. . You can boot from wm also . You need ext4 partition for it. ..
sent from my galaxy note 2 (7100)
Click to expand...
Click to collapse
Thanks mate, this is something great!
So I do not need a special partition for my android, good to know.
I know the last Nand Androids are good but I have old phone with old Android and he work fine, I try to put Native SD Android on my sd but too complicated and I do not have so much time. At the moment I find Mdeejay very fast and good, I tryed AmeriCan Android, CM7 and 10 and really I am not comfortable with them like with Mdeejay, so it's ok like that. ! problem solver, I just try to update my kernel - http://forum.xda-developers.com/showthread.php?t=1976835 - and I am ok.
Thanks.
pakure said:
Use toporesize app on pc to expand your present data img size without losing present data. ....
Click to expand...
Click to collapse
End of the Party, Guys, I was happy to soon!
I used toposize to made data.img for my android but I got problems.
If I resize data.img system partition, first of all, I got the error on e2fsck (see the pic) and i have to click ok to compleate the operation and after that I put the data.img into Anrdoid forlder and I replace the original (backups before) but the Android do not turn on, he stuck in HTC Logo.
If I made a clean data.img with ext3 system partition and I replace the data.img into the Android folder, he do not turn on and he stuck in Android logo.
If I use the original data.img from the package the Android turn on normally.
Do I forgot to do something? Do I missing something?
sorry, I forgot the pic.... here we go...
eclyptos said:
sorry, I forgot the pic.... here we go...
Click to expand...
Click to collapse
you are keeping data .img in a folder?...data.img should be in android folder..no further subfolders...and delete that stupid ext3 partition..you dont need it.
try native sd..it is very simple (for you to dual boot with windows mobile):
you need ext4 partition..use minitool partition manager to create it
then put selected rom zip (like pacman hd2 rom..."the best rom") on sd card
put 4ext recovery folder on sd card..open it , click clcrad and haret inside...follow screen instructions to install rom
Reboot and boot the ROM by executing the usual clcrad and haret stuff inside the NativeSD folder.
thats it.
pakure said:
you are keeping data .img in a folder?...data.img should be in android folder..no further subfolders...and delete that stupid ext3 partition..you dont need it.
Click to expand...
Click to collapse
ohh, well, yes, the data.img is in Android folder, not subfolders or external folders, I said so because in my package of Mdeejay are 2 folders, Android and data_1024. The data_1024 is all ready done to make a fast boot instantly but if I do not use it Android make the clean data into his root folder.
About the partition you get confused a little bit because when I used toporesize to made a clean data.img file to use it in android folder, the app ask me in which system the file have to be, ext2, ext3 or NONE. So no 1 of this data.img worked.
I hope I clarifide, I do not have ext3 partition on sd, is the data.img. that's all.
pakure said:
try native sd..it is very simple (for you to dual boot with windows mobile):
you need ext4 partition..use minitool partition manager to create it
then put selected rom zip (like pacman hd2 rom..."the best rom") on sd card
put 4ext recovery folder on sd card..open it , click clcrad and haret inside...follow screen instructions to install rom
Reboot and boot the ROM by executing the usual clcrad and haret stuff inside the NativeSD folder.
thats it.
Click to expand...
Click to collapse
I don't know about that, currently I have a working Android (not jet set-up like I want too) but I will see if I sholud do all this stuff. I am not so deep in this stuuf and just reach when I reach now, get me tired. So I take in the consideration you advice but now I have to have 1 android working well.
Ok, some bad news:
I did in different way to set-up my storage image, I let Android to made a clean data.img into his folder, after he finished installation and start running well I take the data.img of 1GB and with toposize I resize the image to 3GB. Like I said before, he give me this crap error but I really do not understand why? If Android made a clean data.img in his folder which errors can be made?
So I click ok anyway and made this file and I replaced the 1GB with 3GB with unclarifide done error fix.
He works for feew hours, smooth and fast, I start installing appps and games. Like many games they ask for downloading some updated files so I start downloading 450mb for 1 game and after 20 minuts Android crashed and he do not turn on anymore, he stuck in Android logo.
Are you sure this crap "TOPOSIZE" working? or it's just ME?
Guys, please help, I get confused and I don't know how to do it.
Today I also try install on my android Chainfire and i can't install plugins for low storage so after few hours of serching I find this thread http://forum.xda-developers.com/showpost.php?p=16457164&postcount=14723 but after read what they saying I do not understand anymore which system file I have to resize to get more space AND to make working chainfire which I really need right now for few games!
Someone can tell me which files I have to resize? How? or Post the right thread? please.

[Q] How to fix startup

Nook Simple touch , I used Touchnooter, everything was fine until I checked the box on startup to select nook instead of ADB start.
Now the Nook ST flashes black and white.
how do I fix this? I don't don't want to loose my sons' documents .
Thank you.
your documents are in sdcard or in internal memory (media partition) . anyway they don't deleted unless you delete them yourself .
restore and reroot can be done to solve this problem .
hshsh said:
your documents are in sdcard or in internal memory (media partition) . anyway they don't deleted unless you delete them yourself .
restore and reroot can be done to solve this problem .
Click to expand...
Click to collapse
I have tried several times to root with sd card. Tried two different sd cards from my android phone. It just never roots just starts up read forever.
v1.10
Please point me to the threads to restore. Thank you
see these topics :
http://forum.xda-developers.com/showthread.php?t=1360994
http://forum.xda-developers.com/showthread.php?t=1475613
http://forum.xda-developers.com/showthread.php?t=1289233
you can format system and data and cache partitions .
then restore with 8 missed boot or any method that works !
Restored
I restored the Nst including the boot , still have same problem, could it be hardware?
as before the blinking stops when I go to settings which makes me think it is software?
are you format data and cache in recovery mode ? you must delete all remaining files from previous root .

[Q&A] [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2

Q&A for [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [30 OCT 2012][DEV] NativeSD Rom Boot Script for HD2. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Unexpected end of archive
File: adbfixed_ramdisk_NativeSD_AOKP.zip
Archive seems to be corrupted.
rebgershon said:
Thanks for your speedy reply.
I have some further questions though:
1. which 'recovery' do you mean and where will I find Titanium backup and tytung tool?
2. I have downloaded the paragon software to copy the sd card contents which I will try to do now. However, what are the 'normal' methods used to resize as I mentioned in my previous post that the ext4 partition seems fixed when using the mini tool partition software?
TIA,
Geoff.
---------- Post added at 10:05 AM ---------- Previous post was at 09:59 AM ----------
Robbie,
I have put the sd card into the slot on my computer (which is a year old HP laptop) and also tried in a USB port but the Paragon software is not recognising the card at all, with only the c drive being shown. However, I am able to see the contents of the fat32 partition of the SD card through explorer as normal. Am I doing something wrong??
Click to expand...
Click to collapse
Which recovery did you use to install the rom? does it have facility to backup ext partitions? I know macs18max edited SDrecovery can do this from the first post here http://forum.xda-developers.com/hd2-android/nand-dev/nov-17-2015-kernel-3-0-101-t3251438 others can too.
titanium backup can be found in play store, free and paid versions. haven't used it myself for a while and only used free one. people on this forum swear by it though.
tytung's NativeSD backup might have to be searched for, I'm afraid.
Don't know why your ext partition is not showing up. What rom(s) are you using?
magldr or clk?
Sounds like you will have to use a backup method from the phone as opposed to pc, to store the contents on your FAT partition, then move/copy them to pc.
does this make sense?
Robbie P said:
Which recovery did you use to install the rom? does it have facility to backup ext partitions? I know macs18max edited SDrecovery can do this from the first post here http://forum.xda-developers.com/hd2-android/nand-dev/nov-17-2015-kernel-3-0-101-t3251438 others can too.
titanium backup can be found in play store, free and paid versions. haven't used it myself for a while and only used free one. people on this forum swear by it though.
tytung's NativeSD backup might have to be searched for, I'm afraid.
Don't know why your ext partition is not showing up. What rom(s) are you using?
magldr or clk?
Sounds like you will have to use a backup method from the phone as opposed to pc, to store the contents on your FAT partition, then move/copy them to pc.
does this make sense?
Click to expand...
Click to collapse
Thanks again Robbie. Tis whole thing gets wierder as follows:
I'm using Nexus HD2 Jellybean-CM10_V1.3a as the rom. In the recovery directory of the SD card there's the Jellybean rom as mentioned, clrcad (dated 8/7/2010, haret, initrd.zip, startup text document & zImage (dated 5/9/2012).
There's also a NativeSD directory with the same files as the recovery directory.
Running Haret from the recovery directory takes me to 4EXT Recovery v2.2.7 RC5.
It also shows: E: can't find misc
E: failed to find "cache" partition to mount at "/cache".
In the info section it lists the sd-ext partition ext4 1012MiB free 135.5mb, sdcard fat32 14175 MiB free 8.0gb.
Attempt to backup fails as can't find cache partition, boot, recovery logs on E:
I loaded the Paragon software on my newer laptop but no ext partition was found. I then loaded the Paragon software on an older laptop and hey presto the partition was there. I tried to back this up on the pc but had repeated problems with files not being read. Then suddenly the ext partition disappeared on the pc but phone booted into Android-phew!.
I tried on the 1st pc and suddenly it recognised the ext partition. I tried backing up the partition but again had read problems. The fat32 partition backed up without 1 error.
So where do I go now? I don't want to loose the data in the ext partition but don't seem to be able to backup. Any suggestions welcome.
Geoff.
rebgershon said:
Thanks again Robbie. Tis whole thing gets wierder as follows:
I'm using Nexus HD2 Jellybean-CM10_V1.3a as the rom. In the recovery directory of the SD card there's the Jellybean rom as mentioned, clrcad (dated 8/7/2010, haret, initrd.zip, startup text document & zImage (dated 5/9/2012).
There's also a NativeSD directory with the same files as the recovery directory.
Running Haret from the recovery directory takes me to 4EXT Recovery v2.2.7 RC5.
It also shows: E: can't find misc
E: failed to find "cache" partition to mount at "/cache".
In the info section it lists the sd-ext partition ext4 1012MiB free 135.5mb, sdcard fat32 14175 MiB free 8.0gb.
Attempt to backup fails as can't find cache partition, boot, recovery logs on E:
All the above is normal for NativeSD, your sdrecovery doesn't allow for backing up the ext partition
I loaded the Paragon software on my newer laptop but no ext partition was found. I then loaded the Paragon software on an older laptop and hey presto the partition was there. I tried to back this up on the pc but had repeated problems with files not being read. Then suddenly the ext partition disappeared on the pc but phone booted into Android-phew!.
I tried on the 1st pc and suddenly it recognised the ext partition. I tried backing up the partition but again had read problems. The fat32 partition backed up without 1 error.
So where do I go now? I don't want to loose the data in the ext partition but don't seem to be able to backup. Any suggestions welcome.
Geoff.
Click to expand...
Click to collapse
perhaps paragon wasn't the best choice for backing up. Try the recovery linked-to above, put it on your sdcard and run haret from its folder (you might have to change the folder name so that it is not the same as your other recovery folder). then select backup, then scroll down to sdext, tick it and swipe, it should copy to your FAT, and it seems you have plenty of space there. I haven't tried this backup method, which is why I said use 2 methods to backup. the more the merrier.
There are free sms, phone and app backup applications such as superbackup in playstore.
There was also a way to copy the whole sdcard as an image, partitions included, I will have a look for it.
Robbie P said:
perhaps paragon wasn't the best choice for backing up. Try the recovery linked-to above, put it on your sdcard and run haret from its folder (you might have to change the folder name so that it is not the same as your other recovery folder). then select backup, then scroll down to sdext, tick it and swipe, it should copy to your FAT, and it seems you have plenty of space there. I haven't tried this backup method, which is why I said use 2 methods to backup. the more the merrier.
There are free sms, phone and app backup applications such as superbackup in playstore.
There was also a way to copy the whole sdcard as an image, partitions included, I will have a look for it.
Click to expand...
Click to collapse
Robbie thanks again.
I downloaded the recovery folder from your link but there's only 2 files in it namely initrd.gz and zImage, there's no haret. I have copied the haret, clrcad & startup text files files from the old recovery directory but it just hangs on running haret.
Geoff.
Sorry Geoff, I am not giving you very good advice. That recovery has a 3.0 kernel in it, and won't boot from haret. Am working ATM, will reply later.
Robbie P said:
Sorry Geoff, I am not giving you very good advice. That recovery has a 3.0 kernel in it, and won't boot from haret. Am working ATM, will reply later.
Click to expand...
Click to collapse
Hi again Robbie,
I have good news and bad!!
I managed to eventually get the Paragon software to recognise the ext4 partition on my new laptop. What's odd is that the ext4 partition is listed under the name of the c drive. I then unmount and remount the ext4 with a new drive letter and I can then read/write. So having managed to mount, I was able to copy off all the files from the FAT32 & ext4 partitions to my hard disk. That's the end of the good bit.
As its 3 years since I did the last Jellybean install, I'd forgotten what to do and kept seeing posts about magldr and custom radio roms. I tried to boot into magldr on the phone while doing the sd card backups but it wouldn't go into it. I had assumed I must have installed it when I did the original SD rom install and I then wrongly assumed I needed to reinstall the HSPL4 and custom radio roms to get it on again. The former was ok but the latter caused the phone to hang on reboot at the HTC logo. At this point I went to the bootloader screen but after having the 4 colour screen I then got the white screen with blue writing for updating the rom from an sd card (there must have been an unzipped rom on the card). I mistakenly hit the install rom button and this erased all the phone's data before I'd had chance to use SD Backup, a programme I hadn't bothered using since long before I converted to Android.
I then looked back in my old bookmarks and came across a facebook guide to the Native SD installation which didn't mention magldr at all and it was at this point that I realised I'd not previously loaded it on the phone, although I did eventually manage to get it on after downgrading the HSPL to 2.08 and successfully flashing the custom radio only to be permanently booting into magldr-so I again reflashed the stock rom to get rid of it! What a waste of time!!
Having backed up the sd card partitions, I erased the partitions and made a new ext4 of 3gb and copied back the files to both partitions. I tried to boot the haret in the native SD folder but the phone hung at the HTC logo and then rebooted itself back into windows. I tried installing the jelly bean rom as an update using ext4 recovery but no joy. I tried wiping the ext4 partition and reformatting with EXT4 recovery then installing the rom as a new install which then booted into Android ok after which I overwrote the ext4 files with the previously saved ones. Now I get a boot into the CyanogenMod screen but no further even after waiting 30 mins. I also tried using NAtiveSD onetouch recovery to try and make a backcup of the old system and then restore over the new install (but not the boot files) but again I just get the hung CyanogenMod screen.
So do you have any idea of how I might get a successful boot with my old data? Perhaps I'm missing something else in the overwrite/restore process but I can't see what.
Any further help would be grateful-perhaps you have forum contact who might be able to help as well.
TIA,
Geoff.:crying:

Categories

Resources