Invert SD card mounting on CM10 ParanoidAndroid - LG Optimus 2x

As title, I can't use internal storage as SDcard and External SD as /emmc... I tried with the zip of CM 9.1 but didn't work! If someone could help me...

Gjot said:
As title, I can't use internal storage as SDcard and External SD as /emmc... I tried with the zip of CM 9.1 but didn't work! If someone could help me...
Click to expand...
Click to collapse
See my post here:
http://forum.xda-developers.com/showthread.php?p=31284282
Sent from my LG-SU660 using xda premium

Can any one just give the lines i need to replacr. I had them in my bloc note bit forgot to save it. (Toke the one from cm7) but out my head i dont know what i must change

hello?*
i just want the lines that i need to change in vold.stfb
i find it easier, than .zip, dont want ot brick my sd etc...
---------- Post added at 09:47 PM ---------- Previous post was at 09:43 PM ----------
dont want too make a new thread.... f*** nvm will try your .zip see nobody anwsers
**** i think i got boot loop XD
lol that where i wa scared off, i looked at you file and my stock mount #aragorn7
isnt the same as my cm10.1 old bootloader stock mount
but i think i know what i need to change now
like always cant enter recovery ****y phone........

aragorn7 said:
See my post here:
http://forum.xda-developers.com/showthread.php?p=31284282
Sent from my LG-SU660 using xda premium
Click to expand...
Click to collapse
this is yours
dev_mount sdcard /storage/sdcard1 auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard0 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
na mine on cm10.1 loooks liks this
dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage/sdcard 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
dont have mmc2 but mmc0
and it's not sd card0 9 but just 9
and the sdhci is first then tegra and you its tegra first
but will try have noting to loose
"just changed sdcard1 auto to sdcard0"
"and sdcard 9 to sdcard1 9"
get boot loop,
plz any one help for cm10.1 i will make new thread no on come here

Related

[MOD] Mount SD card as a folder of internal memory for CM7

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.

[MOD]Switch internal/external storage location via CWM

