[trick] switching roms without loosing adopted sd data[mm] - Moto E General

Marshmallow had a new cool feature of adopted storage but all the flashoholics had trouble in changing roms because they have to format sd card every time they change roms .
I have a solution.
1:- while flashing rom wipe system dalvik cache and cache but dont wipe data .
2:- flash the rom and let it optimize apps .
3:- after optimizations most probably you will be in bootloop , simply boot into recovery and wipe data and reboot.
4:- your phone will optimize apps again and this time it will boot up and you can access sd card as adopted storage without need to format it again as internal.
This trick worked for me and should work for you guys too.
There's another method that is :-
1:- navigate to root folder
2:- copy all the files from data/misc/vold to somewhere in SD card
3:now boot to recovery wipe everything except SD card and flash new ROM .
4:- now using twrp's file manager move the files you from step 2 to the same folder I.e. data/misc/vold
5:-reboot

According to twrp dev, you can use this trick ' Note, if you factory reset and leave the key present in /data/misc/vold, then Android will still detect and use the adopted storage on the next boot.'
https://gerrit.omnirom.org/#/c/15921/

Thanks! Worked for me! :fingers-crossed:

PoseidonKing said:
Thanks! Worked for me! :fingers-crossed:
Click to expand...
Click to collapse

Dirty Flashing....and adopted sd card
If I dirty flash a rom by just clearing the cache and dalvik cache, will the old adopted sd card setting work or will I have to follow your procedure even then also?

[email protected] said:
If I dirty flash a rom by just clearing the cache and dalvik cache, will the old adopted sd card setting work or will I have to follow your procedure even then also?
Click to expand...
Click to collapse
It'll work, according to the trick mentioned here

[email protected] said:
If I dirty flash a rom by just clearing the cache and dalvik cache, will the old adopted sd card setting work or will I have to follow your procedure even then also?
Click to expand...
Click to collapse
Yup but most probably you will get boot loop if you have installed significant number of apps....so clean flash is advised......and use the trick mentioned
Sent from my Moto E using Tapatalk

Abhimanyu Shekhawat 121 said:
Yup but most probably you will get boot loop if you have installed significant number of apps....so clean flash is advised......and use the trick mentioned
Sent from my Moto E using Tapatalk
Click to expand...
Click to collapse
can you explain? why this bootloop?
pls do read my post here http://forum.xda-developers.com/showpost.php?p=66353859&postcount=1784
does this sound familiar?
i had 39 apps installed so you can say i have lots of apps
but this never happened to me before i flashed 13th april nightly...
ultimately i had to wipe everything, do a clean flash and use this method to save the sdcard

booo159159 said:
can you explain? why this bootloop?
pls do read my post here http://forum.xda-developers.com/showpost.php?p=66353859&postcount=1784
does this sound familiar?
i had 39 apps installed so you can say i have lots of apps
but this never happened to me before i flashed 13th april nightly...
ultimately i had to wipe everything, do a clean flash and use this method to save the sdcard
Click to expand...
Click to collapse
I don't know the exact reason but as long as you have only 10-15 apps you won't get bootloop .....I always get bootloop while dirty flashing updates
Sent from my Moto E using Tapatalk

will this also work on other phones? i have an i9505

k2828 said:
will this also work on other phones? i have an i9505
Click to expand...
Click to collapse
It will
Sent from my Moto E using Tapatalk

booo159159 said:
can you explain? why this bootloop?
pls do read my post here http://forum.xda-developers.com/showpost.php?p=66353859&postcount=1784
does this sound familiar?
i had 39 apps installed so you can say i have lots of apps
but this never happened to me before i flashed 13th april nightly...
ultimately i had to wipe everything, do a clean flash and use this method to save the sdcard
Click to expand...
Click to collapse
Use latest RR.......RR not giving booloops on dirty flash
Sent from my Moto E using Tapatalk

Sorry for bringing up this old thread again, but I've an issue where I had to hard reset in order to get root on my Moto X Pure. I didn't think about whether or not I should make any backups of my sd or nand.
I thought I could just continue using the sd as adopted storage on my new ROM.
Anyways, when doing this trick do I leave the sd card inside?

ZoneBlaze said:
Sorry for bringing up this old thread again, but I've an issue where I had to hard reset in order to get root on my Moto X Pure. I didn't think about whether or not I should make any backups of my sd or nand.
I thought I could just continue using the sd as adopted storage on my new ROM.
Anyways, when doing this trick do I leave the sd card inside?
Click to expand...
Click to collapse
Yes SD card should be inside.
Sent from my Moto E using Tapatalk

