Partitions for the x2 - Motorola Droid X2

Im updating the first post so everyone can see how to do this u can get the updated vold.fstab from chevy on pg 2.
Basically you must be rooted before doing this.
Download above file posted by chevy
Use a file explorer program like root explorer browse to your download folder or wherever you downloaded the above file. Extract it and when it says go to extracted folder say take me there.
Once there click on the vold.fstab and long press it and select copy from the menu that pops up.
Then browse to the root of your system device and select the system folder
Once there select the etc folder
Once in there at the top right of the screen if your using root explorer change the r/o to r/w and paste the file in here.
It will ask you to overnight the file. Select yes to overright
Then at the top right of your screen change the r/w to r/o
Finally reboot your phone and you should be good to go.
To verify just go to settings and select sd card and storage and you should see your external sd card showing up as the main sd card now.
Sent from my DROID X2 using Tapatalk

I haven't had time to make the change myself, but it can be done if you are rooted.
I've attached the files that need to be changed as a rar file.
"init.rc" is a initialization file that will create the directories /mnt/sdcard/ & /mnt/sdcard-ext/ on the system partition. It will also create a symbolic link to those directories as /sdcard/ and /sdcard-ext/ respectively.
Then, "vold.fstab" is used to mount the internal memory to /mnt/sdcard/ & mount sdcard to /mnt/sdcard-ext/
You should back up the original files from your device, the vold.fstab I attached has been edited to switch the internal memory to /sdcard-ext/ & sdcard to /sdcard/

Thank you ill try this when I get off of work.
Sent from my DROID X2 using Tapatalk

Bigdragon2k3 said:
Thank you ill try this when I get off of work.
Sent from my DROID X2 using Tapatalk
Click to expand...
Click to collapse
Let us know how it goes. I'm interested in this as well.

Ok well I tried this but I guess I messed up some where I ran the init.rc first. Then I backed up the vold.fstab and put it in a folder. I then put the new vold.fstab in etc/ now neither of my sd cards are being mounted. Maybe im trying something too advanced for me. But hopefully there's an easy fix. Was I supposed to push the file with adb
Sent from my DROID X2 using Tapatalk

I wouldn't be messing with critical system files like that until an SBF is available for our phone. Just my 2c.

You can adb the original files you backed up onto the device and reboot and it will remount the partitions. I did the same thing when I tried and made the mistake of overwriting the backup I made when I saved the edits in RootExplorer, so I had to grab the files off my wifes phone and push them onto mine to get it back up. Other than the devices not mounting, there isn't much harm in editing these files.
Did you edit both files at the same time to match the directories and reboot? If they don't match the devices won't mount when the vold.fstab is called. The edit needs to be done at the same time. In init.rc make sure the paths for the export & mkdir are the same. I was able to get it to create the directory /mnt/sdcard/ext/ so the external sdcard would have been in a directory inside the internal sdcard, but couldn't get it to mount to that directory.
Where I got hung up was on the vold.fstab edit, the formatting kept getting messed up and the file wouldn't work.
I was able to change the symbolic links around which helps if the sdcard path is hardcoded in the app to be /sdcard/, but when getExternalStorage is called by the app to get the path it will return the mnt/sdcard/ path, so that only helped get certain apps to store their files on the real sdcard.
The link below is how this edit is done on the Galaxy S, it was successful on that device so thats how I know it can be done on ours if we figure it out.
http://forum.xda-developers.com/showthread.php?t=1094090

Well I got it back to default now. Im not sure if you have taken a look at the original one posted for the i9003 here http://forum.xda-developers.com/showthread.php?t=1088474. When I went to edit yours it seeemed like you had extra stuff in there. Also on the other post it diddnt say anything about the init.rc. Not saying that your wrong I just diddnt see it mentioned. But hopefully we can figure this out and get it working.

Yeah, the vold.fstab I attached had the formatting messed up when I saved it in notepad and after that it didn't seem to accept any changes I made. I need to replace it with a fresh original file, I attached it to reference what I was saying, but should have been more clear to start with a clean copy. Sorry about that.
If our goal is just to swap the two cards, editing the vold.fstab is all that is needed, but if we want to combine the cards we need to edit the init.rc to make the /ext/ directory inside of /sdcard/, that way the apps that are setup to only work with the 1 card will be able to use both as the internal card would be mounted inside a directory of the real SDcard. Ideally I was thinking of mounting the internal storage to the /sdcard/data/ folder so app2SD stuff would go there, but started by trying to set it as /sdcard/ext/ as that wasn't a preexisting directory on my SDcard so it wouldn't be an additional monkey fighting the mod.

