Sd card mounting - Galaxy S Plus I9001 Android Development

Hello guys
Can someone plz help me with a problem concerning SD card (not the internal)
as far as i understood ics roms mount the sd card differently than GB, what is the correct path of the SD? /mnt/external_sd , /external_sd or something else?
problem is i try to install apps from the sd with their data in them (such as a navigation app with maps loaded in the SD) but i get an error that says it cant find the sd card to load from (despite the fact it installs properly)
Installation is flawless in GB
Now, i have found an xml file in the files of this program that contains model numbers and the SD target , for example for the GB roms the target is /sdcard/external_sd . This isnt the case for my phone with ics....for the record it installs flawlessly in an HTC evo3d
the code in the xml file is
</item>
<item>
<brand>samsung</brand>
<model>GT-I9001</model>
<android_version>2.3.6</android_version>
<counter>2</counter>
<sdcard_location>/sdcard/external_sd/</sdcard_location>
<change_path>/sdcard/external_sd</change_path>
</item>
<item>
<brand>Samsung</brand>
<model>GT-I9001</model>
<android_version>4.0.4</android_version>
<counter>2</counter>
<sdcard_location>/external_sd</sdcard_location>
<change_path>/external_sd</change_path>
it doesnt work for ics

you could use this app ICS SD Binder and try to
bind your sd to external_sd manually..

it did work but now i cant see my internal SD when i connect the phone. It also reboots when i press the connect usb storage
edit1, nevermind the USB, i got airdroid
edit2, i get 2 externalSD paths, one is sdcard/external_SD and the other is external_SD , okay what must i type into the program? i just typed in /external_SD .

i think you can just type any path you want, i never used it myself
Sent from my Galaxy Nexus using xda app-developers app

Related

Understanding file stucture, internal and external memory/SD help.

I am having issues with getting the gps maps to read from the external sd card on my lg phone
Everything runs good from the internal storage.
I am editing the database.xml to change how the app looks for the map data.
replace all entries of: Aura/
with:external_sd/Aura/ (i have yet to find a path that works.)
The LG terminology is odd,
sdcard/ is the internal storage
sdcard/_ExternalSD is the external storage,
when edited the xml file I tried
“external_sd/Aura/” “sdcard/_ExternalSD/Aura/” and “_ExternalSD/Aura/”
They all failed to locate the maps….
I guesses?
try "/sdcard/_ExternalSD/Aura/"

Solved! How to swap the internal and external SD cards so apps install externally

