I accidentally deleted the internal storage... - G2 Q&A, Help & Troubleshooting

I was in serious trouble.
When installing a new ROM in TWRP I accidentally deleted the internal storage !!
I can not install any ROM, because it always returns to Recovery, otherwise nothing happens.
What can I do???

You can't physicaly delete internal storage using recovery, you just did format. I don't know reason why you can't install ROM though. Maybe flash stock ROM first, using this tutorial.

tarnagy said:
I was in serious trouble.
When installing a new ROM in TWRP I accidentally deleted the internal storage !!
I can not install any ROM, because it always returns to Recovery, otherwise nothing happens.
What can I do???
Click to expand...
Click to collapse
use adb shell or run it in twrp terminal
adb shell
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

Thanks!!!

Hello,
Formatting internal storage is not a problem at all. Normally I do it everytime I install new ROM - format all data and cleaning all partitions (such a habit to ensure I do a clean install )
BUT...
you have to load your rom from extrnal USB stick so you need the OTG cable and make sure you have your rom and gapps (if needed) on that stick.
All you need then is to switch the phone off plug the cable with stick and launch the phone into TWRP - it will detect the USB automatically and you can access the directory. If the directory appears empty - go to mount menu and force mounting the OTG - sometimes you need to push the button twice I noticed.
Good Luck!

Related

Can't Wipe SD Ext