Ok I understand now. Hopefully we could get those files coded so we can try this out. This would be a great addition.
Sent from my DROID X2 using Tapatalk

you needed a better text editor. i did the exact same thing to vold.fstab and it works.
use the attached file.

I got it working as well (just swapping partitions). These were my steps:
1. attached the phone to my PC and made sure both the internal and external storage locations that mounted on my PC contained the same information. Just copied files back and forth until they were equal
2. disconnected the phone from the PC.
3. Used Root Explorer (RE) to copy vold.fstab to a few different places on both internal and external storage (just in case)
4. Mounted the /etc folder R/W in RE and did my edits on vold.fstab via the text editor in RE. Stored my changes and this automatically created a .bak file.
5. Mounted /etc RO and rebooted.
6. Both storage areas got prepared and mounted after reboot and were swapped as expected. Now I just need to copy the 8G SD contents to my 32G and I'll be back to where I was with the OG Droid!
Corey

Well thank you that definitely worked, thats so awesom.

Is it XMas morning, feels like Santa just visited! Now I have to order up that 32g card I've been drooling over, thanks!

Can someone post these instructions step by step in simple-man terms? Thanks!

Basically you must be rooted before doing this.
Download above file posted by chevy
Use a file explorer program like root explorer browse to your download folder or wherever you downloaded the above file. Extract it and when it says go to extracted folder say take me there.
Once there click on the vold.fstab and long press it and select copy from the menu that pops up.
Then browse to the root of your system device and select the system folder
Once there select the etc folder
Once in there at the top right of the screen if your using root explorer change the r/o to r/w and paste the file in here.
It will ask you to overnight the file. Select yes to overright
Then at the top right of your screen change the r/w to r/o
Finally reboot your phone and you should be good to go.
To verify just go to settings and select sd card and storage and you should see your external sd card showing up as the main sd card now.
Sent from my DROID X2 using Tapatalk

coreywilner said:
I got it working as well (just swapping partitions). These were my steps:
1. attached the phone to my PC and made sure both the internal and external storage locations that mounted on my PC contained the same information. Just copied files back and forth until they were equal
Click to expand...
Click to collapse
Explain, please? How do you get both the internal and external storage locations to show up on the computer?

usb mode will show both sd cards in your computer screen.

Bigdragon2k3 said:
usb mode will show both sd cards in your computer screen.
Click to expand...
Click to collapse
Was able to figure it out, sleep is a wonderful thing when it comes down to thinking clearly! LOL
Thanks cvmaas and Bigdragon, it's great being able to fully use my SD card again!
Sent from my DROID X2 using XDA App

Not trying to hijack, but have any of you done this and purchased a 32gb card? Maybe a class 10 card? If so which one and how is it working?
Sent from my DROID X2 using XDA App

Related

Removed apps I shouldn't have...

