yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] nomedor:
I'll repeat this on more time to make it clear.

The best way to mount external SD in /mnt/sdcard/_ExternalSD path should be, like in stock ROM, through vold.fstab file but it doesn't work in CM.

Maybe a CM developer like arcee could solve this.
[LG Optimus 2x] Benee:
No cm dev is needed for this ;) we need a new ramdisk. Wait a bit and I will build one.

Edit: Test 5. New ramdisk instead of a script. Should work now ;)

Edit 2: argh forget somethings.. just wait a bit more :D

Edit 3: Test 6. New vold.fstab. Didn't swapped it (linked the internal SD to my External SD :D.. if you want this behaviour you should read something about symbolic links.)
[LG Optimus 2x] salvatore94:
Got a little problem wityour kernel: when I rebboted the phone it says me that the sd card is damaged adn I need to erase it.
[LG Optimus 2x] Benee:
Hrm crap... just restore the nand backup ...crappy mounting stuff

Edit: The sdcard isn't damaged. Only some vold.fstab screwup. A restore will fixit...
[LG Optimus 2x] katun79:
Do you tried the new ram disk image?
[LG Optimus 2x] Benee:
yeah but without new vold.fstab. Linked my Internal SD to my External. So with a swap it should work the other way around (in theory)... but yeah : / crappy
[LG Optimus 2x] katun79:
I have done a script with SL4A

I can mount all what I need now at first boot with one click on the shortcut link on my desktop.

This is the code:

mount -o bind /mnt/emmc /mnt/sdcard/_ExternalSD
mount -o bind /mnt/emmc/DCIM /mnt/sdcard/DCIM
mount -o bind /mnt/emmc/alarms /mnt/sdcard/alarms
mount -o bind /mnt/emmc/notifications /mnt/sdcard/notifications
mount -o bind /mnt/emmc/ringtones /mnt/sdcard/ringtones
mount -o bind /mnt/emmc/SMSBackupRestore /mnt/sdcard/SMSBackupRestore

You can add other mount -o bind options if you want, It's simple :)
[LG Optimus 2x] Benee:
yeah.. Tasker + execute plugin, could execute it automatical on booting up... But yeah :D I will remove the internal flag. I can't get it working fine :/
[LG Optimus 2x] Stikkontakt:
SOLUTION:

1: Create a folder in your internal SD Card (in my case "ExternalSD")

2: Edit vold.fstab:

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

# 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 :)
[LG Optimus 2x] Stikkontakt:
I will try to create a modified Dropbox apk to use with this mounting tomorrow if anybody interested..
[LG Optimus 2x] dawabz94:
hi, looks interesting, just wondering, are both storage shown on desktop when activating USB storage with this mod?

thanks!
[LG Optimus 2x] Imperticus:
seems to work, but the problem is why i connect it to the computer, only the externalsd shows up and not the internalsd :confused:
[LG Optimus 2x] Benee:
Because you only swapped the mounting point internally. The sdcard card is at the same place.
[LG Optimus 2x] Stikkontakt:
I can access both cards via usb when mounted like this..
[LG Optimus 2x] ranrick:
So is this working properly and able to mount both SD when connecting with PC?
[LG Optimus 2x] Stikkontakt:
If you actually read my two posts I really think you would have your answer...
[LG Optimus 2x] ranrick:
yeah but imperticus and beene wrote that it might have problems, that's why i asked. i gonne try it.

EDIT: works perfectly.
[LG Optimus 2x] zurgol:
External sdcard is not accessible using this method on CM7 RC1. Internal sdcard is mounted in /sdcard and /sdcard/ExternalSD is empty. Usb mounting mounts the internal sdcard only.

However if i remove the back cover and remove and reinsert the external sd the sd shows up in /sdcard/ExternalSD. But now the usb storage is completely broken, no sdcards at all shows up on my computer.

Edit: Redid everything from scratch, everything is working now. I must have typed something wrong.
[LG Optimus 2x] Stikkontakt:
To you who only get access to external sd card over usb, try formatting internal sd card and recreate the ExternalSD folder, then it may work.

Unmount external sd card, unmount internal sd card, format internal card, mount internal card, create folder, mount external sd card
[LG Optimus 2x] steindani:
CM RC1

CM RC1 now mounts for the PC, when it's connected. -- If I'm right, could you please confirm it?

I tried to edit the files as said in #54 ( http://xdaforums.com/showthread.php?p=15139577#post14995936 ), but it's not working for me.

After reboot nothing is mounted. I've copied the files, edited, then pushed back to the device. Did I miss/fail something?