well it works. you can also switch from cm13 to cm14.1, but the option migrate data, to migrate from internal to adopted is missing afterwards

please help , i can see the .key file in the vold folder but i don't know how to save it so that i can RE USE the adoptable storage AFTER FACTORY RESETTING my Phone.
PLEASE PLEASE help me out !

yaxir0 said:
please help , i can see the .key file in the vold folder but i don't know how to save it so that i can RE USE the adoptable storage AFTER FACTORY RESETTING my Phone.
PLEASE PLEASE help me out !
Click to expand...
Click to collapse
Just copy it to your SD card using file manager. Then when you flash ROM, go into twrp file manager and copy-paste it back to vold folder.
However, if you are on a nougat ROM then you don't need this entire trick at all! Just flash ROM without this trick. The .key will take care of itself automatically without any problem.

Vikrant Desai said:
Just copy it to your SD card using file manager. Then when you flash ROM, go into twrp file manager and copy-paste it back to vold folder.
However, if you are on a nougat ROM then you don't need this entire trick at all! Just flash ROM without this trick. The .key will take care of itself automatically without any problem.
Click to expand...
Click to collapse
thanks for you reply , Vikrant
my problem is , my SD card does NOT appear in TWRP fiile manager , since it was formatted as internal. my phone's stuck in boot animation. so i have no access to the phone's OS to retrieve my VERY precious data.
please help me out ... i would explain the issue in detail but i have already made a post here ;
https://www.reddit.com/r/linuxquestions/comments/62m1p6/decrypting_a_sd_card_on_ubuntu/
kindly take a look and suggest possible solutions.
Many thanks !

yaxir0 said:
thanks for you reply , Vikrant
my problem is , my SD card does NOT appear in TWRP fiile manager , since it was formatted as internal. my phone's stuck in boot animation. so i have no access to the phone's OS to retrieve my VERY precious data.
please help me out ... i would explain the issue in detail but i have already made a post here ;
https://www.reddit.com/r/linuxquestions/comments/62m1p6/decrypting_a_sd_card_on_ubuntu/
kindly take a look and suggest possible solutions.
Many thanks !
Click to expand...
Click to collapse
Well, in TWRP file manager, don't you see the option 'sdcard' ? Go to TWRP > Advanced > file manager > sdcard.
I'm also using SD as internal and flashing ROMs and stuff without using this trick (on nougat).

Vikrant Desai said:
Well, in TWRP file manager, don't you see the option 'sdcard' ? Go to TWRP > Advanced > file manager > sdcard.
I'm also using SD as internal and flashing ROMs and stuff without using this trick (on nougat).
Click to expand...
Click to collapse
i see. you're using Android 7.0 (Android N) ... i was using CM13 , Android 6.0 (Android MarshMellow) oh and infact , i downloaded the ROM from xda forums ...
here's the EXACT ROM that was running on my phone before disaster struck ;
https://forum.xda-developers.com/galaxy-mega/development/rom-aicp-11-0-mm-6-0-1-t3457130
i DID use the TWRP File Manager but i don't remember exploring that particular 'sdcard' folder . but do tell me , what did you see in your 'sdcard' folder in file manager ?

Related

can't install zip rom file in recovery because..

I cannot the zip rom file show up in the directory. what is the reason for recovery not seeing it?
tainle said:
I cannot the zip rom file show up in the directory. what is the reason for recovery not seeing it?
Click to expand...
Click to collapse
If you follow the steps correctly in Recovery, then you should see the whole directory listed of you SD card. If you don't see this, probably your SD card is defect. Try with another card.
Good luck.
what have u tried anyway?
freakin.ro said:
what have u tried anyway?
Click to expand...
Click to collapse
I did nvflash for second time but some problem. this 16gb sd that i am using was an old sd from my hd2, i did a partition and extension in the recovery during the time i use the hd2. so i wonder if that affect it?
so far i didn't take any steps beside 1: redid the nvflash, i choose the internal sd and nand option.
AS USUAL
WIPE WIPE WIPE
wipe data
wipe cache
wipe dalvik
back to main screen
mounts and storage select format/system
install rom from sd card
Install gapps
Reboot enjoy
If coming from previous version just wipe cache and dalvik
Click to expand...
Click to collapse
i got to the step install rom from sd card, that was where i don't see the rom in the root directory. i only see certain folders in the recovery that are in my sd, still not al lthe folders that was in the root though. so i tried to put some rom zip file in those folder that visible in recovery but i still cannot see it.
so they are couple things i did but it not a solution. what should i do?
thanks
okay i realized i nvflash with internal option so i though i should put the rom into internal and it work. all these time the recovery was viewing internal sd the 5GB

