After flashing Jelly Belly v10.0, I was getting annoyed knowing that there were 2 different storage locations (/sdcard and /sdcard/0), so I looked into it and here's what I found:
I had 2 different directories under /sdcard. Inside /sdcard, I had the normal folders that Android and apps create (like Alarms, data, DCIM, etc...) as well as a folder named 0. Inside this /sdcard/0 folder, I had all of the folders I had pre 4.2 Jelly Bean, including the standard Android folders and all the folders I had created (folders I created to organize the ROMs, kernels, etc that I have on my sd card).
So it seems like when you flash your first 4.2 ROM, it creates a backup of your /sdcard directory under this /sdcard/0 folder. From then on, /sdcard becomes the default directory where Android functions.
Oddly enough, I found 3 virtual symlinks that had the same file structure. These locations were:
/storage/emulated/0 and /storage/emulated/0/0 (new and "backup" locations, respectively)
/storage/emulated/legacy and /storage/emulated/legacy/0 (new and "backup" locations, respectively)
/storage/sdcard0 and /storage/sdcard0/0 (new and "backup" locations, respectively)
In al, there were 4 locations that had the exact same data. I merged all of the /sdcard/0 "backup" folders to /sdcard so everything was in 1 location. Hope this helps someone and please share your own insights.
I had 2 different directories under /sdcard. Inside /sdcard, I had the normal folders that Android and apps create (like Alarms, data, DCIM, etc...) as well as a folder named 0. Inside this /sdcard/0 folder, I had all of the folders I had pre 4.2 Jelly Bean, including the standard Android folders and all the folders I had created (folders I created to organize the ROMs, kernels, etc that I have on my sd card).
So it seems like when you flash your first 4.2 ROM, it creates a backup of your /sdcard directory under this /sdcard/0 folder. From then on, /sdcard becomes the default directory where Android functions.
Oddly enough, I found 3 virtual symlinks that had the same file structure. These locations were:
/storage/emulated/0 and /storage/emulated/0/0 (new and "backup" locations, respectively)
/storage/emulated/legacy and /storage/emulated/legacy/0 (new and "backup" locations, respectively)
/storage/sdcard0 and /storage/sdcard0/0 (new and "backup" locations, respectively)
In al, there were 4 locations that had the exact same data. I merged all of the /sdcard/0 "backup" folders to /sdcard so everything was in 1 location. Hope this helps someone and please share your own insights.