Got a bit of a problem here...
Not even too sure what I'm doing, to be honest.
I rooted my phone, and removed a ****load of stuff with Titanium Backup...
Two of those were the Backup Assistant, and the default Launcher.
Right after doing so, I saw people were talking about how you shouldn't do just that. Also read that a way to fix it is to put the Fascinate's system dump APK's back onto my phone via the SD card... Here's my problem.
When I mount it via USB, to transfer files to my SD card, my phone says, "No SD Card Detected", and my computer just brings up a 14.7GB Removable Disk image. The contents of it include...
Code:
Android (Folder)
bluetooth (folder)
data (folder)
DCIM (folder)
launcherpro_backup (folder)
layar (folder)
LOST.DIR (folder)
media (folder)
PRIVATE (folder)
TitaniumBackup (folder)
Wapedia (folder)
busybox
com.sh
createlagfix.sh
playlogos1
su
superuser.apk
update (archive)
userinit.sh
What exactly am I looking at, and how do I get access to my SD card?
that should be ur sd card when connecting thru ur pc it read it the sd like a usb drive and will label as such seeing as the phone only has 2gb of space im positive that 15gb is ur sd
Sent from my FroyoEris using XDA App
I also removed my backup assistant as of now my phone still works fine just wanna get it back on there just in case anything happens. I downloaded the fascinate sys dump file put it on my sd card I tried opening the apk it didnt work. obviously im doing something wrong can anyone help me will gladly appreciate it.
Sent from my SCH-I500 using XDA App
devlp1213 said:
that should be ur sd card when connecting thru ur pc it read it the sd like a usb drive and will label as such seeing as the phone only has 2gb of space im positive that 15gb is ur sd
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Well that doesn't really help me at all. Whether or not it IS my SD card doesn't matter, I need my phone to recognize it as such. All applications say that I don't have an SD card inserted into my phone.
I'm not positive that I'd actually NEED any of those applications though, as I'm not sure how to get to the System folder in my phone in the first place. I need access to the Systems folder, so that I can replace all the APK files that need to be present before resetting my phone to factory settings.
I finally found a file management app (Astro) that will see my SD card as well as the actual folders on the phone. Problem is, I don't have permissions to paste the files I need, into the /system/apps folder...
Anyone know how I can get around this?
You'll need a file manager that's capable of accessing protected system folders. Root Explorer is by far the best app for this, and though it's not free, it's not terribly expensive (around $3). Otherwise, if you happen to know your way around linux terminal commands, you can install a terminal emulator app for free and copy files that way. If you have no idea what a terminal emulator is, or how to use a linux command line environment, then don't even attempt it, just buy Root Explorer.
ivorycruncher said:
You'll need a file manager that's capable of accessing protected system folders. Root Explorer is by far the best app for this, and though it's not free, it's not terribly expensive (around $3). Otherwise, if you happen to know your way around linux terminal commands, you can install a terminal emulator app for free and copy files that way. If you have no idea what a terminal emulator is, or how to use a linux command line environment, then don't even attempt it, just buy Root Explorer.
Click to expand...
Click to collapse
Didn't want to bother paying for it, so I just downloaded it, and loaded it on with a backup installer. (They worked fine with a lot of apps, just not the two I had to have on there.)
Used it to copy-paste the files I needed in the directory.
Hopefully now, when I reformat, things will be alright. Fingers crossed, will keep you guys posted.
Successfully factory reset. Booted up with TWLauncher, no snags. One strange thing, though, is the Backup Assistant app still isn't on the list. I hope I'm not missing something that'll come and bite me in the ass later, now...
(Also, SuperUser is still on there, which is kinda weird. I guess rooting it involves the SD card more than anything else, right?)
Theoretically, if I didn't ACTUALLY have Backup Assistant on here, and I tried to update to FroYo when it comes out... What's the worst that could happen?
DuoCultellus said:
I finally found a file management app (Astro) that will see my SD card as well as the actual folders on the phone. Problem is, I don't have permissions to paste the files I need, into the /system/apps folder...
Anyone know how I can get around this?
Click to expand...
Click to collapse
you have to copy paste via RootManager

[Q] Once rooted, what is the best way to manage extra Internal Storage?