Every time !! Arghhhh

Okay,, i have a note 10.1 n8010 and EVERYTIME I FLASH a rom i cant install any apps and it says insufficient storage, I do everything step by step, I don't understand, I just don't understand!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Can someone please explain me why this is, i wipe everything before doing a update etc...
asustf700t said:
Okay,, i have a note 10.1 n8010 and EVERYTIME I FLASH a rom i cant install any apps and it says insufficient storage, I do everything step by step, I don't understand, I just don't understand!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Can someone please explain me why this is, i wipe everything before doing a update etc...
Click to expand...
Click to collapse
Are you using an external SD Card or just your internal one ?
lsherif said:
Are you using an external SD Card or just your internal one ?
Click to expand...
Click to collapse
A external one as well
asustf700t said:
A external one as well
Click to expand...
Click to collapse
Try following the below steps as per smaw51 recommendations :
wipe data/factory reset
wipe cache partition
mounts and storage/ format /data
mounts and storage/ format /system
mounts and storage/ format /cache
advanced/ wipe dalvik cache
Repeat a couple times for good measure
I have already tried those steps as I found them online and it does nothing, I always have to delete everything and then return to stock ... I just don't get it >
asustf700t said:
I have already tried those steps as I found them online and it does nothing, I always have to delete everything and then return to stock ... I just don't get it >
Click to expand...
Click to collapse
So what`s your internal free storage after installing a fresh rom ?
asustf700t said:
I have already tried those steps as I found them online and it does nothing, I always have to delete everything and then return to stock ... I just don't get it >
Click to expand...
Click to collapse
Oops accidentally thanked you for this post.
Anyways, I have found that wiping data from recovery doesn't clear download files and such. Download Astro File manager and see what is taking up most of your internal memory. I found personally that .zip files and a few things like that were taking up oodles of storage space. Also, when yuo do a CWM backup, do the backup to the External SD card, that way it doesn't take up app space.
lsherif said:
So what`s your internal free storage after installing a fresh rom ?
Click to expand...
Click to collapse
like 7gb? and external is 4gb because i have a partition, but the partition in my case is irrelevant because before when I didn't know about link2sd I still had this problem, but everyone else seems to flash roms daily with no issues lol?
Jonphinguyen7 said:
Oops accidentally thanked you for this post.
Anyways, I have found that wiping data from recovery doesn't clear download files and such. Download Astro File manager and see what is taking up most of your internal memory. I found personally that .zip files and a few things like that were taking up oodles of storage space. Also, when yuo do a CWM backup, do the backup to the External SD card, that way it doesn't take up app space.
Click to expand...
Click to collapse
okay ill thank you back lol, okay I will back it up externally for future reference, but the issue seems to be on every rom i download with my device...but no one else seems to have this issue with the same rom
edit------------
i can't it says ive reached my 8 limit today...
anyone?
i also tried the steps in this post... http://forum.xda-developers.com/showthread.php?t=1745247&page=3
I believe reading this thread and taking a few tips has fixed everything!
http://forum.xda-developers.com/showthread.php?t=1908711&page=2
I strongly suggest you flash a stock rom using Odin and clear everything. If you still have problems with the stock rom on your tablet return it for warranty repair. My feeling is though it is something you are doing. So once back to stock (out of the box) reinstall apps one at a time - avoid apps to sd and installing them on external memory. I don't believe that can be necessary!

nexus 4 recovery couldn't open directory

this morning i found my nexus 4''s storage mess up so i formated my storage and i found there is still some folder inside so i though i gonna flash a new rom then i deleted all those folder and put in my rom.zip then boot into recovery, then doing those wipe and when i try to "install zip from sd card" it showed "couldn't open directory" OMG, i never face this problem, and i had just wiped my previous rom now i have no any way to get into a rom and stuck on recovery here. can anyone teach me how to fixed this up? :crying:
p/s i also cannot mount/unmount sd card in recovery(6.0.1.9)
* i just want can reflash a new rom and i got all my data on dropbox, so pls help me up ..
vincentt84 said:
this morning i found my nexus 4''s storage mess up so i formated my storage and i found there is still some folder inside so i though i gonna flash a new rom then i deleted all those folder and put in my rom.zip then boot into recovery, then doing those wipe and when i try to "install zip from sd card" it showed "couldn't open directory" OMG, i never face this problem, and i had just wiped my previous rom now i have no any way to get into a rom and stuck on recovery here. can anyone teach me how to fixed this up? :crying:
p/s i also cannot mount/unmount sd card in recovery(6.0.1.9)
* i just want can reflash a new rom and i got all my data on dropbox, so pls help me up ..
Click to expand...
Click to collapse
http://www.youtube.com/watch?v=eOACRaFFfdo
trook said:
http://www.youtube.com/watch?v=eOACRaFFfdo
Click to expand...
Click to collapse
actually everything work just only i cant flash a rom, this one kind of brick? thanks for your reply