UPDATE (11/2/12):
To avoid confusion, the text was edited. See the relevant sections below.
-------------------
Hi folks,
A few of you asked me about this, so here you go. The following are CWM installable switcher for internal / external storage mounting location for SU660.
(Credits to wkpark for teaching me about this out and tonyp for the template cwm installer)
SU660 CM7/CM9 Default Mounting:
Internal storage @ /mnt/emmc
External storage @ /mnt/sdcard
Download here: http://www.mediafire.com/?afvechvvaawvwlt
SU660 CM7/CM9 Switched Mounting:
Internal storage @ /mnt/sdcard
External storage @ /mnt/emmc
Download here: http://www.mediafire.com/?zj6cca93ls9dfpu
UPDATE (11/2/12):
To avoid confusion, the text in the following section was edited.
The following patches only works with the UNOFFICIAL CM10 builds. If you are on the official CM10 nightlies, do not use the patches here.
SU660 UNOFFICIAL CM10 (JB) Default Mounting
Internal storage @ /storage/sdcard1 aka "/mnt/emmc"
External storage @ /storage/sdcard0 aka "/mnt/sdcard"
Download here: http://www.mediafire.com/?9grt94ybvv95589
SU660 UNOFFICIAL CM10 (JB) Switched Mounting
Internal storage @ /storage/sdcard0 aka "/mnt/sdcard"
External storage @ /storage/sdcard1 aka "/mnt/emmc"
Download here: http://www.mediafire.com/?84o9q0ol6du9lm0
Feel free to comment and provide feedback. Your "thanks" and/or donations are never required, but are always much appreciated.
Good work @aragorn
good job.
UPDATE (11/2/12):
To avoid confusion, the text in post #1 was edited. Patches here only works with the UNOFFICIAL CM10 builds. If you are on the official CM10 nightlies, do not use the patches here.
sorry for offtopic.
can you make one for cm10 for p990 ?
Hey, can you mount:
Internal storage @ /mnt/sdcard/_ExternalSD aka "/mnt/sdcard"
External storage @ /mnt/sdcard aka "/mnt/emmc"?
Thank you so much
RohanAJoshi said:
sorry for offtopic.
can you make one for cm10 for p990 ?
Click to expand...
Click to collapse
If you mean you'd like one for the unofficial cm10 and not the official nightlies, then P990 version is already made here:
http://forum.xda-developers.com/showthread.php?p=31284282
Sent from my LG-SU660 using xda premium
KingMGT said:
Hey, can you mount:
Internal storage @ /mnt/sdcard/_ExternalSD aka "/mnt/sdcard"
External storage @ /mnt/sdcard aka "/mnt/emmc"?
Thank you so much
Click to expand...
Click to collapse
Duplicate post. See answer here:
http://forum.xda-developers.com/showthread.php?p=33660398
Sent from my LG-SU660 using xda premium
aragorn7 said:
UPDATE (11/2/12):
To avoid confusion, the text in post #1 was edited. Patches here only works with the UNOFFICIAL CM10 builds. If you are on the official CM10 nightlies, do not use the patches here.
Click to expand...
Click to collapse
Hi, I installed CM10 nightly for SU660.
But the phone does not detect 16GB memory, detects 1.4 gb.
My su660 have 16gb memory, how can I solve this problem?, which should I use?
Help me please!
CriDDJ said:
Hi, I installed CM10 nightly for SU660.
But the phone does not detect 16GB memory, detects 1.4 gb.
My su660 have 16gb memory, how can I solve this problem?, which should I use?
Help me please!
Click to expand...
Click to collapse
Looks like you have a duplicate post. Answered your earlier post somewhere else in these forums.
Also, try looking at http://forum.xda-developers.com/showthread.php?t=1971350
hi aragorn7! I managed to flash CM10 (4.2.1) nightly successfully. but problem is, internal storage is nowhere to be found in rom. I can mount it though on CWM, but that is all there is. External storage can be seen in file manager, but some apps cannot access it like jb camera, camera zoom. I'm going nuts here!
if you can give me a heads up on this matter would be highly appreciated. thanks!
djtreo said:
hi aragorn7! I managed to flash CM10 (4.2.1) nightly successfully. but problem is, internal storage is nowhere to be found in rom. I can mount it though on CWM, but that is all there is. External storage can be seen in file manager, but some apps cannot access it like jb camera, camera zoom. I'm going nuts here!
if you can give me a heads up on this matter would be highly appreciated. thanks!
Click to expand...
Click to collapse
4.2.1 is actually CM10.1 and not CM10, for which the zips in this thread are not suitable.
Try to see if you have both /storage/sdcard0 and /storage/sdcard1. Depending on how it is mounted, one of them should be the internal and the other external.
Also, see what your /system/etc/vold.fstab says currently.
wow that was a fast response from you aragorn7!
ok, in root explorer, i only found /storage/sdcard1 and it's the external. can't find any sdcard0 or some sort..
in my /system/etc/vold.fstab says:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage_sdcard 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
any idea?
djtreo said:
wow that was a fast response from you aragorn7!
ok, in root explorer, i only found /storage/sdcard1 and it's the external. can't find any sdcard0 or some sort..
in my /system/etc/vold.fstab says:
dev_mount sdcard /storage/sdcard1 auto /devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount emmc /storage_sdcard 9 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
any idea?
Click to expand...
Click to collapse
Try changing the 9 on the second line to 10.
I'm assuming you are on the old bootloader btw.
aragorn7 said:
Try changing the 9 on the second line to 10.
I'm assuming you are on the old bootloader btw.
Click to expand...
Click to collapse
fingers crossed xD . rebooting device now...
*edit*
device rebooted. still can't find internal storage. as of root explorer, I can find three entries under /storage, /sdcard & /sdcard1
now where to go from here? so thankful you're there aragorn7!
Good job brother
Sent from my GT-S5570 using xda app-developers app
djtreo said:
fingers crossed xD . rebooting device now...
*edit*
device rebooted. still can't find internal storage. as of root explorer, I can find three entries under /storage, /sdcard & /sdcard1
now where to go from here? so thankful you're there aragorn7!
Click to expand...
Click to collapse
What's under /storage/sdcard?
aragorn7 said:
What's under /storage/sdcard?
Click to expand...
Click to collapse
both /sdcard & /sdcard0 are empty folders...
djtreo said:
both /sdcard & /sdcard0 are empty folders...
Click to expand...
Click to collapse
Seems like there is some incompatibility with vold.fstab and cm10.1. Although I can't guarantee a solution, I'll try to look into it when I get back to my computer.
aragorn7 said:
Seems like there is some incompatibility with vold.fstab and cm10.1. Although I can't guarantee a solution, I'll try to look into it when I get back to my computer.
Click to expand...
Click to collapse
oh I see. Ok, I'll be expecting your response. Thanks a lot aragorn7!

