Related
This seems to be the best solution if you just want to stock mounting in cm7, I don't know if build.prop changes with every new nightly so you'll probably have to edit it after every flash.
Stikkontakt said:
SOLUTION:
1: Create a folder in your internal SD Card (in my case "ExternalSD")
2: Edit vold.fstab:
Code:
dev_mount emmc /mnt/sdcard/ExternalSD auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount sdcard /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
3: Edit /system/build.prop
Code:
# Mount the internal SD card, too
ro.additionalmounts=/mnt/sdcard/ExternalSD
your external sd card is now mounted inside internal sd card. If you go to settings/storage, it will come up as unavailable, but the external content is inside your selected folder
Click to expand...
Click to collapse
nomedor said:
After that you can mount external sd as a folder of internal by using this command in terminal emulator:
Code:
mount /mnt/emmc /mnt/sdcard/_ExternalSD
The problem is that it can't survive boot and you have to write this command by hand every time. I tried to make it run on boot by adding the command in \system\etc\init.d folder as a text file but it didn't work, although it should.
Any help is welcome
Click to expand...
Click to collapse
That's why it didn't works!
Thanks for bring it up! I hope someone will help you becouse the way stock roms mount sd card is way better!
pushing it up, since this here is an interesting topic. It does indeed make more sense to mount sdcards like the stock roms mount it...
Hopefully someone can figure this out.
Also i noticed that if you do not mount emmc/_ExternalSD it gets recognised by the pc and otherwise not. This could be coincidence since i'm struggling hard with mounting my sdcards to my mac...
Unfortunately you are right, after this trick pc can only see the external sd card!
Maybe this isn't the right way to do it or somehow it needs to automatically unmount before you connect the phone on pc and then on disconnect remount it again.
Sadly my knowledge is limited, but I think that a real developer can do it in a heartbeat.
I'm not a real developer, but I remember that the modified fstab has to be put inside the kernel ramdisk.
I have found these two perl scripts somewhere on the net. They can be used to extract and repack the boot image. Could be possible that the base address has to be modified to work on the O2x, haven't tried it myself yet.
Zip including the scripts are here:
h t t p ://tuxfighter.de/Share/Scripts/
___
Sent from my Optimus 2X using Tapatalk
This is easy peasy lemon squeezy . For me at least since ex-dev.
Instructions:
Get root explorer (cba giving adb commands on my phone)
Mount r/w
Go to etc/vold.fstab
Mount r/w again
Long press the file and click open in text editor
Now at the bottom swap the mounts. Sdcard to /mnt/emmc
And
emmc to /mnt/sdcard
Save and exit.
Delete backup and reboot.
I will post a flashable zip if you want soon.
DONT FORGET TO THANK ME!
EDIT: just read first post properly. It should work on every boot. It is for me on my g2x. Try my easy method
The problem is that I can't find a way to mount external SD in "/sdcard/_externalSD" from vold.fstab where /sdcard is internal memory, just like stock rom.
It should be possible...
nomedor said:
The problem is that I can't find a way to mount external SD in "/sdcard/_externalSD" from vold.fstab where /sdcard is internal memory, just like stock rom.
It should be possible...
Click to expand...
Click to collapse
Have a look at the stock vold then
Sent from my LG-P999 using XDA App
I copied stock vold into CM7 and i got neither internal SD nor external SD then.
ranrick said:
I copied stock vold into CM7 and i got neither internal SD nor external SD then.
Click to expand...
Click to collapse
I've already tried that. I can't understand why people are not interested in this
yeah, there are almost no applications which can use /mnt/emmc. So 1 partition is almost useless at current situation.
Any progress?
Sent from my Optimus 2X using Tapatalk
ranrick said:
yeah, there are almost no applications which can use /mnt/emmc. So 1 partition is almost useless at current situation.
Click to expand...
Click to collapse
Y dont u put all your pics,videos and music in emmc and leave sdcard for application data?
Sent from my LG-P999 using XDA App
webstar1 said:
Y dont u put all your pics,videos and music in emmc and leave sdcard for application data?
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Because we have to do It for EVERY new photo/Video
Stock's ROM vold.fstab is mounting /sdcard/_externalSD but this is not working on CyanogenMOD, it could be a CM7 "problem" after all!
No update? CM7 way to mount sd sucks IMHO!
katun79 said:
No update? CM7 way to mount sd sucks IMHO!
Click to expand...
Click to collapse
if you want to test it (please do a nand backup before!), than try my kernel and add the -internal flag to it.
Download this
rename to vorkKernel-080611-internal.zip
and flash it.
It is untested, because I don't want this behaivour and I made it because a user requested it. So no gurantee that it will work etc.
Bennee:
From what i see in vold.fstab file in the flashable zip it only swaps paths...
Any luck mounting external sd in "/mnt/sdcard/_externalSD" ?
nomedor said:
Bennee:
From what i see in vold.fstab file in the flashable zip it only swaps paths...
Any luck mounting external sd in "/mnt/sdcard/_externalSD" ?
Click to expand...
Click to collapse
there is a additional mounting script + some permission fixes. Should be called on every boot up (mount /mnt/emmc /mnt/sdcard/_ExternalSD).
Benee said:
there is a additional mounting script + some permission fixes. Should be called on every boot up (mount /mnt/emmc /mnt/sdcard/_ExternalSD).
Click to expand...
Click to collapse
But it doesn't... _ExternalSD is empty with your kernel.
Hi Guys, just flashed my O2X with CM7 and it worked fine but for some reason its not detecting the internal storage. What happened is that I followed the instructions, saved the zip on my external sd card and then flashed it. Did I do something wrong?
Heyy could you say what CM7 version you are using? Plus it sounds like you did everything fine.
Sent from my Optimus 2X using XDA App
Try to reflash it ....
Sent from my GT-I9000 using xda premium
mags014 said:
Hi Guys, just flashed my O2X with CM7 and it worked fine but for some reason its not detecting the internal storage. What happened is that I followed the instructions, saved the zip on my external sd card and then flashed it. Did I do something wrong?
Click to expand...
Click to collapse
Nope, you did it right.
Sounds like you haven't used CM7 before, it's easy to think the internal SD is gone, but it isn't. CM7 by default mounts the external SD-card as /sdcard, where your internal card used to be mounted.
The internal card is at /mnt/emmc.
There is an option in the settings somewhere where you can switch them around (don't have CM7 installed at the moment, but just search in the CM7 Nightlies thread and you'll find lots of info about it.)
TrymHansen said:
Nope, you did it right.
Sounds like you haven't used CM7 before, it's easy to think the internal SD is gone, but it isn't. CM7 by default mounts the external SD-card as /sdcard, where your internal card used to be mounted.
The internal card is at /mnt/emmc.
There is an option in the settings somewhere where you can switch them around (don't have CM7 installed at the moment, but just search in the CM7 Nightlies thread and you'll find lots of info about it.)
Click to expand...
Click to collapse
I think you are wrong, i am on CM7.1 and by default my internal sd card was in mnt/sdcard and external is mnt/emmc. Now I use FadeFX 1.6 update, which changes this to internal sdcard - mnt/sdcard and external sdcard to mnt/sdcardexternal_sd as it is on samsung ROMs..... (for this you need to check this feature in settings you mentioned) ....
goranbm said:
I think you are wrong, i am on CM7.1 and by default my internal sd card was in mnt/sdcard and external is mnt/emmc. Now I use FadeFX 1.6 update, which changes this to internal sdcard - mnt/sdcard and external sdcard to mnt/sdcardexternal_sd as it is on samsung ROMs..... (for this you need to check this feature in settings you mentioned) ....
Click to expand...
Click to collapse
Ok, they may have switched the defaults around since the last time I tried it. Doesn't take away from the main point of the post though. Mount points are different in CM7 from what people are used to, and confusing if you don't know about it.
But only external sd is different... internal it is the same, isn't it ???
goranbm said:
But only external sd is different... internal it is the same, isn't it ???
Click to expand...
Click to collapse
No, I was right. (Just installed the latest nightly)
External card mounted as /mnt/sdcard, also reachable from a symbolic link /sdcard.
Internal card mounted as /mnt/emmc.
default install.
Because This feature was introduced from nightly #148 or something .... And he installed CM7.1 wich is nightly #144 I am on this too, so I know how it was after installation.
goranbm said:
Because This feature was introduced from nightly #148 or something .... And he installed CM7.1 wich is nightly #144 I am on this too, so I know how it was after installation.
Click to expand...
Click to collapse
Nonsense. It's been like that since nightly #1. There were however KANGs floating around which switched mountpoints, you may have used one of those.
Thanks for the info guys...yes this is my first custom ROM and my first CM so sorry for being noob LOL
For some reason its now working. What I did was rebooted my phone, removed the external SD, and it somehow assigned sdcard for internal storage. Rebooted the phone and put back the external SD, and its now emmc...weird but it works now. I just have to move my apps all over the place
TrymHansen said:
Nonsense. It's been like that since nightly #1. There were however KANGs floating around which switched mountpoints, you may have used one of those.
Click to expand...
Click to collapse
No i was on stock... I was reading nightly thread.... This is the way that I understand :
Before nightly #149 thing was fine, but after this nightly users must check option "use internal storage" and then everything works fine...
If i got it wrong, i apologize.
goranbm said:
No i was on stock... I was reading nightly thread.... This is the way that I understand :
Before nightly #149 thing was fine, but after this nightly users must check option "use internal storage" and then everything works fine...
If i got it wrong, i apologize.
Click to expand...
Click to collapse
You're in the wrong forum, aren't you? That's why everything's confused, you're talking about CM7 on the Galaxy? This is the Optimus 2X forum.
Ohhhh my god .... can't believe how stupid this is.... I apologize for this. I am o cell phone, and did't see this.... so embaresed
Sent from my GT-I9000 using xda premium
[Q] After upgrading to CM10 "emmc" changed to "extSdCard" and related problems
Hi,
I've recently updated my GNote (GT-7000) from CM9 to CM10, and looks like with CM10 the external sd card previously mouted as "emmc" has become "extSdCard".
Since then some of the apps (such as Apollo) have trouble seeing media files, others can't see the sd card at all, and when connecting to the desktop the drive which normally shows the content of the external sd card, only shows a couple of folders of it rather than the whole content as it used to do before (when using CM9 and previous roms I had).
Looked around for possible causes, but didn't find much. Someone mentioned that rommanager might have placed ".nomedia" files on the root of the internal or external sd card causing the problem, but that's not my case. Tried also doing a full wipe and reinstall of CM10, no joy.
Any idea?
Thanks!
- Adriano
That's the standard mount points for cm10 there are apps that will remount the sd and external sd in mnt as on stock roms. I had a quick look but couldn't find them, but I'm sure someone else will be able to find them.
Sent from my GT-N7000 using xda premium
clean install without restoring data of apps
Sent from my GT-N7000 using Tapatalk 2
Thank you for the suggestions -- I tried a clean install as well, but even the builtin apps (Apollo) still had troubles accessing the external sd card (not seeing any of the mp3s I had there). I have now resolved for restoring a CM9 backup I took before upgrading to 10... and everything is working as it used to.
Not sure why I ran into these issues which no one else seems having encountered so far.
- Adriano
I have the same problem except that the files on my internal sd card are not read by apollo player And the gallery. Is there any workaround. The problem started as soon as I upgraded from cm9 to cm10
Sent from my GT-N7000 using xda app-developers app
adri72 said:
Hi,
I've recently updated my GNote (GT-7000) from CM9 to CM10, and looks like with CM10 the external sd card previously mouted as "emmc" has become "extSdCard".
Since then some of the apps (such as Apollo) have trouble seeing media files, others can't see the sd card at all, and when connecting to the desktop the drive which normally shows the content of the external sd card, only shows a couple of folders of it rather than the whole content as it used to do before (when using CM9 and previous roms I had).
Looked around for possible causes, but didn't find much. Someone mentioned that rommanager might have placed ".nomedia" files on the root of the internal or external sd card causing the problem, but that's not my case. Tried also doing a full wipe and reinstall of CM10, no joy.
Any idea?
Thanks!
- Adriano
Click to expand...
Click to collapse
Download ICS SD Binder. Check all 3 options and reboot. The path should be mnt/extSdCard (i think default is odb or so, make sure you change it) . It worked for me and so I'm trying to answer everyone with this problem. Give me feedback soon. And thanks button if I heped.
Quarmzz said:
Download ICS SD Binder. Check all 3 options and reboot. The path should be mnt/extSdCard (i think default is odb or so, make sure you change it) . It worked for me and so I'm trying to answer everyone with this problem. Give me feedback soon. And thanks button if I heped.
Click to expand...
Click to collapse
It didn't -- I don't need to have /emmc bound to /sdcard/external_sd as it was in GB. With CM9 everything for me works just fine with /emmc.
I tried the latest CM10 nightly, and using ICS SD Binder didn't change things. In the latest CM10 now there is also another mountpoint, called /storage/ and underneath sdcard0 and sdcard1 pointing to the internal and external storages respectively. In addition to /sdcard/ and extSDCard. Every few builds there seem to be some new change related to the storage's mount point. Going to wait another while before doing other attempts.
- Adriano
Any update on this question?
seems these are the new mount points even on the New JB roms from samsung
Somehow in some late November nightly, after flashing it, the files on my Internal SD were detected properly and it has all been working properly since. touchwood!
Hey guys and gals,
Recently flashed AlRoger's CM10.1 ROM, I love it. Great ROM, awesome.
However I have a problem and that is the space I have for apps. In the "Storage" section of settings; I have 3 areas. Internal Storage (around 250mb) Internal storage (around 13/14gb) and external storage around (14gb).
Problem is, the smaller internal space is what is used for apps; and as you can imagine, after installing just a few apps it was full. At the moment I have used the built in android Move to SD feature which moves some of the apps data to the other internal partition. But I want more REAL space.
I have tried using INT2EXT+ but when partitioning with MiniTool, a "Blank SD" notification comes up and I can't do nothing and am forced to reformat it. When I partition with TWRP it fails to mount the new SD-Ext it makes. So INT2EXT+ isn't working...
Is there any other way I can extend my internal storage (/data???) partition using preferably the larger internal storage?? If necessary I can use the external but of course, I would prefer to use the internal simply for ease of taking the External SD card out if I ever need to.
Sorry if this has been covered but I can't find nothing.
Thanks in advance,
Roo.
What ROM you previous have?
Something is not right with your partitions.
You should have around 1.87 for the first internal storage (system, cache, data)
And around 12.81 for internal SD
You must have come from an older cm10 in the period when there was an "old MTD" partition, pre April-2012, then without restocking you installed alroger's .
Restock to GB, then install cwm kernel, and reinstall ROM again.
Sent from my GT-P1000 using xda app-developers app
I came from MIUI v4. And no I didn't restock.
Will restock and reflash CM10.1, thanks a lot for the help mate.
Will report back if it is successful.
Roo.
Sent from my GT-P1000 using xda app-developers app
Thank you so much mate, have managed to get it to work after restocking. Now have 1.9gb for apps!
Thanks again,
Roo.
I have switched from PA 4.0 beta 4.4.2 KK to CM11 nightlies.After restoring all of my apps, I noticed I had only 800 mb internal storage left.Then I scanned my internal storage with app "Disk usage"
It showed 1.8 GB taken by "system storage".I can't check what files are included in "system storage" with that program, it also doesn't give me an option to delete the system storage.I have checked several places for duplicated files using ES file explorer, also used a few apps to look for app leftovers.But nothing, I still have 1.8 GB taken by system somehow and I have faced this issue before.
I don't have enough space in external SD card to backup my internal storage and then format it.This issue gets quite annoying as I like trying different ROMs out.
I have wiped /system, /data and /cache before flashing CM11.The only solution to this issue I have found so far is formatting /data and /data/media.
This had happened to me before but it was back when CM 10.2 nightlies were released for first time.I had switched to CM 10.2 from CM 10.1 and had a low storage notification after using CM 10.2 for like a week.
It's really random and I don't really know what's causing it, has anybody faced the same issue?
Note : I'm aware some files can get stuck in /storage/ or similiar locations when switching between ROMs.But I'm pretty sure this isn't the case as I checked every folder that has some connection to internal sd card.
I also had the problem but i solved that with internal sd format in cwm recovery
Sent from my LG OPTIMUS 4X HD using Tapatalk Pro
Check /data/data and /data/media folders on root of storage with some explorer for apps and cwm backups took once 8gb of my s4 storage.
I have used this https://play.google.com/store/apps/details?id=com.rhmsoft.fm&hl=fi