elfaure
Newbie
Hey-
Per the original post
http://androidforums.com/verizon-ga...t/649940-4-2-sdcard-sdcard-0-observation.html
Read Gapi's method of restoring CWMs and Nandroids. Seems pretty straight forward. You could create a script to recreate the 4.1 directory tree structure prior to restoring a pre 4.2 backup so it could find its data and targets. Then after restoring, you could recombine all data to /sdcard and make a new backup for 4.2 Its just file management automation and sure beats messing with it afterwards in my opinion. I'm on 4.1 and plan to stay here awhile so I can't test this theory but it *should* work. You could use the same technique for all your mountpoints like /data/media and data/media/0.
To see all your mountpoints
And to find all your /* and /*/0 pairs (the return is only the /*/0 directories but assuming you don't have any default /*/0 directories [I don't] this will work)
or you could expand on this code concept if you're already tripple nested before you figured out what was happening in 4.2
Example for /sdcard and /sdcard/0:
Per the original post
http://androidforums.com/verizon-ga...t/649940-4-2-sdcard-sdcard-0-observation.html
Read Gapi's method of restoring CWMs and Nandroids. Seems pretty straight forward. You could create a script to recreate the 4.1 directory tree structure prior to restoring a pre 4.2 backup so it could find its data and targets. Then after restoring, you could recombine all data to /sdcard and make a new backup for 4.2 Its just file management automation and sure beats messing with it afterwards in my opinion. I'm on 4.1 and plan to stay here awhile so I can't test this theory but it *should* work. You could use the same technique for all your mountpoints like /data/media and data/media/0.
To see all your mountpoints
Code:
mount
And to find all your /* and /*/0 pairs (the return is only the /*/0 directories but assuming you don't have any default /*/0 directories [I don't] this will work)
Code:
find */0
or you could expand on this code concept if you're already tripple nested before you figured out what was happening in 4.2
Code:
find */0/0/0
Example for /sdcard and /sdcard/0:
Code:
#!/system/bin/sh
#Make tmp backup of existing sdcard on external SD
mkdir /Removable/MicroSD/sdcard_tmp
cp -r /sdcard /Removable/MicroSD/sdcard_tmp
#Copy /sdcard/0 to /sdcard. This will over write /sdcard and its symlinks. If
#you want to retain symlinks then change r to R.
cp -rf /sdcard/0 /sdcard
[restore_your_files(ROMs, Nandroids, Recoveries)]
#Combine backup of existing sdcard and sdcard/0 in /sdcard
cp /Removable/MicroSD/sdcard_tmp/*.* /sdcard
#Remove tmp backup of pre-existing sdcard on external SD. If you
#want to save this directory instead, add a "#" without the quotes before
#the next line. Also make VERY sure you don't add a space after "/" and before
#"Removable/..." below or you will * WIPE * your device if / (root dir) is mounted rw!!!
rm -rf /Removable/MicroSD/sdcard_tmp
[backup_your_files]