[Q] Edit lines in vold.fstab to swap internal storage for external (help)

Hi guys
i need modify lines in vold.fstab for swap memory.I have a sd 64gb with data´s app, in a 11 gb not fit
can someone help me
this lines are
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
secure_format = enable
discard = enable
}
dev_mount sdcard /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
dev_mount sdcard1 /storage/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
Click to expand...
Click to collapse
Thanks you and sorry for may english
phoenix3000 said:
Hi guys
i need modify lines in vold.fstab for swap memory.I have a sd 64gb with data´s app, in a 11 gb not fit
can someone help me
this lines are
Thanks you and sorry for may english
Click to expand...
Click to collapse
Did u go thru this ?
shyamub4u said:
Did u go thru this ?
Click to expand...
Click to collapse
Ufff is too difficult for me
phoenix3000 said:
Ufff is too difficult for me
Click to expand...
Click to collapse
I wud suggest going thru as many threads as possible before doing this..I heard frm one of the XDA member that doing this *may* softbrick ur phone..not sure though, since I have not tried it myself..
shyamub4u said:
I wud suggest going thru as many threads as possible before doing this..I heard frm one of the XDA member that doing this *may* softbrick ur phone..not sure though, since I have not tried it myself..
Click to expand...
Click to collapse
Yes.
I try modifi this and i have a softbrick.
For repair this, i need flash a stock samsung rom with pit and repartition on.
But i suspect, the problem are in my metod
I dont know anything about scripting, programing and linux commands.

SDCard Mounttweak CM 10.1

Hi there,
I am using CM 10.1 for almost five hours and I am very happy with it.
But I am missing a tweak which put the external sdcard as main. Is there any way to make this possible.
I tried the mounttweak from imperticus but this did not work because it was for cm10?
Edit /system/etc/vold.fstab with a root text editor and remounted system partition. Switch sdcard with sdcard1 and vice versa.
Sent from my LG-P990 using xda app-developers app
I tried you method but all I get is a bootloop.
Ok...so after searching more than 10 threads completely I found a flashable zip which can mount the external sdcard as internal for cm10.1.
But then the internal storage about 4,63 GB is gone. All I get is a message on the statusbar that the internal sdcard is broken and can not be mount.
At least it works so if anyone wants to have more internal free space...here you go:
Working Mounttweak
EDIT: Works fine with temasek cm 10.1

[FIX SD CARD] KINGCOBRA XLSense 4.1 BUILD 9

open /etc/vold.fstab and edit:
dev_mount sdcard /mnt/sdcard 34 /devices/platform/msm_sdcc.2/mmc_host/mmc0
and now it works...
robse.android
robse.android said:
open /etc/vold.fstab and edit:
dev_mount sdcard /mnt/sdcard 34 /devices/platform/msm_sdcc.2/mmc_host/mmc0
and now it works...
robse.android
Click to expand...
Click to collapse
Okay, That is dangerous, Anders way is 10x safer!!!
I do not recommend this guide!
mounting SDCard over USB issue!
Any fix for mounting SDCard over USB issue other than mounting it from recovery?
Hasan.Z said:
Any fix for mounting SDCard over USB issue other than mounting it from recovery?
Click to expand...
Click to collapse
Download multi Mount ad fard enable it then get the widget on home screen press the SD card button and should pop up on computer
Sent from my Sensation XL using Tapatalk
Solved
JustPlayingHard said:
Download multi Mount ad fard enable it then get the widget on home screen press the SD card button and should pop up on computer.
Click to expand...
Click to collapse
Thanks mate, Multi Mount solves the problem. :good:
thanks mate .. it works !!!!
i have the same rom .. but there's the front camera issue .. do you have any fix for it???
anyone have some new about S.A.M.E.R.D ? does he need some betatesters for V10 ?
I think he has dumped us. Screw him. He promised us
Sent from my C6903 using Tapatalk
very buggy
i have installed but tired of counting bugs.
first and important is camera issue.
sd card issue is also there but i wl try this one.

Categories

Resources