Files on ext. SD Card deleted by Media Scanner - LG Optimus 2x

Hi folks,
the Android Media Scanner is deleting files stored on my ext. SDCard.
First I thought the card is broken but then I found this:
h_t_t_p:_/_/code.google.com/p/android/issues/detail?id=3692
Is anyone else having this issue and/or got a solution for it?
Thanks!
Edit: I am on CM7 n82 currenty

Probably own fault. Might be cause by mounting ExternalSD wrong way.
See updated thread andr. Dev.
Sent from my Optimus 2X using XDA Premium App

Media files being deleted from SD card
gonzalesdlx said:
Probably own fault. Might be cause by mounting ExternalSD wrong way.
See updated thread andr. Dev.
Sent from my Optimus 2X using XDA Premium App
Click to expand...
Click to collapse
Gonzales,
I updated from Android 2.3.4 to 2.3.6 this weekend, and the problem started. I came across both threads at the Android Developers forum, and found no solution.
You do mention above that it was "probably your own fault... see updated thread". Well, I did read the updated threads, and found no solution.
You hint that it has to do with the way the card is mounted/unmounted. And this weekend I did in fact mount/unmount the card various times, connecting it to the PC.
But what exactly did you do? Did you find a solution?
Thanks,

[SOLVED] Media Scanner Deleting Files from SD Card
OK, I believe I found the solution. Apparently the problem can be caused by the SD card being mounted and/or unmounted properly. In my case, I was connecting/disconnecting to/from the desktop PC, having the SD card as Mass Storage. At one point, Android wasn't detecting it anymore so I removed and inserted it a few times.
I did what I describe on the same thread at Android Developers: http://code.google.com/p/android/issues/detail?id=3692#c117
Here's what I wrote there:
So I did the following, and it seemed to solve.
1. Connected phone via USB to desktop PC, and dismounted card from phone, allowing data transfer to PC (via Mass Storage Device)
2. In Windows, as a test I created various folders with subfolders, with image files in them. On some I placed a .nomedia file in root and sub-folder, other only in root, others I renamed the sub-folder to start with a ".", etc. (NOTICE: I copied existing .nomedia files from other folders, as Windows doesn't allow files/folders starting with "." to be created)
3. In Windows, I ejected the USB drive politely (i.e.: I didn't just pull the cable out)
4. On phone, opened Settings/Applications/All and found Media Storage
5. Deleted data from Media Storage
6. On phone, I disabled the external access (file storage)
7. Waited patiently until SD card was detected and mounted (previously, I tried forcing that to happen by opening applications that would query the SD card)
The phone performed the Media Scan a couple of times, and ALL MEDIA FILES REMAINED THERE, where they would originally have been deleted from.
In all test folders I created from within Windows, no files were deleted. And in folders that originally had media files (which I didn't touch through Windows), the files no longer were deleted.
Anyway, this seems to have fixed it for me.
My system:
Samsung Galaxy Ace, Android 2.3.6, rooted.
An extra hint: if you feel you card access is slow, get an app like SD Booster and increase the cache size. On my device, it was as low as < 100Kb but increasing it to 1024Kb made a huge difference.
And if you don't want the media scanner to run on boot (increase boot speed), use Rescan Media Root.
Both need root access, by the way.
Click to expand...
Click to collapse
And I've had no problems at all ever since, and even mounted/unmounted a couple of times.

Related

[Q] Cannot download files to internal SD in Mass Storage mode.

I'm running stock Android 2.2 and just rooted my phone yesterday. Since rooting my phone, I've had the following issues:
Cannot create a new folder on internal SD card ("The file '<%1 NULL:NameDest>' is too large for the destination file system") from computer while in mass storage mode (I can in media player mode)
Cannot copy/move files to internal SD card while in mass storage mode (I can in media player mode)
Cannot download from browser to phone using computer (I tried downloading an apk file from xda but it just kept trying to download.
Cannot download from mobile phone browser ("Cannot download. The content is not supported on the phone")
That's all I can think of for now, but you get the idea. I think it might have to do with the fact that I didn't unmount the internal SD card before rooting my phone (I don't think there's a way, but perhaps I rushed).
Is there any way I can fix this? Thanks in advance
Edit: It only affects the internal SD card. I put an external SD into it and it works fine.
I've been having pretty much the same issue since day one with this phone. While in Mass Storage, I cannot transfer files onto my phone. I can create/delete folders in the file tree though.
I would greatly appreciate any information you folks can come up with.
I have the same issues on a china-phone running 4.4.2 , is there any solution to this?
Also apart from these, but i think is due to the same bigger problem, i have some random issues with the gallery: it fails to load some images and it crashes.
Bluetooth transfer fails due to storage issues, yet i have some gbs free (internal or phone), and the files are just mbs.
I cannot copy some files from my phone to my pc, it keeps showing some errors (which appear to be due to FAT-FAT32 format, but in reallty i have no clue).
My phone is rooted, but it seems like i have no rights over the storage control... and that makes me real sad.
Any suggestions?
Sucore said:
I have the same issues on a china-phone running 4.4.2 , is there any solution to this?
Also apart from these, but i think is due to the same bigger problem, i have some random issues with the gallery: it fails to load some images and it crashes.
Bluetooth transfer fails due to storage issues, yet i have some gbs free (internal or phone), and the files are just mbs.
I cannot copy some files from my phone to my pc, it keeps showing some errors (which appear to be due to FAT-FAT32 format, but in reallty i have no clue).
My phone is rooted, but it seems like i have no rights over the storage control... and that makes me real sad.
Any suggestions?
Click to expand...
Click to collapse
It's hard to help/support a phone we don't know about. What device do you have exactly? Which root did you use? Also, FAT32 isn't supported by quite a few devices, I would suggest using a different format.
I have an Mpie t6s, which i believe is kinda new cause i haven't been able to find anything on the net.
I have failed to create a backup due to "task ended with error" from MTKDroidtools, and i was trying to find a rom that works. I couldn't.
So now, i have it with the rom of a similar model, mpie 909t, but the problems remain.
I have sort-of realized that the gallery issue was created because i didn't ejected the drive from My Computer (yea, it has Mass Storage, and MTP, and camera mode when i connect it to PC.
I read that 4.4.2 and mass storage are not compatible, and it came to me.
I rooted it with iRoot that was the only that worked.
I removed all the Chinese &(@$^ but i kept iRoot's Superuser because i thought that with SuperSU all the problems where returning (that was before i realized the issue with mass storage and safe remove).
BWolf56 said:
It's hard to help/support a phone we don't know about. What device do you have exactly? Which root did you use? Also, FAT32 isn't supported by quite a few devices, I would suggest using a different format.
Click to expand...
Click to collapse
So i came to realise that the internal sd is 69MB (after i repartitioned it and made 2.5gb the interal for apks), so i think this is the main problem!
Formating via windows showed me that size, at first i thought it was something wrong (everywhere else in win the size was 29 GB) but now i manage to deal with that.
Prefer that than an always crashing phone.
ExtSD to the rescue!

External SD Card showing LOST.DIR ?

Hi,
I installed a new external SD card in my phone. Copied files from my Note on to it. After a day I see the folder gone and an new empty folder LOST.DIR in its place.
Is my SD card faulty? I used it for over 6 months in the SG2 without any problems.
Please help!
Read this.
PoisonWolf said:
Read this.
Click to expand...
Click to collapse
Thanks but I did read that thread before posting here and that thread made no sense to me.
My folder having Video files is gone and there is an empty LOST.DIR in its place.
I also do not use a Mac.
LOST.DIR is comparable to the recyclbe bin in windows.
if you do not permanently delete files they end up in LOST.DIR for a specific acmount of time. (that's the way it happens on my computer)
i don't think your Video Folder moved on its own to the LOST.DIR. Anyway, check in LOST.DIR - it should be there. Just move it outta there.
Hi I had this problem with a faulty SD card.. I'll never skimp on an SD card again. Its definitely branded ftw here
Sent from my GT-N7000 using xda premium
two_handed said:
LOST.DIR is comparable to the recyclbe bin in windows.
if you do not permanently delete files they end up in LOST.DIR for a specific acmount of time. (that's the way it happens on my computer)
i don't think your Video Folder moved on its own to the LOST.DIR. Anyway, check in LOST.DIR - it should be there. Just move it outta there.
Click to expand...
Click to collapse
Hi,
Yesterday I had a folder called "VIDEO" with movie files in it on my SD Card. Today, there is just this folder called LOST.DIR which is empty !! There is no trace of the Video folder of the movie files anywhere.
My SD card is blank except for the empty folder LOST.DIR
nuclearmonkeyuk said:
Hi I had this problem with a faulty SD card.. I'll never skimp on an SD card again. Its definitely branded ftw here
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Mine is a branded Transcend 4GB card.
Maybe it is bricked then. Do you have the possibility to cross check with another hardware, e.g laptop, card reader...
you can also try to format it, create a tempfile and check what happens.
what's the output of:
du /mnt/sdcard/external_sd ?
After some tests, I found this. If you have your phone connected to a PC (windows) to transfer files to the phone's externalSD directory, then use the "remove hardware option" without noticing there are TWO hardwares listed, then turn off USB from your phone, then unplug, you end up in this bad situation of a directory that's empty except for the lost.DIR (which is not accessible).
If you are careful to remove BOTH listed drives prior to turning off USB and unplugging the files should remain on your phone and be accessible. Your mileage may vary.
PS. I'm pretty certain the lost.dir is as dead as can be and can be safely deleted.
AspiringDeveloper said:
...
PS. I'm pretty certain the lost.dir is as dead as can be and can be safely deleted.
Click to expand...
Click to collapse
It may be dead, yeah, but why remove it when it'll be created by the system again anyway and it doesn't harm?
delete them all.
is garbage.
two_handed said:
It may be dead, yeah, but why remove it when it'll be created by the system again anyway and it doesn't harm?
Click to expand...
Click to collapse
Some people have reported them as pushing 3 gigs. I don't have any problem getting rig of 3 gigs of wasted space. If it's 0 bytes? Leave it.
As i've said before - it is comparable to the trash bin in windows. You don't empty it, it takes space on your Disk. Empty it, its zero byte.
Sent from my GT-N7000 using XDA App
AspiringDeveloper said:
After some tests, I found this. If you have your phone connected to a PC (windows) to transfer files to the phone's externalSD directory, then use the "remove hardware option" without noticing there are TWO hardwares listed, then turn off USB from your phone, then unplug, you end up in this bad situation of a directory that's empty except for the lost.DIR (which is not accessible).
If you are careful to remove BOTH listed drives prior to turning off USB and unplugging the files should remain on your phone and be accessible. Your mileage may vary.
PS. I'm pretty certain the lost.dir is as dead as can be and can be safely deleted.
Click to expand...
Click to collapse
Hi, thanks for your efforts but I did not connect my phone to my PC for transfering the files. I cut / paste them from my phone usb drive to the external sd card with the ES File Explorer utility. The files were there for a day, then suddenly they disappeared.
JulyDerek said:
I cut / paste them from my phone usb drive to the external sd card with the ES File Explorer utility.
Click to expand...
Click to collapse
Gotcha. I have also encountered this problem. I suspect the problem is similar.
Because you say the files lingered temporarily, diagnosing a fix or work around won't reveal instantaneously if it was successful. My thought is if it is first copied to another dir then flush the clipboard by copying something else (no need to paste it) then copy the file and paste it into the externalSD, then the origin of those won't be contingent on proper disconnection of the drive. I've made two test files: one as described above and one copied direct from USB. I renamed each to clearly identify which is which. Both files were intact a few minutes after unplugging the drive. I rebooted to see if there was any change. Both files remain. I'm not sure how i killed the files using the jump drive before. Perhaps I didn't wait for the phone to complete the process of disconnecting it. **** happens.
If you do find a consistent way that even definitely following proper procedures leads to lost.dir I would like to hear about it.
[NOTE] I will not test (and do not advise) intentionally disconnecting the drive prematurely as a test of that particular possibility. If lost.dir is not produced employing proper procedures all the way, it is of no use to damage your phone or your jump drive simply to investigate if that was the real cause.
"If it's not broken, DON'T FIX IT!"
edit: Next day both files remain.

[Q] Whatsapp Media storage location, SDCard0 instead of extSDCard

Hi,
I have a question regarding media storage location of Whatsapp - I don't necessarily expect a solution but would like to at least verify the behaviour on other phones.
My old android device (Sony Ericsson SK17i) saved the Whatsapp media files to the external SDCard.
I bought a S3 mini this week and noticed a difference: Whatsapp media files are not stored on external SDCard anymore, but on the internal storage. I guess that this comes from the internal storage being presented as SDCard0, so maybe Whatsapp thinks that this is in fact the external SD-Card.
Can somebody with S3 mini check how this behaves with his phone? Within Whatsapp I didn't find a way to configure this, can anyone think of a solution to that?
Many thanks in advance.
I bought a S3 mini this week and noticed a difference: Whatsapp media files are not stored on external SDCard anymore, but on the internal storage. I guess that this comes from the internal storage being presented as SDCard0, so maybe Whatsapp thinks that this is in fact the external SD-Card.
Can somebody with S3 mini check how this behaves with his phone? Within Whatsapp I didn't find a way to configure this, can anyone think of a solution to that?
Many thanks in advance. [/QUOTE]
mine saved on phone internal too....and i'am afraid there's no setting from within whatsapp to store in external sd card....however you can reduce space by using directory bind....search around and you will find it.....directory bind or link2sd should do it....
nazri5363 said:
mine saved on phone internal too....and i'am afraid there's no setting from within whatsapp to store in external sd card....however you can reduce space by using directory bind....search around and you will find it.....directory bind or link2sd should do it....
Click to expand...
Click to collapse
ok, thanks for double-checking, I was afraid so. I don't want to link the whole app to sd card, but directory bind sounds like a very good idea, I haven't thought of that.
FolderMount (http://forum.xda-developers.com/showthread.php?t=2192122) did the trick. Thanks!
F157 said:
FolderMount (http://forum.xda-developers.com/showthread.php?t=2192122) did the trick. Thanks!
Click to expand...
Click to collapse
How do you managed to make the default Image preview program to work properly?
I marked the "Media verification" checkbox on the folder mount configuration so that de SD Card folder wouldn't appear on the image preview program, but now I only can see some black thumbs with no image "attached" that points to internal memory.
Did any of this happened to you? Or something similar with the images or how you see them?
in my S4
whenever i open this app , notifications comes saying :
checking for root ......
exit
and nothing happens !
install GL to SD from google play and move the data from sdcard0 to ext and link it
Nothing worked out for my xperia zl
evildog1 said:
install GL to SD from google play and move the data from sdcard0 to ext and link it
Click to expand...
Click to collapse
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Dishe said:
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Click to expand...
Click to collapse
it seems you have root permission problem. you may try to fix permission via custom recovery. GL to SD is working fine and i'm able to download additional data on ext SD.
evildog1 said:
it seems you have root permission problem. you may try to fix permission via custom recovery. GL to SD is working fine and i'm able to download additional data on ext SD.
Click to expand...
Click to collapse
Ah, that might have been it.
In the mean time I gave up, removed it and went with foldermount, linked above. Works just fine out the door, cleaner UI too.
Move WhatsApp Media To External SD Card
This App automatically redirects WhatsApp media to the External SD Card in order to save memory: I cannot post the link, but you can search Nicola Rosada On Play Store and download Photo & File Redirect.
Dishe said:
Ah, that might have been it.
In the mean time I gave up, removed it and went with foldermount, linked above. Works just fine out the door, cleaner UI too.
Click to expand...
Click to collapse
I got foldermount and used it to mount data/obb folders from some apps to my ext SD card. But this is what i get for whatsapp: The data and obb options are greyed out so i cant select them and it says there is no data to begin with (0 B). How did you do it? Thanks
Thanks for saving me to ask this question. My son has a SG Grand Prime SM-G530H and is facing the same problem.
Dishe said:
This seems like a solution to my problem- moved my whatsapp media folder using the manual settings in Gl to SD, but it seems wonky. I took a picture of myself and sent it to someone, and it worked fine. Image is stored in my "sent" folder on the card, which also shows up in internal if I browse there with an explorer. I click on the image in whatsapp, it becomes full screen.
But when someone sends ME an image, it seems to never download. I see the thumbnail, I click it, and then it says that the media is not found on the SD card.
Sure enough, I browsed the folder in explorer (hooked up to my computer as PTP, browsing in windows 7) and the file isn't there. Only the one that I originated. I tried to create a file there, and it actually timed out on me and said device wasn't available. So it seems to sometimes work but not other times? How strange!
Click to expand...
Click to collapse
Got the same Issue - can send Images and theyll get stored on SD via Foldermount, but when i receive images, just got the blurry thumbnail and after i downloaded the image i got that "Media is not found on the SD card" issue.
Anyone knows what i did wrong?

[SOLVED][Q][YetAnother]SD car has been unexpectedly removed. (FOR REAL)

Hello.
This is my first post.
I have seen the noob video, I know I am not special. And still:
I have searched the forums, but my problem is different. Most of the posters don't know what caused this error. I know what caused mine. I have actually unexpectedly removed the SD Card. Kind of. Funny story: transferring data (green bar on windows not loaded at all, window stuck on calculating time/finding files etc -technically no data has been transferred), windows explorer decides to go all "Not responding" on me (thank you microsoft). The genius in me tells me to unplug the phone, so I do. Yay! explorer.exe is ok now. Too bad my SD card isn't.
There are some files on it... but none of the folders that I created, so I lost everything except photos and stuff. I have backed them up on my PC. When I connect my phone (which I have to do manually by going into USB settings so that my PC recognizes anything -auto play doesn't appear anymore-), instead of showing up as my phone, it shows up as a media device with stuff on it (folders like Android, DCIM, but none of my manually created folders containing music etc.).
I repeat, I have actually unexpectedly removed my SD card.
I right clicked on the drive in the PC and clicked Format. It warned me. I didn't care, I was desperate. In just one second, it said formatting complete. No files missing, however (still those Android, DCIM etc. folders).
I have a Samsung Galaxy S Advance GT-I9070 (this forum section, I think). I have flashed the I9070XXLQ4 (android 4.1.2) from Russia on it (a few weeks ago). Not root, or any custom ROM's.
Recap. I have unexpectedly removed my SD card. I want my games back. Or at least formatting it, making it usable.
Formatting the SD card from the phone settings has done it. I am a noob.
try formatting the sdcard on your phone thru the settings>storage..
re-download all your games or transfer them on the sdcard after the format.. if you have back up on your pc or other storage..
as for your pc.. try a reboot.. to correct the drivers of your phone as storage device..
jaycm1130 said:
try formatting the sdcard on your phone thru the settings>storage..
re-download all your games or transfer them on the sdcard after the format.. if you have back up on your pc or other storage..
as for your pc.. try a reboot.. to correct the drivers of your phone as storage device..
Click to expand...
Click to collapse
Thanks, I've managed to do that before you posted (but I'm a noob and I can't edit posts so quickly). It did it. Although I was hoping not to lose everything.
vici30 said:
Thanks, I've managed to do that before you posted (but I'm a noob and I can't edit posts so quickly). It did it. Although I was hoping not to lose everything.
Click to expand...
Click to collapse
is your sdcard a genuine one?.. no offense.. but there are a lot of fake sdcards in the market today..
actually i have a fake one.. its 8gb.. now, half of it is corrupted already.. my tablet hung due to it..
Hi guys.
I hope it's not the wrong thing to revive this old thread.
I was recently installing an RUU onto my phone. After the install completed, the phone restarted and it began checking the SD card again for an RUU - and it found one, as I had not by then removed/renamed it. So, after waiting for it to verify the RUU, selecting "no" to installing it, it restarted again and again it started looking for an RUU. By this time, I was getting impatient, so I tried to remove the SD card quickly before any actual data access happened.
WRONG
My SD card became RAW, inaccessible to Android or Windows. Testdisk and various free versions of paid-for undelete tools (like EaseUS) found only files from waaaaay back, before I had ever used the card in Android. As a precaution, I took two RAW copies of the full card onto two harddisks and compared the MD5 of each (match).
A little wary of the risk of using various features of testdisk, I thought the best thing to do next was a format (not quick format) to exFAT in windows and run all the undelete tools again. No results. Then I found this thread and, as suggested, tried formatting using Android. All software returned no results again.
What else can I do? The contents of the card should still be as they were (unless the formatting twice effected that). Am I correct to assume that the card (128gb) would have been formatted exFAT by Android 5/6?
In testdisk, are "superblock" or "boot" forms of recovery any relevance to me?
Thank you!
(PS: Android is working fine, I'm only having problems with the SD card contents)

Device creating weird files on SD Card

Hello!
For a few days now I've noticed that my device has been creating some weird files on my SD card. I have tried formatting the SD a few times but it still happens. If I do not delete these files more and more keep being created until there are hundreds of them in my SD. They seem to not take up any space at all, but it bothers me having to browse for files in the card. I have attached a screenshot from the root of my SD card with the suspicious files highlighted. If they are completely normal for an android device, I would like to know if there is a way to stop them, hide them or maybe have them appear inside a separate folder so I can keep my card organized.
Also, it may or may not be related, but whenever I'm listening to music (whether it'd be Play Music or another app) sometimes the phone stops playing it, as if I closed the app. I had Clean Master installed and it happened frequently until I figured out it was the source of the problem and uninstalled. It worked fine for a while but it started again. I believe it could be related, since I keep all of my music on the SD card.
Thank you in advance for any assistance provided!
Do you see these files only when phone is plugged to PC via USB or can you see them with ES-Explorer or similar Filemanger on the phone also?
I have a few of these files but they are only present when I check the SDcard on a Windows- PC, in ES or Rootexplorer they aren´t visible.So my opinion is that these files are created temporary for connecting.
Wolfcity said:
Do you see these files only when phone is plugged to PC via USB or can you see them with ES-Explorer or similar Filemanger on the phone also?
I have a few of these files but they are only present when I check the SDcard on a Windows- PC, in ES or Rootexplorer they aren´t visible.So my opinion is that these files are created temporary for connecting.
Click to expand...
Click to collapse
The files also appear with file managing apps on the device as well. As you can see, the files have "reproduced" since I started this thread.
Inquisitor956 said:
The files also appear with file managing apps on the device as well. As you can see, the files have "reproduced" since I started this thread.
Click to expand...
Click to collapse
I also have the same. Just deleted 400 0byte files on my motog 2ndgen sd card (kitkat 4.4.4). I see them with es and when connected to PC.

Categories

Resources