Related
Today I got a 32 GB, SanDisk Micro SDCard, mainly for the use with Google Music (I have a 7,200+ library). However, I didn't find a source which had a solid solution, to at least have Google Music use the external sd card. So, I just messed around with it, and I found out how to Swap (reverse) the sd card 'locations', properly.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good text editor. Make sure you have r/w on. Find the below two lines:
Code:
# external sd card
dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc3 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
and
Code:
# internal eMMC
dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
What I did, and what proved successful (to use both internal, and external storage, which are reversed), is this:
Code:
# external sd card
dev_mount sdcard_ext [COLOR="Red"]/mnt/sdcard[/COLOR]:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc3 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
and
Code:
# internal eMMC
dev_mount sdcard [COLOR="Red"]/mnt/sdcard-ext[/COLOR] 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Replace the regular lines, with the red lines, save, restart your phone, and BAM, your internal is now marked as external, and your external, is now your internal
I use Stock 154_5, Unlocked, rooted.
Enjoy, and press the thanks button
Also, you can revert them back, if you changed them. Just put the stock code back into the file.
Also, I just discovered:
You can only use the internal storage, when connecting to a computer. The 'internal' (which, we switched around), will not be detected. If you do connect your device to a computer, after you disconnect it, the 'internal', storage, which is really the external, because we switched it, will not be detected, and you must restart your phone.
I'll test this on MIUI. I have the 64GB version. Same problem.
ZeroManArmy said:
I'll test this on MIUI. I have the 64GB version. Same problem.
Click to expand...
Click to collapse
Cool. Let me know if it works. Yeah, 64 GB only for movies and pictures.... Isn't worth it for me. Lol
What do you have for CM9 or MIUI?
ZeroManArmy said:
What do you have for CM9 or MIUI?
Click to expand...
Click to collapse
I use Stock 154_5, Unlocked, rooted.
URGENT,
i am using samsung galaxy note device , i have follow your instruction to change the vold.hstab file.
Now my device has recognize my ext sd card as sdcard. But my device cant recognise my internal sdcard, so i have lose my root explorer. and I couldn't reedit the vold.hstab file back.
I have try to hardreset, and try to reinstall root explorer, but it always give an restart and error : "process.media force close "
From my understanding the failure of installing the root explorer because my device can't recognise sdcard anymore
I go to setting--> storage , I found the sdcard is not detected, only usb storage detected
how to solve this problem?
n1cky6969 said:
URGENT,
i am using samsung galaxy note device , i have follow your instruction to change the vold.hstab file.
Now my device has recognize my ext sd card as sdcard. But my device cant recognise my internal sdcard, so i have lose my root explorer. and I couldn't reedit the vold.hstab file back.
I have try to hardreset, and try to reinstall root explorer, but it always give an restart and error : "process.media force close "
From my understanding the failure of installing the root explorer because my device can't recognise sdcard anymore
I go to setting--> storage , I found the sdcard is not detected, only usb storage detected
how to solve this problem?
Click to expand...
Click to collapse
Well your problem is because, this is for the Photon 4G. Not the Note. Have you tried other File managers, such as Antek?
D2dyno said:
Well your problem is because, this is for the Photon 4G. Not the Note. Have you tried other File managers, such as Antek?
Click to expand...
Click to collapse
Anyhow, It is impossible to install any applications, if try to install,device will restart
But, it's okay now, I have reflash my rom, all the problem solved
Thanks for your responds
n1cky6969 said:
Anyhow, It is impossible to install any applications, if try to install,device will restart
But, it's okay now, I have reflash my rom, all the problem solved
Thanks for your responds
Click to expand...
Click to collapse
No problem, and I'm glad to help.
Man am I happy I came across this thread!!!
I've been reading forever in some of the rom threads for an answer to this question! A few of the roms I've tried out had the internal and external storage swapped with no option to switch and that kept me from using them because I use internal storage for apps data and such and then my external memory card for backups and personal files!
The only 2 roms that this can be fixed in is jokers CM9-unofficial-ICS rom (there is actually an Advanced Option in Settings) and the MIUI.us port (there is a storage mod flashable swap, which didn't work for me, and there is an option in the Aroma installer to choose what you want for Internal Storage).
Now that I've come across this, imma try it out and see if I can't get it to work on some other roms I have used!
Thanks for the discovery! I'll let ya know how it works out for me!
Sent from my MB855 using xda premium
Jleeblanch said:
Man am I happy I came across this thread!!!
I've been reading forever in some of the rom threads for an answer to this question! A few of the roms I've tried out had the internal and external storage swapped with no option to switch and that kept me from using them because I use internal storage for apps data and such and then my external memory card for backups and personal files!
The only 2 roms that this can be fixed in is jokers CM9-unofficial-ICS rom (there is actually an Advanced Option in Settings) and the MIUI.us port (there is a storage mod flashable swap, which didn't work for me, and there is an option in the Aroma installer to choose what you want for Internal Storage).
Now that I've come across this, imma try it out and see if I can't get it to work on some other roms I have used!
Thanks for the discovery! I'll let ya know how it works out for me!
Sent from my MB855 using xda premium
Click to expand...
Click to collapse
Glad to hear! ICS ROMs handle external SD cards way better, so I prefer them now.
D2dyno said:
Glad to hear! ICS ROMs handle external SD cards way better, so I prefer them now.
Click to expand...
Click to collapse
I hear you there! The ICS roms rock! Jokers ICS rom has been my favorite due to the option to switch to use Internal memory for apps/app data. The other CM9 variants (AOKP/AOKPCB) had it default to use external memory as storage for apps/app data with NO option to swap. Now that I came across this, when my battery is a little better than 37% lol, imma do your mentioned edits!
Only difference from what I see from stock is that instead of "sdcard-ext" its "emmc". My current setup has "emmc" set as sdcard-ext (external storage) and sdcard as, well sdcard (internal storage) lol.
My issue has been that those have been swapped where "emmc" = internal storage and "sdcard" = external storage. With it being that way, it makes it a PIA to restore from Titanium Backup.
But this is all a thing of the past haha
I'm glad I'm not scared to read (like I feel like a lot of users are). I've seen a lot of posts where ppl were asking about how to swap the storage locations with no solid answers. Granted I didn't come across this solution immediately either...BUT I did and I plan to link to this thread and give you props in hopes that others find this useful as I know others are definitely having the same issue!
Sent from my MB855 using xda premium
I just successfully tested this on the AOKPCB from and it worked perfectly! Not gonna lie, that makes me VERY happy!!
Maybe everyone typing thanks could actually "THANK" this person?
Works on tablet
Ok tried this on a cheap tablet that I bought for playing around like this. An Arnova AN 7G3 7" with 4gb memory, 2 gb internal and 2gb internal sdcard. It was close to your file, all I had to change was sdcard and extsd. Before I did the switch and after seeing someone had trouble with apks after the switch, I made sure to move all apks to tablet, then copied all folders from sd to extsd. I also made a copy of the orignial vold file, just incase. Changed vold file rebooted and everything was great. Made a copy of altered vold file, then replaced with orignial and rebooted.....all still ok, replaced file with altered file and rebooted ,again all ok. Moved all apks that I could move to sdcard from tablet, free up 650mg on tablet. All moved apks worked fine.
AN 7 G3 is rooted out box runing stock ICS 4.0.1
Thanks for the info
ALD3 said:
F theOk tried this on a cheap tablet that I bought for playing around like this. An Arnova AN 7G3 7" with 4gb memory, 2 gb internal and 2gb internal sdcard. It was close to your file, all I had to change was sdcard and extsd. Before I did the switch and after seeing someone had trouble with apks after the switch, I made sure to move all apks to tablet, then copied all folders from sd to extsd. I also made a copy of the orignial vold file, just incase. Changed vold file rebooted and everything was great. Made a copy of altered vold file, then replaced with orignial and rebooted.....all still ok, replaced file with altered file and rebooted ,again all ok. Moved all apks that I could move to sdcard from tablet, free up 650mg on tablet. All moved apks worked fine.
AN 7 G3 is rooted out box runing stock ICS 4.0.1
Thanks for the info
Click to expand...
Click to collapse
Glad to hear it works on more than just GB
Thanks
D2dyno said:
Glad to hear it works on more than just GB
Click to expand...
Click to collapse
Thanks as I have been trying to find info for months. I posted in Arnova section of Arctablet news on how to do this tablet and a heads up and Thanks to YOU as well as a link to your work here. Hope you don't mind and did give credit to YOU. Check it out when you have time
http://www.arctablet.com/blog/forum...n-7-g3-recognize-you-micro-sd-as-internal-sd/
Just saw this topic and I have a (noob) question.
Does this work on any android phone or it's specific for this Moto one?
The thread says it all. I have a rooted EVO LTE running the CM 10. Everything was working fine until I accessed the SD Card from within TWRP to copy a file. Now I get errors when I look at the command line within TWRP "failed to mount /sdcard {Invalid argument)". Can anybody help me? Thanks so much to all of this community.
finman76 said:
The thread says it all. I have a rooted EVO LTE running the CM 10. Everything was working fine until I accessed the SD Card from within TWRP to copy a file. Now I get errors when I look at the command line within TWRP "failed to mount /sdcard {Invalid argument)". Can anybody help me? Thanks so much to all of this community.
Click to expand...
Click to collapse
I currently have the same problem and mannnn am I f'n pissed.... i did a factory reset from within the bootloader which is what caused mine to stop working right...anyways I am also looking for a solution so when i do I will give you the info.
zoned_out said:
I currently have the same problem and mannnn am I f'n pissed.... i did a factory reset from within the bootloader which is what caused mine to stop working right...anyways I am also looking for a solution so when i do I will give you the info.
Click to expand...
Click to collapse
The only way I was able to fix this was to mount the SDCard over USB in Recovery Mode and reformat it. I lost what was on there, but it's working now.
I formated my card through windows 7 and I still have the same problem. I never had this issue on any of my previous rooted phones I am really gettin pissed with the lte...
Sent from my EVO using xda app-developers app
Are you guys also having trouble accessing the Camera? Mine doesn't seem to pick up my SD card and only allows me to use the Camera using external storage...
Well when I pull my camera up my phone days " no external storage available" then at the bottom if my screen another pop up says "insert an SD card before using the camera" I have my SD in....idk what to do. I searched the threads already but nothing besides some guy saying format my SD...I did that but now I have the same problem along with my pictures and music being erased.
Sent from my EVO using xda app-developers app
Well you could have put the files on your comp first and then reformatted, but I am having the same problem. I guess we just gotta hang in there. It will be fixed soon I hope.
I'm having the same issue with the Aug. 31 CM10 nightly. I cannot access my SD card. If I look in system memory, it shows the card and the size, but I cannot access it, same as you guys. Trying with TWRP to wipe, it shows a bunch of e: failed to mount /sdcard (invalid argument). Still no solutions?
d1scopotato said:
I'm having the same issue with the Aug. 31 CM10 nightly. I cannot access my SD card. If I look in system memory, it shows the card and the size, but I cannot access it, same as you guys. Trying with TWRP to wipe, it shows a bunch of e: failed to mount /sdcard (invalid argument). Still no solutions?
Click to expand...
Click to collapse
I was able to mount the SDCard over USB in Recovery Mode and reformat it from my computer. Obviously I lost my data that was on the SDCard, but none of the apps I had running were affected. Once I did this and rebooted into CM10, everything was fine and I just made a fresh Titanium Backup of all of my apps. My previous TWRP Nandroids were on the SDCard, so they were lost, but I can always reinstall another ROM and restore my Titanium Backups and go from there. Hope that helps.
I had this same exact problem, but the external storage it is referring to is actually your internal sd card, and not the external.
What you need to do is go into TWRP and mount YOUR INTERNAL sd card (don't switch to external), and in windows 7 format it.
More detailed instructions: http://forum.xda-developers.com/showthread.php?t=1812774
midfieldmaestro said:
I had this same exact problem, but the external storage it is referring to is actually your internal sd card, and not the external.
What you need to do is go into TWRP and mount YOUR INTERNAL sd card (don't switch to external), and in windows 7 format it.
More detailed instructions: http://forum.xda-developers.com/showthread.php?t=1812774
Click to expand...
Click to collapse
This!
midfieldmaestro said:
I had this same exact problem, but the external storage it is referring to is actually your internal sd card, and not the external.
What you need to do is go into TWRP and mount YOUR INTERNAL sd card (don't switch to external), and in windows 7 format it.
More detailed instructions: http://forum.xda-developers.com/showthread.php?t=1812774
Click to expand...
Click to collapse
AWESOME! Thanks!
So I'm having a similar issue, except I didn't try to access the external sd card from TWRP. And yes I've verified its the actual physically removable card.
I can see it in the system storage menu. However when I try to access it in Estrongs, it's no longer mounted as ext_sd in the sdcard folder. I did some digging and found it's now mounted as external_sd in the root folder of the phone. Looking in the storage folder, it still shows up as sdcard1, and my internal storage is still sdcard0. This seems to have happened after I flashed one of the nightlies, like 9/1 or 9/2. Any ideas on how to resolve this?
I'd rather not revert to my last backup, which was a Sense rom. I think this is screwing with the media scanner, because none of my sounds for alarms calls or texts work anymore
BeerMit said:
So I'm having a similar issue, except I didn't try to access the external sd card from TWRP. And yes I've verified its the actual physically removable card.
I can see it in the system storage menu. However when I try to access it in Estrongs, it's no longer mounted as ext_sd in the sdcard folder. I did some digging and found it's now mounted as external_sd in the root folder of the phone. Looking in the storage folder, it still shows up as sdcard1, and my internal storage is still sdcard0. This seems to have happened after I flashed one of the nightlies, like 9/1 or 9/2. Any ideas on how to resolve this?
I'd rather not revert to my last backup, which was a Sense rom. I think this is screwing with the media scanner, because none of my sounds for alarms calls or texts work anymore
Click to expand...
Click to collapse
this is a work around for the HTC method of listing the sd cards, in my opinion HTC really screwed the pooch with the way they labeled the file system. The way sense accesses the external sd is through a shortcut to the physical address of the external sd. It really screwed with apps like power amp which had no problem reading both cards but if for example you went to power amp and marked what folders had your music by selecting the folders through the ext_sd folder shortcut it would read and list your music twice. another user who flashed cm10 noticed this (not the ext_sd file problem but the way CM10 was confused by the structure) and quickly wrote (then generously shared) a script that would rewrite the address correctly. I guess that a similar script (or that very same one) was introduced to the installer for the nightly builds
Wow thanks for the clear explanation. I too thought the ext_sd method was screwy, with all of my custom notification sounds showing up twice. Any idea on how to fix my alarm and call sounds not working? Can't afford to miss a day of class lol
This isn't definite as I haven't had to but going to fix permissions might help if some programs aren't recognizing the file tree
Welp, it was worth a shot, but no go. Ima keep tinkering. Thanks anyway tho
Well here's what I did after I flashed the original rewrite script, I had to factory reset (changes survived)and then wipe system, then reflash the nightly build (fastboot kernel for boot 1.15+)
Edit: I still have the shortcut folder on my internal however its not linked anymore so nothing shows up, everything else works fine
Ok, tried a full reset, wiped data, system, caches. Ringtones are working again, as are text tones. Alarms, still silent as ever... I'm so confused right meow
Sorry to hear that man
I am having issues with external SD cards. I have 16 and 32 gb cards and every 2-5 days they become corrupted/damaged/blank. I have to format them and copy my backup files over at least once per week. I have had no luck finding a good solution for the SD card problems. I notice that my SD card will randomly mount / media scan / antivirus SD card scan when I unlock my screen. I assume this is causing the problems. I want to leave my external SD card UNmounted until i want to use it, then i will manually mount it under settings. My problem is when i leave it unmounted, Android will automatically mount it later when my screen is off. How do i change this so that the external SD will ONLY mount when i manually mount it in settings?
Not sure. Sounds like you just need to leave the card out or maybe get rid of that antivirus
Sent from my SGH-I777 using xda premium
the antivirus isn't the problem, randomly whenever the screen is turned on, the micro SD re-mounts (it somehow unmounted when the screen was off)... when it re-mounts Android automatically does a media scan and my AV scans it like it just connected... over time the SD card fails or becomes corrupted so I have to format. I'm looking for a way to DISABLE Android from automatically mounting an external micro SD... I assume people on this forum are knowledgeable on Android coding... disabling this function shouldn't be that hard...
Backup your micro sd. Wipe it clean. Make sure you format it with fat32 and not exfat. Put sd back in. Profit.
i have tried that several times.... perhaps i need to re-phrase the question....
Can someone please copy and paste the code within Android that automatically mounts an external SD card when it is inserted while the phone is on. Please also include the file name and directory. Thanks!
Well the problem is it's clearly either a hardware problem in the phone or that sd card. Wouldn't it be less of a pain to diagnose that and just try several other sd cards, then you wouldn't even have the issue anymore.
i met same problem here, how did you get this right?
I am in the same situation please provide a fix if you got it fixed
ryvandal said:
I am in the same situation please provide a fix if you got it fixed
Click to expand...
Click to collapse
What ROM are you on? Do you have this device? Some newer ROMs have the ability to control the media scanner running at boot, which likely was the cause for these older issues.
An example of a current ROM having this is ResurrectionRemix.
SteveMurphy said:
What ROM are you on? Do you have this device? Some newer ROMs have the ability to control the media scanner running at boot, which likely was the cause for these older issues.
An example of a current ROM having this is ResurrectionRemix.
Click to expand...
Click to collapse
Rom is stock Android 4.4.
Does 4.4 have that feature? I am Rooted.
ryvandal said:
Rom is stock Android 4.4.
Does 4.4 have that feature? I am Rooted.
Click to expand...
Click to collapse
Stock will not have it, you will need to install a custom ROM that includes the Media Scanner setting (there are KK ROMs that support it). Look around in the Development forum and see if one is to your liking; if the ROM has the feature they will often include it in the first post. The Ported forum also has much to choose, including the ROM I noted in my reply above yours.
Hello all, i have a small (big) problem with my camera on my phone (S2 obviously) but what happens is when i go to use the camera it says "your SD card is running out of space. Change quality setting or delete some images or other files." but it is storing on the SD card (obviously) which has about 15GB left and has never had any problems, and i don't think it is the rom as it does it with all of the JB roms i have tried. i have no idea why it is doing this but if anyone does could you please help. Many thanks in advanced. Yours MBrown
blazingmatty said:
Hello all, i have a small (big) problem with my camera on my phone (S2 obviously) but what happens is when i go to use the camera it says "your SD card is running out of space. Change quality setting or delete some images or other files." but it is storing on the SD card (obviously) which has about 15GB left and has never had any problems, and i don't think it is the rom as it does it with all of the JB roms i have tried. i have no idea why it is doing this but if anyone does could you please help. Many thanks in advanced. Yours MBrown
Click to expand...
Click to collapse
Is it trying to store it on the internal SD card? I think your ROM might be bad, what ROM are you using?
There is not enough infomation in there.
hello
androidlover287 said:
Is it trying to store it on the internal SD card? I think your ROM might be bad, what ROM are you using?
There is not enough infomation in there.
Click to expand...
Click to collapse
i am not sure exactly what more info i could include but i am running resurrection remix. and i am not sure weather or not it is trying to save to the SD card but it states that the SD card is full
I thought LG wasn't going to allow portable storage ?
I put my card in and it didn't make me format and it shows as portable storage.
The G5 does allow portable storage (obviously with the SD card slot). However, it does not support Marshmallow's "Adoptable Storage" (i.e. formatting the card as if it were more permanent, internal storage). I found this perplexing too, but perhaps it will support this with later updates, or we'll be able to use it with custom ROMs if the root work comes through.
More information on the difference here.
You can enable adoptable storage now using adb. Several guides on xda now on how to do this.
btothec said:
You can enable adoptable storage now using adb. Several guides on xda now on how to do this.
Click to expand...
Click to collapse
Can you link me to anything showing this working specifically for the G5? The only adb method I've seen is the one for the S7, and it results in storage being incorrectly displayed.
http://forum.xda-developers.com/showthread.php?p=66345633
Follow one of those guys and you'll be set. I did it with a fast 64GB card and I've had no issues.
btothec said:
http://forum.xda-developers.com/showthread.php?p=66345633
Click to expand...
Click to collapse
Those are instructions. In the context of my question, I'm referring to a screenshot or other such proof after the process showing storage displaying correctly on the device.
I have not done it yet. I did see some of those screenshots with incorrect sizes being displayed however. Maybe ask in that thread about it?
Hey guys, purchased the LG G5 (Singapore) and realised that the internal and sd storage seem to be having a strange issue, when i delete files, i dont immediately get my space back, if at all sometimes. it turns up as unusable space called system data when using DiskUsage. Restarting/ejecting works sometimes, but more often than not it doesnt work. I have tried factory resets and 3 different micro sd cards from samsung sandisk and toshiba. any ideas?