Hi folks,
As you know, the Sony media and video player didn't show the mp3 and videos on the external SD card in his library.
Now my idea was to mount folders of the external sdcard into folders on the internal sdcard.
Solution:
I created a script for mounting photo, video and music folders from ext. sdcard to the corresponding folders on the int. sdcard. After successful tests, I implemented init.d support on my Tablet S for a 'autostart' solution at boot time and moved the script to 'init.d' folder. For me it works great and fulfilled my requirements 100%.
Enclosed the content of my 'automount' script:
#!/system/bin/sh
# need sleep 75 for right timing maybe you can reduce it to 30
sleep 75
mount -o bind /mnt/sdcard2/Music /mnt/sdcard/Music
mount -o bind /mnt/sdcard2/Video /mnt/sdcard/VIDEO
mount -o bind /mnt/sdcard2/Fotos /mnt/sdcard/Pictures
Click to expand...
Click to collapse
Here you can find my [HOW_TO] for init.d support:
http://forum.xda-developers.com/showthread.php?t=1505340
P.S.: If it do not work for you, try to increase the sleep value. If you have a 'fresh' system 30 should be enough ... if you use two or three widgets 'sleep 75' could be ok ... and so on ...
I hope that someone has the technical knowhow how to do this, that would be great to access extra memory
also one interesting thing in build.prop:
Code:
ro.separated.external.storage=true
Would you try what happened if you change to "false"?
I found the same entry ... but do not know what it mean.
Saw the same thing myself, but don't have an SD card with me, so I wont get to try till I get home.
But I guess the change of the mount point in the /etc/svold.fstab is particularly promising. I still waiting for a rating of a expert. No one here?
Changed that line in true, rebooted.
Openend up Poweramp and this had to scan my folders again.
Sd Card still there and working but nothing more I think.
Can't really see if there's anything changed.
I tried:
Removing nosdcard from ro.build.characteristics
Changing ro.external.storage.removable to true
Changing ro.separated.external.storage to false
I haven't been able to see any difference.
Things I looked at:
The stock video player won't recognize videos on my SD card.
Videos on SD card will play if I navigate to them using Root Explorer
I can move apps to SD card using Titanium Backup, and play them from the SD card.
Anyone have some tips on what else I can look for?
50% Solution
Hi guys,
I tried a other way (and more secure) from a hint in an other forum.
If you use the following command with adb or a app like "scripter" on your tablet,
you will mount the external card into the internal, but step by step:
1. create a new folder /external_sd under /mnt/scard/
e.g. with adb shell : mkdir -p /mnt/sdcard/external_sd
2. then mount the /mnt/sdcard2 to this folder
e.g. with adb shell: mount -o bind /mnt/sdcard2 /mnt/sdcard/external_sd
3. now it is done and if you now refresh your media library, you will find all your media stuff on your media player.
Unfortunately you have to do the same after a reboot or switch off/on.
I am a little bit afraid to add this command line in init.rc or something else.
Do one of you have a proposal how we can make it permanent, without a risk?
obicom said:
Hi guys,
I tried a other way (and more secure) from a hint in an other forum.
If you use the following command with adb or a app like "scripter" on your tablet,
you will mount the external card into the internal, but step by step:
1. create a new folder /external_sd under /mnt/scard/
e.g. with adb shell : mkdir -p /mnt/sdcard/external_sd
2. then mount the /mnt/sdcard2 to this folder
e.g. with adb shell: mount -o bind /mnt/sdcard2 /mnt/sdcard/external_sd
3. now it is done and if you now refresh your media library, you will find all your media stuff on your media player.
Unfortunately you have to do the same after a reboot or switch off/on.
I am a little bit afraid to add this command line in init.rc or something else.
Do one of you have a proposal how we can make it permanent, without a risk?
Click to expand...
Click to collapse
I will check it for you if you want but after work, evening
These are good news
I am sure for you it is a "child's play", but I think helpful for all of us.
Please let me know if I can test something ...
THANKS IN ADVANCE !
-- Edit --
Maybe we can add this command to rescan media files after mount command:
mount -o bind /mnt/sdcard2 /mnt/sdcard/external_sd
pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver
Click to expand...
Click to collapse
50%...............phew, getting closer, keep up the good work chaps.
http://www.androidtablets.net/forum...cation-discussion-post-root-2.html#post149151
Maybe this helps?
Good find there. Wonder if the Vizio is similar to the Sony.
Link2SD
If you want app data to be moved to external sd Link2Sd works but with a few extra steps only. Here is how I manage this on mine.
Installed Link2SD on tablet.
Formatted external card (in my case a 32GB microsd in an SD adapter) on my laptop using EASEUS to have to PRIMARY partitions 1st in FAT32 and second in EXT3 formats.
At first Link2SD does not recognise any ext partition present and if I try to recreate mounting script on it telling it EXT3 format it says something like could not do, directory does not exist or similar.
Then after a reboot Link2sd warning pops up saying the sd card was not mounted at boot and therefore the system did not load apps on it. You have an option to recreate a mounting script (which I did not need to do as did it already previously) and the quick reboot option (which is different from the regular reboot in the way that it only restarts the android interface not the whole hardware) - so I do this reboot and after everything starts you can see the extra partition and use it.
So currently quick reboot is needed after every total shutdown of the tablet - thankfully I almost never shut down the tablet completely unless run out of battery completely or some other rare reason or testing like this one.
Also note that quick reboot sometimes gives a close/wait warning just after it is done - I always chose wait and everything seemed ok after that.
Make sure you give Link2sd superuser permission. I decided to leave out Lib out of the app data I link because I noticed that if I move data back to internal storage link2SD shows that libs are unlinked already/ I know there is an option in link2sd to relink libs at boot but I was not able to confirm if it works and they tend to take little space internally anyway.
Regarding extra partition size I tried less than 1GB and ca 14Gb. With bigger than 1GB partition it seems to recognise its size in link2sd but once you move more than 1gb data to it does not reflect the increase above 1gb but still seems to make the apps I moved before and after that work still.
I wonder if multi mount widget could help when combined with link2SD somehow. My guess best solution would be to make android mount external card early in its boot.
Hope it helps
I tried today several things ....
@ps3taker
that sound a little bit more complicated then my solution with app scripter and the mount command.
I tried today several things to get a "autostart" solution but unfortunately without success:
- App "autostart (root)" don't work on Tablet S
- Change in svold.fstab need sd card eject and insert to be mounted after rboot
- Change in vold.fstab need sd card eject and insert to be mounted after reboot
- Add mount command in init.goldfish.sh don't work
- Startup script tweaks can't work, no "/system/bin/playlogosnow" on Tablet S
(http://forum.xda-developers.com/showthread.php?t=813309)
Someone additional ideas for a autostart option for the mount command?
-- Edit --
I did a little bit more investigations and find out, that after a reboot it needs a short time before the internal sd card is ready to use. Therefore it is senseless to search a solution during boot time. I guess this is the reason why the change in svold.fstab and vold.fstab didn't work.
That means we need a "autostart" App, as a Widget or a Virus scanner that mount the device and rescan the medias. Who is willing and to do that for us?
just create an init.d script and symlink the ext_sd folder to the desired folder on sdcard...
check if this device has:
/system/etc/install-recovery.sh
if it doesnt then check if the /init.rc (or other init.*.rc) files contain the text "install-recovery.sh"
if the text exists then just create the file /system/etc/install-recovery.sh which has the following at the top:
Code:
#!/system/bin/sh
followed by the symlink/bind code
and save file and give it 777 permission (chmod 777 /system/etc/install-recovery.sh)
that should automatically run the desired commands at each boot...
if the above is not possible then just create a GScipt script and execute it at startup
DooMLoRD said:
just create an init.d script and symlink the ext_sd folder to the desired folder on sdcard...
Click to expand...
Click to collapse
Hi DooMLoRD,
symlink will not work - because of fat32 sdcard! We've got to use mount -o bind, it works without problem, about autorun thing - thanks - i've got to try it
br
condi
@DooMLoRD & Condi
I did exactly this in my tests before, with the "install-recovery.sh".
The file "/system/etc/install-recovery.sh" don't exist but the the "init.rc" files contains the text "install-recovery.sh".
So I created the file "/system/etc/install-recovery.sh" with the commands:
#!/system/bin/sh
mount -o bind /mnt/sdcard2 /mnt/sdcard/external_sd
Click to expand...
Click to collapse
and give it 777 permission but unfortunately it dosen't work.
I guess the reason is the timing problem, that sdcard mount is not ready in this moment. I will try tomorrow add first the mount command for "/mnt/sdcard" in this file and will see what will happen.
Keep you informed.
thank you all for trying.
Could you please summarise what works currently please.
a) Do you manage to link apps to external sd as in rooted gingerbread?
b) or is it just for showing external sd media in the native player in a separate subfolder or something similar
c) do you manage to swap around external and internal sds, i.e. mnt\sdcard is now external as on gingebread and mnt\sdcard2 is the built-in/internal one
I think all of the above is useful but would like to know what's the initial plan.
Related
There is a sizable thread over i9003 forum about editing vold.fstab to swap internal with external sd. I guess they were more desperate as i9003 comes with very small internal storage. But even our "16GB" isn't enough for many of us.
I'm on 2.3.5, and I've tried editing the file using vim, and have failed miserably each and every time.
Unfortunately, the fstab file for i9003 differs quite a bit from the one for i9100. Here are what I've noticed:
i9003:
mount_deep
mbr_policy
i9100:
format_option
otg subsection
They also have different sysfs path and mount point.
Any knowledgeable person/people wanna jump in and make the magic happen?
does no one else see the value in this?
Sure I do
For instance I applied the idea from ownwhere (here) but in the most simple way just to test it.
I tested it with the gameloft dir.
So first I moved /sdcard/gameloft/ to /sdcard/external_sd/gameloft/
Then I created back an empty folder /sdcard/gameloft/
and then I mounted the external_sd/gameloft dir in it with :
mount --bind /sdcard/external_sd/gameloft/ /sdcard/gameloft/
I used Script Manager free version from market to run this script at boot time (added a baaad sleep 60 at the top of it to wait for the system to finish the storages checks).
And this works for me. It will help me to wait for a true external_sd / internal_storage swap mod...
I hope it will also help other people here in the same way as it did for me
sirnono said:
Sure I do
For instance I applied the idea from ownwhere (here) but in the most simple way just to test it.
I tested it with the gameloft dir.
So first I moved /sdcard/gameloft/ to /sdcard/external_sd/gameloft/
Then I created back an empty folder /sdcard/gameloft/
and then I mounted the external_sd/gameloft dir in it with :
mount --bind /sdcard/external_sd/gameloft/ /sdcard/gameloft/
I used Script Manager free version from market to run this script at boot time (added a baaad sleep 60 at the top of it to wait for the system to finish the storages checks).
And this works for me. It will help me to wait for a true external_sd / internal_storage swap mod...
I hope it will also help other people here in the same way as it did for me
Click to expand...
Click to collapse
But you'd have to unmount every time you want to use usb storage, no?
I think I've tried all realistic combination/possibility of editing the vold.fstab file given my very limited knowledge. My conclusion is, someone with knowledge needs to try this
ln -s /sdcard/external_sd/gameloft /sdcard/gameloft ?
samaral said:
ln -s /sdcard/external_sd/gameloft /sdcard/gameloft ?
Click to expand...
Click to collapse
Nope, doesn't work. Does symlink even work on FAT?
g2tl said:
But you'd have to unmount every time you want to use usb storage, no?
I think I've tried all realistic combination/possibility of editing the vold.fstab file given my very limited knowledge. My conclusion is, someone with knowledge needs to try this
Click to expand...
Click to collapse
Hello
Yes I need to do this if i want to use usb storage on desktop computer with the default system option.
But you can use apps like multi mount sd-card lite (free on market) to mount sd-card(s) on desktop computers and keep them mounted on the phone (read-only).
This way I didn't get any mounting problems but I didn't test very much so perhaps this can lead to mounting errors later on.
Maybe you have already tried this ?
I get massive slowdonws when copying large files with that widget.
Sent from my GT-I9100 using XDA App
i would like to move the apps downloaded data file to external sd card
i have try app2sd but result is not promising
it does not move the data file (still in the internal memory or known as /sd)
i using script manager to help with the code as below
#!/system/bin/sh
sleep 60
mount --bind /sdcard/external_sd/gameloft/ /sdcard/gameloft/
or
#!/system/bin/sh
sleep 60
mount -0 bind /sdcard/external_sd/gameloft/ /sdcard/gameloft/
Click to expand...
Click to collapse
which one is correct?
for now gameloft is successfull at the moment
but if i use on other folder like from "ea" it is not successfull it tend to read back to the internal memory card which require me to redownload the data again
sometime it can read at external but once i restart, it fail again
if i got few app needed to use the command (currently gameloft, ea, lexi-comp) i wanted the data to stay in external sd card
should i create 3 different file for the script manager to run or i just create one single file and dump all 3 command into one single file?
your reply is very much appreciated
I try something similar with DCIM and MEDIA
I tried something similar with folders DCIM / Camera, Media and Music
I create a script with the script program manager and even try to get into the rc.d but I have not found a way to run at startup and run it from root explorer no problem but to run automatically at startup does not work
Use this http://forum.xda-developers.com/showthread.php?t=1410262
After rooting I can create folders, move files into, etc in the "hidden storage" using root explorer. Problem is I can't get apps to see anything there.
Example: Created Music folder and moved files into it. They will play by going there with root explorer and tapping on one, but music player will not see them on its own.
So far I have not found a music player that will allow me to designate that folder as the one containing the music.
To my knowledge, third party apps still do not see the storage area mounted there. Hopefully with the CM7 ROM, that can be rectified!
ok - thanks. I have put a couple of movies in that space as it is not much trouble to drill to them and tap the one I want to play - saves sd card space. For now will use it for movies and storage of little used material.
hi cdo5
check it here
you will get all "hidden storage" to use
edwardxi - Tried both methods (rename/copy) and manually adding with the same results - in root explorer /mnt/internal opens and has all the files I placed in /data/usrdata, but neither of two music players on the system see them. Someway I am missing how to tie them to the /mnt/internal folder. Additional direction please.
Take a look at the end of http://forum.xda-developers.com/showthread.php?t=1355969&page=10 -- the thread on accessing the whole filesystem.
cfoesch discovered that parted is a viable tool for resizing (well, deleting and recreating) partitions on the device.
I used a nook OS sideboot card with a modified vold.conf (commented out all the lines, essentially) that did not mount any of the internal partitions and had parted on board, then used the ADB interface to delete partitions 10 and 11 and resized them.
parition 10 is 1 gig and called media;
paritition 11 is 13 gig and called userdata
I recreated them, tried to put filesystems on them and reassigned the default names in parted, powered down, removed my card, and forced a hard reset (8 failed boots.) This completely reformats and reinstalls, but leaves the partition sizes alone.
Before I started, still booted from the rooted internal OS, I used dd to make copies of the first 8 partitions
/dev/block/mmcblk0pX of=/data/X.img
and copied those out to an sdcard.
http://nookdevs.com/Dump_NookTablet_Partitions explains who is who.
If the hard reset won't work, you can copy those 7 dd images to your boot card, boot, and use dd to put them back - in fact, I did that preemptively, but I suspect I didn't need to.
The command there would be dd if=X.img of=/dev/block/mmcblk0pX
A hard reset after restoring the first 8 does work. (It would probably work to do only the first 7.)
My NT now has 4 gig for BN stuff and close to 10 gig for my files manageable by Calibre, etc.
The last thing I did was, after rooting, to remove the directory
/data/media/B&N Downloads and symlink it to the directory
/media/B&N Downloads
Now, my books and magazines from B&N download to media and I can manage those in Calibre as well.
At first, I tried doing that last step by linking to a directory on the sdcard.
I had two issues with just using the sdcard, which (in addition to being annoyed by the partitioning scheme on general principles) made me very interested in resizing /media:
- the sdcard I'm using fails to mount at boot some of the time. So the library gacks some of the time.
- the /media partition on internal memory supports permissions assignment enough that magazines can be read when they're downloaded to it. The sdcard does not support permissions, or at least mine didn't (despite some attempts to force it to by changing values in vold.conf) and so magazines would download there, but could not be read if they were on the sdcard.
I've tried fiddling with those permissions in vold.fstab, without luck, before doing my resize.
dev_mount sdcard /mnt/sdcard auto auto /device/platform/usb/mass/storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount media /mnt/media 10 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Looking at the introductory stanzas in vold.fstab it looks to me as if the magic is in that auto auto versus 10 002 -- somehow, the NT is able to assign a permissions mask to a vfat partition, which I had thought was not possible. But when I've tried assigning those values to /sdcard it hasn't worked. I'm forgetting the failure mode now - that is, I can't remember if they just didn't work, or if the sdcard became unmountable.
cdo5 said:
edwardxi - Tried both methods (rename/copy) and manually adding with the same results - in root explorer /mnt/internal opens and has all the files I placed in /data/usrdata, but neither of two music players on the system see them. Someway I am missing how to tie them to the /mnt/internal folder. Additional direction please.
Click to expand...
Click to collapse
I forgot one thing
when you copy sth to /mnt/internal
you should set right permissions(I got 9 "√" all)
I use TTpod player
it can access to /mnt/internal and play music well
Many thanks! The TTpod player did the job - I was able to select the folder and get play lists. Great.
edwardxi said:
hi cdo5
check it here
you will get all "hidden storage" to use
Click to expand...
Click to collapse
I tried this method and got stuck in a reboot loop.
porthos75 said:
I tried this method and got stuck in a reboot loop.
Click to expand...
Click to collapse
Im sorry to here that
but make sure you set right permissions
pls note that VERY IMPORTANT: change the File Permission using Root Explorer same as the old file too
Click to expand...
Click to collapse
I have been searching for answers on this and so far found nothing. Sorry if its already been covered somewhere I didn't find.
The SD card is working fine in the pone.
When I put it in a usb adapter to plug into my pc it mounts fine and I can copy files to it without any errors but when I put it back in the phone I cant see the files?
Same thing happens when I plug the phone into a pc with USB and copy the files.
The files are still there because when I plug back into the pc I can see them.
Anyone know why I have this issue please?
Many thanks
Ben
Try unmounting an remounting the sdcard in the Settings menu.
Have you tried other filemanagers than the stock one?
I can't confirm your issue but it sounds like a caching issue.
Have you tried turning it off and on again? =)
I have a similar issue , I have files that I have copied over to the phone sd card and wanted to use a file manager to move them around into different files however none of the file managers seem to see the files
Sent from my GT-I9300 using xda premium
d4fseeker said:
Try unmounting an remounting the sdcard in the Settings menu.
Have you tried other filemanagers than the stock one?
I can't confirm your issue but it sounds like a caching issue.
Have you tried turning it off and on again? =)
Click to expand...
Click to collapse
I am using ES File Explorer
I have tried rebooting the phone and also (after you said) mounting and unmounting the SD card. The Issue remains the same.
Does anyone else have this issue or any ideas?
If you're connected to PC as MTP mode, try to switch to camera transfer mode..
Maybe this will help?
External and internal sdcard mount points
After some more investigating I have discovered that what is displayed as /sdcard/ is in fact the phones internal flash memory and the actual SD card is mounted as something else.
There you have 2 folders in /mnt
/mnt/sdcard >> taht is the internal flash storage
/mnt/sdextcard >> that is the inserted sd card
http://mono-for-android.1047100.n5.nabble.com/detect-SD-Card-path-td5710218.html
This explains why I could see the files i copied to my sd card on my phone as my phone wont enable me to see the actual external SD card.
Was surprised I couldn't find an actual thread about this on the forum.
I can see that creating a mount point for called SDCARD within the internal memory will allow apps that default large content files to use this space without complaining but this means that although Samsung allow SD cards to be inserted they cannot be used with a standard set up?
So is there any way for me to get to this other mount point without root access?
I thought, for a change, I might hold off rooting my phone but this might spur me on...
Afaik Android does not have a concept of "internal" SD card. (Which is the or at least a reason why most phones have a separate data partition)
However when phone manufacturer's started offering internal storage capacity for normal files, they just used the sdcard.
The name of the external sdcard varies from phone to phone and manufacturer.
I can remember that the name of the external sd card on my S1 was /sdcard/external_sd/ (no /mnt as with the S3 !)
On current Cyanogenmod for the S1 it's /mnt/emmc/ which seems to be introduced as some sort of "standard".
This variety in naming shemes and the possibility of a phone not having internal SD-card storage, only having internal SD-card storage or having both _SHOULD_ make app developers give you the option where to store it.
If it doesn't it's a restriction in the app, not the sdcard.
Solution[/b[
If you are rooted you can easily bypass these restrictions with a simple trick. Make sure the app is terminated before attempting this!
Go to the terminal emulator and type:
Code:
su
mkdir /mnt/sdcardext/APPFOLDER
cp -rvf /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
mount -o bind /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
You've now told Android to re-route all filesystem access'es transparently to the external SDcard while the app still believes it's on the internal one.
Note that you'll have to run the following after every boot (or have it run as auto-start) since mount's are not persistant.
Code:
su
mount -o bind /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
Thank you for the explanation on this d4fseeker. Really all I wanted to do at this time was be able to access the external SD or point to it as a content location. But I will bookmark the solution for forcing apps to use it.
No I know what I know I have rooted my phone, curtesy of Chainfires guide here and can now see the extSDCard directory
houseofcutler said:
I am using ES File Explorer
I have tried rebooting the phone and also (after you said) mounting and unmounting the SD card. The Issue remains the same.
Does anyone else have this issue or any ideas?
Click to expand...
Click to collapse
In ES file explorer, you can go to your external SDcard by open Menu (left capacitive button), then select Manager and then SD card Analyst.
it will show /sdcard,,, it means internal SDcard. You have to touch "Disks" icon (the second from the left), then select /mnt/extSdCard. Eventually you can browse your external SD.
I don't know if there is the easier way. Or you can use the stock explorer app "My files", it is easier to browse the external card but with less function than 3rd party app.
That does work thanks - Turns out I purchased Root Explorer a while back so I have installed that and set the home directory to be the external SD mount point. Still need ES though for when I am copying across my network
jackie_jerk said:
In ES file explorer, you can go to your external SDcard by open Menu (left capacitive button), then select Manager and then SD card Analyst.
it will show /sdcard,,, it means internal SDcard. You have to touch "Disks" icon (the second from the left), then select /mnt/extSdCard. Eventually you can browse your external SD.
I don't know if there is the easier way. Or you can use the stock explorer app "My files", it is easier to browse the external card but with less function than 3rd party app.
Click to expand...
Click to collapse
I have quite the same problem but another way around. I can see all the (music)files in the phone but when I connect the phone via USB to my PC I can only see a few (about 30) of the files in the folder. I have booted the PC and the phone, took the SDcard also out and in. Also when I insert the SDCard to the PC's cardreader I can see all the files, so I quess the problem is in the phone. Any ideas how to solve this?
Not sure what your issue is but my advise is to confirm you a definitely looking at what you think you are - that was my problem before.
For example when the Phone is connected to your PC:
Create a text file called phone.txt in the 'Phone' Directory
Create one called card.txt in the 'Card' directory
Then use the built in 'my files' browser or whatever app you use to see if the files are where you think they are.
Might help...
d4fseeker said:
Afaik Android does not have a concept of "internal" SD card. (Which is the or at least a reason why most phones have a separate data partition)
However when phone manufacturer's started offering internal storage capacity for normal files, they just used the sdcard.
The name of the external sdcard varies from phone to phone and manufacturer.
I can remember that the name of the external sd card on my S1 was /sdcard/external_sd/ (no /mnt as with the S3 !)
On current Cyanogenmod for the S1 it's /mnt/emmc/ which seems to be introduced as some sort of "standard".
This variety in naming shemes and the possibility of a phone not having internal SD-card storage, only having internal SD-card storage or having both _SHOULD_ make app developers give you the option where to store it.
If it doesn't it's a restriction in the app, not the sdcard.
Solution[/b[
If you are rooted you can easily bypass these restrictions with a simple trick. Make sure the app is terminated before attempting this!
Go to the terminal emulator and type:
Code:
su
mkdir /mnt/sdcardext/APPFOLDER
cp -rvf /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
mount -o bind /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
You've now told Android to re-route all filesystem access'es transparently to the external SDcard while the app still believes it's on the internal one.
Note that you'll have to run the following after every boot (or have it run as auto-start) since mount's are not persistant.
Code:
su
mount -o bind /mnt/sdcard/APPFOLDER /mnt/sdcardext/APPFOLDER
Click to expand...
Click to collapse
But doesn't this simply relocate 100% of APPFOLDER to the microSD card and still leave no option to have Apps in both flash locations? Or will programs like App 2 SD somehow now be able to relocate apps back to the internal flash partition (aka "internal sdcard")?
Ah, nevermind. "APPFOLDER" is a single application's appfolder, not a directory with all the apps. So this should be something an app could do on any rooted S3 with a nice gui and persistence through some service mod in init.d or whatever Android uses in its place, yes?
Ok, was just digging around in /mnt/sdcard and while a few apps have obvious directories there, most do not. What's more, being an android noob, I'm not sure where their directories would be located (app manager doesn't say either).
Anyone care to point me in the right direction? Also, is there a way to install some other standard linux shell commands like more and grep?
Thanks.
Sent from my GT-I9300 using XDA
How do I link the external micro SD as a folder on the internal SD as before with the S2?
MyPhoneExplorer is unable to see the external SD. Previously it navigates via a folder/link within the internal SD.
I see that there will be other problem with other apps soon as I start to use eit more.
I'd be interested in this as well. I tried symlinks but - according to Root Explorer - the internal memory does not support symlinks.
If you're rooted, try out CifsManager.
https://play.google.com/store/apps/details?id=ws.plattner.cifsmanager
You can pretty much mount any folder (local or network).
Haven't rooted yet, so I don't know if it works on the S3.
Sent from my GT-I9300 using Tapatalk 2
i tried to change the vold.fstab file in /system/etc
amending
dev_mount sdcard /mnt/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/
to
dev_mount sdcard /mnt/sdcard/externalSD auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/
i had some force closes after a reboot so i changed it back. maybe someone wants to give it a try?
I'm using this init.d script to do that. (needs rooted kernel with init.d support)
First you have to make a folder (called "external_SdCard" in this script) on the internal sdcard where the external card gets bound to. ("/sdcard/external_SdCard") Then flash this zip (copies the script to /etc/init.d/99bind-sdcard) or make a init.d script with the following code:
Code:
#!/system/bin/sh
sleep 20
mount -o bind /mnt/extSdCard /sdcard/external_SdCard
NOTICE: It needs a few seconds till the internal sdcard is mounted and only after this the external can be bound to the folder on it.
If it doesn't work:
folder name doesn't match script
no init.d support
sleep value too little (try 30 or 40)
PS: Taken/inspired from this site since mine hasn't worked. (I haven't thought of the "sleep" command till the internal...)
EDIT: Problem are the duplicated entries in music player, gallery,...
Directory Bind actually did the trick for me.
Sent from my GT-I9300
member68 said:
Directory Bind actually did the trick for me.
Sent from my GT-I9300
Click to expand...
Click to collapse
That worked for me aswell, but after a reboot I got the same problem as with my solution. (duplicated stuff in gallery etc.)
I simply excluded the external sd card folder in Quickpic. No duplicates since (at least not in QuickPic
Sent from my GT-I9300
I use "DirectoryBind" app for that. It works perfectly.
Now I can to bind any folders between internal and external sdcards.
To work in SGS3 you should check the options:
- Alternate dbase mgmt
- Persistent service
- Bypass path verification
arnik1928 said:
I use "DirectoryBind" app for that. It works perfectly.
Now I can to bind any folders between internal and external sdcards.
To work in SGS3 you should check the options:
- Alternate dbase mgmt
- Persistent service
- Bypass path verification
Click to expand...
Click to collapse
I have a huge collection of music and pics on my external sd and they all are shown twice in gallery and music player - no matter what I try and also with your mentioned options in DirectoryBind - and you don't have this problem?
Burst shot broken after mounting extSdCard DCIM folder in sdcard
I'm accomplishing the same thing as DirectoryBind by using SManager with a little script I put together that looks like this:
Code:
#!/system/bin/sh
mount -o bind /mnt/extSdCard/Android /mnt/sdcard/Android
mount -o bind /mnt/extSdCard/DCIM /mnt/sdcard/DCIM
mount -o bind /mnt/extSdCard/Download /mnt/sdcard/Download
mount -o bind /mnt/extSdCard/Movies /mnt/sdcard/Movies
mount -o bind /mnt/extSdCard/Music /mnt/sdcard/Music
Anyway, after doing this I had the same problem with the duplicate gallery entries so I created a .nomedia file in /mnt/extSdCard then cleared the app data for Gallery and MediaStorage, rebooted and no more duplicate entries.
Now, the only problem I have left is that Burst Mode doesn't work on the camera. I setup the camera to save to the external SD card and the camera app shows an SD icon on the top-right corner in all shooting modes except Burst, there it changes to an internal memory icon. I can't find any way around this, and trying to shoot in burst mode doesn't work - it sounds like it's shooting pics but the counter doesn't go up and no pics are saved. I assume Burst mode has some special way of accessing the internal DCIM folder that isn't working with the DCIM mount I setup. All other shooting modes work, though, so it's not a deal breaker. I'm just OCD about little nagging problems :cyclops:
Has anybody else run into this or found a workaround?
The camera is probably storing the data in the real internal storage (/data/media) folder instead the virtual storage location /mnt/sdcard
You could fix it by bind-mounting /data/media/DCIM to /mnt/extSdcard/DCIM
However there is a reason for burst-mode not working with the SD-card: they usually are far too slow for sustained writing at that speed.
Some high-class cards may have sufficient write-speed capacity but Samsung prefers blocking to guessing.
d4fseeker said:
The camera is probably storing the data in the real internal storage (/data/media) folder instead the virtual storage location /mnt/sdcard
You could fix it by bind-mounting /data/media/DCIM to /mnt/extSdcard/DCIM
However there is a reason for burst-mode not working with the SD-card: they usually are far too slow for sustained writing at that speed.
Some high-class cards may have sufficient write-speed capacity but Samsung prefers blocking to guessing.
Click to expand...
Click to collapse
Thanks for clarifying, I knew it had to be accessing it another way! Good call on the SD card performance. I wouldn't even attempt it on my old microsd card but I just got a new sandisk microsdxc class 10 UHS-1 card and I've been really impressed with the performance so far, so I may give it a try :fingers-crossed:
floyd0815 said:
I have a huge collection of music and pics on my external sd and they all are shown twice in gallery and music player - no matter what I try and also with your mentioned options in DirectoryBind - and you don't have this problem?
Click to expand...
Click to collapse
try a .nomedia file in the internal SD. but you will not be able to see other media stuff stored on internal SD, only those on external SD, which is where my pictures music etc is stored.