If you are like me and bought the 16GB version of our beloved SG3, thinking you could always move apps to the external sd card, then this mod is for you. It swaps the internal and external sd cards so apps install on your external card, because your phone is fooled into thinking the external card is the internal card.
I suggest that if you are going to do this, you should probably do it right after installing a new ROM, and before you install any apps. That way everything will get installed onto the external SD card.
I didn't invent this, Zedomax adapted in from mattiadj. But most people haven't been able to get it fully working, probably due to variations in the init.d function of various ROMS. They'd be able to see the External SD card as the internal SD, but the internal SD would disappear. This method avoids using init.d, and instead uses the app Script Manager to load the script on boot.
After much fooling around, I figured out how to do it so the External SD card and the internal cards are swapped, but you can see both with any file Explorer. I got it working on CleanROM 2.0, but it should work on Beans 10 as well.
Here's how to do it: Warning, if you do not understand the following instructions, or don’t have experience doing these things, you probably don’t want to do this hack. I am not responsible if you a) brick your phone, b) delete your data, or c) get very frustrated. That being said, the most likely failure will be that you only see the one card (the External card).
Back everything up that you care about first!!!!
1. First, I'd recommend making a Nandroid backup of your phone.
2. Next, just to be extra safe, I would backup your internal SD card to your PC. While you are doing that, if you have data on the external SD card, back that up too.
3. Next, I would format your external SD card to fat 32. (You could probably use Ext format too, but I didn’t test that.)If you already have it in that format, and have content on it, this won't affect the content, but back it up just to be safe. It’s probably better to have the Ext SD blank to begin with, you can always copy back its content from your pc.
4. Next copy the contents of the internal SD to the External SD card. This is to avoid confusion about apps and such.
5. Next install script manager free from the play store:
https://play.google.com/store/apps/...anager&feature=nav_result#?t=W251bGwsMSwyLDNd
It will show up on your phone as S manager ads.
6. Download the mod from here: http://downloadandroidrom.com/file/...ternalsd_gs3_fat32orextfat_US_ZEDOMAXv0.2.zip
7. You’ll see a folder called: 11extsd2internalsd_gs3_fat32orextfat_US_ZEDOMAXv0.2.zip
You need to unzip the folder, then go to System/etc/init.d and copy the 11extsd2internalsd file from there to your phone. Put it into the /data directory. Use Root Explorer, and your phone will need to be rooted.
(https://dl.dropbox.com/u/6305/SD Card Hack SG3/11ext file in data directory.png)
Or you can get just the 11extsd2internalsd file here: https://dl.dropbox.com/u/6305/SD Card Hack SG3/11extsd2internalsd
8. Using Root Explorer, navigate to that file in the /data directory. Press and hold the file name until the menu pops up, and click on permissions.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Permissions.png
(Unix geeks set them to 777, and everyone else copy the picture below. Click OK.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Permission settings 777.png
9. Open the script manager app, and select Browse as Root in the config screen. Tell it to remember this setting.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Script manager browse as root and save.png
10. Navigate to the /data directory and choose the 11extsd2internalsd file that is located in /data and click on it. Click on the “Is script” button.
11. Now tap on the buttons that say Su, Boot, and Save. The file name will come up in yellow after the save.
https://dl.dropbox.com/u/6305/SD Card Hack SG3/Script manager setting after save.png
12. Reboot your phone and you should see the swap working and be able to access both internal and external SD cards. The external card will show up as sdcard, and the internal card will show up as extSDCard. Your apps should now install to the external card, since your phone will think it's the internal card. Is that confusing? It was to me too!
Good luck and please share your experiences specifying which ROM you used, so that others can avoid frustration.
Thank you’s always appreciated.
Wonder if this works on asop roms as well.
Please excuse my Galaxy S III, it's a bit Paranoid.
On my X2, this same mod was done via a flashable zip...not sure how it worked, but it was worked perfectly. At some point the roms incorporated the flip flop as part of the Rom. I like the feature because I wouldnt need to move certain app data to my external sd card. Also, I wouldn't have to show tibu where to look for my backups.
Sent from my SCH-I535 using Tapatalk
Clienterror said:
Wonder if this works on asop roms as well.
Please excuse my Galaxy S III, it's a bit Paranoid.
Click to expand...
Click to collapse
What's the consensus on this? Can this mod as posted above be applied to AOSP/CM9/CM10?
Just flashed this on aokp and both sdcard and external_sd are my physical sd card. The internal card is not showing.
Op, can we get an cm10 ver?
Did a little playing around. Below seems to work on cm10 aokp. Can op confirm this is good?
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
maniac2k said:
Just flashed this on aokp and both sdcard and external_sd are my physical sd card. The internal card is not showing.
Op, can we get an cm10 ver?
Click to expand...
Click to collapse
Are you actually flashing it, or using the Script Manager? As far as I know, only the Script Manager approach works.
maniac2k said:
Did a little playing around. Below seems to work on cm10 aokp. Can op confirm this is good?
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
Click to expand...
Click to collapse
Not sure, but take a look at the code from 11ext2internalsd file. If it works, and you can see both sd cards, then you've nailed it.
Yeah sorry, im running the script apk. It seems to work. I just dont understand the exacts of the vold/179:97 or if it should be vold/197:96?
When i go into settings/storage, should my physical sdcard stats be showing under internal memory?
Thanks I got mines to work now. Thanks to your suggestions.
Sent from my SCH-R530U using Xparent SkyBlue Tapatalk 2
Update: ive been using the script below for a littlw while and it is working great on cm10. It is best to enable it after a fresh rom install.
mount -t vfat -o umask=0000 /dev/block/vold/179:97 /storage/sdcard0
mount -o bind /data/media /storage/sdcard1
I need to do this.
MODERATOR.
This is not a Q&A Thread. Needs to be moved to appropriate location.
Apps Did Not Move After Internal / External SD Swap for GS3
Well I thought everything went perfectly because as mentioned, when I go to storage my internal shows my 64g card and internal of 12g now shows as external. However the apps are still on my internal which is now called my external and when I go to app manager it shows remaining space 5.9g. So I am not sure what I did wrong because I have reviewed this several times and started right after I installed a fresh rom . I am hoping someone can help me correct this because basically all it did was change the name of the two drives but apps are still getting installed to original location. Thanks in advance for any help you can give me
Swapping internal>external did not work
i followed all steps as stated above but when I go to File Manager (default), long pressing Internal SD>Details show 1.2 MB and External SD shows 1.8 GB which is not true. I have external SD of 8 GB and internal is 2 GB in my micromax a110 phone.
The steps above did not work to swap the memory but it now shows even incorrect size. I installed Root Browser lite but got no way to chck the size of the SD cards.. Please help
Does this work with the new Verizon Jelly Bean which they are now sending out via OTA? Are there other Verizon S3 Jelly Bean Roms that are known to work with this method? Thanks
Its works on the leak so i dont see why it wouldnt work on the actual vz rom
not working
This is not working with my samsung s duos please help
Any cm 10.1 updates for this?
I am unable to change the file permissions to -rwx-rwx-rwx- whenever I try to change it I get an error that the phone is unable to change permissions.
EDIT:
Successfully changed permissions and followed the instructions as given. Still not working on the international S3, my internal memory is still 16 GB and external 32GB

[Q] ExtSdCard problem

Hi,
I have a P5100 and I've a problem with the SD Card. In fact, this card works great, but sometimes this card is changed from R/W to R/O and so I have to use root explorer to put it back to R/W.
It is very annoying because when I use some apps to use this ExtSdCard (Titanium, download some large file, copy from Sd to Ext Sd with Total Commander, ...), the action is stop because the ExtSdCard is changed to
R/O
I've fix several time the permissions trough CWM, tried to change the permissions with root explorer to put the same permissions as the SD card, but impossible ...
I hope that somebody can help me ...
Thank you to all
From mount command reports:
/dev/block/vold/179:25 /storage/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
Click to expand...
Click to collapse
The "errors=remount-ro" means if I/O error occurrs, system will remount the SD card read only. Reformat your SD card!
ketut.kumajaya said:
From mount command reports:
The "errors=remount-ro" means if I/O error occurrs, system will remount the SD card read only. Reformat your SD card!
Click to expand...
Click to collapse
So I've reformated the SD Card and when instered, it is the fine (it's the same R/W status as the internal SD). But when I've restarted the Tab, there is the same problem (I can change the r/o - r/w status in root explorer).
And some folder have been renamed with a μ instead the first letter and nothing in the folder ... But this is not the first time. So I'm busy to reformat the SD card again.
I have disable Directory Bind to see if it is the problem ...Do you thing a program can do that ?
Is it possible to dissable the command line where is it written "erroos=remount-ro" ?
If yes, how do it by myself ?
Thanks
It's possible when you turning off the device the SD card locked/marked as busy by an app, system failed to safe eject your card. errors=remount-ro option made for a good reason, you can still access your card even after I/O error occurs and a lot of technical reason. My English toobad to explain
AW: [Q] ExtSdCard problem
Check if the card is physically ok. There are programs on PC that check if all bytes can be written and read again.
Sent from my GT-P3110 using xda app-developers app
Possible fix - need verification
One thing I've noticed....I have a generic 32GB SD memory card and I get the Read-Only issue regularly with it. I purchased a new card which happens to be a Samsung 32GB card and it works just fine. So I tried to figure out why and I think I got it figured out.
The Samsung card size is reported as 31,430,705,152 Bytes...or 29.18GB reported by Windows.
The Generic card size is reported as 32,698,531,840 Bytes or 30.47GB reported by Windows.
So...I got the bright idea to use EaseUS Partition Master 9.2.1 to resize/reformat the memory card to the same size as the Samsung card and leave the remaining 1GB as unallocated space on the card....I think this is now working correctly.
Someone else wanna give this a try and see if it fixes the SD read only issue for them as a verification.
Format of the card is Primary partition, 0.0B before, 29982.0B for partition, and the remainder unallocated. Format as 32K size blocks.
Give it a try and report back your findings...I'm testing on a GT2 P3113 with Rooted Stock 4.1.1
redhawk
redhawk0 said:
One thing I've noticed....I have a generic 32GB SD memory card and I get the Read-Only issue regularly with it. I purchased a new card which happens to be a Samsung 32GB card and it works just fine. So I tried to figure out why and I think I got it figured out.
The Samsung card size is reported as 31,430,705,152 Bytes...or 29.18GB reported by Windows.
The Generic card size is reported as 32,698,531,840 Bytes or 30.47GB reported by Windows.
So...I got the bright idea to use EaseUS Partition Master 9.2.1 to resize/reformat the memory card to the same size as the Samsung card and leave the remaining 1GB as unallocated space on the card....I think this is now working correctly.
Someone else wanna give this a try and see if it fixes the SD read only issue for them as a verification.
Format of the card is Primary partition, 0.0B before, 29982.0B for partition, and the remainder unallocated. Format as 32K size blocks.
Give it a try and report back your findings...I'm testing on a GT2 P3113 with Rooted Stock 4.1.1
redhawk
Click to expand...
Click to collapse
I just bought a new one and no more problem... the other one was defect... the size of the two were the same
Thank for your help :good:
woodyby said:
I just bought a new one and no more problem... the other one was defect... the size of the two were the same
Thank for your help :good:
Click to expand...
Click to collapse
That's what I did. My 32GB card was a SanDisk card; I could put stuff on it (like photos) and they would disappear. The device was getting remounted read-only, indicating that something was causing errors. I bought another SanDisk card (same size) and it's now working just fine.
That original bad card, when put into a camera, failed - some of the pictures could not be read. I returned it for refund as it's obviously bad.
If it's acting flaky, replace it.

[Q] CM10.1 Alpha 8 Sd Swap problem

I tried sd swap apk for Alpha 6 but it didn't work.
I tried editing vold.fstab (changing emmc and sdcard) it didn't work.
I also tried editing sdswap section in build.prop it didn't work too.
Can anyone explain step by step what i need to do for internal-external sd swapping after flashing 10.1 Alpha 8?
Hi,
to swap sd card with external card , you can use the following command in the emulator:
su
setprop persist.sys.vold.switchexternal 1
yoktur said:
I tried sd swap apk for Alpha 6 but it didn't work.
I tried editing vold.fstab (changing emmc and sdcard) it didn't work.
I also tried editing sdswap section in build.prop it didn't work too.
Can anyone explain step by step what i need to do for internal-external sd swapping after flashing 10.1 Alpha 8?
Click to expand...
Click to collapse
nitv007 said:
Hi,
to swap sd card with external card , you can use the following command in the emulator:
su
setprop persist.sys.vold.switchexternal 1
Click to expand...
Click to collapse
I tried it but i have a problem.
File managers shows my ext sd card as sdcard0 its okay.
But when i try to take a photo it says There is not sd card, please mount it.
also in gallery there is photos but when i try to open them it shows gray color only.
In apps with photo caching in sd card like Twitter i can't see photos.
Use as mtp.
Sent from my GT-I9003 using xda app-developers app
After executing the command, you should reboot the phone.
yes , your external sd card is shown as sdcard0. if gray color image is displayed in gallery, it means the file is corrupted. Possibly that camera app has not written the file properly. Please restart the phone , see if it works.
yoktur said:
I tried it but i have a problem.
File managers shows my ext sd card as sdcard0 its okay.
But when i try to take a photo it says There is not sd card, please mount it.
also in gallery there is photos but when i try to open them it shows gray color only.
In apps with photo caching in sd card like Twitter i can't see photos.
Click to expand...
Click to collapse

Writing file to Extdcard by using Paragon NTFS,HFS,HFS+

Hello, I have lenovo a6000 which have android 4.4.4 Kitkat which have 16 GB Extdcard in it. The device is rooted with the official Supersu.zip v2.37 provided by xda Community. Now as you all know that, FAT 32 FS does not allow you to save files bigger than 4GB. So I formatted my memory card to NTFS. Which my mobile doesnt support.
But as many of you guys know that, there is one app named Paragon NTFS, HFS,HFS+ which allows you to mount your NTFS formatted memory card into your android device which does not has the ability to read the NTFS formatted memory card.
Now I successfully came to the stage where I can access all my data (Photos, videos) after mounting my NTFS formatted Exdcard with the help of that app. Let me mention where I have mounted this Exdcard, its here= /storage/sdcard0/Exdcard (Exdcard is the folder I made). Is this right path to mount the Exdcard? Let me tell you that there was also option of sdcard1 inside the /storage folder. But whenever I select that sdcard1 path it says unable to write to sdcard1 when I try to download file via torrent.
I am not able to download any file no matter what is its size. After 2-3 secs it says Download Failed. So where I am mistaking? In mounting path of that Exdcard? Should I have to select sdcard1 instead of sdcard0 path?
The final question is how can I now download 4gb+ file using this app. What is actually is the right mount point in order to save files larger that 4GB+ in it.
And honestly I searched over the internet about this, on google, youtube etc. But didnt find any answer. So I need your help...
Thank You.

Categories

Resources