Hey everyone,
I just rooted my Hero awhile ago and everything went fine... However, I tried to flash a ROM to it and something seems to have screwed up. It booted once, but it wasn't to the new ROM, it seemed like it was back to factory settings... and now it won't get past the initial HTC logo when I try to boot. I can reach the recovery, but I've tried wiping everything and restoring with Nandroid and still nothing.
I think the problem may be with the wipe. When I wipe data/factory reset, I get "No app2sd partition found. Skipping format of /sd-ext." I'm new at this but I've noticed most ROMs saying that sd-ext needs to be wiped. Is this why I can't boot the phone? Is there a way to fix this?
Thanks.
randomhodge said:
Hey everyone,
I just rooted my Hero awhile ago and everything went fine... However, I tried to flash a ROM to it and something seems to have screwed up. It booted once, but it wasn't to the new ROM, it seemed like it was back to factory settings... and now it won't get past the initial HTC logo when I try to boot. I can reach the recovery, but I've tried wiping everything and restoring with Nandroid and still nothing.
I think the problem may be with the wipe. When I wipe data/factory reset, I get "No app2sd partition found. Skipping format of /sd-ext." I'm new at this but I've noticed most ROMs saying that sd-ext needs to be wiped. Is this why I can't boot the phone? Is there a way to fix this?
Thanks.
Click to expand...
Click to collapse
Yes, that's way.
You need to wipe the ext partition -- most likely the partition that houses Apps2SD.
**This will ERASE everything on the SD Card. Before trying this, you need to back up your sd card (pictures, music, etc) -- meaning, copying all the stuff from the card onto your Desktop or somewhere on the computer before proceeding to the next step.
To do so; go into recovery and choose:
1. Partition sdcard
2. Partition SD
3. Press Home to confirm
4. Set Swap-size to 0 MB (Use trackball)
5. Set Ext2-size to 0 MB (Use trackball)
6. Fat32-size = Leave that to Remainder
7. Press Home to confirm.
This will FORMAT (erase) everything on your SD card, but not the phone. For good measure, I would wipe your phone and Dalvik once more before flashing the ROM again. After its done, you can reboot, mount your SD Card and copy what you saved to the desktop (or wherever) back onto the SD card.
If you want Apps2SD (I'll presume you have a regular 2 gig SD Card), then after wiping both your phone and Dalvik; you'll need to follow the steps above to wipe the Ext partition, but instead of setting your swap to 0, set it to 128. Then set your Ext2/3/4 to 1 Gig (1024 megabtyes) and leave the Fat32-size as Remainder. For larger cards, you can adjust the Ext/2/3/4 partitions to about half the size of your SD Card. (Ex. 4 gig card; set Ext to 2 gigs, leave Fat32 as remainder).
Good luck.
I'm not seeing the partition option, maybe I should've mentioned I'm in Clockwork Mod recovery. Under the partitions menu there is an option to format sdcard, will that have the same effect? I've tried format sd-ext, but of course it didn't work..
Edit: I've reformatted the SD card, but still can't boot, and am still getting the No app2sd partition found error when I select wipe data/factory reset. Is there a way to get to the partition sd option with this Clockwork Mod recovery?
randomhodge said:
I'm not seeing the partition option, maybe I should've mentioned I'm in Clockwork Mod recovery. Under the partitions menu there is an option to format sdcard, will that have the same effect? I've tried format sd-ext, but of course it didn't work..
Click to expand...
Click to collapse
Clockwork Mod? Can you please link where you got this? The only recovery ROM's I'm familiar with are RA 1.3.2, 1.5.2, 1.6.2, and Godspeed. I would highly advise installing the latest RA 1.6.2 or Godspeed recovery images, as the advise myself or anyone else gives you will pertain almost always to those recovery images.
The tutorial I was using to flash the ROM recommended using an app from the app store called ROM manager, which installed the Clockwork mod. I'm attempting now to get RA 1.6.2 on it instead.
What's the best way to install a new recovery ROM? using this one, I can get connect to the pc and get a command window open, but from there what I'm trying doesn't seem to be working.
Problems with sd card
this seems like a good place to ask..after trying to flash a new rom(aloysuis) i hung on the black htc screen. i abondoned that card, inserted my old, reflashed fixxxed on there and its fine. i put my other sd card in that wouldnt work, formatted and copied the working card contents back on it. running fixxxedsense my phone upon loading says "sd card removed, Insert a new one. plug it in and it doesnt give me an option to mount, but when im in recovery mode it lets me mount and see all the contents i put on there. Did i ruin my sd card r is there a problem with the partitions maybe?
thatdudepoops said:
this seems like a good place to ask..after trying to flash a new rom(aloysuis) i hung on the black htc screen. i abondoned that card, inserted my old, reflashed fixxxed on there and its fine. i put my other sd card in that wouldnt work, formatted and copied the working card contents back on it. running fixxxedsense my phone upon loading says "sd card removed, Insert a new one. plug it in and it doesnt give me an option to mount, but when im in recovery mode it lets me mount and see all the contents i put on there. Did i ruin my sd card r is there a problem with the partitions maybe?
Click to expand...
Click to collapse
It seems the partitions might be the problem.
**If you don't mind erasing everything on your "broken" sd card, please follow the steps below.
**This will ERASE everything on the SD Card. Before trying this, you need to back up your sd card (pictures, music, etc) -- meaning, copying all the stuff from the card onto your Desktop or somewhere on the computer before proceeding to the next step.
To do so; go into recovery and choose:
1. Partition sdcard
2. Partition SD
3. Press Home to confirm
4. Set Swap-size to 0 MB (Use trackball)
5. Set Ext2-size to 0 MB (Use trackball)
6. Fat32-size = Leave that to Remainder
7. Press Home to confirm.
Click to expand...
Click to collapse
After you've done this; your card will have nothing on it. You should be able to use the card again, I would try using it again and see if you can mount it; both in recovery and in regular phone mode.
pseudoremora said:
It seems the partitions might be the problem.
**If you don't mind erasing everything on your "broken" sd card, please follow the steps below.
After you've done this; your card will have nothing on it. You should be able to use the card again, I would try using it again and see if you can mount it; both in recovery and in regular phone mode.
Click to expand...
Click to collapse
yea i partitioned it, although it doesnt let me set size tho.its says its partition with no errors. it should be partitioned ive used this method every other time...oh im still using ra-heroc-v1.2.3
randomhodge said:
The tutorial I was using to flash the ROM recommended using an app from the app store called ROM manager, which installed the Clockwork mod. I'm attempting now to get RA 1.6.2 on it instead.
What's the best way to install a new recovery ROM? using this one, I can get connect to the pc and get a command window open, but from there what I'm trying doesn't seem to be working.
Click to expand...
Click to collapse
To install a custom recovery image:
1. Download either RA 1.6.2 or Godspeed recovery
2. Copy Recovery Image to your SD Card
3. Boot your phone into recovery mode
4. Plug your phone into your computer
5. Open command prompt and change directory your androidsdk\tools folder
6. Run the following command(s):
Code:
adb shell
$su (not required if you have root already)
#mount -a (You might get some error messages, [B]keep going[/B])
#flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
reboot recovery
After the reboot, you should the new recovery image installed.
thatdudepoops said:
yea i partitioned it, although it doesnt let me set size tho.its says its partition with no errors. it should be partitioned ive used this method every other time...oh im still using ra-heroc-v1.2.3
Click to expand...
Click to collapse
If you have a SD Card adapter or a card reader that can read mini-sd cards:
1. Plug your sd card into the reader/adapter; then to the computer
2. Right click on the removable drive in My Computer
3. Choose FORMAT
4. Quick Format is fine
5. After it's complete, close the window and test the card again.
If it fails again or gives error messages, you might have a bad card.
Okay, got the new recovery, partitioned and wiped everything, and am trying to flash the ROM again. Wish me luck
Okay, now I get past the HTC logo, and it seems to be loading the ROM, then it freezes. I've let it sit for around 5 minutes now with nothing, is this normal for the first load of a ROM or should I try to restore my backed up nandroid?
ClockworkMod has a problem with wiping ext. Amon_RA or GodSpeed should work fine.
randomhodge said:
Okay, got the new recovery, partitioned and wiped everything, and am trying to flash the ROM again. Wish me luck
Click to expand...
Click to collapse
Good luck, report back.
Edited the last post, but I'll repost for the new page:
Okay, now I get past the HTC logo, and it seems to be loading the ROM, then it freezes. I've let it sit for around 5 minutes now with nothing, is this normal for the first load of a ROM or should I try to restore my backed up nandroid?
randomhodge said:
Edited the last post, but I'll repost for the new page:
Okay, now I get past the HTC logo, and it seems to be loading the ROM, then it freezes. I've let it sit for around 5 minutes now with nothing, is this normal for the first load of a ROM or should I try to restore my backed up nandroid?
Click to expand...
Click to collapse
The first boot can take some time. With that said, 5-20 minutes is usually best to give the intitial boot. If it still isn't booting; redownload the ROM and try reflashing.
pseudoremora said:
To install a custom recovery image:
1. Download either RA 1.6.2 or Godspeed recovery
2. Copy Recovery Image to your SD Card
3. Boot your phone into recovery mode
4. Plug your phone into your computer
5. Open command prompt and change directory your androidsdk\tools folder
6. Run the following command(s):
Code:
adb shell
$su (not required if you have root already)
#mount -a (You might get some error messages, [B]keep going[/B])
#flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
reboot recovery
After the reboot, you should the new recovery image installed.
If you have a SD Card adapter or a card reader that can read mini-sd cards:
1. Plug your sd card into the reader/adapter; then to the computer
2. Right click on the removable drive in My Computer
3. Choose FORMAT
4. Quick Format is fine
5. After it's complete, close the window and test the card again.
If it fails again or gives error messages, you might have a bad card.
Click to expand...
Click to collapse
ok after trying to put the ne recovey on there i tried to go into the adb shell and it says
C:\android-sdk-windows\tools>adb shell
adb server is out of date. killing...
* daemon started successfully *
error: device not found
C:\android-sdk-windows\tools>adb shell
error: device not found
Up and running! Thanks so much for your help
thatdudepoops said:
ok after trying to put the ne recovey on there i tried to go into the adb shell and it says
C:\android-sdk-windows\tools>adb shell
adb server is out of date. killing...
* daemon started successfully *
error: device not found
C:\android-sdk-windows\tools>adb shell
error: device not found
Click to expand...
Click to collapse
Make sure you have Debugging mode on.
To do this (on the phone):
1. Menu
2. Settings
3. Applications
4. Development
5. Make sure USB Debugging has a check in it
Then run the commands again.
randomhodge said:
Up and running! Thanks so much for your help
Click to expand...
Click to collapse
No problem, glad eveything worked out.
pseudoremora said:
Make sure you have Debugging mode on.
To do this (on the phone):
1. Menu
2. Settings
3. Applications
4. Development
5. Make sure USB Debugging has a check in it
Then run the commands again.
No problem, glad eveything worked out.
Click to expand...
Click to collapse
yep its on
thatdudepoops said:
yep its on
Click to expand...
Click to collapse
Are able to run adb commands when your phone is booted into regular phone mode?
pseudoremora said:
Make sure you have Debugging mode on.
To do this (on the phone):
1. Menu
2. Settings
3. Applications
4. Development
5. Make sure USB Debugging has a check in it
Then run the commands again.
No problem, glad eveything worked out.
Click to expand...
Click to collapse
pseudoremora said:
Are able to run adb commands when your phone is booted into regular phone mode?
Click to expand...
Click to collapse
no it still says no devices

help with root i9020a

hi can i have some help?
stuck on the adb push part, cmd window says failed to copy ____ to _____ read-only file system.
any idea how to fix this?
(from step by step rooting guide for 9020a)
I assume you mean the "adb push su-2.3.6.1-ef-signed.zip /sdcard/su-2.3.6.1-ef-signed.zip" part. Maybe you forgot the /sdcard at the beginning, otherwise no need to worry about adb anyway. Just copy that file over to the sdcard by any means you like (adb, mount usb storage, etc).
However, i would be using a newer su zip from the official web page, just to save hassle if you are using ICS. Guaranteed to work
If you have already flashed the recovery... easiest way is just to boot into recovery then mount the USB storage and copy it that way. Then unmount and flash the zip while still in recovery.
Sent from my Nexus S using XDA App
thanks for the help!
sorry to ask another question (first time rooting), but I can't find any sdcard folder after i go into usb mass storage?
and the new su zip will work on 2.3.6? (planning on using cm9)
New su works on 2.3.6 fine. Mount USB storage is the sdcard partition, so anywhere in there.

[Q] TF101 doesn't recognize internal sdcard

I have CWMR 5,8 installed. First boot automatically loads into CWMR [this is, as far as I've read, a problem with the recovery and I can handle it if I can fix the internal sd card]. Rebooting and cold-booting helps me boot up my ROM (I've tried multiple ROMs, currently on CM9).
Everything works, except for my internal sdcard (weirdly thought I cannot access my external micro SD from CWMR). It seems as if its not mounted. I got ADB access to the device, /sdcard is there and all of the files are there. I can adb push and adb pull, so the internal storage seems to be working fine, it just doesn't mount it. Maybe the issue is permissions? ls -la sdcard outputs: lrwxrwxrwx root root 2012-10-26 20:43 sdcard -> /storage/sdcard0
Any ideas? I've tried installing different versions of CWM recoveries (adb push zip file and then using CWM to actually install it), they don't seem to stick.
Does /storage/sdcard0 exist on your device (AFAIK this is the new location defined by JB, but I don't know what CM9 does)?
If not, you may find your files in /data/media.
peeter.tomberg said:
I have CWMR 5,8 installed. First boot automatically loads into CWMR [this is, as far as I've read, a problem with the recovery and I can handle it if I can fix the internal sd card]. Rebooting and cold-booting helps me boot up my ROM (I've tried multiple ROMs, currently on CM9).
Everything works, except for my internal sdcard (weirdly thought I cannot access my external micro SD from CWMR). It seems as if its not mounted. I got ADB access to the device, /sdcard is there and all of the files are there. I can adb push and adb pull, so the internal storage seems to be working fine, it just doesn't mount it. Maybe the issue is permissions? ls -la sdcard outputs: lrwxrwxrwx root root 2012-10-26 20:43 sdcard -> /storage/sdcard0
Any ideas? I've tried installing different versions of CWM recoveries (adb push zip file and then using CWM to actually install it), they don't seem to stick.
Click to expand...
Click to collapse
ok first thing, your external microsd card should be /Removable/MicroSD/. also what do you mean when you say youre pushing zip files then installing them but they dont seem to stick? how are you connecting via adb are you using ./adb shell to connect and move files? theres a certain way you have to push files to the device when youre in recovery.
Fixed it
Hello,
Not being able to mount the internal sdcard
The problem was I installed CM10 then somehow rolled back to CM9. The sdcard location moved between those 2 versions and the CM9 version wasn't able to mount it anymore. After installing CM10 everything worked apart from the boot loop.
TF101 booted into recovery every time
I fixed that by flashing: http://forum.xda-developers.com/showthread.php?t=1213723
and running the command to actually load in the new recovery from here: http://forum.xda-developers.com/showthread.php?t=1530337
In summary
My tf101 works thanks to all the info available on xda

What's app database recovery.

can anyone help me please i need to retrieve msgstore.db.crypt7 from my internal memory i have rooted my phone and have omega custom rom.i accidentally deleted the whole folder using es file explorer what's app only retrieves the message back 7 days ago and i need to go back further more,i have tried undelete and digger disk both dont find the internal memory i have tried several applications but wont find my phone i have enabled usb debug mode still wont find my phone i have heard recuva works but sgs5 doesnt have usb mass storage but on my pc windows 7 it shows portable device so i can see my internal and external but not through programs can anyone help me please?
bump any help please?
If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.
fffft said:
If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.
Click to expand...
Click to collapse
Thanks i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage i have enabled usb debug settings i have the samsung usb drivers but it shows up on my windows 7 as a portable device.
do you recommend any decent software or tutorial's which might help me recover it.
Thanks for your help!
xxmcvapourxx said:
i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage
Click to expand...
Click to collapse
You didn't follow any part of what I suggested, so it's a mystery why you quoted my post. I specifically advocated using PC based data recovery software, not an android app. And at no time would you need your S5 to be in MSC (mass storage) mode.
Use the posted commands to copy your memory contents to a SD card, plug the SD card into a PC and then use a PC based data recovery app. The commands can be entered from a terminal emulator app, TWRP or an ADB shell session CLI.
Good luck
.

[Solved] Internal Storage Empty

My phone was taking too long to boot up yesterday after installing latest franco kernel so I have decided to format and clean flash rastapop. After everything's up and running, I tried to access my internal storage via USB on Windows 8 but when I click into the drive it was completely empty. I checked the storage space on my phone to make sure that I didn't accidentally wiped the internal storage and it showed 5.1GB out of 12.92GB. I've also used ES File Explorer to see if I can access storage directly from the phone but it showed the same thing - completely empty. Wifi sharing didn't help either. One weird thing was that I could see the files when I booted into the recovery mode. I have tried almost everything including clean flashing the rom again. I really don't want to format my internal storage. Please help. Thanks!
Found the solution: http://forum.xda-developers.com/showpost.php?p=56782014&postcount=7
Simply just type in these in adb:
adb shell
su
restorecon -FR /data/media/0
For a permanent solution flash stock boot.img again. Otherwise you face the same problem when flashing any other custom kernel again.
brownmonkey300 said:
For a permanent solution flash stock boot.img again. Otherwise you face the same problem when flashing any other custom kernel again.
Click to expand...
Click to collapse
What? Not true
Sent from my Nexus 9 using XDA Free mobile app

Categories

Resources