yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] KSqrd:
I'm confused. Before flashing to CM7 RC1, I used to see three drives when I plugged my phone in to my computer:

1. The 8GB external SD card (contained music files and stuff I put on the phone)

2. A 4.48 GB internal partition (contained apps I had installed)

3. A 1.48 GB internal partition (contained system files and Clockworkmod backups)

I now only see 1 and 2 - don't see number 3.

Will this zip allow me to see the internal/system partition or just simply switch the mount points for 1 and 2?

Thx

-K2
[T-Mobile LG G2x] M9x3mos:
Does not work with gigglebread
[T-Mobile LG G2x] owain94:
@OP

take a look at the fstab

maby if you edit that you can make internal mount as sdcard

adn external as _ExternalSD

EDIT:

can someone sent me the orginal LG "/system/etc/vold.fstab" and the original "/system/build.prop"

i will make is as you guys want (:
[T-Mobile LG G2x] fcisco13:
Ooops you need lg, i think i have a nandroid ill try to get them up

MEXICO U-17 WC FINALS!!
[T-Mobile LG G2x] owain94:
thansk but no i really need the origninal file that are only in the stock rom

i don't have an G2x but i know how to solve this

but still thanks!
[T-Mobile LG G2x] PrettyPistol555:
thx, that would rock, i'm set in my crackflashin ways :D
[T-Mobile LG G2x] xipher_zero:
Hmmm, well I installed Nightly 74 and the modification I provided works, but this may be due to the change I made in the build.prop (Although the phone now shows as running RC1 instead of Nightly 74)

I also corrected the init.rc to reflect the proper mounting locations, but I don't know how to create a cwm that will install to the /

Anyone have any ideas, or recommendations.

**This is ONLY when using the mod for _ExternalSD as I haven't tested the OP's mod.
[T-Mobile LG G2x] xipher_zero:
Due to a change that has been made in the Nightlies, the init.rc is being overwritten with the default mounting locations on boot. Until I can identify why this is, my mod will not work on current and future nightlies.

Xipher
[T-Mobile LG G2x] r4d14n7:
Thanks! If you'll be keeping up with the nightly builds I suggest a new thread so you can edit your own OP!
[T-Mobile LG G2x] PrettyPistol555:
I wish those links were working. :-(

G2X
[T-Mobile LG G2x] xipher_zero:
I just checked and it looks like my server has been getting more attention than usual. I have increased the max connections to 100 from the default of 30. Please let me know if you are still unable to connect.

Xipher
[T-Mobile LG G2x] bilalrashid:
one question i would like to ask .. i just got my g2x .. can i go ahead and set this up while i wait for my 32gb sd card to arrive ? can i revert back to original configuration at a later time ? is it possible to apply this patch if i dont have a sd card mounted?
[T-Mobile LG G2x] PrettyPistol555:
This is what I get.

G2X
[T-Mobile LG G2x] r4d14n7:
Try from a computer.
[T-Mobile LG G2x] phburks:
I do not feel the same. I like having all my user stuff on an external card and having /sdcard be an actual sdcard. It's probably because that's what I was used to with my Nexus One, but even still I just seems to make sense.

Maybe there could be an option when we first set up CM7 to choose the mount points.
[T-Mobile LG G2x] r4d14n7:
An option would be a sweet deal. I find the 5.6 gig or so internal memory enough for all of my user data, allowing a swappable external card for movies/music without losing any data for apps that use the sdcard. Wouldn't using apps like dropbox or kindle with an external sdcard spread data across multiple external cards? That would be confusing for me.
[T-Mobile LG G2x] McFroger3:
So I flashed OP's mod on the latest nightly and it seems to work. Only bug I find is when you go in to settings then storage, it wont display the size and amount of free space.
[T-Mobile LG G2x] McFroger3:
Just wanted to report, that although it worked, it created issues when mounting with the computer. I would have to only mount one at a time on the phone then mount to pc and could only use one at a time.
[T-Mobile LG G2x] xipher_zero:
I took the files down. With the update to nightly 76 CyanogenMod now dynamically creates the init.rc on boot overwriting my changes that made the mounting work. I am being pummeled in school right now and don't have time to dig into it until maybe this weekend. Once I get it sorted I will repost the fixed files. Until then flashing my version of the MOD will break mounting on Nightly 76+

Xipher
[T-Mobile LG G2x] :
This is my question, so on stock the main sd card was the internal does that does this or just makes the internal move from emmc?
[T-Mobile LG G2x] jkhrist:
Makes emmc into folder called __InternalSD your external will be the main card and your internal will be accessed like your ext. on 2.2.2
[T-Mobile LG G2x] :
Ahh anyway of making it as the internal is the main and external is the ext?
[T-Mobile LG G2x] jkhrist:
Ask the op he mentioned it a few posts back. The sd card issues is the main thing keeping me on 2.2.2
[T-Mobile LG G2x] :
Me 2 :/
[T-Mobile LG G2x] phburks:
An issue to some is a feature to others. I dont understand why so many people prefer their personal files to be stored on memory that's not removable.

Maybe I'm missing something.
[T-Mobile LG G2x] r4d14n7:
Most of those "personal files" can only be used on the phone. Tons of apps dump their caches and data to folders on /sdcard/* but most of them are useless on a desktop.

Just seems like using internal memory for this is easier. It allows you to swap your SD card while keeping all the data from your apps in the phone's memory.
[T-Mobile LG G2x] :
+1000
[T-Mobile LG G2x] jkhrist:
Couldn't have said it better
[T-Mobile LG G2x] phburks:
Actually my personal files I'm referring to are all of my photos, videos, music, documents, SMS backups, nandroid backups, downloaded files, etc. I would much rather have these on a memory card I remove and access from anywhere. If my phone were to crap out, then I can very easily recover my files by taking out the memory card. I could even just get a new G2X and restore a backup and I'm good to go. If all that info was stored on the internal memory, it may not be as easily accessible.

But like I said, this is a feature to me and obviously an issue to others. I think it would be cool if during the initial setup of CM7 the user was presented with the option to choose where their personal files would be stored (internally or externally) and then set the mount points appropriately. Choice is always a good thing in these scenarios because user preferences are so different.
[T-Mobile LG G2x] r4d14n7:
I agree wholeheartedly! :)
[T-Mobile LG G2x] paul.belt:
HOWTO fix the problem without flashing or using adp

1) become root

1.1) su -

2) remount your /system as read-write

2.1) mount -o remount,rw /system

3) open /system/etc/vold.fstab with my editor of choice

3.1) vi /system/etc/vold.fstab

4.1) modify the entires as needed and save / quit

4.1.1) notice there are no cursor or escape keys on this keyboard. So use pure command mode and ignore insert mode.

4.1.2) use 'h', 'j', 'k', 'l' to move the cursor around to the lines necessary

4.2) j, j, j, j... until you get to the first mount-line

4.2.1) :s/sdcard/emmc/

4.2.2) :s/sdcard/emmc/

4.2.3) j

4.2.4) :s/emmc/sdcard/

4.2.5) :s/emmc/sdcard/

4.2.6) :x

5) remount /system as read-only

5.1) mount -o remount,ro /system

6) reboot

NOTE: 4.2.1 / 4.2.2 and 4.2.4 / 4.2.5 might need to be swapped to achieve the desired results.
[T-Mobile LG G2x] r4d14n7:
Is it not rewritten upon boot? I thought that was the current problem?
[T-Mobile LG G2x] death1246:
Updated to the latest Nightly seeing as all kernel problems are fixed.

As for viewing space left on internal/external its broken and looking into it.
[T-Mobile LG G2x] :
So now we can make the main sd card be internal by flashing the external one?
[T-Mobile LG G2x] zimphishmonger:
Fantastic! Great job getting this working. Hopefully the reverse can now be done to LG's stock builds (2.2.2 and 2.3.4 when they release), as I personally prefer having the external SD card as the "main" and the internal sd card as "emmc" or a secondary sd card mounted via folder "_InternalSD". Thanks again!!
[T-Mobile LG G2x] :
Bump so it can b in the last page
[T-Mobile LG G2x] phburks:
Nice to hear I'm not the only who feels this way about having the external card as my main sdcard. It makes more sense to me to have it that way.
[T-Mobile LG G2x] phburks:
Oh and you dont have to create the _InternalSD folder prior to flashing this. It gets creates automatically if its not there.
[T-Mobile LG G2x] death1246:
So you want your physical SD Card to be the main one and the Internal to be the Secondary? Choose the Internal Secondary version and you will be fine ;).

Also its best if you are on the latest Nightly build because if fixes the mounting issues we had previously.

Wondering if this works on more than just me and you lol.

We will see.

Also I made it quite clear.

Internal Secondary <-- Internal is secondary to External

External Secondary <--- Stock Style
[T-Mobile LG G2x] :
Ok so if i want it like 2.2 style where my internal is the main one and the ext sd is the secondary i would flash the external or the internal?
[T-Mobile LG G2x] phburks:
Flash External
[T-Mobile LG G2x] chuckhriczko:
Irony at its finest. Loved your patch OP I was thinking and i realized id be better suited to reverse the internal and external mount.points. upon creating the fstab I came here to borrow your build.prop when lo.and behold, you did it already ha ha good job op. Thanks!
[T-Mobile LG G2x] zimphishmonger:
It makes WAY more sense, as its usually bigger so its good for flashable zips, nandroids, etc. Im glad CM7 fixes this issue, but i would love to be able to swap the internal and external on LG's 2.3.4 build when its released (and 2.2.2 builds for the time being)
[T-Mobile LG G2x] r4d14n7:
Nice! Finally working without a hitch? I'm one step closer to flashing CM7. Trying to hold out for official GB kernel and drivers here.

And thanks for supporting both variants!
[T-Mobile LG G2x] cpom1:
Sorry for being a noob...but I flashed the external version and it looks like it made the _externalSD folder you explained in the directions automatically (which was said in the forum it would do now)...so my question is that there is still a externalSD folder and a SD Card folder in root explorer that also has the "_externalSD" folder that takes me to my physical SD card so is my setup normal or is something wrong as to why there are two external SD folders within root explorer?
[T-Mobile LG G2x] 740man:
would this work with nexus aosp rom for g2x or only cm7 rom
[T-Mobile LG G2x] :
Working for me on aosp :)
[T-Mobile LG G2x] death1246:
You can now view the partition sizes in the settings menu of CM7 nightly builds
[T-Mobile LG G2x] :
Quick question can this work with miui since its based on cm7
[T-Mobile LG G2x] arctic84:
MIUI?

This works great for CM7, thanks again for doing an awesome job. However, I've been testing MIUI and i've really come to like the interface. I was curious as to whether maybe something like this could be done for MIUI? I actually flashed patch (84) and it mounts the internal memory; however, when i try to mount the SD card while plugged in via USB so i can access the internal/sd memory via computer, the phone just freezes.
[T-Mobile LG G2x] phburks:
Its normal. They are both pointing you to the the same directory. Just think of it as having multiple "shortcuts" to the same location.

G2X CM7
[T-Mobile LG G2x] death1246:
Works on MIUI Alpha 2 Ill post when the next nightly gets released.

Also must be using Cyanogen kernel for best results!
[T-Mobile LG G2x] arctic84:
<3 DEATH :D

sorry dumb question but:

Cyanogen mod kernel meaning i would have to get the cm7 kernel or could i use faux's?
[T-Mobile LG G2x] lazer174300:
I'm currently running EaglesBlood Mod

http://xdaforums.com/showthread.php?t=1124522

Its based on CM7, so could this work with it or do I HAVE to flash your rom?

I've tried just testing myself, but it seems i'm doing something wrong. I go into ClockworkMod and mount system, then using Droid Explorer, I try and create __InternalSD in the :EMMC/SDcard folder, and I can't create new folders there.

Edit: Im an idiot. For some reason I thought this was going to replace my current rom. And for others running EaglesBlood, this works perfectly. Thank you so much OP
[T-Mobile LG G2x] reisaru:
The Nightly87 version seems to work flawlessly (so far, anyway) with the nightly93 released a few minutes ago.

Why does the zipfile need to be updated for every nightly?
[T-Mobile LG G2x] reisaru:
I think that flashing the build 87 version of this is causing my phone to report an incorrect build date and android version on 93. will it be updated soon?
[T-Mobile LG G2x] death1246:
Updated!

Added the latest Nightly Build along site the latest Official MIUI Alpha 2 release.

Enjoy!

REMEMBER THIS WORKS BEST ON THE LATEST NIGHTLY KERNEL! I Suggest you use that instead of any other kernels.
[T-Mobile LG G2x] gaww:
I had good results with this mod earlier, but so far the build 93 version is not working with 94. It could be because of the kernel. Earlier I had used faux (replacement device has issues with his UV), but now tried it with morfic's.

Will try faux's SV kernel and see if that (apples-to-apples) makes a difference.
[T-Mobile LG G2x] Beggars1923:
Total noob here, can someone explain what this does in layman's terms before I go and flash it?
[T-Mobile LG G2x] phburks:
It changes which sdcard (internal or external) your phone uses as the primary sdcard. The other/secondary a sdcard will then show up as folder within the sdcard folder.

G2X CM7
[T-Mobile LG G2x] death1246:
Not sure exactly what you are trying to do but make sure you get the right nightly version because the build.prop for those nightly's need to be exact.

Will be updating to the latest build soon.
[T-Mobile LG G2x] reisaru:
Woke up this morning and was disappointed it still hadn't been updated for 94, much less 96.

Can you post the major areas that need to be changed to update for nightlies? It seems kind of silly that you to have to update it yourself every single time, especially when some of us like to keep up with every nightly.

Is it JUST the build.prop file?
[T-Mobile LG G2x] smoothmoose:
Ditto. Looking for update to support nightly build 96. 96 has a new kernel for P999. Thanks.
[T-Mobile LG G2x] death1246:
Just update the sdcard line in the latest build.prop befor you flash it. Im posting later today and I only update to nightly's that update things on our device not all nightly builds have to do with our device on kernel updates and small fixes.

Check the status page to see whats new. If nothing has P999 then I wont update for that nightly.
[T-Mobile LG G2x] KiNG OMaR:
I've been wondering, could you change the mount points of the official gingerbread OTA to make the external SD the primary and mount the internal sd to _InternalSD?

That's my only grief with the stock ROM :mad:
[T-Mobile LG G2x] reisaru:
Just tried this--several methods of it, in fact. Any changes whatsoever I do to the cm7_p999_full-97.zip file causes CWM to go through "Installing Update... Installation aborted". I canNOT seem to make it flash the damned thing.

So I just updated the external_secondary_nightly_93.zip file with the build.prop from cm7_p999_full-97.zip, edited ro.additionalmounts, and it flashed fine.

If anyone else is interested in it, I'll include it in this post. It's the CM7 version for Nightly 97, External Secondary--emmc at /mnt/sdcard, SD card at /mnt/sdcard/_ExternalSD.
[T-Mobile LG G2x] darknessxyz:
Latest CM7 nighty is #99 now. Is that means I can't use any of your .zip too fix this?
[T-Mobile LG G2x] reisaru:
I just updated the file for Nightly 99, so if your usage is the same as mine (defined in the quote), you can flash this one.
[T-Mobile LG G2x] reisaru:
Here's 104: eMMC at /mnt/sdcard, SD card at /mount/sdcard/_ExternalSD. CM7 version.
[T-Mobile LG G2x] zimphishmonger:
I thought there needed to be kernel mods as well to get this working. Or was that just with trying to swap them mounts in the LG builds?
[T-Mobile LG G2x] reisaru:
Hmm, I wasn't aware that paths for anything except modules were contained in the kernel.

In any case, no, not for this. The zipfile definitely works; I use it regularly.
[T-Mobile LG G2x] darknessxyz:
Work exactly as described. It's best for people who don't have external SD or just want use every storage space.
[T-Mobile LG G2x] thanasisc4:
@reisaru -

Hey man thanks for all the frequent updates! :D

I have a potentially annoying request though. Just so we don't have to bug you to update the zip every time a nightly comes out, mind posting a tutorial on how to update it ourselves???

Thanks man ;)
[T-Mobile LG G2x] zimphishmonger:
Thats graet news. I wonder if we can get this working on the 2.3.3 update, as I hate having Internal as the "main" sd card. Too many apps\games require data to be copied the "main" sd card that 5GBs goes quick (especially w/ Gameloft games). If this only requires minor modifications, please share and Ill try and get it working w/ the LG 2.3.3 update. Thanks man!

EDIT: Gave the mod a shot on 2.3.3 w/o luck. Having some issue detecting the internal Sd card. Attached my vold file for review
[T-Mobile LG G2x] Whitehawkx:
When I put Weapon together at first I made external main and internal secondary. The external worked fine but the internal would never get detected.
[T-Mobile LG G2x] reisaru:
Well, I intend to update it for my own purposes for nightlies with G2x-affecting changes so it's no bother there. But no reason I can't provide you the information as well. I figured it out from the OP's statement "just update the build.prop":

1) Download the nightly you want to flash and open it

2) extract the build.prop from the system directory to your desktop or wherever, and edit*

3) change the "ro.additionalmounts" line from /mnt/emmc to /mnt/sdcard/_ExternalSD (this is for internal memory at /sdcard, SD card at _ExternalSD) and save

4) open the external_secondary_nightly_104.zip file you downloaded here, and overwrite the build.prop file in the system directory with the one you just modified

That's it. Copy the nightly and mount change zipfiles to your device, and flash in that order.

*Windows notepad.exe is fine, just make sure when making the change that you don't delete the carriage returns or linefeeds that are in the file, which notepad.exe can't display. If you move your cursor to the end of /mnt/emmc, you'll see that if you press your right arrow key, the cursor will appear to stay in place--that's the invisible CR/LF. Might be easiest just to put your cursor after the second slash, and press delete no more than four times (e-m-m-c) before typing in sdcard/_ExternalSD
[T-Mobile LG G2x] zimphishmonger:
That's exactly what I encountered, Also I couldn't actually mount the internal SD to a PC, it tried but failed to mount each time.
[T-Mobile LG G2x] reisaru:
Hmm. I think you can take the External Primary file from the OP here, and modify its files to be usable with the LG 2.3.3 update.

I would recommend pulling the /system/build.prop file from your running ROM, and change its ro.additionalmounts line, and write it over the one in the system directory of the External Primary flashable zip. Reboot into CWM, and then flash the zip.

You may want to look at the vold.fstab file in the LG ROM and make sure it only has the two lines that the flashable zip's file has, and that they're formatted similarly.

I should probably do that, but I'm trying to fix my PC and I have to get ready to host a party in a few hours as well. I might be able to look into it later this weekend. Lemme know if you're unable to get it to work.
[T-Mobile LG G2x] zimphishmonger:
Thanks for the info. Ill give it a try when I get home and can really mess w/ it. If you get a chance though, please do take a look. Ive been playing w/ this for a while and have yet to get it working on the LG builds
[T-Mobile LG G2x] reisaru:
Eek! I meant External Primary flashable zip! I'll correct my initial post to avoid confusion.
[T-Mobile LG G2x] thanasisc4:
Reisaru thanks alot man, sounds straight forward enough, appreciate the info! :)
[T-Mobile LG G2x] Isis111:
Partitions

First I apologize if the info I'm about to ask for is posted somewhere on XDA or other sites, however I have just spent the last 3 hours with google looking for the appropriate info. I have two phones, one the TMO G2X and the second an HTC Sensation. I have two lexar 32gb class 10 SD cards. I have been searching for a consensus on how folks have their partitions laid out that gives them the best speed and stabiltiy. At the moment I have the G2x set up with an eemc partition that CWM put in place when the last G2X I had was running Cy 7.1 RC1. It ran but it had a lot of FC's.

From what I've been reading all day some, NOT all those issues could be related to the way I have it partitioned. Could one of the OP's or other senior members help me out here and give me an idea of the best possible format I can put on this SD card to optimize it??? Again I apologize is someone knows where the info is, but I couldn't find it. I guess I'm still a NOOB

Thanks in advance:confused:

Krissy
[T-Mobile LG G2x] phburks:
Honestly you shouldn't need to partition anything. The emmc you're referring to is simply CM7's default mount point for the phone's internal "sdcard", so to speak. Its the directory where CM7 gives you access to your internal "sdcard".

My setup is CM7 (recent nightly release), with my external sdcard mounted at /mnt/sdcard and then my internal "sdcard" mounted at /mnt/sdcard/_InternalSD. I don't have my sdcards partitioned at all. Everything is buttery smooth lol.

Which rom are you running and what issues are you noticing?

G2X CM7