My application has a backup/restore feature that writes a csv file to a directory named after the app, in the root of the sd card. I have a user trying to move from one tablet to another. The backup feature appears to properly be creating the backup file on her SD card. When she places the SD card in her new tablet, the backup file and the directory it's stored in do not appear to be on the SD card at all. Apparently she was successful in having other data from other apps move over.
I've walked her through everything I can think, including writing a test app to verify the issue. Without a doubt, the files exist on the old device, but don't exist when installed in the new device.
I'm unsure what the original device is, but the new device is a Dell Streak 7.
Anyone seen this before? I'm leaning towards corrupt SD card, but it seems it's my burden to prove as my app is the only app she's having issues with.
The root of /sdcard is not necesarrily the SDCARD you can remove and take out.
/sdcard is usually part of the build in memory which can be accessed and used by the user.
The SDCARD you can remove is usually found at /sdcard/external_sd on Android 2.2 devices and /sdcard/sd on Android 2.1 devices.
Yes the naming is a bit confusing .
Dark3n said:
The root of /sdcard is not necesarrily the SDCARD you can remove and take out.
/sdcard is usually part of the build in memory which can be accessed and used by the user.
The SDCARD you can remove is usually found at /sdcard/external_sd on Android 2.2 devices and /sdcard/sd on Android 2.1 devices.
Yes the naming is a bit confusing .
Click to expand...
Click to collapse
That would certainly explain some things, especially if a user is moving a SD card from one device to the next.
My app creates a folder under the path returned by the Environment.getExternalStorageDirectory() function, where it creates and reads a backup file.
My documentation asks users to connect their device to a computer, mount as USB, and copy the backup file into that directory. This user is simply moving the SD card between devices. I'm wondering if there is a better method than using the getExternalStorageDirectory that I can use, so that I can have a common location on all SD cards to facilitate users moving cards between devices.
wct097 said:
My documentation asks users to connect their device to a computer, mount as USB, and copy the backup file into that directory. This user is simply moving the SD card between devices. I'm wondering if there is a better method than using the getExternalStorageDirectory that I can use, so that I can have a common location on all SD cards to facilitate users moving cards between devices.
Click to expand...
Click to collapse
Well it depends on the device what happens if they mount as usb,
if they get the internal sdcard or the external sdcard or both.
On my galaxy i9000, both the internal(/sdcard/) and external (/sdcard/external_sd) are shown when pluging it into my computer and mounting it as usb.
Environment.getExternalStorageDirectory() will always return the path of the users storage enviroment which is in usually /sdcard . Thats fine so far.
The problem is there is no function to get the external storage (/sdcard/external_sd or /sdcard/sd).
The only option i know atm, would be to probe manually if such a directory exists. You can use Build.VERSION.SDK_INT to see which android the user has and check the right directory.
Build.VERSION.SDK_INT <= 7 would mean if he has plugged in an external sdcard it would be mounted under
Environment.getExternalStorageDirectory().getAbsolutePath() + "/sd/"
Build.VERSION.SDK_INT >=8 would be
Environment.getExternalStorageDirectory().getAbsolutePath() + "/external_sd/"
You could use that and maybe a "import backup" function to check for the file on an external sdcard?
I confirm it!
1 format your mocro sd on nfts using wimdows 7
2 insert the card in your 7.7 and dont care of the tablet says that the card is invalid
3 launc mount drive that is free on android market
4 unchek device filtering
5 select the last bottom drive that is the only one nfts drive avaiable
6 tap the upper right button, the one that have the icon of a drive
7 now you should see in the right colum your drive with a bar thar rapresents the free space, if you cant see this, reselect the nfts drive on the left colum and retap the mount drive icon (upper right) until you can see the drive mounted on the right colum.
8 when your drive is mounted you can find the drive folder with a root enable file manager like honeycom fm hd, the folder is under the system folder named mnt
Tht is all it works fine amd you cam close the app drive mount, the tablet comtinue to recognize the nfts micro sd wothout the app running. Now i can put my hd movies larger than 4 gb inside my micro sd and play them with my 7.7
The only problem is that tje sistem apps are setted to save thinks in mnt/externaldevice, so if you want save you movies or photos taked with the 7.7 camera inside your microsd you cant do it, you have to move them from your tablet memory to your microsd nfts using a file manager, but this is a little problem nothing of big
If any brave user is able to tweak the camera app to save the moviesnor photo inside the path mnt/nftsdrive please do it, after this all is perfect. Thanks
thanks!
btw, it's called NTFS, not nfts
Yes you are right, i do ever this mistake xD
Do you need to root your tab ?
Yes root is needed
Thanks.
I got it to work.
But there is a problem.
How can I transfer a 6 GB file to my 64 GB SD card using usb cable connected from my desktop to the Tab 7.7 ?
Currently I have to take out my SD card from my tab and using an adapter to transfer the movie to it (from my desktop to the SD card).
This is a tedious process and I don't want to keep taking the SD card in and out of my tab. I want to transfer my big movie file straight from my PC to the tab when it is connected via USB cable.
Currently, when I connect the tab to my desktop, I only see the internal storage of the tab and not the external NFTS sd card.
yes i know, this is a big problem, but unfortunatly i am unable to solve it, becouse the sd is mounted in a different place,in the origins the card id in mnt/externalstorage, but with the app drive mount tha parh is different..
Raziel_Sicily said:
yes i know, this is a big problem, but unfortunatly i am unable to solve it, becouse the sd is mounted in a different place,in the origins the card id in mnt/externalstorage, but with the app drive mount tha parh is different..
Click to expand...
Click to collapse
perhaps softlinking the path may help?
it can help, but how to do this?
Maybe by transfering from your desktop to the tab using Samba through your local network (ie wifi instead of USB) and a SAMBA app on the GTAB ?
Raziel_Sicily said:
retap the mount drive icon (upper right) until you can see the drive mounted
Click to expand...
Click to collapse
Ya,it's kind of tricky here.Let's why I failed mount ntfs card before...
Cuz, I give up after few trys..
Did it again today,and I successed in mounting ntfs card.
jcm0 said:
Maybe by transfering from your desktop to the tab using Samba through your local network (ie wifi instead of USB) and a SAMBA app on the GTAB ?
Click to expand...
Click to collapse
Yes i know this method, but this is only wifi , it is more slow than usb. To do this just install astromanager and configure a spb network with the ip of your computer, after this share a folder from your pc and then you can copy files from your pc to your tab microsd via wifi
I've just made an app to mount NTFS sdcard.
It allows you to use it like normal FAT32 sdcards,
working with Stock camera app or MTP file transfer.
Could anyone try this?
I'm going to put this to android market
and I've already purchased a developer account,
but it seems to take some time to be able to upload my app...
My English is not good, I know
If there are any weird wording, let me know.
** alpha version **
** only for root users **
** only for Galaxy Tab 7.7 ... for now **
This app is to mount SD Card using NTFS.
/mnt/sdcard/extStorages/SdCard is the root of sdcard.
Auto-mount when the Android OS starts.
Or you can mount/unmount it manually.
** Not Bug **
- If you don't do "Safely Remove Hardware"
when you take your sdcard from PC,
it takes some time to mount it.
** Confirmed Issues **
- Only NTFS sdcard use assumed.
This app may prevent using FAT sdcard.
- Once unmounted, even after you mount again manually,
Android OS don't detect the sdcard.
You can access it with file managers or other apps,
but stock camera and settings app don't.
(Let me know if you know any solutions for this.)
- At the first attempt to mount (and get permission for su),
Android OS could fail to detect the sdcard.
It may be caused by delay of Superuser asking if it's ok or not.
- No error handling
** Disclaimer **
I am not responsible for any damage caused to your device or data or feeling.
It is recommended to backup your precious data.
Perfect app!! it works fine.
For this point
- Once unmounted, even after you mount again manually,Android OS don't detect the sdcard.You can access it with file managers or other apps,but stock camera and settings app don't.(Let me know if you know any solutions for this.)
It is not enought to restart the device in order to let android and camera/gallery to recognize the ntfs card ? This will solve the problem?
Raziel_Sicily said:
Perfect app!! it works fine.
For this point
- Once unmounted, even after you mount again manually,Android OS don't detect the sdcard.You can access it with file managers or other apps,but stock camera and settings app don't.(Let me know if you know any solutions for this.)
It is not enought to restart the device in order to let android and camera/gallery to recognize the ntfs card ? This will solve the problem?
Click to expand...
Click to collapse
Thank you!
Of course, after rebooting the device,
sdcard can be mounted and Android OS detect it as usual.
It seems initial booting and inserting sdcard trigger detecting process,
but I don't know how to let the os to do it by my app.
dont worry your app is awesome as it is it is not a big problem to reset for make it functional after the unmount, just specify it when you sell in android market. Thanks so much for the app
Pretty great app to bad i left my 7.7 at home once i get home this will be the first thing i try. Btw any plan for galaxy note ver too?
Thanks alot
kwanying said:
Pretty great app to bad i left my 7.7 at home once i get home this will be the first thing i try. Btw any plan for galaxy note ver too?
Thanks alot
Click to expand...
Click to collapse
I think it's possible to improve this app to work on galaxy note,
I don't have one though.
All I need is sdcard's mount point ( "/mnt/sdcard/external_sd" ? maybe ) and
device name which is like "/dev/block/mmcblkxxx".
If you can get these info, please pm me.
Thanks.
Thanks for awesome apk~
If you have any plan put it on the market, plz let us know.
We will support it!!
please hurry up if you want to gain money, becouse the huawei media pad woth ics of my girls can read ntfs micro sd, i think that with the ics update the p6800 will read the ntfs from defoult.
Forgive me if there's a forum about this posted somewhere else on xda... I couldn't find one coz few other people seem to be having this issue.
My problem is that I can't write more than like 7mb to any of my 3 my ext SDs (on the phone or on a computer via usb) without the phone pretty much crashing & needing a reboot.
It never happened back when I used GB... And I've had the same issue on all three ICS ROMs I've tried (CM9, F4K r4 and DarkyROM v11).
Anybody had the same issue or an idea on how to solve this?
Ext SD issues
Can you be a little more specific? Which ROM are you currently using? What are you trying to do? Are you installing apps, transferring data to SD ... ? Where are trying to store stuff? Which directory? My Galaxy S external SD is named emmc in File Explorer.
Galaxy S: RemICS-UX v1.3beta
Galaxy Note: ICS 4.0.3
Oct-Al said:
Can you be a little more specific? Which ROM are you currently using? What are you trying to do? Are you installing apps, transferring data to SD ... ? Where are trying to store stuff? Which directory? My Galaxy S external SD is named emmc in File Explorer.
Galaxy S: RemICS-UX v1.3beta
Galaxy Note: ICS 4.0.3
Click to expand...
Click to collapse
Currently using DarkyRom v11 (Black Edition) with Semaphore ICS 1.2.5s Kernel.
I am simply trying to transfer files (Mostly media files: jpeg, png, mp4, mp3) from mnt/sdcard/media to mnt/emmc.
The transfer progress bar just hangs and the phone becomes unresponsive to the point where I need to reboot. Reading data off the card works 100% fine.
The memory card does work if I remove it and connect it to a computer via a card reader / SD slot.
I was wondering if it wasn't a hardware fault on the phone (seeing as not many other people running ICS on their i9000s have the same problem), but then someone I know picked up the exact same issue when he flashed CM9 on his sgs.
Ext SD problems
If you are having /datadata problems try here for starters: 'http://forum.xda-developers.com/showthread.php?t=1541942' (CM7/9). There is a summary of cause and cure, along with further references for you to follow.
Initially I had problems understanding the file structure of my rooted phone. Using FtpCafe I tried to download large map files into sdcard/external_sd/. Big mistake, as I quickly ran out of space. Moving those files to emmc/ sorted my problem. Go to Settings->Storage to quickly check how things stand re internal and external storage.
Galaxy S: RemICS-UX v1.3beta
Galaxy Note: ICS 4.0.3
EDIT:
Sorry for the above, but have only just got your update. Like you, I had trouble transferring files on the phone (about 1GB), but put it down to memory problems and the limitations of the phone. Much safer to connect to the computer in USB connection mode and move the files around from there. In my own case, I had my files backed up to the cloud and the computer; so I simply deleted the unwanted files and downloaded directly to the external sd card from backup.
Oct-Al said:
If you are having /datadata problems try here for starters: 'http://forum.xda-developers.com/showthread.php?t=1541942' (CM7/9). There is a summary of cause and cure, along with further references for you to follow.
Initially I had problems understanding the file structure of my rooted phone. Using FtpCafe I tried to download large map files into sdcard/external_sd/. Big mistake, as I quickly ran out of space. Moving those files to emmc/ sorted my problem. Go to Settings->Storage to quickly check how things stand re internal and external storage.
Galaxy S: RemICS-UX v1.3beta
Galaxy Note: ICS 4.0.3
Click to expand...
Click to collapse
Yeah, that script is for the low storage notification... an issue I had months back but fixed.... Don't think it's relevant for my current problem.
Running out of space on my internal storage is exactly why I want to be able to move files to my emmc... But that's what's not working, The phone won't let me copy to emmc.
Thanks for trying to help
dan73b said:
Yeah, that script is for the low storage notification... an issue I had months back but fixed.... Don't think it's relevant for my current problem.
Running out of space on my internal storage is exactly why I want to be able to move files to my emmc... But that's what's not working, The phone won't let me copy to emmc.
Thanks for trying to help
Click to expand...
Click to collapse
you need to use https://play.google.com/store/search?q=move+to+Sd+card&c=apps
or menu > settings> applications> storage use > application you want to move to SD card
you cannot cut and paste from internal phone
But to move from one SD card to another, just connect usb, once usb icon appears on task bar
open your notifications drawer > touch usb connected > touch connect storage to PC
you can now open both SD card in your PC and transfer anything you want to any SD card
xsenman said:
you need to use https://play.google.com/store/search?q=move+to+Sd+card&c=apps
or menu > settings> applications> storage use > application you want to move to SD card
you cannot cut and paste from internal phone
But to move from one SD card to another, just connect usb, once usb icon appears on task bar
open your notifications drawer > touch usb connected > touch connect storage to PC
you can now open both SD card in your PC and transfer anything you want to any SD card
Click to expand...
Click to collapse
I know how to transfer files via usb but like I said earlier, the phone crashes when I do that too.
Hi..
As the title suggests I have a problem that occurs without any logic .. in practice some folders that I have in my micro sd change from sun and rename losing their content, I can not even access it from a PC, the only solution is to delete them phone and then re-create them .. is the third time this has happened (the last time yesterday) and I had this thing for 3 times to format the micro sd .. I'll explain: I sd in a "Music" folder inside with some tracks and yesterday the folder instead of " Music " has renamed adding a strange character type "MusĀ§c" (it is not the correct one, but I do not know what language it was) and making the contents of the folder is inaccessible even by PC .. this also happened with the "Data" folder with the "TitaniumBackup" and the photos .. the phone still see the contents of folders, but it becomes impossible to do anything, you can not even remove .. says they are protected from PC and phone ditto ..
I know it is a very strange thing and hardly understandable (it's hard to even explain it), but it is very annoying ..
In 4 years of Android I've never had anything like that and they are one of Android phones, and it chews ..
I have the Omega rom and faux kernel (but he did it with the stock kernel) .. the micro sd is a samsung 32 gb class 10.
To any of you ever had something like this?
Excuse me but the text is translated with google.
Take a look here:
http://forum.xda-developers.com/showthread.php?t=1048819
Hi!
I've got external SDCard (64 GB 10 Calss smartbuy logo), which is usable only by Camera application.
I've tried to sync my phone using syncMe on that card, and it didn't work; after that I've tried to create a folder on it using Astro file manager, and it didn't work too (without error: silently)
After that I've fired up terminal and found out that if I try to
$ mkdir 123
on external SDCard it returns "Can't create folder: permission denied".
I've tried 3 different cards (1 4Gb some noname with fat32, 2 different 64Gb on exFat); all is reproducible for any of them. Also I use Galaxy note 10.1 tablet which is just fine with all of that cards & writes like a charm.
Also if I try to format SDCard from my phone, it says "Blank card or unsupported filesystem blah blah" and refuses to mount till I format it on PC.
However, my Camera still uses the card without a problem, taking photos and saving em there.
What could be the reason?
My phone is SM-N900 stock non-rooted.
I did not try to do the hardware reset yet, and want to avoid it as far as I can (cause freakin' hardware resets for every 1st problem were the number 2 reason for abandoning my Apple devices & returning back to Android).
Found this:
http://forum.xda-developers.com/showthread.php?t=2617921
Sorry for the noise.
Rooting is a must, okay.jpg.