[Q] remove corrupted directory from internal flash drive? - Windows Mobile

Howdy, couldn't find this anywhere
htc Advantage 7510 running MichyPrima ROM for years. Internal (built-in) flash drive developed one corrupt directory (the backup directory for SPB backup, natch) and got filled up, before this had plenty of room. The bad directory now appears to contain subdirectories and files with gobble-de-goop names, dates, etc. and when I try to delete any or all of them it tells me either that the file name contains illegal characters and therefor can't be deleted, or that the file is a system file and access is denied (of course the files are not write-protected). Trying to get at it and delete it while connected to an XP desktop also doesn't help because it is not recognized as an external drive, but rather as a sub-directory of a "mobile device", so I get similar errors. All other directories are fine, and most of my installed , configured software resides on this drive, along with a lot of data (I've got all that backed up to the desktop computer). I also removed some files from other directories to make some room just in case this was complicating things.
Is there some utility that will let me make an end-run around this and just delete the directory and its contents? I really don't want to format the entire drive and start over from nothing.
TIA for any advice!
-avi

Remove corrupted directory from internal flash drive checkout following link for more details.

This won't help.
As stated above, only the removable micro SD card can bee seen as a true external flash drive, not the intenal memory.
The only solution would be a Windows Mobile tool similar to Scandisk.
Now you really can't find anything to solve your problem, you can still backup all your data and hard reset your device : it should set it back clean.

I kind of concluded that myself. Just hoping someone knows of that elusive utility that will let me work on the drive as if it were a regular removable drive. I REALLY don't want to go the formatting route.

Related

HOW TO - backing up the SD card incase of failure????

hi,
this may seem silly but i cannot seem to back my SD card up (in case of any failure)
i'm not too sure if this is the case however, i cannot seem to copy my installed software directories which are installed on my SD??? (they all have a default ending of say...
BetaPlayer.
eWallet.
Pocket Controller.
buttonMax. <<-- notice the FULLSTOP?
all the other directories copy fine except for these folders.
is anybody having any issues copying ALL files from their SD card?
is there any software that can full backup the SD card to the computer?
ie. similar to SPRITE backup?? or can SPRITE even do this? how do you set it?
Hi
Strange...
Maybe the filesystem on card is screwed up.
Try creating directories (on PC) manually (with the same names) and then copy files from inside(s).
If you succeed this way, format the SD and copy all data back.
Good luck.
I had a similar problem some time back, with those '.'s appearing after some of the directories, and not being able to do much about them, except through a card reader connected to the PC (and sometimes not even then).
eventually i had to reformat the whole card to get it working again, using CNetX's Flash Format, which also has a utility to check and try to fix cards. you can check it out here. http://www.cnetx.com/format/
Google for a freeware product called MobSync. The website is mainly in Japanese but the product is in (pidgeon) English. MobSync can sync. any directory on the PC with any on the device, one way or both ways.
I have it set to sync my Storage and Storage Card to my PC on each connect. It doesn't handle files which are too large, has the odd spelling error and has some minor issues with AS4 but as a fall back mechanism it is excellent.
Note: it doesn't convert files when it copies them - again this is a minor issue and there is a shareware product there that seems to do this.
hi i'm not too sure what you mean when you say file conversion from PC to PDA or PDA to PC?
does this matter?
jimjamz said:
hi i'm not too sure what you mean when you say file conversion from PC to PDA or PDA to PC?
does this matter?
Click to expand...
Click to collapse
It can matter but it's not a major issue. For example if you pull a Pocket Word file over via ActiveSync it is converted on the way and becomes a Word/WordPad document at the PC end, this doesn't happen with MobSync.
If all you are looking to do is preseve the data from your Storage and Storage Card, it will serve the purpose just fine.

Auto.exe and autorun.inf on sdcard

Since I have flashed a certain rom which I don't remember of, I keep having two files on my sd card (auto.exe and autorun.inf) I can't delete no matter what I try they always come back (format SD, delete via terminal, delete via antivir)...
Problem is that antivir tells me they contain trojans, does someone have information about that files ? Am I the only one with these files on my SD ?
I bet you are seeing them whenever you plug your phone into your pc and browse the sdcard. This is when the virus on your PC is creating the new files on your sdcard.
It was not the rom that caused the problem. Your pc is infected and as soon as you plug a drive in that has write access to it the virus writes those files to it to try and replicate itself. I bet if you plug a usb drive into your computer it will do the very same thing.
Install a decent antivirus package on your pc and/or a few of the many free antivirus scanners on the web.
Solve the problem
ElChouch said:
Since I have flashed a certain rom which I don't remember of, I keep having two files on my sd card (auto.exe and autorun.inf) I can't delete no matter what I try they always come back (format SD, delete via terminal, delete via antivir)...
Problem is that antivir tells me they contain trojans, does someone have information about that files ? Am I the only one with these files on my SD ?
Click to expand...
Click to collapse
My brother has the same problem with a pendrive on a Mac, the solution is delete the files like root user, from a Linux or UNIX system works, I don't know how to do the same on Windows.

Fryo I800 installation help!

Ok So I am here because I've posted in other places in these forums with no replies yet, So it would be better to create a thread specific to my problem.
I have an Omnia 2, thinking of acquiring the Fryo 2.2 OS, not specific about wether I want what version but here are the problems I come across before being able to install it.
1- plugging in my phone under Settings -> My storage will not show my storage on my computer, having the external SD option will show my 16GB SD card.
2- Backing up. How do I back up my storage if I can't see it on my computer? When I turn on active sync a blank storage appears other than my SD card (assuming its the internal storage) but the size seems rather small (167MB). I've been reading peoples' posts and I'm supposed to have around 2GB I believe, and either way the files I'm trying to put inside for the android OS don't seem to fit there.
3- Partitions? How can I set those up for both the internal and external storage? Is there a program or feature to do so? My SD card under properties says FAT-32 so I'm not sure on how to do it IF I need to.
4- Using a W7 computer, so that knocks off any ubuntu installations, and also link is broken for Almars Beta 1 file that I was thinking of using for an SD installation.
Any help would be appreciated, I've had this phone since 2009 and I'm really hoping I can come across some help to make it work since I do want to keep this phone for a bit longer before I spend more money on a different cellphone!
Thank you!
Try out the new CyanogenMod from the link below.
http://windows.modaco.com/topic/346446-cyanogenmod-beta1-omnia-2-updated-02122011/
It has the SD Card auto installer, try it..
Back up data on your SD card first and then format your SD card within the phone and then use auto installer to install it.
As you said your computer wont detect the My Storage, try the steps below..
Transfer your data from My Storage to external SD Card, then connect your phone to computer using My Storage mode in settings.
Download Mini Tool partition wizard and format your My Storage (Mini tool partition will be able to see your My Storage even though your computer doesn't).
After format, your computer should be able to detect My Storage.
Now copy the downloaded android files to My Storage and run the auto installer as instructed in the ReadMe file inside the download package.
PS: Don't forget to backup the data on SD Card to your computer
Hope this helps
Ok so what you meant by taking things from my storage is going to file explorer and basically copying everything from the "my device" to the SD card?
Just want to make sure because if it doesent work then I haven't gotten anything backed up right.
Went to file explorer -> copied everything in the top folder which is application date, connMgr, doc and setttings, program files etc. is this all thats needed basically?
Thanks
P.S some of the things I tried taking like global.txt or exe couldn't be copied because of violations or some weird error, is it alright not to have those?
Update: My storage is still not revealed by the mini tool partition program, went under usb settings -> my storage and refreshed disk information, nothing shows up ugh it might be impossible for me to do this after all....
nobody can help me in regards to this? well then I guess a new cellphone is in order
grrrrr I should've gone with a iphone 3G or BB 9700 at the time instead...
ClaudioPerez said:
Ok so what you meant by taking things from my storage is going to file explorer and basically copying everything from the "my device" to the SD card?
Just want to make sure because if it doesent work then I haven't gotten anything backed up right.
Went to file explorer -> copied everything in the top folder which is application date, connMgr, doc and setttings, program files etc. is this all thats needed basically?
Thanks
P.S some of the things I tried taking like global.txt or exe couldn't be copied because of violations or some weird error, is it alright not to have those?
Update: My storage is still not revealed by the mini tool partition program, went under usb settings -> my storage and refreshed disk information, nothing shows up ugh it might be impossible for me to do this after all....
Click to expand...
Click to collapse
I guess you will have to reflash the ROM again since your problem seems to be unsolvable. My suggestions is to flash a stock 6.5.3 ROM before you transfer the auto SD installer.

Yikes! I removed the "storage" folder in storage/emulated/0/. Help!

Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
I'm not sure if this is what you are asking for. If it is, then yay! If it isn't, please ignore.
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
OneChaos said:
I'm not sure if this is what you are asking for. If it is, then yay! If it isn't, please ignore.
/storage/emulated/0/
/storage/emulated/legacy/
/storage/sdcard0/
Click to expand...
Click to collapse
Hey thanks for that, but I'm pretty sure there was a folder called "storage" in /storage/emulated/0/ (or the same location /storage/emulated/legacy/).
So, what I'm looking for is what the folders are in *that* folder. And it should look something like the following:
/storage/emulated/0/storage/...... <---------- these are the folders I'm missing, and there most likely is a symlink in there. I think if I can just recreate that folder structure and recreate the right symlink there, then I might be able to get my photos back.
Thanks.
You're saying there is a "storage" folder in /storage/emulated/0 or /storage/emulated/legacy? Mine only comes with these 2 directory, and /storage/sdcard0 is a link to legacy.
Now you still have that 2 directory but can't find any of your files inside?
You deleted the storage when hooked up on your PC yes ?.
The storage folder your referring to only shows when browsing your folders via your PC so you could try recreating it via your PC again but I seriously think its gone mate. I accidentally deleted this folder too once but I always have regular backups on my pc.
NeXuS⁴
slymobi said:
You deleted the storage when hooked up on your PC yes ?.
The storage folder your referring to only shows when browsing your folders via your PC so you could try recreating it via your PC again but I seriously think its gone mate. I accidentally deleted this folder too once but I always have regular backups on my pc.
NeXuS⁴
Click to expand...
Click to collapse
Yes!!! Thanks for this post! I was indeed cleaning up my "sd card" from the PC (over MTP). And, I noticed a storage folder at the root of the SD card. In fact, it's there right now! If I browse the contents of the SD card on the PC, there is a storage folder there with only an empty "emulated" folder in it. I've never noticed it there before, so I just deleted it. Suddenly, I couldn't access anything else on the sd card from the PC. I thought, that's weird. Sure enough, everything just vanished!!
WORD TO THE WISE: Stay away from that "storage" folder at the root of your SD Card when browsing its contents over MTP!!!!!!!!
why not just do a factory image flash? userdata.img should contain all the folders and locations you need to restore it properly.
hp420 said:
why not just do a factory image flash? userdata.img should contain all the folders and locations you need to restore it properly.
Click to expand...
Click to collapse
Oh, there ins't a problem anymore. I just thought that the "missing" symlinks had something to do with my wiped sd card. But, it turns out that the missing symlinks aren't shown in the default CM file browser, only in other file browsers. They were there all along.
The kernel of the story has been solved as I now know how I wiped my sd card.
floepie said:
Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
Click to expand...
Click to collapse
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
reflashing your current rom or any other rom would have brought everything back to how it should be. a deleted my whole system once, then just relashed my current rom at the time, and all came back.
Galaxo60 said:
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
Click to expand...
Click to collapse
Oh, I got most, if not all my photos back. There is a great link which shows you how to transfer your entire userdata partition to your hard drive and search for recoverable files. Alternatively, you can also use the app diskdigger and send your pics to your PC using coreFTP or other FTP server. Both methods recovered about the same number of photos. So, yeah, a reasonably good ending.
http://forum.xda-developers.com/showthread.php?t=1994705
simms22 said:
reflashing your current rom or any other rom would have brought everything back to how it should be. a deleted my whole system once, then just relashed my current rom at the time, and all came back.
Click to expand...
Click to collapse
Not in my case. That's the first thing I did. I thought, it's just a symlink, right? Well, not really. It's not really a symlink on a different partition. Again, it is only created during an active MTP session and ONLY visible on the PC. And, as soon as you wipe these seemingly empty folders, all references to the files are lost, as the system begins to slowly re-populate the space, which is really at /data/media/0.
Galaxo60 said:
There is no way to get the files back, I deleted it once when connected to PC because I didn't recognized the folder and it was empty, so I deleted it. Then I tried for a week in every forum to found an answer, but there is none.
Click to expand...
Click to collapse
I know it wouldn't bring your files back, but it would restructure your storage partition properly so you could start from scratch, rather than recreating all the folders manually.
hp420 said:
I know it wouldn't bring your files back, but it would restructure your storage partition properly so you could start from scratch, rather than recreating all the folders manually.
Click to expand...
Click to collapse
? No one is doing anything manually. Did you intend to reply to me? The missing symlinks referred to earlier have nothing to do with it, as I discovered and reported a few posts ago. Again, there is a "storage" folder at the root of the SD card only visible at the PC when connected over the MTP protocol. When this folder is deleted, all is lost immediately, even by re-flashing a ROM. Hope that helps someone to avoid deleting it and consequently all their virtual sd card files.
floepie said:
Oh, there ins't a problem anymore. I just thought that the "missing" symlinks had something to do with my wiped sd card. But, it turns out that the missing symlinks aren't shown in the default CM file browser, only in other file browsers. They were there all along.
The kernel of the story has been solved as I now know how I wiped my sd card.
Click to expand...
Click to collapse
Hey how did you do it? Which third party file browser did you use? I have done the same thing..
Check /data/media/ those folders are just linked to /data/media/ anyways. All your stuff should be there unless if you deleted the entire data partition
Sent from my Nexus 4 using xda app-developers app
ninad911 said:
Hey how did you do it? Which third party file browser did you use? I have done the same thing..
Click to expand...
Click to collapse
The problem is that if you are browsing the SD card contents from your computer (while the phone is connected), a folder appears there that otherwise is NOT present while browsing the card's contents from the phone, while the phone is NOT connected. I forgot which folder it is, but I believe it is called sdcard0 or some such at the root of the SD card. I have no idea why it appears, but if you delete it, you have deleted the entire contents of your SD card. And, yes, you have lost everything unless you are able to acquire a special tool to recover the contents, but if you have done so, don't do anything with your phone, as those contents will be overwritten by new files.
In so doing, I had originally thought that there were symlinks that were also deleted, but that wasn't the case. The symlinks were still present as viewable by ES File Explorer, but not with CM's file explorer. In any case, all my files were still lost, but I was indeed able to recover the majority.
Edit. I used Diskdigger in the Play store. And it worked pretty well. The other option is linked in this thread above.
floepie said:
Great. Now my entire virtual SD Card has been wiped! Don't delete the storage directory in the root of your virtual SD Card (/storage/emulated/0/) or (/storage/emulated/legacy/). Watch out!
Now, I'm wondering if I can somehow gain access to the files if I recreate this folder. From what I remember, there were a number of nested folders within this "storage" directory.
Can someone give me the dir structure of your "storage" folder? Thanks!!
EDIT: This is how I did it. See post 6. Stay away from your "storage" folder while browsing your phones sd card over MTP at the computer!!!
http://forum.xda-developers.com/showpost.php?p=44519212&postcount=6
Click to expand...
Click to collapse
Hey, were you able to recover the data on your phone after deleting that folder? Please let me know and also check your inbox please! Need your help
Aditya Srinidhi said:
Hey, were you able to recover the data on your phone after deleting that folder? Please let me know and also check your inbox please! Need your help
Click to expand...
Click to collapse
Yes. First, either turn your phone off or do VERY little with it, as those files could be overwritten.
I had surprisingly good success with Diskdigger. It was able to recover most of my photos, although some were a bit "damaged", as in only half of the photo showing, and some other oddities. But, at least it was better than nothing. You will need root access for this sort of thing.
floepie said:
Yes. First, either turn your phone off or do VERY little with it, as those files could be overwritten.
I had surprisingly good success with Diskdigger. It was able to recover most of my photos, although some were a bit "damaged", as in only half of the photo showing, and some other oddities. But, at least it was better than nothing. You will need root access for this sort of thing.
Click to expand...
Click to collapse
Thanks a lot!!! Im using disk digger and I already see a lot of my images turning up
Just one other doubt, if I were to use the link to guide which you posted which allows to mount the VHD as a USB storage, does that allow me to recover other files too?

Recovering files from local memory

Hi All,
I have an S5 SM-G900P w/6.0.1
I keep my photos on my SDCard. Recently after taking some lengthy vids, I ran out of space and it shifted over to local storage.
I backed up both external and internal DCIM/camera folders to my local machine. Then copied that backup to another backup drive.
I normally parse through the pics to make sure everything is ok before I delete the stuff from my phone, but this last batch was too big to do that, so I only skimmed through.
After thinking the copies were successful, I went ahead and deleted the pictures from my phone. I deleted via Windows 10 while looking at the folders via usb connection.
Shortly after I discovered that any of the files that were on internal storage (and some on the SD Card) were corrupted during the transfer. Their file size was inflated to approx 5.2GB each (normally around 1500KB).
I was able to quickly recover any of the corrupted files on the SD card using Piriform's Recuva. (maker of cCleaner). I mounted the SDcard directly to the PC and didn't use the phone.
However, Recuva won't browse the phones internal storage when connected via USB. Their FAQ says it can only browse and recover from physically attached drives. (no mapped drives, which I tried by using a webserv)
I tried several recovery apps on my phone itself. Disk Digger, Dumpster, etc. They didn't find anything.
AFAIK, I can't mount the internal storage on the phone as a physical drive like we used to be able to do on older phones.
At this point, I'm not sure what else I can do. It's been a day now, so the phone might have already written over the space anyway. But I'm curious if there isn't any other ways to recover those files. I hate losing pics of my kids.
jasonallen19 said:
Hi All,
I have an S5 SM-G900P w/6.0.1
I keep my photos on my SDCard. Recently after taking some lengthy vids, I ran out of space and it shifted over to local storage.
I was able to quickly recover any of the corrupted files on the SD card using Piriform's Recuva. (maker of cCleaner). I mounted the SDcard directly to the PC and didn't use the phone.
AFAIK, I can't mount the internal storage on the phone as a physical drive like we used to be able to do on older phones.
At this point, I'm not sure what else I can do. It's been a day now, so the phone might have already written over the space anyway. But I'm curious if there isn't any other ways to recover those files. I hate losing pics of my kids.
Click to expand...
Click to collapse
Can I assume, seeing that you used "Recuva" that you are running Microsoft on your PC???
If that be the case.... will take a little time , and a good size USB Stick. and hopefully, you have a port left for USB3.0 for the S5..
That said, you could set up Ubuntu on a USB Stick (making sure when doing so, you use the whole card, so changes can be made)
Then making sure your PC can boot from a USB Stick, Power that down, Restart PC, Booting into Ubuntu. then plug in phone. Mount the it, and you should be able to find everything you are missing. (that said, I do hope you were using the Stock Camera App, and mot something else.... if so, the files, might be bad from the start, I hope this is not the case).
hope this may help you

Categories

Resources