What is the proper way of editing these files? (Sorry, for being noob, perhaps others have these questions here too.)
[LG Optimus 2x] Stikkontakt:
did you push in recovery or with device started up?

I managed somehow to completely brick my device when I pushed vold.fstab with os started up. and I got a whole lot of weird results

I don't see what's unclear about the editing. Just open the files in a text editor, locate the lines looking like those I posted, and replace with that text..
[LG Optimus 2x] djmcnz:
Just checking, you're not editing it with Windows Notepad are you? That's not 'nix friendly. Also make sure syntax is perfect and make permissions 0777 to be sure.
[LG Optimus 2x] Stikkontakt:
I use Notepad ++

http://notepad-plus-plus.org/
[LG Optimus 2x] parthabhatta:
I did the operation by Root Explorer and duly changed permission for both the files. Rebooted and sadly no cards were mounted. Can anybody whose sdcard mount is working this way, upload the two files?
[LG Optimus 2x] djmcnz:
Two files? :confused:

vold.fstab

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

dev_mount sdcard /mnt/emmc auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1
dev_mount emmc /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2

Optional mount script:

#!/system/xbin/bash
#
# Create mounts
#

mount /mnt/sdcard/ /mnt/emmc/Internal/
mount /mnt/sdcard/DCIM/Camera/ /mnt/emmc/Photos/

After I run the mount script (after boot) I can then set ESExploer to use /mnt/emmc as the home directory and then internal SD is just on the "Internal" directory (as well as /sdcard).
[LG Optimus 2x] katun79:
With initial zip, and my script I can mount all in stock LG's way ;-)

This is my old message:

I have done a script with SL4A

I can mount all what I need now at first boot with one click on the shortcut link on my desktop.

This is the code:

mount -o bind /mnt/emmc /mnt/sdcard/_ExternalSD

mount -o bind /mnt/emmc/DCIM /mnt/sdcard/DCIM

mount -o bind /mnt/emmc/alarms /mnt/sdcard/alarms

mount -o bind /mnt/emmc/notifications /mnt/sdcard/notifications

mount -o bind /mnt/emmc/ringtones /mnt/sdcard/ringtones

mount -o bind /mnt/emmc/SMSBackupRestore /mnt/sdcard/SMSBackupRestore

You can add other mount -o bind options if you want, It's simple ￼

Sent by my LG Optimus 2x using Tapatalk
[LG Optimus 2x] wisefreakz:
Can someone point the advantage of doing this?

Thanks
[LG Optimus 2x] djmcnz:
It simply allows you to:

* Maximise the use of the internal storage

* Keep Android crap off your SD card

* Allow for portable/removeable media/backups

It reverts to a variant of stock ROM behavior. If internal memory is at /sdcard (stock/this mod) then Android dumps all of its junk there by default, including config files, messy directories etc.

Most apps will look here by default for *your* stuff at the moment but updated apps will also scan /mnt/emmc (your *actual* SD card). So for Music, TiBackup etc, etc, you can still store them on your external card. This is good because it's portable and replaceable.

So, with the scripts I posted above mine looks like this:

Root (which is my actual SDCard - /mnt/emmc with this mod)

\-ClockworkMod <- using the "External" CWM

\-Internal <- which links to /sdcard (which is internal storage) - so all my internal content is also available

\-Music <- which is auto detected by most music apps

\-Photos <- which links to /sdcard/DCIM/Camera - for easy access to photos

\-TiBackup <- configured as /mnt/emmc/TiBackup in the app

And I don't get any other dir's created there by Android (e.g. .androidsecure, android, data, etc, etc) so my actual SD card stays clean and has very little "rom" info on it - this way I can swap out SD cards without any user impact.

There's a reverse paradigm also. I prefer to access External then Internal (i.e. Root (actual SD) -> Internal) however you can do the opposite (example few posts above) and use (Root (internal) -> _ExternalSD). I use it my way because I just don't care what Android creates on /sdcard - I want access to my files first (real sdcard) then access to internal crap if I need to find something.

The default CM method is just madness, I understand it's for "portability and compatibility" but it's functionally regressive and a real PITA.
[LG Optimus 2x] Stikkontakt:
For my method to work, I had to edit the extra storage card location in build.prop to the same path as the mounted external card ;)
[LG Optimus 2x] djmcnz:
Ahh, right-o, got it, assumed OP method.

Well build.prop can't really be stuffed up and N++ is fine.
[LG Optimus 2x] Imperticus:
Works perfectly, thank you :D
[LG Optimus 2x] tuscon0069:
@Stikkontakt

