Switch internal and external memory card - Droid RAZR M Q&A, Help & Troubleshooting

Switch internal and external memory card​
Mount the external SD in place internal SD.
Option for editing via Root Explorer
Go to the folder "System" to set it right R / W.
Find the file "build.prop" and open it as a text.
Find the line "persist.fuse_sdcard = true" (in the middle of the file)
Change the "true" to "false". It turns out "persist.fuse_sdcard = false"
Save and exit. To turn off the simulation data / media on the internal SD
Go to the folder "/ system / etc" and find the file "vold.fstab"
Separates it as text.
Find the line "dev_mount sdcard / storage/sdcard1 auto / devices/platform/msm_sdcc.3/mmc_host"
Change the "1" to "0"
Add the line "dev_mount external / storage/sdcard1 auto / data / media"
Save and exit. Now External SD card is mounted in place internal SD.
Restart.
Option for editing via ADB
Line by trying to drive in the command line:
Enter only written in blue.
adb shell
su !Get Root
mount-o remount, rw / system !Mount Systems
mv / system / build.prop / system / build.prop.old !Rename the build.prop in build.prop.old
cat / system / build.prop.old | grep-v persist.fuse_sdcard = true> / system / build.prop !Remove line persist.fuse_sdcard = true in build.prop.old and save as build.prop
echo "persist.fuse_sdcard = false" >> / system / build.prop !Adding line persist.fuse_sdcard = false in build.prop
chmod 755 / system / build.prop !Set permissions on the file build.prop
mv / system / etc / vold.fstab / system / etc / vold.fstab.old !Rename vold.fstab in vold.fstab.old
cat / system / etc / vold.fstab.old | grep-v "dev_mount sdcard / storage/sdcard1 auto / devices/platform/msm_sdcc.3/mmc_host"> / system / etc / vold.fstab !Remove line dev_mount sdcard / storage / sdcard1 auto / devices/platform/msm_sdcc.3/mmc_hos in vold.fstab.old and save as vold.fstab
echo "dev_mount sdcard / storage/sdcard0 auto / devices/platform/msm_sdcc.3/mmc_host" >> / system / etc / vold.fstab !Adding line dev_mount sdcard / storage/sdcard0 auto / devices/platform/msm_sdcc.3/mmc_host in vold.fstab
echo "dev_mount external / storage/sdcard1 auto / data / media" >> / system / etc / vold.fstab !Adding line dev_mount external / storage/sdcard1 auto / data / media in vold.fstab
chmod 644 / system / etc / vold.fstab !Set permissions on the file vold.fstab
You can also through the terminal emulator, but without the adb shell.
As for the line "dev_mount external / storage/sdcard1 auto / data / media" in "vold.fstab". Logically, the stick should be mounted inside the place outside, but it's not happening. How did you know the contents of the internal flash to be (always was) in "/ data / media".
Do you have a question:
- A sense of this line?
Answer: - If its not say when entering the settings / memory crash bug.
I tried to write a line in this form: "dev_mount external / storage/sdcard1 auto / devices/platform/msm_sdcc.1/mmc_host". As such, the phone sees the external SD card but says that it want to format. Formatting is not happening. In the setting of active memory item "Mount SD", but also the sense of it is zero. Perhaps this is because the kernel does not support flash file system ext4.
I decided that I do not need built-in memory as an external SDi decided to completely give it up for memory applications (data / app).
If you want to install in the internal SD as an external SD:
OR. Go to the terminal and drive a "su" then "mount-o bind / data / media / mnt/external1". With this method of memory will be mounted at up to reboot.
OR. Create a file with the following content:
HTML:
#!/system/bin/sh
busybox mount -o bind /data/media /mnt/external1
File Name: name
And open the file in the "SManager ads" put the mark on the "SU" and "Boot". The "Save" and "Run"
I tried to add a script in "/ system / etc / init.d" named "11mount" but he either did not run or he should run after loading the phone.
Be sure to download content from the "data / media" in "/ storage/sdcard0" as earlier in the "media" Many applications store their data, and now "media" is not available at "/ storage/sdcard0" as before.
I speak bad English and use "google translate". Original in Russian here.

This method works on my Atrix HD. Thanks a lot,ZaYAC-ua. I only did build.prop and vold.fstab edit. It's better than swapping via autorun script in init.d.

It seems to have worked however now i have this anoying message that says blank sd card and when i click on it it asks me to format it so i do but it still says blank sd card. I have a rooted Motorola RazrM stock rom. anyone have any ideas on how i can get this to go away?

help
First off thank you for this. I am having difficulty with adding the line in instruction 10. Where does that go and what should it look like when I'm do e? Thank you. I am running the current cm10 beta

Have you done the 4.1.2 OTA? Does this in any way mess with the new update?

I also get error "sh: mount-o: not found" when I try via adb or terminal

Is it possible to do this on cm10.1 or is this mod just for jb 4.1.1-4.1.2
Sent from my Galaxy Nexus using xda app-developers app