Fixing Internal Memory 0.00 B

[Not sure this is the right section, but since it requires a bit of knowledge on adb and stuff, I thought the development area would be better]
I happened to do something, somehow, which cause my Internal Memory to completely "disappear". The only way to get it back was downgrading to GB. However signal wouldn't work. I tried everything I saw on the Internet. But most people had to take it to the customer service. I didn't want that. My mobile was still working, I knew I only needed to fix something no matter what!
I realised that when this problem occurs, if you go to About Device, you'll see that your Baseband version will be XXXX. If that's not the case, just try factory reset, wipe cache, dalvik, etc... and re-flashing stock via odin. BUT if that IS the case, follow the steps below:
DO THIS ONLY ON I9070 (GALAXY S ADVANCE) DON'T TRY IT ON I9070P SINCE I'M NOT SURE IT WILL WORK AND IT MIGHT BRICK YOUR DEVICE.
1 Download http://d-h.st/W5W
2 extract it into your SD Card
3 Run adb, since you won't be able to install terminal on your mobile. However if you've got a ROM with terminal pre-installed you can use it anyways.
4 Use this command on adb: adb shell
su
dd if=/sdcard/modemfs.img.md5 of=/dev/block/mmcblk0p2
If you have this problem on a different device and found this thread, try looking for the mmcblk0p2 for your device, extract it to your SD Card and type on adb: dd if=/sdcard/mmcblk0p2 of=/sdcard/modemfs.img.md5
Then, go to step 4
That's it, folks! If nothing happened yet, reboot your mobile and both your network and memory will be working.
Hit thanks if I've helped you anyroad
Sorry but it didn't work for me.
hey buddy, thanks for the info... in my phone i have baseband name, but i dont have system storage ... i try your metod but i couldnt fix it...
can you give me a little more information how did you do? thanks and sorry my bad english....
are u sure u have root access? try using Root Explorer, google it. there is one that is really good. I used this method on JB. It should work on GB also... if nothing like reflashing stock, wiping data, cache and dalvik cache and fixing permissions worked, thats the last hope. other than that, only customer service as far as I know :sad: try to follow the steps thoroughly. ALSO, just to make sure, put the modemfs file both on the internal memory and external sd card, since it might have been changed. MIUI for example would recognize your external sd card as ur internal memory and vice-versa
gustavray said:
are u sure u have root access? try using Root Explorer, google it. there is one that is really good. I used this method on JB. It should work on GB also... if nothing like reflashing stock, wiping data, cache and dalvik cache and fixing permissions worked, thats the last hope. other than that, only customer service as far as I know :sad: try to follow the steps thoroughly. ALSO, just to make sure, put the modemfs file both on the internal memory and external sd card, since it might have been changed. MIUI for example would recognize your external sd card as ur internal memory and vice-versa
Click to expand...
Click to collapse
Yes, i have a root access. I flash JB XXLPY, then i flash kernel to have CWM, then i wipe all data, install Chuckybean ROM and i have 0 MB internal memory. After tha i've tried your fix via adb and even wondering if i can do this via odin...
NOTHING still the same 0 MB...
jjeerry said:
Yes, i have a root access. I flash JB XXLPY, then i flash kernel to have CWM, then i wipe all data, install Chuckybean ROM and i have 0 MB internal memory. After tha i've tried your fix via adb and even wondering if i can do this via odin...
NOTHING still the same 0 MB...
Click to expand...
Click to collapse
then try reflaashing via odin the stock rom with the pit file. that can be found on section on how to downgrade to GB. make sure u use the right pit file for the 8 or 16gb version. then when flashing, make sure to check the option of Re-format
gustavray said:
then try reflaashing via odin the stock rom with the pit file. that can be found on section on how to downgrade to GB. make sure u use the right pit file for the 8 or 16gb version. then when flashing, make sure to check the option of Re-format
Click to expand...
Click to collapse
Been there, done that