Works perfectly for me, too! Thanx!
[LG Optimus 2x] wisefreakz:
Thanks for the clarification.
[LG Optimus 2x] parthabhatta:
I am running CM-67 with BB 614 and default CM kernel. I wish to use stikkontact's method i.e., get my External SD inside the Internal Sd as in default ROM. The earlier occassion I failed. This time I have edited both the files with Notepad++ and uploading the same. Can anybody check these two files and confirm that whatever I have edited will successfully work in my device and show my external SD within the internal (in ExternalSD folder) as in default ROM?

1) BTW I have created a new folder "ExternalSD" in my internal memory and

2) I will push the vold.fstab with "rw-r--r--" permission inside my /system/etc folder and

3) I will push my build.prop with "rw-r--r--" permission in my /system folder.

4) I will use Root Explorer for the pushing of files.

Are these steps ok?
[LG Optimus 2x] tuscon0069:
As I stated above, I used Stikkontakt´s solution and it works great!

But when I tried to flash last nights CM Nightly, CWM Recovery says: Can't mount SDcard.

I use a CM Nightly since last weekend, standard kernel, most recent CWM Recovery.

Does anyone have an idea why this problem occurs? And even better, how to solve it?
[LG Optimus 2x] parthabhatta:
It happened with e also. Put the phone off. Take out and reinsert card, restart and CWM should mount your card.

BTW since you were able to make this mod work-will you please tell - whether you placed stikkontact's code after deleting the original lines from the files or put the command lines as additional alongwith the existing lines in the files.
[LG Optimus 2x] parthabhatta:
I would love to have the apk for this mod.
[LG Optimus 2x] tuscon0069:
Glad to share!

I switched the code in vold.fstab and build.prop to stikkontakts lines, replacing the original lines.

Thanks for your suggestion, i just tried again though without taking out the sdcard. But turning off the phone and directly booting into recovery seems to do the trick.

Even though.... since stikkontakts mod changed internal (now sdcard) and external (now folder in sdcard), my app data and cwm data is on my internal sd. When i directly boot into recovery the external card is mounted. I guess to get what i want i will need rustys cwm recovery mod so that internal and external sd is mounted the same way in rom and recovery!?!

I'm no dev so i'm not entirely sure if i'm right.

Would be glad to read other opinions on that matter ...

EDIT:

Installed Rusty's CWM Recovery with internal sd, now everything seems to work fine.
[LG Optimus 2x] parthabhatta:
Oh man the MOD is working !!! Don't understand though why this modification is not supported by CM7 and other CM7 kangs. I think everytime I flash a new CM7 nightly this MOD is to be re-applied.
[LG Optimus 2x] Stikkontakt:
I had this working at some point, but but suddenly I couldn't get it working any more, so I just dropped it, sorry
[LG Optimus 2x] NickHu:
It works fine; you're doing it wrong.
[LG Optimus 2x] nomedor:
I know, someone did it for some time now.

http://xdaforums.com/showthread.php?t=1161557
[LG Optimus 2x] Unhelpful:
This is not needed, vold will attempt to create all directories in the path to a mountpoint before attempting to mount it.

This is incorrect, as stated in the commit for this feature the mounts must be ordered with the longest path last, vold does not sort them and requires they be in the correct order. Incorrect ordering will lead to unpredictable behavior - I can only assume failed mounts are being retried if it successfully mounts both, but I have no idea how this might go wrong on unmount, it may fail to unmount one or both devices.
[LG Optimus 2x] jay_snake:
So if you change the order of the lines it's correct and mounting will go 100% correctly?
[LG Optimus 2x] Stikkontakt:
Well, I had problems with this in several scenarios..

It works. And if you have a look at the original vold file, _ExternalSD is mounted before internal sd..

This is how things look like on my phone, with this vold.fstab:

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

I am able to mount both cards on my computer via USB, If I unmount external sd card, external sd card is unmounted, if I unmount internal, both cards are unmounted (just like original ROM) If I try to mount external sd with both cards unmounted, both cards are mounted.

So, if it's so wrong, care to explain why it works perfectly fine?
[LG Optimus 2x] aremcee:
Because LG-stock's behaviour isn't standard Android, nor is it compatible with it, and CM doesn't support stacked mountpoints (or didn't, up until unhelpful added support last weekend). You can not use the original vold.fstab and just assume LG's vold is a normal one (it isn't).

The behaviour you're trying to achieve, under normal conditions, is completely random, and doing that leads to potential deadlocks on at least 3 different layers.
[LG Optimus 2x] nomedor:
In our defence, Google does it this way.

I agree that this is not the best way to do it but not all apps accept /mnt/emmc path.
[LG Optimus 2x] aremcee:
Google doesn't support any device with both external and internal SD cards, so they don't do it in any way :-)
[LG Optimus 2x] nomedor:
motorola xoom