I have successfully rooted my Nook using my MAC and the NARS method. I believe this is considered softrooting. I do like the B&N Nook Reader and was hoping to continue to use it. I do not have a MicroSD card yet, but it is on the way.
The main problem I have is properly storing and utilizing files in the extra 15GB of internal space.
If I want to get files on my nook, I hook it up through the USB to my Mac. It only recognizes "MyNook"-- the 1GB of space that B&N allows me to use.
As many have suggested, I installed Root Explorer and can successfully move files out of that 1GB and into the extra 15GB space. However, those files do not show up in my Nook Reader software and it does not look like I can browse to those folders in the Nook Reader.
Am I going about this all wrong?
Is there a way to use my Mac to access that extra internal space?
Is there any way to get the Nook Reader to recognize the files in that space?
Lastly: I figured I would just install Aldiko to read those files, but it says that because it can't mount the SD card, it can't find files. But I don't have an SD card-- I have 16GB of internal storage!
boltcutter said:
I have successfully rooted my Nook using my MAC and the NARS method. I believe this is considered softrooting. I do like the B&N Nook Reader and was hoping to continue to use it. I do not have a MicroSD card yet, but it is on the way.
The main problem I have is properly storing and utilizing files in the extra 15GB of internal space.
If I want to get files on my nook, I hook it up through the USB to my Mac. It only recognizes "MyNook"-- the 1GB of space that B&N allows me to use.
As many have suggested, I installed Root Explorer and can successfully move files out of that 1GB and into the extra 15GB space. However, those files do not show up in my Nook Reader software and it does not look like I can browse to those folders in the Nook Reader.
Am I going about this all wrong?
Is there a way to use my Mac to access that extra internal space?
Is there any way to get the Nook Reader to recognize the files in that space?
Lastly: I figured I would just install Aldiko to read those files, but it says that because it can't mount the SD card, it can't find files. But I don't have an SD card-- I have 16GB of internal storage!
Click to expand...
Click to collapse
I had the same issue and solved it as follows:
I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). I then changed the /data directory to RO.
docfreed said:
I had the same issue and solved it as follows:
I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). I then changed the /data directory to RO.
Click to expand...
Click to collapse
Thanks so much for the suggestions. So, my other question is-- can you utilize the native Nook Reader to see these files? If not, can you reassign the small book icon in the notifications tray to go to Cool Reader-- or will that only go to the native Nook Reader?
Lastly, does anyone have an answer regarding accessing the internal storage via USB/Mac?
boltcutter said:
Thanks so much for the suggestions. So, my other question is-- can you utilize the native Nook Reader to see these files? If not, can you reassign the small book icon in the notifications tray to go to Cool Reader-- or will that only go to the native Nook Reader?
Lastly, does anyone have an answer regarding accessing the internal storage via USB/Mac?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=21324303&postcount=8 - those applications need to be moved to /system/app partition and fix permissions as explained here: http://forum.xda-developers.com/showpost.php?p=20774764&postcount=2 (Scroll down is the second HOW-TO)
Veronica
lavero.burgos said:
http://forum.xda-developers.com/showpost.php?p=21324303&postcount=8 - those applications need to be moved to /system/app partition and fix permissions as explained here: http://forum.xda-developers.com/showpost.php?p=20774764&postcount=2 (Scroll down is the second HOW-TO)
Veronica
Click to expand...
Click to collapse
Sorry, still very confused. I navigated to the /system/app and the Library.apk was in there already. I launched it and used Package Installer to reinstall it, but it works exactly the same as before.
I also installed Cool Reader and it doesn't seem to be able to navigate below the /mnt/media directory. Is it a permissions thing?
docfreed said:
I had the same issue and solved it as follows:
I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). I then changed the /data directory to RO.
Click to expand...
Click to collapse
I had a similar thought about putting my movies in that same folder, so I followed your steps. When I plugged my NT into my computer, however, only the same two options popped up---MyNook and my sd card. So far as I can tell, the computer is still not recognizing the /data/media folder, so I'm still unable to sideload into that folder.
Have I missed a step? Am I doing something wrong? Do I need another program to "help" me sideload into that folder?
nashdude said:
I had a similar thought about putting my movies in that same folder, so I followed your steps. When I plugged my NT into my computer, however, only the same two options popped up---MyNook and my sd card. So far as I can tell, the computer is still not recognizing the /data/media folder, so I'm still unable to sideload into that folder.
Have I missed a step? Am I doing something wrong? Do I need another program to "help" me sideload into that folder?
Click to expand...
Click to collapse
You will not be able to see the internal storage on a PC (unless your PC is a Linux box) - it can only be seen on the device using a file explorer such as Root Explorer or ES File Explorer.
You sideload there by placing a file in one of the two partitions that you can see and then moving/copying it with one of the two aforementioned file managers.
docfreed said:
You will not be able to see the internal storage on a PC (unless your PC is a Linux box) - it can only be seen on the device using a file explorer such as Root Explorer or ES File Explorer.
You sideload there by placing a file in one of the two partitions that you can see and then moving/copying it with one of the two aforementioned file managers.
Click to expand...
Click to collapse
Yeah, I was afraid of that. Ah well... it'll do until they figure out how to safely expand the MyNook partition.
Sent from my rooted Nook Tablet using Tapatalk 8)
Is there a way to change the time zone to a non-American one? I've been trying but only lets me choose between time zones from the us. I live in Spain.
Thank you!
Hey, I can access the root and thus internal storage and also the mounted ext-sd card in Snowball's mod via my PC (Win 7). Try googling it to d/l it for free.
Silthion said:
Is there a way to change the time zone to a non-American one? I've been trying but only lets me choose between time zones from the us. I live in Spain.
Thank you!
Click to expand...
Click to collapse
No encontre espaƱa, pero tambien hay otros horarios GMT +1
Change time zones: Settings -> Time -> Select time zone -> Check the box "Show all world time zones"
docfreed said:
I had the same issue and solved it as follows:
I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). I then changed the /data directory to RO.
Click to expand...
Click to collapse
Okay, so I ran the script to give me access to my internal storage. Someone else is telling me I now need to put whatever files I want MX Player to see, in /mnt/internal. But you clearly state that you put them in /data/media. Either way, MX Player isn't seeing them, and I've got all rights checked on all of these locations.
What am I missing?
loribuono said:
Okay, so I ran the script to give me access to my internal storage. Someone else is telling me I now need to put whatever files I want MX Player to see, in /mnt/internal. But you clearly state that you put them in /data/media. Either way, MX Player isn't seeing them, and I've got all rights checked on all of these locations.
What am I missing?
Click to expand...
Click to collapse
Why are you running a script? I think that you are making it needlessly complicated for yourself. If you just follow what I did here: I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). it will work
It might be easier to go back to the original clrboot file and start over. And make certain that the media partition that you place your stuff in is /data/media - there should be about 12 Gb free.
docfreed said:
Why are you running a script? I think that you are making it needlessly complicated for yourself. If you just follow what I did here: I store my media (books, videos, mp3's, etc. ) in the /data/media directory - I get about 12Gb free. I set the directory to be R/W using Root Explorer and changed the permissions to allow "others" full read, write and execute (again using Root Explorer). I was then able to access the files in /data/media with my Ebook reader (Cool Reader), mp3 player (I use Mort Player) and videos (I use MVideo Player). it will work
It might be easier to go back to the original clrboot file and start over. And make certain that the media partition that you place your stuff in is /data/media - there should be about 12 Gb free.
Click to expand...
Click to collapse
Because I was pointed to this, as the method to get acccess to all of our storage: http://forum.xda-developers.com/showpost.php?p=20401344&postcount=72
I followed your steps above, which is why I asked at all... because it didn't work for me. I will try going back to the original clrboot file. I assume I just rename it back to .sh and reboot, correct?
Where can I see how much space is free, once I do that?
*****UPDATE*****
So, not sure why this happened, but apparently the actual video files, which were in folders on my SD card, DID NOT move with the folders when I copied them to both /data/media/videos and /mnt/internal/videos. Just empty folders.
So, I need to get them back on my Nook, as I've since deleted them from my SD card, and try this again.
Funny, an app not showing me what's not there...
loribuono said:
Because I was pointed to this, as the method to get acccess to all of our storage: http://forum.xda-developers.com/showpost.php?p=20401344&postcount=72
Click to expand...
Click to collapse
I confirm it worked for me.
More than one way to skin a cat
Well no real harm done. Why no try with one file first instead of a whole folder - I usually do that when unsure - if it works then your good to go.
docfreed said:
Well no real harm done. Why no try with one file first instead of a whole folder - I usually do that when unsure - if it works then your good to go.
Click to expand...
Click to collapse
Yeah, doing that now. Something funky happened when cutting and pasting a folder with *.avi files within in. Only copied the folder but, of course, deleted the *.avi files. Next time, I'll know to only use copy and paste, and delete later.
UPDATE: Okay, here's what I did:
1. Deleted the clrboot file I had copied previously. Renamed original one back to .sh. Rebooted.
2. Tried getting all of this to work without redoing the clrboot file thing again. Didn't work.
3. Copied the clrboot zip from this site again, and copied it to /system/bin, after naming the original one with the .bk ext.
4. Rebooted.
5. Created a "Videos" folder in /data/media.
6. Set the /data/media folder's permissions to allow everything. All boxes checked.
7. Copied one *.avi file to /data/media/videos.
8. Specified that folder in MX Player.
9. MX Player doesn't see it.
UPDATE TO UPDATE: It sees it! Yea! It's seeing it in /data/media/videos and /media/My Files/videos. I don't need it in both places, but was playing around with different locations.
Now, if I could just get MX Player to stop crashing on me.
loribuono said:
Yeah, doing that now. Something funky happened when cutting and pasting a folder with *.avi files within in. Only copied the folder but, of course, deleted the *.avi files. Next time, I'll know to only use copy and paste, and delete later.
UPDATE: Okay, here's what I did:
1. Deleted the clrboot file I had copied previously. Renamed original one back to .sh. Rebooted.
2. Tried getting all of this to work without redoing the clrboot file thing again. Didn't work.
3. Copied the clrboot zip from this site again, and copied it to /system/bin, after naming the original one with the .bk ext.
4. Rebooted.
5. Created a "Videos" folder in /data/media.
6. Set the /data/media folder's permissions to allow everything. All boxes checked.
7. Copied one *.avi file to /data/media/videos.
8. Specified that folder in MX Player.
9. MX Player doesn't see it.
Click to expand...
Click to collapse
It might be worth a try using mVideo player (free in market)
loribuono said:
Yeah, doing that now. Something funky happened when cutting and pasting a folder with *.avi files within in. Only copied the folder but, of course, deleted the *.avi files. Next time, I'll know to only use copy and paste, and delete later.
UPDATE: Okay, here's what I did:
1. Deleted the clrboot file I had copied previously. Renamed original one back to .sh. Rebooted.
2. Tried getting all of this to work without redoing the clrboot file thing again. Didn't work.
3. Copied the clrboot zip from this site again, and copied it to /system/bin, after naming the original one with the .bk ext.
4. Rebooted.
5. Created a "Videos" folder in /data/media.
6. Set the /data/media folder's permissions to allow everything. All boxes checked.
7. Copied one *.avi file to /data/media/videos.
8. Specified that folder in MX Player.
9. MX Player doesn't see it.
Click to expand...
Click to collapse
The zip file is supposed to be unzipped.
In addition not all of the permission boxes are set on my clrbootcount.sh, though I use Root Explorer.
A Further Thought
Can you try to put back the original clrboot script, reboot and then try to load a file into your data/media partition - I am concerned about the results of using the modded script. I attached the original clrbootcnt file - it has a doc extension - please change clrbootcnt.doc to clrbootcnt.sh and then try to use it.

[Q] Cant see files that I copy to the SD card over USB

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

obb "Game Data" to external_sd and Link2Sd Info [Updated 3/24]

UPDATE:
I now recommend using FolderMount instead of the scripts below.
Forum Link: http://forum.xda-developers.com/showthread.php?t=2192122
Market Link: https://play.google.com/store/apps/...251bGwsMSwxLDEsImNvbS5kZXZhc3F1ZS5mbW91bnQiXQ..
Click to expand...
Click to collapse
PART 1: obb "Game Data" to external_sd
Simple script that binds the internal obb folder to an external Gamedata folder on your sd to save space on Internal SD Card.
Use at your own risk.
1. Create a folder on the external_sd called "Gamedata"
2. Move all folders located in sdcard/android/obb to the newly created folder "Gamedata" (This takes a long time using Root Explorer, be patient. I recommend using Solid Explorer so that you can see the progress.)
3. Download the txt file and rename the extension to .sh OR Create a new script using:
Stock ICS:
Code:
mount -o bind /mnt/sdcard/external_sd/Gamedata /mnt/sdcard/Android/obb/
SnowJB (may or may not work on other JB ROMS) - Credit:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
4. Download Smanager from the playstore.
5. Find the script you created and set it to run with SU, make sure to save.
6. You can run it now to see if it worked. (If it did, make sure to edit the script to run at boot)
Notes:
I reclaimed about 6GB+ and was able to download several new games after doing this.
Occasional a folder called /Android/data/ gets created in Gamedata but it stays empty and doesn't effect anything. Just ignore it.
Newly downloaded game data will automatically be downloaded to the Gamedata folder. (As long as the addition data is downloaded through Google Play)
Works with Link2SD
This should work on every device that has an external sd card, however you might have to edit the paths to make sure they match up with how your device has the external sd card implemented (emmc, sdcard1, extSdCard). You may also have to edit the internal sd path for 4.2 and above to because of multi-user support.
Thanks to DeathmonkeyGTX! His music cache script gave me the idea to do the same for obb game data. They could probably be combined into one script, should you want to.
PART 2: Link2SD Info - for even more space saving
You can also use Link2Sd (found on the market) to store apps on the external sd card.
I formatted my external sd into two partitions. One 55 GB partition (For user data) and another 4 GB partition (for Link2SD).
Notes:
The highest app that I linked only saved about 50 MBs. Not really saving that much space, but after I linked several 50 MBs and under apps, I recovered about 1.2 GBs of space on the Internal.
The second partition can only be used for Link2SD.
To Set Up:
Backup your SD, format it to Fat32, use MiniTool to resize the first partition, then create a second partition (FAT 32 and make sure it is Primary) using the remaining space. You should now have two partitions. Now just launch the Link2SD app and create the start-up mount scripts. Reboot, launch the app once more, and finally start linking apps to your external sd card.
More info here: http://www.link2sd.info/home
I recommend reading the description and FAQ.
Both "PARTS" can be used together or separately just fine on ICS. However, I was not able to get Link2Sd working on SnowJB.
Seems to be working great! We now have so much more room for activities!
This is what I call a WIN: http://imgur.com/a/WBtHP
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
mws1986 said:
as far as I know I did everything I was supposed to but I went and deleted the files on my internal sd card and it deleted the ones on external sd card. I downloaded the app again and it saved the files in both locations and I deleted the internal one and it deleted both again. What could be causing this?
Click to expand...
Click to collapse
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Joecascio2000 said:
You have to delete the files before you set the script to run at boot. Otherwise you will be deleting the files on the external sd since the script tricks the system into thinking they are on the internal. I'm also think that your misunderstanding when you say they are on both. If you look at the total space when tapping the obb folder on your internal you will notice it goes from 11GB to whatever size you external sd card is. The two folders are binded so it would appear that they are on both but they are only on your external.
Click to expand...
Click to collapse
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
bleached45 said:
I just noticed this today, I ran this correctly (thank you for adapting it btw) and saw that I had "duplicates" on my internal. Then I saw that the total space was listed as 32 gigs... and it clicked, lol.
For a little clarification, you will see the folder in both places, the one on the internal card is just a link, it shouldn't actually take up any room on the internal card.
I was also able to get this to work for another folder created by a game that didn't put the files in obb folder.
(Just make a copy of the script and edit the pathways in it and run as root at boot.)
Click to expand...
Click to collapse
Yeah it bugs me big time that some apps download files to different places. I noticed some apps that download additional files through the play store, download the data to the /android/data/ folder instead of /android/obb/. Google really needs to make that uniform, where all additional game data get downloaded to one place. I did, however, adapt my script to link the whole /android/ folder to the external sdcard.
I won't release that one because there is way more things that can go wrong. The /android/data folder is used for so much more than just games and if it's not set up just right you could get force closes and blank widgets on boot. But just FYI, it is possible and is working well for me.
Worked! Thanks a lot for the script man helped save a lot of data!
Sent from my LG-E970 using xda app-developers app
Well, I can't get this post deleted, but I was able to figure out my problem!
Thanks for posting this solution! So happy to have it!
Re: obb "Game Data" to external_sd and Link2Sd Info
I used both methods here, obb and links2sd and it helped me out tremendously. Nice work and thanks for posting this.
Sent from my LG-E970 using xda premium
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Yoreo said:
Hey Joecascio2000,
Do you know how one would modify this script to work on the Stock 4.1.2 Jelly Bean LG-E973/1/5/0 CANADA / ATT / INTERNATIONAL rom?
I've read in that thread that the sdcard locations are different for Jellybean.
I've tried the following path to no avail.
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
Using that path will have smanager error out stating the following:
card0:/AndroidObbSwap.sh'
mount: No such file or directory
Any input would be greatly appreciated.
Click to expand...
Click to collapse
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Joecascio2000 said:
I don't have JB installed yet so I don't know exactly how the sd card and external sd card are mount. I'm assuming your paths are correct. But I suggest making sure that the script is running from the internal SD card. Also, I would add a "sleep" line just to make sure the external sd is mounted properly before running the bind.
Try:
#start
sleep 30
mount -o bind /mnt/storage/external_SD/Gamedata /mnt/storage/sdcard0/Android/obb/
#end
Click to expand...
Click to collapse
I gave that a shot, and it's still kicking out the same error. I think I'm going to post in that thread and see if anyone there can tell me if my path names are incorrect.
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Yoreo said:
Well Joecascio2000, I figured it out after getting a good nights sleep. My paths weren't correct.
Anyhow, the correct path/command is as follows:
Code:
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
Feel free to update your OP to notify anyone who may be using that rom to use the above script for things to work properly.
Click to expand...
Click to collapse
Thanks. I updated to OP to include your code and put a link to your post.
whoamanwtf said:
What would be the code to get this working with the new cm 10.1 conversion?
I tried
mount -o bind /storage/sdcard1/Gamedata /storage/emulated/0/Android/obb/
and a few others
Click to expand...
Click to collapse
Again, not really sure how CM10.1 handles the external sd. Did you try the code directly above your post? It works for the JB port so it may work for the CM10.1 ROM.
EDIT:
Try:
mount -o bind /storage/sdcard1/Gamedata /storage/sdcard0/Android/obb/
That is what I have on my Captivate running CM10.1.
Re: obb "Game Data" to external_sd and Link2Sd Info
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Re: obb "Game Data" to external_sd and Link2Sd Info
tmease1 said:
I'm not 100% for sure on this but doesn't cm10 handle the external sd as emmc?
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Joecascio2000 said:
I know they used too on my Captivate but with the multiple users in 10.1 I think they might have changed it. And again it could be different for every device. I recommend using solid explorer to just search around. If you tap the little android icon in the top left it gives you the exact path of the folder you are in.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
whoamanwtf said:
Yeah it is weird I found the exact paths and changed the script but it still doesnt work, even got it to where it looked like it worked, went green and no mount error but no data
Click to expand...
Click to collapse
Did you add the sleep line? Some ROMS take longer to mount the sd card than others. If the sd card isn't mounted before the script runs nothing will happen.
Code:
#start
sleep 30
mount -o bind /storage/external_SD/Gamedata /storage/sdcard0/Android/obb/
#end
This will wait 30 seconds before running the script. If the paths are correct, I don't see why it wouldn't work. Under smanager, click menu>more> advanced>configuration, and turn on "Show On Boot Script Log". That should give you an idea as to what is happening.

[Q] can't create new folder in external sdcard

Hi,
I bought a z2 yesterday. formatted my old 16gb microsdcard to use in my z2. I can see the folders and the phone can read my card. So i tried to download a file directly to my external card but it showed me a error lik "no valdi folder" or something like that. After i tried to create a new folder in my card using a file explorer but it gives me a error "operation stopped". Any idea why and any solution?
ty
Welcome to android kitkat
Sent from my D6503 using Tapatalk 2
Aricci said:
Hi,
I bought a z2 yesterday. formatted my old 16gb microsdcard to use in my z2. I can see the folders and the phone can read my card. So i tried to download a file directly to my external card but it showed me a error lik "no valdi folder" or something like that. After i tried to create a new folder in my card using a file explorer but it gives me a error "operation stopped". Any idea why and any solution?
ty
Click to expand...
Click to collapse
On Android KitKat applications aren't allowed to modify the files on the SDcard. They are only allowed to place files in their own folders on the SDcard (/SDCard/Android/data/app_name if I remember correctly).
You can fix this only by gaining root access and modifying build.prop.
Jackos said:
On Android KitKat applications aren't allowed to modify the files on the SDcard. They are only allowed to place files in their own folders on the SDcard (/SDCard/Android/data/app_name if I remember correctly).
You can fix this only by gaining root access and modifying build.prop.
Click to expand...
Click to collapse
So this means i cant save any file to my external sdcard?
rooting wouldnt be a problem.. but editing the build prompt..?
Aricci said:
So this means i cant save any file to my external sdcard?
rooting wouldnt be a problem.. but editing the build prompt..?
Click to expand...
Click to collapse
Uch, I was wrong about the build.pro. Actually you need to modify "/system/etc/permissions/platform.xml".
Here is some reference:
http://jrummy-apps.com/fix-sdcard-on-kitkat/
Root access is essential.
You can create a folder if you use the file explorer that came pre installed on the z2, all downloads go to internal storage but can be moved to sd card with 'file commander' this is the only app that can create and move folders to the sd card, apps such as astro and es explorer no longer have the permission.
Maybe I misunderstand the problem, but PocketCast can download and save the files to SD card without any problem. So, if this one can...
Yes PocketCast CAN write to the SD card, but only in its own folder, not everywhere. And it could write to a public folder (there are some defined in the Android SDK).
See Jackos post above...
Only software that is installed as system software may modify the files on the SDcard outside their personal folder. For example the build-in file manager.
File Commander (The built in file manager) is able to read and write to external SD. Use it instead of any other third party file manager app.

Categories

Resources