internal memory formatted

when i was updating my Lg L3 E400 by cyanogen mode 9
Wipe /data, cache and dalvik
and by mistakenly i formatted internal memory by from mount options
plzzzz help wat shud i do nw i can't install any applications now it say no internal memory.........
omkar said:
when i was updating my Lg L3 E400 by cyanogen mode 9
Wipe /data, cache and dalvik
and by mistakenly i formatted internal memory by from mount options
plzzzz help wat shud i do nw i can't install any applications now it say no internal memory.........
Click to expand...
Click to collapse
Are you sure? Formatted or unmounted?
145
4freedom said:
Are you sure? Formatted or unmounted?
Click to expand...
Click to collapse
formatted yaar wat should i do ?
are you using sdmerge or not? may be you did somthing wrong or rom file problems. i am on sdmerge and always perform full format before flashing rom (all options: system, data, cache,.. except sdcard: becaus it store rom.zip ^^)
kien_vip said:
are you using sdmerge or not? may be you did somthing wrong or rom file problems. i am on sdmerge and always perform full format before flashing rom (all options: system, data, cache,.. except sdcard: becaus it store rom.zip ^^)
Click to expand...
Click to collapse
[Rom][Stock 2.3.6][L3-e400][PureOS v4.0] now im using this rom in these my memory card has become sd card and no memory card option is available i can install appl n all
my system memory has become 1gb and sd card memory as 8gb
jst install cm9 again now phone get freeze after restart wat de hell is this now
omkar said:
(...)
my system memory has become 1gb and sd card memory as 8gb
Click to expand...
Click to collapse
Hello Omkar,
Maybe, I don't understand you well. For me, a memory card is... a sdcard. Have you got external and internal sdcard/memory card? what recovery have you used? What tool are you using to know what space is or not free?
The memory card where you flash the ROM has some partitions: /boot, /recovery, /system, /cache, /data, /sdcard, /misc
The system partition could be 1GB (but... I think is too much) and basically contains the entire operating system. The data partition contains the user’s data and the sdcard is not exactly a partition. In terms of usage, this is your storage space.
I'm not sure that you format the entire memory card... I've just read a guide to Android partitions yesterday and other about ClockWorkMod Recovery and how to use it. They are complete and good. I would like to share them with you:
Guide to Androit particion
Clockworkmod and how to use it
LobaJai said:
Hello Omkar,
Maybe, I don't understand you well. For me, a memory card is... a sdcard. Have you got external and internal sdcard/memory card? what recovery have you used? What tool are you using to know what space is or not free?
The memory card where you flash the ROM has some partitions: /boot, /recovery, /system, /cache, /data, /sdcard, /misc
The system partition could be 1GB (but... I think is too much) and basically contains the entire operating system. The data partition contains the user’s data and the sdcard is not exactly a partition. In terms of usage, this is your storage space.
I'm not sure that you format the entire memory card... I've just read a guide to Android partitions yesterday and other about ClockWorkMod Recovery and how to use it. They are complete and good. I would like to share them with you:
Guide to Androit particion
Clockworkmod and how to use it
Click to expand...
Click to collapse
hey dude i read that i just wana say that i re-install cm9 and all things works perfectly but after restart while using my phone gets freeze now i don't understand whats the problem can u plzz send me cm9 files also all the require file so i can again do all the procedure again and see whether it works properly or not.....
omkar said:
hey dude i read that i just wana say that i re-install cm9 and all things works perfectly but after restart while using my phone gets freeze now i don't understand whats the problem can u plzz send me cm9 files also all the require file so i can again do all the procedure again and see whether it works properly or not.....
Click to expand...
Click to collapse
Hello omkar,
I'm sorry, but I'm not using the same phone model than you. If you're following a XDA thread to install cm9, it should be work.
I had a similar problem (it got freeze after flashing). I'm not sure what didn't work of the tutorial that I followed. So I decided to update the cwm recovery version and try with other CM. I followed the steps and I also formated the /system partition to make a "clean" installation of the CM. Finally it worked.
:good:
LobaJai said:
Hello omkar,
I'm sorry, but I'm not using the same phone model than you. If you're following a XDA thread to install cm9, it should be work.
I had a similar problem (it got freeze after flashing). I'm not sure what didn't work of the tutorial that I followed. So I decided to update the cwm recovery version and try with other CM. I followed the steps and I also formated the /system partition to make a "clean" installation of the CM. Finally it worked.
Click to expand...
Click to collapse

Categories

Resources