;)
[LG Optimus 2x] aremcee:
HC is completely different when it comes to storage. vold doesn't even exist anymore, and all storage access is abstracted.

Also, I'm almost sure the Xoom builds are led by Motorola, not Google.
[LG Optimus 2x] nomedor:
I did't know that about HC but I had the impression Google was in charge for Xoom, I don't remember any official statement but I do remember Andry Rubin presenting HC on it.

Anyway, thanks for your time (and your work of course) aremcee. :)
[LG Optimus 2x] death1246:
Just use my update zip's

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

you might want to edit your build.prop manually since I only made this for the G2x

should work on your 2x just fine
[LG Optimus 2x] Sckank:
Can someone make a flashable zip out of that one? :)
[LG Optimus 2x] Wing_Zero85:
I've made it one for myself. It simply works :)

Hope that will be useful for someone.

Just remember to check that you have the "_ExternalSD" folder on your internal sd card. If not, create it.

Update attached to the post.

Tested on the 195 nightly.
[LG Optimus 2x] tru2malice:
this might be a big breakthrough in dual booting any os on many devices all we need is a recovery that supports booting from system dir or a framework.apk hack that allows you to run a dual boot app right after the boot animation instead if launcher loading a dual boot app launches and waits for user to select preinstalled os.
[LG Optimus 2x] lucfig:
aremcee says it can cause data loss.

Has anybody experienced that in CM7 using this method?
[LG Optimus 2x] oiza:
Try this, is a universal patch for memory stock mounting by $me :)

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

For all cm7 nightly build and miui :)

Inviato dal mio Optimus 2X usando Tapatalk
[LG Optimus 2x] nundoo:
Hi, I'm on stock 2.3.4 rooted and I was wondering if I could use a similar solution to the one in this thread to mount the External SD as primary and Internal one as a folder of the External(so, in a way, I want the exact opposite). I want this so I can install apps to my external 16GB microSD, not the internal phone SD.

You want stock mount for CM7. I want CM7 mount for stock. :)

Can anyone help me with this?

Thanks!
[LG Optimus 2x] HerrKuk:
Easiest way should be to use VorkKernel and int2ext flag
[LG Optimus 2x] nundoo:
Thanks HerrKuk for your answer, although, from what I've read, VorkKernel is only available for CM7. I want to have the possibility of mounting int2ext on stock.
[LG Optimus 2x] spica1234:
Delete everything that's inthere in /system/etc/vold.fstab and paste this:

#######################

## Regular device mount

##

## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>

## label - Label for the volume

## mount_point - Where the volume will be mounted

## part - Partition # (1 based), or 'auto' for first usable partition.

## <sysfs_path> - List of sysfs paths to source devices

######################

dev_mount emmc /mnt/emmc auto /devices/platform/tegra-sdhci.2/mmc_host/mmc1

dev_mount sdcard /mnt/sdcard 9 /devices/platform/tegra-sdhci.3/mmc_host/mmc2
[LG Optimus 2x] nundoo:
spica1234 I did as you said and, unfortunately, now I can't see my external anymore in "SD card and phone storage". Need help. I think I should have created a folder "emmc" first.

Also, I see in the first post that /system/build.prop file should be edited too...

Edit: Nevermind, I tried a lot of combinations and the best I could do was to mount my external microSD as internal, while the actual internal sd card couldn't be seen by Android.

I ended up flashing CM7 and be done with it. :)
[LG Optimus 2x] Jason_V:
What I would like to do is mount the External SD card as /mnt/sdcard/ and the internal SD as /mnt/sdcard/_InternalSD/

This might not be possible due to the mounting order, but it sure seems like the best of both worlds. This way I can use the 32GB SD card by default and only use the internal (much faster storage) for data that needs the speed in apps that support a path declaration.

Anyone have thoughts on feasibility?

[EDIT]I found a post referencing this: http://xdaforums.com/showthread.php?t=1144553&page=26

But it looks pretty out of date.
[LG Optimus 2x] HerrKuk:
Thats how i have it.

Did you solve it?
[LG Optimus 2x] Jason_V:
Actually I concluded that the only apps this would benefit are ones that allow you to specify the data path and the only instances that I could think of that do this (Titanium Backup) already allow me to specify that path at /mnt/emmc/ just as easily as I could specify /mnt/sdcard/_InternalSD/. So I decided it wasn't worth the trouble.

Let me know if you think otherwise.
[LG Optimus 2x] HerrKuk:
You have a point there.