Works Perfectly with ES File Explorer APP
ZaYAC-ua said:
Switch internal and external memory card​
Mount the external SD in place internal SD.
Option for editing via Root Explorer
Go to the folder "System" to set it right R / W.
Find the file "build.prop" and open it as a text.
Find the line "persist.fuse_sdcard = true" (in the middle of the file)
Change the "true" to "false". It turns out "persist.fuse_sdcard = false"
Save and exit. To turn off the simulation data / media on the internal SD
Go to the folder "/ system / etc" and find the file "vold.fstab"
Separates it as text.
Find the line "dev_mount sdcard / storage/sdcard1 auto / devices/platform/msm_sdcc.3/mmc_host"
Change the "1" to "0"
Add the line "dev_mount external / storage/sdcard1 auto / data / media"
Save and exit. Now External SD card is mounted in place internal SD.
Restart.
Option for editing via ADB
Line by trying to drive in the command line:
Enter only written in blue.
adb shell
su !Get Root
mount-o remount, rw / system !Mount Systems
mv / system / build.prop / system / build.prop.old !Rename the build.prop in build.prop.old
cat / system / build.prop.old | grep-v persist.fuse_sdcard = true> / system / build.prop !Remove line persist.fuse_sdcard = true in build.prop.old and save as build.prop
echo "persist.fuse_sdcard = false" >> / system / build.prop !Adding line persist.fuse_sdcard = false in build.prop
chmod 755 / system / build.prop !Set permissions on the file build.prop
mv / system / etc / vold.fstab / system / etc / vold.fstab.old !Rename vold.fstab in vold.fstab.old
cat / system / etc / vold.fstab.old | grep-v "dev_mount sdcard / storage/sdcard1 auto / devices/platform/msm_sdcc.3/mmc_host"> / system / etc / vold.fstab !Remove line dev_mount sdcard / storage / sdcard1 auto / devices/platform/msm_sdcc.3/mmc_hos in vold.fstab.old and save as vold.fstab
echo "dev_mount sdcard / storage/sdcard0 auto / devices/platform/msm_sdcc.3/mmc_host" >> / system / etc / vold.fstab !Adding line dev_mount sdcard / storage/sdcard0 auto / devices/platform/msm_sdcc.3/mmc_host in vold.fstab
echo "dev_mount external / storage/sdcard1 auto / data / media" >> / system / etc / vold.fstab !Adding line dev_mount external / storage/sdcard1 auto / data / media in vold.fstab
chmod 644 / system / etc / vold.fstab !Set permissions on the file vold.fstab
You can also through the terminal emulator, but without the adb shell.
As for the line "dev_mount external / storage/sdcard1 auto / data / media" in "vold.fstab". Logically, the stick should be mounted inside the place outside, but it's not happening. How did you know the contents of the internal flash to be (always was) in "/ data / media".
Do you have a question:
- A sense of this line?
Answer: - If its not say when entering the settings / memory crash bug.
I tried to write a line in this form: "dev_mount external / storage/sdcard1 auto / devices/platform/msm_sdcc.1/mmc_host". As such, the phone sees the external SD card but says that it want to format. Formatting is not happening. In the setting of active memory item "Mount SD", but also the sense of it is zero. Perhaps this is because the kernel does not support flash file system ext4.
I decided that I do not need built-in memory as an external SDi decided to completely give it up for memory applications (data / app).
If you want to install in the internal SD as an external SD:
OR. Go to the terminal and drive a "su" then "mount-o bind / data / media / mnt/external1". With this method of memory will be mounted at up to reboot.
OR. Create a file with the following content:
HTML:
#!/system/bin/sh
busybox mount -o bind /data/media /mnt/external1
File Name: name
And open the file in the "SManager ads" put the mark on the "SU" and "Boot". The "Save" and "Run"
I tried to add a script in "/ system / etc / init.d" named "11mount" but he either did not run or he should run after loading the phone.
Be sure to download content from the "data / media" in "/ storage/sdcard0" as earlier in the "media" Many applications store their data, and now "media" is not available at "/ storage/sdcard0" as before.
I speak bad English and use "google translate". Original in Russian here.
Click to expand...
Click to collapse
Firstly thanks to ZaYAC-ua I tried this mod with bad results my New Razr M XT905 Running Jellybean 4.1.2 had to be re flashed with stock rom twice!!!
Both times after modifying the files mentioned above phone wouldn't boot only showed Red Moto logo at start of boot then nothing!!!
But I did persist and eventually had success this only takes a few minutes and places your External sdcard at " sdcard0 " Allowing full use of your sd card for media apps etc.
FIRST DO NOT drag files from phone to PC modify them then place back on phone this corrupts files result no Boot!!
Second ROOT EXPLORER would not modify files no matter what I tried yes I,m aware of RO RW and so on.
Third Download ES FILE EXPLORER Brilliant APP for file access, connecting to your LAN and seamless transfer of files between Phone and PC
oh yes and Editing system files.
1. Open ES File Ex Go to & open folder "System" set to R / W.
( tap top left button little phone & half world globe, open " Tools " then open " Root Explorer " then " Mount R/W " check both " radio
buttons and OK. This may need repeating as you access other folders to modify files!
2. Find the file "build.prop" long press and open with ES Note Editor
3. Find the line "persist.fuse_sdcard = true" (about half way down file list)
4. Change the "true" to "false". Should look like this "persist.fuse_sdcard = false"
(To edit press 3 little dots top right corner and select edit, to save just back out of file should see a window asking to save changes)
5. To turn off the simulation " data / media " on the internal SD
6. Go to the folder "/ system / etc" and find the file " vold.fstab "
7. Long press and open as Text with ES Note Editor
8. Find the line "dev_mount sdcard /storage/sdcard1 auto /devices/platform/msm_sdcc.3/mmc_host"
9. Change the "1" to "0"
(To edit press 3 little dots top right corner and select edit, to save just back out of file should see a window asking to save changes)
10. Now add the following line below the one you just changed the 1 & 0 in, leaving a space between the two see pic below.
"dev_mount external /storage/sdcard1 auto /data/media" (Take note of spaces in this line it matters)
11. Save and exit. Now External SD card is mounted in place internal SD.
12. Restart.
I didn't understand how to make the old internal 4GB on the phone avaliable as external SD card as in ZaYAC-ua original post
bit above my skill level maybe someone else can shed some light on this one?
Hope this helps!!

I've try it, it will make the internal storage useless, so, it's not a perfect way.

How do u get those words in the top left corner
Sent from my XT907 using xda app-developers app

goodayoo said:
I've try it, it will make the internal storage useless, so, it's not a perfect way.
Click to expand...
Click to collapse
No its not prefect but when I installed GTA3 and Pinball Arcade this left my phone totally useless 20M to store apps lol, personally I think a 4gb loss for a potential 30gb gain (32gb card) is a good trade off!!! Hopefully some one can show us how to make the 4gb available using ES FILE EXPLORER?
---------- Post added at 09:41 AM ---------- Previous post was at 09:34 AM ----------
ifrankie10 said:
How do u get those words in the top left corner
Sent from my XT907 using xda app-developers app
Click to expand...
Click to collapse
Hey not sure which words you are referring to the only top left corner I guided you to is an icon of a phone and half a world globe tap it to open tools.

Is their any other way like creating a partition in sd card and converting it to internal memory, if it van succeeded the sd card will be no more useless after converting its partition as internal memory
Sent from my MT15i using xda premium

Awesome! What happens to the data on the internal memory? Usually photos etc r on there...
Sent from my Nexus 7 using xda premium

pjcons said:
Awesome! What happens to the data on the internal memory? Usually photos etc r on there...
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Some initial housekeeping is required. Then delete everything in mnt/storage1. As long as you do not do much with the ext unmounted there is never much there anymore.
BTW
Is there a good reason not to use this with CM based roms?

Ok I have tried to do this as my phone only has 2gb internal and filled up rediculously fast as i'm downloading maps and things on it and now i cannot do much of anything with it. When I arrive at the point of editing the vold.fstab file this is what i'm presented with:
Code:
# internal sdcard
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# external sdcard
dev_mount external_sd /mnt/external_sd auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
not sure what to change here so could use some help. I'm thinking change the 28 to auto so that it is no longer locked to that partition... It is a samsung Rugby smart rooted and running CM9 if that matters
thanks
tim

timmydafool said:
Ok I have tried to do this as my phone only has 2gb internal and filled up rediculously fast as i'm downloading maps and things on it and now i cannot do much of anything with it. When I arrive at the point of editing the vold.fstab file this is what i'm presented with:
Code:
# internal sdcard
dev_mount sdcard /mnt/sdcard 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# external sdcard
dev_mount external_sd /mnt/external_sd auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
not sure what to change here so could use some help. I'm thinking change the 28 to auto so that it is no longer locked to that partition... It is a samsung Rugby smart rooted and running CM9 if that matters
thanks
tim
Click to expand...
Click to collapse
Ok I got impatient and started editing on my own and after about 30 different edits to vold.fstab and not having any storage (internal or external) for a while I got it all working. external card viewed as internal i'm sooo happy. this is how i converted the above code:
Code:
# internal sdcard
dev_mount external_sd /mnt/sdcard1 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# external sdcard
dev_mount sccard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
Hope this helps anyone else with a similar phone. this seems to be similar to several other galaxy variants from what i've found throughout the forum. Now i just gotta get the interal recognized again. I believe the first line still needs tweeked.
-tim

timmydafool said:
Ok I got impatient and started editing on my own and after about 30 different edits to vold.fstab and not having any storage (internal or external) for a while I got it all working. external card viewed as internal i'm sooo happy. this is how i converted the above code:
Code:
# internal sdcard
dev_mount external_sd /mnt/sdcard1 28 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# external sdcard
dev_mount sccard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host/mmc2
Hope this helps anyone else with a similar phone. this seems to be similar to several other galaxy variants from what i've found throughout the forum. Now i just gotta get the interal recognized again. I believe the first line still needs tweeked.
-tim
Click to expand...
Click to collapse
I'm running CM9 on a Rugby Smart as well. Were you able to find the "persist.fuse_sdcard=true" line in the build.prop to edit? I can't seem to find that line.

ESPFreak said:
I'm running CM9 on a Rugby Smart as well. Were you able to find the "persist.fuse_sdcard=true" line in the build.prop to edit? I can't seem to find that line.
Click to expand...
Click to collapse
I believe I just added the line to the end of the build.prop as it was not in there at all. i don't know if this was the right way to do it but it worked for me...

timmydafool said:
I believe I just added the line to the end of the build.prop as it was not in there at all. i don't know if this was the right way to do it but it worked for me...
Click to expand...
Click to collapse
No luck. I just get a boot loop.

ESPFreak said:
No luck. I just get a boot loop.
Click to expand...
Click to collapse
Ok so you made me go back and inspect my build.prop
scroll down till you see:
Code:
# Storage Configuration
and add it under there. Mine actually says persist.fuse_sdcard=false right now
and it's working fine dunno why but it is...

Related

[HOWTO] Change CM7 Internal SD Location To Stock

So many people have been wondering why thier internal sd is mounted in /mnt/emmc and that is because thats cm7 standard.
But what if you have games that have all the data on the internal sd and want to play them?
Well here is how to change it to stock.
Open Root Explorer.
Mount R/W (On Top)
Go to /etc
Open vold.fstab in text editor (Long Press)
Look for these 2 lines:
Code:
# external sd card
#dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
#dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Remove the # in front of them.
Look for these 2 other lines:
Code:
dev_mount sdcard/mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Add # in front of both lines
Should look like:
Code:
# external sd card
dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
#dev_mount sdcard/mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
#dev_mount emmc /mnt/emmc 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Reboot.
Do the opposite to return back.
You can also just copy the file from other roms like Ninja, Alien, etc.
Thanks to MobileHomeElf for telling us what to do.
I am not responsible if this bricks your phone, kills your cat, sleeps with your wife, eats a burrito, or lights your house on fire. Use at your own risk.
How do I open it in text editor and edit it?
Edit: nevermind the long press has scroll lol
Sent from my Motorola Atrix 4G MB860 using XDA App
In RootExplorer make sure you are r/w and long press on it and select open in text editor
Wait in your "what it should look like" you still have # in front of the first two things. Should they be there?
Sent from my Motorola Atrix 4G MB860 using XDA App
BMW completely disregard what I said
Sent from my Motorola Atrix 4G MB860 using XDA App
Very good!
Just do not know how to run sub。
frodriguez96 said:
So many people have been wondering why thier internal sd is mounted in /mnt/emmc and that is because thats cm7 standard.
But what if you have games that have all the data on the internal sd and want to play them?
Well here is how to change it to stock.
Open Root Explorer.
Mount R/W (On Top)
Go to /etc
Open vold.fstab in text editor (Long Press)
Look for these 2 lines:
Code:
# external sd card
#dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
#dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Remove the # in front of them.
Look for these 2 other lines:
Code:
dev_mount sdcard/mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Add # in front of both lines
Should look like:
Code:
# external sd card
dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
dev_mount sdcard /mnt/sdcard 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
#dev_mount sdcard/mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
#dev_mount emmc /mnt/emmc 18 /devices/platform/tegra-sdhci.3/mmc_host/mmc0
Reboot.
Do the opposite to return back.
You can also just copy the file from other roms like Ninja, Alien, etc.
Thanks to MobileHomeElf for telling us what to do.
I am not responsible if this bricks your phone, kills your cat, sleeps with your wife, eats a burrito, or lights your house on fire. Use at your own risk.
Click to expand...
Click to collapse
Thank you. Thank you. Thank you.
Sent from my MB860 using XDA Premium App
Thank me by clicking thanks
Sent from my Motorola Atrix 4G MB860 using XDA Premium App
Good writeup. Thanks for the credit. Enjoy all that cm7 goodness.
Sent from my Motorola Atrix 4G MB860 using XDA Premium App
This slept with my wife... But I won't hold you responsible. Thanks for sharing.
Good post, I made this suggestion and had my head bitten off....
I've tried it both ways--editing the file and swapping it in from another ROM (setting permissions and ownership appropriately after the latter)--and the internal "card" is mounted as /sdcard, but the external card doesn't seem to be mounted at all. Is there another obvious step that I'm somehow missing?
Can this Mod be packaged as a CWM file?
AnalogXDA said:
I've tried it both ways--editing the file and swapping it in from another ROM (setting permissions and ownership appropriately after the latter)--and the internal "card" is mounted as /sdcard, but the external card doesn't seem to be mounted at all. Is there another obvious step that I'm somehow missing?
Click to expand...
Click to collapse
The same thing happened to me brother. You're not doing anything wrong. I tried editing the file 30 times and got the same result each time, it's nothing you're doing.
Can we mount internal as SD card and external as sdext?
Sent from my Motorola Atrix 4G MB860 using XDA Premium App
AnalogXDA said:
I've tried it both ways--editing the file and swapping it in from another ROM (setting permissions and ownership appropriately after the latter)--and the internal "card" is mounted as /sdcard, but the external card doesn't seem to be mounted at all. Is there another obvious step that I'm somehow missing?
Click to expand...
Click to collapse
CM works differently, using the method posted you won't be able to mount the sdcard. You will have to mount one as emmc. If you want to mount the sdcard as emmc, then you need to change:
Code:
dev_mount sdcard_ext /mnt/sdcard-ext:none:lun1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
to
Code:
dev_mount emmc /mnt/emmc auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
oooohhhh emmmmmm geeeee.....while running thru the vold.fstab file i figured out how to automatically mount a usb powered device without the use of terminal emulator or a script... (sorry if i'm late with this "finding" lol) but all u have to do is go to "/mnt/" then create a folder named "usbdisk_1.0" and change the permissions to --xrwxr-x then plug in your external hard drive/flash drive and boom!!!
edit: seems u have to create the folder every time you restart the phone :/ anyone knows how to make the folder stay??
Lizzo said:
oooohhhh emmmmmm geeeee.....while running thru the vold.fstab file i figured out how to automatically mount a usb powered device without the use of terminal emulator or a script... (sorry if i'm late with this "finding" lol) but all u have to do is go to "/mnt/" then create a folder named "usbdisk_1.0" and change the permissions to --xrwxr-x then plug in your external hard drive/flash drive and boom!!!
edit: seems u have to create the folder every time you restart the phone :/ anyone knows how to make the folder stay??
Click to expand...
Click to collapse
Nice find and same here with the folder deleting itself on reboot.
Also to those who managed to get thier internal sdcard in /mnt/sdcard but cant find thier external sd, same happened to me, but if you go into settings , storage you can see it is saying that the external sd is the interal storage and the internal is external storage so if someone could help me figure out how to fix this and properly mount each sdcard, then thanks, until then to use your external sd you need to change it back to cm7 stock and to use the internal sd then change it back to moto stock.
frodriguez96 said:
Nice find and same here with the folder deleting itself on reboot.
Also to those who managed to get thier internal sdcard in /mnt/sdcard but cant find thier external sd, same happened to me, but if you go into settings , storage you can see it is saying that the external sd is the interal storage and the internal is external storage so if someone could help me figure out how to fix this and properly mount each sdcard, then thanks, until then to use your external sd you need to change it back to cm7 stock and to use the internal sd then change it back to moto stock.
Click to expand...
Click to collapse
the post above mines that u quoted shows u how to get the external sd card working, but mounted as emmc.
Can someone explain this feature of CM7 to me? From what I gathered, CM7 by default mounts the internal storage to emmc and the external SD card to sdcard. Apps use sdcard for storage, so all the data gets saved to your external SD card in CM7 by default. Can you just copy the folders from your internal card to your external card as a workaround?

[Q] Redirect mount point of External SD..

Can I change the mount point of the External SD card (microsd) from
/mnt/external_sd
to
/mnt/sdcard/MicroSD
I tried changing the entry in vold.fstab to no help. it wasn't mounted to /mnt/external_sd but it also wasn't mounted to the MicroSD folder i made on /mnt/sdcard
This would let any program that doesn't have the ability to handle the external SD card to be able to access it as it wouldn't know where it was. I could then do this to USB drives plugged in as well.
Nova5 said:
Can I change the mount point of the External SD card (microsd) from
/mnt/external_sd
to
/mnt/sdcard/MicroSD
I tried changing the entry in vold.fstab to no help. it wasn't mounted to /mnt/external_sd but it also wasn't mounted to the MicroSD folder i made on /mnt/sdcard
This would let any program that doesn't have the ability to handle the external SD card to be able to access it as it wouldn't know where it was. I could then do this to USB drives plugged in as well.
Click to expand...
Click to collapse
This might not exactly be the route you wanna take, but have you tried adding a symlink? Might do the trick, then again, I'm having a little issue with the same thing right now. Looks like this has been a popular subject lately
symlinks seem to be inoperable in HC.
Found this on another forum
Have you tried "bind" mounting?
Doesn't wok for me as I have a stock (unrooted) transformer...
cd /mnt/sdcard
mkdir MicroSD
mount -o bind /mnt/external_sd /mnt/sdcard/MicroSD
Click to expand...
Click to collapse
Works fairly well. Doesn't effect the storage count for the internal memory however. if we could actually mount it to a folder inside the scdard mount then it may show up as extra space, but i kinda doubt that bit.
Those system files are overwritten on each reboot so you have to "mount -o bind" on every reboot.
If you find a way to make this mount point permanent let me know, I am looking for a way as well.
If you're rooted, I think USB Mount All did this.
powercat_ said:
Those system files are overwritten on each reboot so you have to "mount -o bind" on every reboot.
If you find a way to make this mount point permanent let me know, I am looking for a way as well.
Click to expand...
Click to collapse
What system files? Its simply a mount point created and handled in memory. its never added to a file. I forget what the start up command file is in linux that is the sister of DOSs Autoexec.bat. It would need to be added to that as the last command. Now i have read this is a risky command to run as it can create a endless loop if something attempts to scan the directories it can run into a recursive loop. Now I believe this is because most instances of this command tend to be used to bring a directory onto the desktop thats a few steps above it. Considering that the way I am using it is to link a directory that is outside the scope of another, it shouldn't ever cause this and be a pretty safe way to do it. The BIND command creates a hard link between the two locations. the /mnt/sdcard/MicroSD is a directory I created. when I bind it to the /mnt/external_sd directory the files appear in both places at the same time as MicroSD is simply a... tunnel as it were into External SD. But the programs are convinced its MicroSD. So those that can't use the external sd slot now can through this "tunnel". The same trick can also be applied to the directory for the USB thumb/flash drives.
Just create a directory for it on /mnt/sdcard
fermunky said:
If you're rooted, I think USB Mount All did this.
Click to expand...
Click to collapse
why pay when you can enter a command and its done?
Yes, mount -o bind works, but if you reboot, the mount point is no longer there.
Sure, we can add an entry to fstab, but the file is overwritten by a reboot
the autostart file is init.rc, which is overwritten by a reboot as well, so that rules out using it to auto mount this bind.
let me know if you find other information as I would very much like this to work.
FYI I started a thread about this command a few days back but never got any pertinent information:
http://forum.xda-developers.com/showthread.php?t=1287522
(this was before 3.2 when you couldn't access the SD card from usb)
Nova5 said:
why pay when you can enter a command and its done?
Click to expand...
Click to collapse
Because it is only a few bucks, and it will do it for you without having to manually do it. I know it's quite a simple task, but I say best out of sight/out of mind.
its overwrites those huh? that bites..
fermunky said:
Because it is only a few bucks, and it will do it for you without having to manually do it. I know it's quite a simple task, but I say best out of sight/out of mind.
Click to expand...
Click to collapse
Just takes a bit to track where we can stick the commands to get an auto start. I may make a simple script file to leave on the home screens. tap and done.
Okay it seems the location where the init.rc is stored is volatile. I created a test file in there and rebooted the tablet, file is gone. So its less overwriting and simply copying out of its hidden location to a usable one. sdcard in there is just a mount point for the actual hardware address location of the sdcard. So if we want to get the autostart we would have to discover where HC pulls that data from on boot.
Bind will fail if the location that actually holds the data is not present/ready. usb_storage is more affected by this as a user doesn't normally leave a flash drive in the port. Script manager can auto-execute a script on boot. Works well enough.
hmm...
It appears if you remove the usb drive after making the bind, the bind is broken. So while its workable, its not perfect. Of course since the microsd card is rarley removed, this isn't much of an issue. If we could get the script to also run on insertion of the USB drive that would then make it work better.
SCript Manager allows one to create a direct shortcut to execute a specific script. So you can swap USB drives, tap the script icon and then access the script through the bound directory.
I use the following program created by RubberBigPepper from an alternative russian site about android apps and devices.
Any interesting effect I've noticed, any time the script runs it creates a new mount entry for the bind command, even if that bind already exists. OfficePro5 shows this by listing MicroSD for each bind entry. So I had 13 entries of MicroSD as it ran that many times, due to a setting I shouldn't have checked... Run on Net Change. But it pointed out this interesting effect.
I now see the need for this as one of my apps does not natively see the ext sd card.
OK I tried the apk above and it does not seem to work. I get a folder called ex_sdcard but it is empty and does not reflect the sd card contents.
Nova, you found another way yet you could share, or do I just need to manually create symlinks after every boot?
mountmicrosd.sh
Code:
# Note : Super user required. Your Tablet MUST be rooted!
# Removing the card will disrupt the bind. And Require running script again when plugged back in.
echo Breaks any existing Bind mount to avoid creating duplicate Bind entries. a "failed" response is acceptable as is no response.
umount /mnt/sdcard/MicroSD
echo execute Micro SD mount - card must be plugged in or Invalid Argument error will occur.
mount -o bind /mnt/external_sd /mnt/sdcard/MicroSD
Place the above in a text file with the extension .sh Download from the Market a program called Script Manager. Place the sh file in your SD card root. Run script manager, select that file and check two boxes. Run on Boot, Run as Root. Also create the directory of "MicroSD" Just as its typed. Linux is very caps sensitive. now every time you boot it will automatically run the script and bind the ExSD to the MicroSD directory.
This one will do the USB drive.
mountusb.sh
Code:
# Note : Super user required. Your Tablet MUST be rooted!
# Removing the drive will disrupt the bind. And Require running script again when plugged back in.
echo Breaks any existing Bind mount to avoid creating duplicate Bind entries. a "failed" response is acceptable as is no response.
umount /mnt/sdcard/USBDrive
echo execute USB Drive mount - drive must be plugged in or Invalid Argument error will occur.
mount -o bind /mnt/usb_storage /mnt/sdcard/USBDrive
Create a widget with ScriptManager to have a touchable icon on your screen to run this one. Note it must have the folder "USBDrive" created on the sdcard.
It is unimportant if you use the same filename.sh i did. That is just so I knew at a glance what it does. # is a comment and Echo prints the text following it to the screen. I found a way around the mutiple bind entries by simply unmounting it before making the mount bind. You might see a Failed error, this is just fine. it just means there was no mount for it to undo on its first run. this will be more helpful on the USB drive script than the MicroSD card one.
Very cool, Nova5!
Thanks for taking the time to research it further.
I tested your solution and it works fine!
I updated it with a fix to prevent the multiple entries. You'll need to update your files to reflect the changes I made. a reboot will be the simplest way to ensure it starts with a clean slate. Notice I removed the comment about Running it once only, due to the umount command preceeding the mount command. This removes the bind from memory and then when its created again you don't have the problem of 13 entries of MicroSD in OfficePro like I ran into.
Alright, I think its as good it is going to get. You could put them in the same files but for simplicity and being able to swap USB drives without affecting the ExSD card two files is best.
Wait... debug time. I goofed something.
Okay fixed up and working right. Remember what I mentioned about linux and capitals? oops. Echo is not echo.
Shucks, im not rooted.

howto: mount external sdcard as sdcard0

So, the Note 8.0 is a nice, fast, expensive device that had a big shortcoming for me: as shipped, the SD card is not useful as a place where application data easily lands - it's only intended for storing music and video files, or those chunks of data you manually target to it.
I fixed it, after a fashion, by mounting the card at boot time as sdcard0, which Samsung normally assigns to the (very limited) internal storage. The internal /data/media pool is treated as the external sdcard and very little installation data defaults to it. Apps2SD is still broken, but quite a lot of things simply default to using /sdcard0 as their preferred storage, which I find helpful.
You have to mount it at start time (init.d), and you have to mount it correctly (bind)
I figured out and set my device up this way by setting init.d scripts I learned about from threads by Ryuinferno (init.d) and mattiadj (rebinding in the Note 2) for this. Translation: none of this is my work, I just sounded out how others had done it and am assembling it here, since I know it will help other Note 8 folks.
I think that the init.d script support is very interesting - there are a lot of ROM tweaks that rely on init.d. You do not need a custom kernel for init.d to work the note 8 - which is nice, since we have no custom kernel
The outcome of this mod is that with an sdcard inserted, I get:
/storage/sdcard0 29.7G 3.68G 26.0G 32768
and
/storage/extSdCard 9.87G 1.78G 8.09G 4096
If I remove the card at boot, I still have apps (installed at /data/data) and the media
pool reverts to normal:
/storage/sdcard0 9.78G 1.78G 7.99G 4096
I wrote none of the scripts I'm using and will be the first to admit that I may have set them up stupidly.
Doing this voids your warranty and gives you pimples and a moon tan. But it does mean your sd card expands your storage and I hope that if there are better ways to do any of this, folks will chime in.
tools needed:
- knowledge of ADB and working ADB
- helps if you know how Unix and windows terminate lines differently, and can get your copy of Notepad++ to help you with the script, if you're trying this from Windows
- a note 8 running the 4.1.2 software - this approach is only tested there
- Kies
- Possibly Odin as a replacement for Kies (untested)
- understanding of how to put your device into recovery mode and trigger the Samsung recovery
- the US stock firmware for your device, for use with Odin (unless waiting on 1+ gig downloads if you screw something up is ok by you - the Kies method works, slooooowly.)
- Framaroot, to root your Note 8 (see the thread by tweebee)
- Busybox installed
Steps:
Install Framaroot
Root your device
Install busybox
Easy part done.
Next, you need to be able to run init.d scripts. At first I thought this might require a custom kernel, until I ran into Ryuinferno's excellent tool for enabling init.d without a custom kernel.
the thread I learned this from is by Ryuinferno at http://forum.xda-developers.com/showthread.php?t=1933849
I used term-init.sh from an ADB command line, but the thread has an APK in it called Uni-Init.apk that I would expect to work.
What you're doing is creating an install-recovery.sh script and telling it to go read /etc/init.d and run scripts there at boot.
Next, you want to create a simple script and drop it into /etc/init.d You can do this with an adb push; if you create the file in windows, though, you need to deal with the line endings correctly. You need the script to be executable and to be owned by root.
The one I'm using is this, from Mattiadj of the Note 2 community
in this thread: http://forum.xda-developers.com/showthread.php?t=2036796:
I call the script 07mount on my device, and a copy is attached to this post.
-----------------------script starts next line
#!/system/bin/sh
#extsd2internalsd is a modification that allows to switch internal sd to external sd
#and viceversa. With this you can use default internal sd only for app storage
#and the external sd to store all apps resource and all others stuff. The resut is a very
#big increase of installable apps on gnote2 and note8
#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for
#the cmw zip. xda thread url
# at http://forum.xda-developers.com/showthread.php?t=2036796:
sleep 10
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:17 /storage/sdcard0
sleep 30
mount -o bind /data/media /storage/extSdCard
chmod 777 /mnt/extSdCard
sleep 10
chown 1023:1023 /storage/extSdCard
chown 1000:1000 /storage/sdcard0
------------- end script on blank line above
You need /system remounted read/write, either in your favorite file explorer or via adb shell:
#mount -o rw,remount /system
to put the file in and
#chown root:root
the script itself
Now, put a fat32 formatted card into your sdcard, and reboot. When done, you should be able to see that your data storage has been remapped.
If you ever wanted to install a Samsung update, by the way, you'd need to completely unroot the device. I think the following would probably work:
- remove the su binary
- remove superuser from /system
- remove the busybox binaries
- remove install-recovery.sh from /etc and the /etc/init.d folder
If there was someting in an update you really wanted, you might do better to start by using the Samsung firmware downloaded from samfirmware.com, set your device all the way back to a clean install, then check for the OTA - Samsung does look at modifications and blocks updates to devices with changes to /system. My device is ineligible for OTA at this time.
That said, it appears that using Kies in emergency recovery mode can be used to reset your device to an as-shipped condition (I learned this when an early experiment resulted in my device being weirdly screwed up - bootable, but the network was down for the browser, etc. DNS and ping worked from an ADB prompt, though...)
You can download a copy of the script at http://www.mediafire.com/?2wbm439vlapb6om
I'm gonna try this when I have a full afternoon off as I tend to mess things up the first time I do them. But this will be super useful if I get it working. Hopefully when people start developing custom roms they can build this script in and save us all the trouble :highfive:
Haven't tried it yet, but it sounds like a custom recovery is very, very close. Once that happens, making this into a flashable modification will be trivial.
The very active Note II development is incredibly helpful, because our hardware and software are so similar to theirs.
I know this was something that users on the other Galaxy Note 2 threads were doing, and was wondering if at some point this will be an issue with say JB 4.2.2. I recall that Apps2SD would be an issue later on and wouldn't work, but I never got to that point. For me I am really in need of a 32GB tablet and just can't compromise even with a 64GB microSD card. I don't know why this tablet isn't supporting a 128GB microSD card, that would be awesome.
Upgrading internal storage by blending in sdcard
Just to be clear - this mod does not allow app2sd style migration of apps (in /data/app) to the sdcard.
Rather, it puts /data/media on the sdcard. A lot of apps use /data/media as their default for storage, though, so it's a helpful middle ground. Also, your apps are installed whether or not the sdcard is inserted, which is helpful.
I notice that the update includes a script called
install-recovery.sh - the same script that this method is using.
I have tested replacing a backed up copy of install-recovery and also
appending the command
run-parts /system/etc/init.d/ to the new file.
Using just a script to call run-parts or the stock install-recovery.sh works just fine.
I found a much easier way of doing this.
http://forum.xda-developers.com/showthread.php?t=2276193
hi friends & master
please help me
Is there any way to transfer games and apps to the internal storage with app2sd (moving apps & games in from system Rom to SD card(internal) no memory card)?
my system rom There is almost full
1.44 GB (148 MB free)
internal 12.6 GB (5.8 GB free)
SD card 12.5 GB (5.6 GB free)
I do not need to memory card

[Q] SDcard to ExtSD for Official 5.0.1 ROM?

Hello!
I've been searching thru the web and these forums for an answer, but I didn't find it. Does anyone how to Swap SDCard & ExtSdCard on Samsung's official 5.0.1 ROM?
Thanks!:fingers-crossed:
This may not work on the S4 and you run the risk of bricking the device if you choose to attempt it. I will not be held responsible if something happens.
Root, then pull a copy of vold.fstab from /system/etc to your PC and edit using notepad++. Flip the mount points for SDCard and ExtSDCard, then push the edited file back to /system/etc and reboot the S4. If you have an on-board text editor you can simply edit the copy of vold.fstab right on the device. But editing directly on the device can be a bit painful, so using a PC is better.
Example vold.fstab.
Code:
# Mounts the first usable partition of the specified device
#/devices/platform/awsmc.3/mmc_host for sdio
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/nandi
dev_mount extsd /mnt/extsd auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
dev_mount usbhost1 /mnt/usbhost1 auto /devices/platform/sw-ehci.1 /devices/platform/sw_hcd_host0 /devices/platform/sw-ehci.2
After editing.
Code:
# Mounts the first usable partition of the specified device
#/devices/platform/awsmc.3/mmc_host for sdio
dev_mount sdcard /mnt/sdcard auto /devices/platform/sunxi-mmc.1/mmc_host /devices/platform/sunxi-mmc.0/mmc_host
dev_mount extsd /mnt/extsd auto /devices/virtual/block/nandi
dev_mount usbhost1 /mnt/usbhost1 auto /devices/platform/sw-ehci.1 /devices/platform/sw_hcd_host0 /devices/platform/sw-ehci.2

[Q] How to swap SD???

Hello friends.
the question is it...
How to swap internal memory for external SD in "[rom][5.0.2][lollipop][xt907]resurrection remix 5.3.5".
tread: "http://forum.xda-developers.com/showthread.php?t=2229848" no work...
1- Go to the folder "System" to set it right R / W.
2- Find the file "build.prop" and open it as a text.
3- Find the line "persist.fuse_sdcard = true" (in the middle of the file)
4- Change the "true" to "false". It turns out "persist.fuse_sdcard = false"
5- Save and exit. To turn off the simulation data / media on the internal SD
6- Go to the folder "/ system / etc" and find the file "vold.fstab"
7- Separates it as text.
8- Find the line "dev_mount sdcard / storage/sdcard1 auto / devices/platform/msm_sdcc.3/mmc_host"
9- Change the "1" to "0"
10- Add the line "dev_mount external / storage/sdcard1 auto / data / media"
11- Save and exit. Now External SD card is mounted in place internal SD.
12- Restart.
* The file "vold.fstab" no exist.
thanks for help!
and sorry for the bad english.
n_nU...

Categories

Resources