I just want it to be there, no reason why
[LG Optimus 2x] manymoore:
I tried this one, and got it working, thanks a lot:D

But, i have do this whenever i install a new CM7 rom?:p
[LG Optimus 2x] reggiexp:
Cm10.1 anyone the script?

I dont like stock mount 5gb aint enough. Prefer my 16gb sd card
[Fascinate Q&A, Help & Troubleshooting] Djtoast:
Good evening,

I know this is going to be another one of those how do it upgrade my phone question. But i spent the better part of 4 hrs browsing this forum and the internet to figure out what exactly i need to do to get to 2.3.4 gingerbread (Need it for SIP issues with my galaxy s)

So going from Stock 2.2 froyo from TELUS

If someone could explain what is required for tools, roms, kernels, bootloaders, drivers, modem, etc and the steps needed to do this upgrade from root to end it would help me and MANY others looking for the same info.

1. Odin 1.3 [Got it]

2. Samsung drivers [Got it when installed kies]

.

.

.

.

10. CM7_Fascinate_platypus-kernel_20110516_r0_quorra-r9.zip [got it from another tread]

PS: There is a thread that explains what you need and download like the ebsbackup (Not sure what this is) and stuff but all the links are not working and i don't want to guess a file without someone that knows the implications and validating it. (SPECIFICALLY FOR THE TELUS FACINATE)

I'm a Newb at Rooting/Flashing phones but the rest its not my first rodeo :) I'm just fed up with waiting for upgrades that might or might not come.
[Fascinate Q&A, Help & Troubleshooting] Djtoast:
Answer place holder

Answer place holder
[Fascinate Q&A, Help & Troubleshooting] DaveJeep:
I'm also wondering about this, I can't find some files.

3. cm7-galaxys-initial-kernel.tar (Can't find)

4. galaxy-efsbackup.zip (Can't Find)

Other than that it looks like an easy install...
[Fascinate Q&A, Help & Troubleshooting] iwebsource:
I too would also like to find the rest of the Tools needed for this.

I found these though:
[Epic 4G Q&A, Help & Troubleshooting] xsxbluexsx:
I was using odin to flash something onto my epic, but me being a dumbass didnt uncheck repartition, which i heard is a death button, are there any fixes for

my late samsung epic? which will not turn on, or get into a download mode :/

i bought this august 30th last year, no extended warranty can i still call sammy?
[Epic 4G Q&A, Help & Troubleshooting] sniperkill:
Good luck man! Have you tried pulling the battery for a few minutes, up to a few hours? Then try putting it into download mode again...
[Epic 4G Q&A, Help & Troubleshooting] xsxbluexsx:
Unfortunately that didnt work :/
[Epic 4G Q&A, Help & Troubleshooting] Esteway.619:
Just so u know before u get flamed this belongs in Q&A
[Epic 4G Q&A, Help & Troubleshooting] xsxbluexsx:
Im really sorry for that, i was just in a hurry to get this fixed, currently calling samsung.
[Epic 4G Q&A, Help & Troubleshooting] wizzlewizzle:
This question is definately in the wong place. But I figured I save you some trouble.

You better thank MYSTERYEMOTIONZ for this one.

http://xdaforums.com/showthread.php?t=1042746
[Epic 4G Q&A, Help & Troubleshooting] theimpaler747:
Moved to Q&A. ;)
[Epic 4G Q&A, Help & Troubleshooting] JMMusic:
Just picture me as a little bald boy holding a spoon...

There is no button.

Keeping the battery out for a while might work.

I've also heard that you can "jump start" your phone by taking the battery out and plugging in power while the battery is out, getting it to boot that way, then putting the battery in while it's on. That may only apply to a fully discharged battery, but if your phone is truly dead it's worth a try.
[Epic 4G Q&A, Help & Troubleshooting] KennyG123:
With the battery out, plug the phone into a computer and try to get into download mode. If you can you should be able to start Odin and even pop the battery back in.
[Epic 4G Q&A, Help & Troubleshooting] futureprospect:
maybe i'm missing something here,

but i thought you were supposed to check the re-partition box when ODIN back to stock.

Or at least, that's what i do everytime i odin back to stock and my phone is fine.
[Epic 4G Q&A, Help & Troubleshooting] wizzlewizzle:
Dang it. There really is no button!
[Epic 4G Q&A, Help & Troubleshooting] chris41g:
Repartition isn't something you want or need to use regularly, but it shouldn't cause problems like you describe unless you used a pit from another phone or something... sounds more like it was interupted during flashing of boot.bin or param.lfs or something...
[Epic 4G Q&A, Help & Troubleshooting] MДЯCЦSДИT:
I HAVE A BUTTON