Data partition shows 0mb. Help. - General Questions and Answers

I flashed a stock rom (replaced the stock recovery with twrp though), it was stuck at the Alcatel screen, so I went into twrp. I tried reparing, resizing, changing file system of data, system, and cache (which all showed 0 mb), then cache and system got fixed and it said ext4. However, data still shows 0 mb and despite trying all kinds of fixes (like wiping, doing a factory reset, changing file system to ext2, ext3, ext4, fat etc. which all fail) I found online it's still the same. When I tried flashing userdata using SP Flash Tool, it said "not enough space". I found two scatter files (attached to this post) but they seem to differ.
What should I do?

Hint: Add TWRP to this thread's title because it's a TRWP related issue.

jwoegerbauer said:
Hint: Add TWRP to this thread's title because it's a TRWP related issue.
Click to expand...
Click to collapse
How is it TWRP related? SP Flash Tool says it can't flash user data because there is no space because /data is seen as a 0mb partition.

tesiz22 said:
How is it TWRP related? SP Flash Tool says it can't flash user data because there is no space because /data is seen as a 0mb partition.
Click to expand...
Click to collapse
My guess is /data got encrypted by TWRP, hence it actually can't get mounted. But I may err ...

jwoegerbauer said:
My guess is /data got encrypted by TWRP, hence it actually can't get mounted. But I may err ...
Click to expand...
Click to collapse
That makes sense, I'll try adding the tag. Do you have any idea how I can check that or decrypt the partition? It looks like not only data but many other partitions aren't visible as well like /system.
...
It looks like I can't edit tags afterwards.

Looks like there's a problem with userdata
You have to format it, and then reflash the stock rom
Open sp flash tool
Load your scatter file
Go to the format section at the top of spflash tool
Select manual format flash
Select emmc user.
As the begin address of userdata is
0xABD80000
Input it in begin address box
As the size of userdata is
0x124D80000
Input this is the format length box
Click start
Flash the stock rom and reboot
I got these values form your scatter file

Tab E said:
Looks like there's a problem with userdata
You have to format it, and then reflash the stock rom
Open sp flash tool
Load your scatter file
Go to the format section at the top of spflash tool
Select manual format flash
Select emmc user.
As the begin address of userdata is
0xABD80000
Input it in begin address box
As the size of userdata is
0x124D80000
Input this is the format length box
Click start
Flash the stock rom and reboot
I got these values form your scatter file
Click to expand...
Click to collapse
Thank you! Which scatter did you use? I uploaded two different ones for the same device but I used the one named "mt8127_android_scatter.txt" to flash the stock rom.

tesiz22 said:
Thank you! Which scatter did you use? I uploaded two different ones for the same device but I used the one named "mt8127_android_scatter.txt" to flash the stock rom.
Click to expand...
Click to collapse
I got the begin address and format length from Mt8127

Related

partitions seem to be locked, cant format

i had a recent soft brick in which for some reason, i couldnt decrypt, with this, i couldnt load anything on android besides twrp and fastboot.. when i try reformatting and wiping data, it seems to fail.. for example, i go to format with twrp and it hangs, if i try installing anything itll fail to load any data onto that partition.. if i could reformat that partition back to its useful state, without the encryption issue i could reinstall a rom and fix this issue
any ideas?
when i attempt to do anything in twrp.. i get this error
Updating partition details
E: error opening ' /data/media '
E: error: No such file or directory
just a test, i tried to create a new folder in /data, and it says its a read-only filesystem
jason41987 said:
i had a recent soft brick in which for some reason, i couldnt decrypt, with this, i couldnt load anything on android besides twrp and fastboot.. when i try reformatting and wiping data, it seems to fail.. for example, i go to format with twrp and it hangs, if i try installing anything itll fail to load any data onto that partition.. if i could reformat that partition back to its useful state, without the encryption issue i could reinstall a rom and fix this issue
any ideas?
when i attempt to do anything in twrp.. i get this error
Updating partition details
E: error opening ' /data/media '
E: error: No such file or directory
just a test, i tried to create a new folder in /data, and it says its a read-only filesystem
Click to expand...
Click to collapse
Your partition is probably encrypted. The only way to access to your data is to decrypt it before you can do anything. Do you have a password for it?
LetMeKnow said:
Your partition is probably encrypted. The only way to access to your data is to decrypt it before you can do anything. Do you have a password for it?
Click to expand...
Click to collapse
no, any way i can erase all the data, the partition and start fresh?
jason41987 said:
no, any way i can erase all the data, the partition and start fresh?
Click to expand...
Click to collapse
"Format data" should do this. In which way doesn't it work for you?
_that said:
"Format data" should do this. In which way doesn't it work for you?
Click to expand...
Click to collapse
when i attempt to format data, format fails, it will not let me touch the /data partition, when it does mount, it mounts as read-only.. the partition itself, possibly partition table or something is damaged because it cannot be formatted and nothing can be written to it
it would seem like the internal storage is screwed.. but the other partitions seem to work fine, even able to use command-line from twrp to check fstab and try to mount manually... im not sure how to completely delete and recreate a partition in fdisk, if possible on here
jason41987 said:
when i attempt to format data, format fails
Click to expand...
Click to collapse
No error message? No log file? Just "fails"?
You could try running "/sbin/make_ext4fs /dev/block/mmcblk0p8" manually from adb shell.
jason41987 said:
it would seem like the internal storage is screwed.. but the other partitions seem to work fine, even able to use command-line from twrp to check fstab and try to mount manually... im not sure how to completely delete and recreate a partition in fdisk, if possible on here
Click to expand...
Click to collapse
You can't use fdisk on the internal storage - it uses a combination of GPT and a proprietary partition table.
_that said:
No error message? No log file? Just "fails"?
You could try running "/sbin/make_ext4fs /dev/block/mmcblk0p8" manually from adb shell.
You can't use fdisk on the internal storage - it uses a combination of GPT and a proprietary partition table.
Click to expand...
Click to collapse
the errors i receive are above..trying different things ive received the error that the partition is write one... are there any tools for redoing the entire internal storage?
maybe this could work.. since the other partitions seem to work just fine, as they were not encrypted, what if i edited fstab to mount partitions on a MicroSD card pre-partitioned to act as /data and /cache, then install a rom... unless there are ROMs designed to utilize an external SD for installation?... either way if i can work around these two partitions i could get into a working android system where i can find more tools to assist in removing and recreating those broken partitions
ive considered trying to use fastboot to replace the twrp recovery with a stock asus recovery partition and try to fix the issue from that, but i doubt that would be of any use
jason41987 said:
ive considered trying to use fastboot to replace the twrp recovery with a stock asus recovery partition and try to fix the issue from that, but i doubt that would be of any use
Click to expand...
Click to collapse
Instead you should try it cause i'm pretty sure it will fix your partition.Just install the stock recovery and do a Wipe Data first. If all goes well you can go ahead and flash a stock rom from MicroSD or install the TWRP again and check if it's working.
Here you can find the latest stock recovery - - > http://forum.xda-developers.com/showthread.php?p=44280630
Pretoriano80 said:
Instead you should try it cause i'm pretty sure it will fix your partition.Just install the stock recovery and do a Wipe Data first. If all goes well you can go ahead and flash a stock rom from MicroSD or install the TWRP again and check if it's working.
Here you can find the latest stock recovery - - > http://forum.xda-developers.com/showthread.php?p=44280630
Click to expand...
Click to collapse
are you saying write over twrp with the stock recovery partition with fastboot, then boot into the recovery partition from the power + volume down menu and see if that recovery image will reset to factory defaults?... if so, where would i even get that recovery image?.. and if you mean just try installing a stock rom through TWRP, ive already been there, done that, and it hangs on formatting
jason41987 said:
are you saying write over twrp with the stock recovery partition with fastboot, then boot into the recovery partition from the power + volume down menu and see if that recovery image will reset to factory defaults?... if so, where would i even get that recovery image?.. and if you mean just try installing a stock rom through TWRP, ive already been there, done that, and it hangs on formatting
Click to expand...
Click to collapse
If you follow the link i posted previously you will find the stock recovery (from the latest asus firmware) as an attachment to that post.
After you flash it via Fastboot, do a Wipe Data from the bootloader menu (the one with the 3 icons) after that just follow "restore with stock recovery" procedure from my All in One Thread (it's a sticky post under General Forum).
That should fix your issue and get you to a new clean starting point.
Pretoriano80 said:
If you follow the link i posted previously you will find the stock recovery (from the latest asus firmware) as an attachment to that post.
After you flash it via Fastboot, do a Wipe Data from the bootloader menu (the one with the 3 icons) after that just follow "restore with stock recovery" procedure from my All in One Thread (it's a sticky post under General Forum).
That should fix your issue and get you to a new clean starting point.
Click to expand...
Click to collapse
well, ill try that as soon as i wake up.. if it doesnt work though i am prepared to install something thatll run those partitions of an external microsd though.. wonder why no roms exist specifically for that?... seems like an ultra-secure rom for the ultra-paranoid to be able to pop out their microsd and hide it with all user data stored on it
jason41987 said:
well, ill try that as soon as i wake up.. if it doesnt work though i am prepared to install something thatll run those partitions of an external microsd though.. wonder why no roms exist specifically for that?... seems like an ultra-secure rom for the ultra-paranoid to be able to pop out their microsd and hide it with all user data stored on it
Click to expand...
Click to collapse
Data2SD already exists.
Did you already try to format your data partition from adb shell?
data2sd seems to be something thats applied after a rom is successfully installed, not sure that would help me
anyway, i tried the stock recovery image and it just hangs on an android graphic with a rotating blue wireframe inside its chest and a blue progress bar, but it doesnt actually do anything else
edit: wait a minute.. i see how this goes with the data2sd... i download a data2sd kernal, since i install cleanrom i can add this to the installations list of kernals, the data2sd kernal will mount external SD cards as the /data, cache, and sdcard partitions, allowing me to bypass the issue im having completely and use a 64gb microsd card as my primary storage... very interesting indeed
aah, fantastic, cant even get into fastboot mode to put twrp back on for the data2sd method.. so it would seem now my tablet is COMPLETELY toast
jason41987 said:
aah, fantastic, cant even get into fastboot mode to put twrp back on
Click to expand...
Click to collapse
What happens when you try?
_that said:
What happens when you try?
Click to expand...
Click to collapse
when i hold power and volume down it goes straight to the robot with the blue spinning wireframe graphic,, i dont get an option to go to fastboot.. i can also use power and volume up to go into apx mode but no idea what thats even used for as i find very little reference to it online
jason41987 said:
when i hold power and volume down it goes straight to the robot with the blue spinning wireframe graphic,, i dont get an option to go to fastboot..
Click to expand...
Click to collapse
I see, that's forced boot to recovery because of "wipe data" selected from the bootloader menu.
I don't know how long wiping data takes, maybe you are just not patient enough to let it finish?
_that said:
I see, that's forced boot to recovery because of "wipe data" selected from the bootloader menu.
I don't know how long wiping data takes, maybe you are just not patient enough to let it finish?
Click to expand...
Click to collapse
no, it finished, then said it was booting the recovery image afterwards, then i let it sit for about 2 hours when i went to do something else and it hanged on that screen... no way to fix this from apx mode?
jason41987 said:
no way to fix this from apx mode?
Click to expand...
Click to collapse
APX mode is only useful if you have nvflash, the wheelie tool, and the blob file for your device, which you'd have needed to create with firmware 9.4.5.26 or earlier and the hacked bootloader from androidroot.mobi.

Problem with partition sdcard after fail flash

Hello,
That last night I wanted to flash a new ROM from 4.4 to 5.0.1.
I had some bugs, like my full SD card, therefore i installed nothing like apps or pictures .
So I try to re-flash the ROM again after a factory reset.
But, i can not reflash since it has wipe my SD card ..
So I managed to reconnect my phone and flash a recovery.
However, when I install a ROM (official google, or custom), it no longer detects my SD card
when the flash rom: E: unknown volume for path / sd-ext.
I try everything, I do not know how to repartition as originally my SD card.
I hope she is not dead as impossible to get out of my phone ...
I manage to mount the SD card, but still the sd-ext partition that does not exist ...
I just followed here: http://forum.xda-developers.com/goo...o-repairing-corrupted-data-partition-t2577447
everything works, but again, the sd-ext partition ..
I manage to get to the bootloader, recovery, I can flash a ROM anyway!
However, when I want to take a picture / install / sms .... I get an error "No SD card" or not avaialble space.
I need your help, since yesterday I have no phone ..
Best Regards,
sleakerz said:
Hello,
That last night I wanted to flash a new ROM from 4.4 to 5.0.1.
I had some bugs, like my full SD card, therefore i installed nothing like apps or pictures .
So I try to re-flash the ROM again after a factory reset.
But, i can not reflash since it has wipe my SD card ..
So I managed to reconnect my phone and flash a recovery.
However, when I install a ROM (official google, or custom), it no longer detects my SD card
when the flash rom: E: unknown volume for path / sd-ext.
I try everything, I do not know how to repartition as originally my SD card.
I hope she is not dead as impossible to get out of my phone ...
I manage to mount the SD card, but still the sd-ext partition that does not exist ...
I just followed here: http://forum.xda-developers.com/goo...o-repairing-corrupted-data-partition-t2577447
everything works, but again, the sd-ext partition ..
I manage to get to the bootloader, recovery, I can flash a ROM anyway!
However, when I want to take a picture / install / sms .... I get an error "No SD card" or not avaialble space.
I need your help, since yesterday I have no phone ..
Best Regards,
Click to expand...
Click to collapse
Easiest way to solve is just to flash a factory image - follow ALL the instructions on this page: https://developers.google.com/android/nexus/images
Have a read of RootSU's post about file system issues after updating - explains how and why this happens, and how to fix. I would just do the above though, just so you know you're totally back to stock.
http://forum.xda-developers.com/google-nexus-5/general/sdcard-problems-upgrading-android-t2938749
it looks run, I can now see my sd card, install applications ...
However, some problem:
- In aborescence I have : sdcard, then 0 / legacy / OBB
Is it the same for you? Is like this for 5.0?
- When flash: E unknown volume to path sd-ext. Unable to unmount or mount /system, but I was able to boot; and it seems to work ..
- Clean master does not detect anything (unnecessary file or anything ..) Why?
- What recovery do you recommend?
- In storage: Various weighs 5.68gb, but there is nothing on it, how to clean?
sleakerz said:
it looks run, I can now see my sd card, install applications ...
However, some problem:
- In aborescence I have : sdcard, then 0 / legacy / OBB
Is it the same for you? Is like this for 5.0?
- When flash: E unknown volume to path sd-ext. Unable to unmount or mount /system, but I was able to boot; and it seems to work ..
- Clean master does not detect anything (unnecessary file or anything ..) Why?
- What recovery do you recommend?
- In storage: Various weighs 5.68gb, but there is nothing on it, how to clean?
Click to expand...
Click to collapse
- go to general > stick roll-up and find my data loss/recovery thread it explains all the /sdcard quirks
- you don't have sd-ext, that's why. you can't mount /system if its already mounted
- who knows?
- TWRP
- again check my recovery /loss thread and also my "sdcard problems" thread in general. particularly the part about lost Nandroid backups
Your best bet is to read those threads, find any lost backups and wipe storage via TWRP
"you don't have sd-ext, that's why. you can't mount /system if its already mounted"
It is normal ? Or it's a problem ? How can i fix it ?
I don't have any Nandroid backup, mine didn't worked ..
sleakerz said:
"you don't have sd-ext, that's why. you can't mount /system if its already mounted"
It is normal ? Or it's a problem ? How can i fix it ?
I don't have any Nandroid backup, mine didn't worked ..
Click to expand...
Click to collapse
Its normal.
Please find and read those threads.
I'm french, and so i didn't understand all , i'm in which case ?
If i understand well, i just have to wipe "data" partition ?
As you say, i have sdcard\0\0\0
Which one i have to moove ?
sleakerz said:
I'm french, and so i didn't understand all , i'm in which case ?
If i understand well, i just have to wipe "data" partition ?
As you say, i have sdcard\0\0\0
Which one i have to moove ?
Click to expand...
Click to collapse
Go to /data/media/0. That's where everything should be. When you're in /data/media/0, you shouldn't see any more "0" folders. If you do, take everything out of those "0" folders and put it all in /data/media/0
So for example you should have your photos in /data/media/0/DCIM. If you have /data/media/0/0/0/0/DCIM, obviously that is wrong.
Sometimes its easiest to wipe everything a d start fresh so copy any data you want to keep to PC, then flash the 5.0.1 full factory image, wiping your device back to default completely.
I just did this, i flashed a full factory image this morning, it was the same ..
I made a factory, wipe a new ROm, always the same, i made everything, nothing work .
the sdcard is boring me ..
I don't know what to do ..
sleakerz said:
I just did this, i flashed a full factory image this morning, it was the same ..
I made a factory, wipe a new ROm, always the same, i made everything, nothing work .
the sdcard is boring me ..
I don't know what to do ..
Click to expand...
Click to collapse
It can't be the same if you flash the full factory image. Please explain the exact steps you took to flash full factory image.
I downloaded : hammerhead-lrx22c-factory-0f9eda1b.tgz
I unzipped , to get the flash-all.bat script (http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701)
I make a factory reset
-- E : unknown volume for path [/sd-ext]
I launch the script : http://i.gyazo.com/177625d0c7f9ba60bc207e39536b0b31.png i've got this ..
What i can do now ?
sleakerz said:
I downloaded : hammerhead-lrx22c-factory-0f9eda1b.tgz
I unzipped , to get the flash-all.bat script (http://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701)
I make a factory reset
-- E : unknown volume for path [/sd-ext]
I launch the script : http://i.gyazo.com/177625d0c7f9ba60bc207e39536b0b31.png i've got this ..
What i can do now ?
Click to expand...
Click to collapse
Unpack all the .img files and do this
fastboot erase system
fastboot flash system system.img
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot flash boot boot.img
Read general > sticky roll-up> adb and fastboot.... If you get stuck with that
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
And it's seems to work, like you can see : http://i.gyazo.com/f84948dd6d444a47b114437b8878a314.png
Now i have a factory image, what can i do to use a new ROM / get root and unlock bootloader (if it's not done ?)
sleakerz said:
fastboot flash bootloader C:/image-hammerhead-krt16m/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-hammerhead-krt16m/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-hammerhead-krt16m/system.img
fastboot flash userdata C:/image-hammerhead-krt16m/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-hammerhead-krt16m/boot.img
fastboot flash recovery C:/image-hammerhead-krt16m/recovery.img
fastboot erase cache
And it's seems to work, like you can see : http://i.gyazo.com/f84948dd6d444a47b114437b8878a314.png
Now i have a factory image, what can i do to use a new ROM / get root and unlock bootloader (if it's not done ?)
Click to expand...
Click to collapse
You didn't do the commands I said. The erase was important
You would need to fastboot flash a custom recovery and either flash a custom ROM from that recovery or flash SuperSU from recovery depending if you want a new ROM or just root
i didn't do the command, but as you can see in the screen, just after "fastboot flash system C:/image-hammerhead-krt16m/system.img"
there is : "erasing system.. OKAY"
So i think it's good no ?
sleakerz said:
i didn't do the command, but as you can see in the screen, just after "fastboot flash system C:/image-hammerhead-krt16m/system.img"
there is : "erasing system.. OKAY"
So i think it's good no ?
Click to expand...
Click to collapse
I just wanted you to do it manually yourself, for userdata
Really thank for your help rootSU !
Now, everything works like a charm : )
sleakerz said:
Really thank for your help rootSU !
Now, everything works like a charm : )
Click to expand...
Click to collapse
Great news. Thanks for letting us know
No SD Card
Sorry if wrong thread but, my problem is:
If I'm in twrp it sees the sdcard and all things on it.
In system it doesn't see the things on the SD card.
Please don't return that I have to do a factory reflash.
If I try to download sth. It gives a toast "No Sd Card" .
I can't take it out because I've got a Nexus 4.
Pls. Help me.

[Q] Save files before flashing

In windows, I'd use a partition; in android, are there any folders (like /boot?) that are not deleted after I flash factory images (wiping data obviously)?
I'd like to know this because I have a lot of music, and don't want to have to re-copy it to my phone every time I flash it. (unfortunately N5 does not support sd cards)
My intention was to copy the music to /smth, will it get wiped?
sfs15 said:
In windows, I'd use a partition; in android, are there any folders (like /boot?) that are not deleted after I flash factory images (wiping data obviously)?
I'd like to know this because I have a lot of music, and don't want to have to re-copy it to my phone every time I flash it. (unfortunately N5 does not support sd cards)
My intention was to copy the music to /smth, will it get wiped?
Click to expand...
Click to collapse
There are only 1 partition which has a filesystem and does not get wiped after the factory reset. But it is only a 16 mb partition with a free space of 10 mb. It is mounted as /persist
bitdomo said:
There are only 1 partition which has a filesystem and does not get wiped after the factory reset. But it is only a 16 mb partition with a free space of 10 mb. It is mounted as /persist
Click to expand...
Click to collapse
No way to chance its size? I really need to backup my music somewhere in the phone and not have to copy it back every time!
sfs15 said:
No way to chance its size? I really need to backup my music somewhere in the phone and not have to copy it back every time!
Click to expand...
Click to collapse
There is, but complicated. Because of its location on the emmc you have to edit 6-8 partitions or more. And if there is something which uses the emmc in raw mode and not by the partitions then you could have problems. You will also lose the ability to flash stock rom.
The whole thing is unecessary if you are using twrp recovery and not cwm, because twrp will not fotmat the /data partition. It will just remove every folder and file except the /data/media/0 folder which contains all the files you have on the internal storage.
bitdomo said:
There is, but complicated. Because of its location on the emmc you have to edit 6-8 partitions or more. And if there is something which uses the emmc in raw mode and not by the partitions then you could have problems. You will also lose the ability to flash stock rom.
The whole thing is unecessary if you are using twrp recovery and not cwm, because twrp will not fotmat the /data partition. It will just remove every folder and file except the /data/media/0 folder which contains all the files you have on the internal storage.
Click to expand...
Click to collapse
You mean that if I install twrp recovery and then flash a stock factory image ( or for instance cyanogenmod 12) I won't lose /data/media/0 folder anymore?
sfs15 said:
You mean that if I install twrp recovery and then flash a stock factory image ( or for instance cyanogenmod 12) I won't lose /data/media/0 folder anymore?
Click to expand...
Click to collapse
No.
If you do factory reset in twrp then it will not delete that folder. It will not protrect you if you flash stock rom with fastboot with wipe.
bitdomo said:
No.
If you do factory reset in twrp then it will not delete that folder. It will not protrect you if you flash stock rom with fastboot with wipe.
Click to expand...
Click to collapse
Flashing without wipe will keep my applications and everything, so it's usually just useless ( not worth ); and flashing with wipe will delete any folders. Are you saying there's no way :/
sfs15 said:
Flashing without wipe will keep my applications and everything, so it's usually just useless ( not worth ); and flashing with wipe will delete any folders. Are you saying there's no way :/
Click to expand...
Click to collapse
Listen. If you use TWRP and do WIPE in TWRP it will not delete /data/media/0 folder. So with twrp you can flash roms with wipes without worrying to lose your music and pictures.
If you flash stock rom with fastoot you lose everything.
If you flash rom with wipe in cwm you lose everything.
bitdomo said:
Listen. If you use TWRP and do WIPE in TWRP it will not delete /data/media/0 folder. So with twrp you can flash roms with wipes without worrying to lose your music and pictures.
If you flash stock rom with fastoot you lose everything.
If you flash rom with wipe in cwm you lose everything.
Click to expand...
Click to collapse
Nice! This is very useful, I didn't know it was possible to flash factory images through a recovery; so I'll just have to move my music there and it'll stay forever. Just asking now, what will happen to the recovery (which should be stored in /recovery?) if I flash with fastboot, will it get wiped aswell? Thank you so much for your answers
sfs15 said:
Nice! This is very useful, I didn't know it was possible to flash factory images through a recovery; so I'll just have to move my music there and it'll stay forever. Just asking now, what will happen to the recovery (which should be stored in /recovery?) if I flash with fastboot, will it get wiped aswell? Thank you so much for your answers
Click to expand...
Click to collapse
That /data/media/0 folder is the folder of the internal storage. So your music is already there. To flash stock rom in twrp recovery you will need a flashable zip version of the stock rom. These does not contains recovery image so twrp will persist.
You cant flash stock rom from google's site in twrp.
bitdomo said:
That /data/media/0 folder is the folder of the internal storage. So your music is already there. To flash stock rom in twrp recovery you will need a flashable zip version of the stock rom. These does not contains recovery image so twrp will persist.
You cant flash stock rom from google's site in twrp.
Click to expand...
Click to collapse
Ah well it's not a solution then.. The /recovery folder gets wiped with fastboot -w?
sfs15 said:
Ah well it's not a solution then.. The /recovery folder gets wiped with fastboot -w?
Click to expand...
Click to collapse
Its complicated. That recovery folder if it exists, on stock roms there arent any folder called recovery, is a temporary folder. It is extracted from the kernel's ramdisk. As the its name says it is a ramdisk so if you turn off your phone it is gone and all its content.
Get a stock rom in a flashable zip. Do a wipe in twrp and flash the stock rom.
bitdomo said:
Its complicated. That recovery folder if it exists, on stock roms there arent any folder called recovery, is a temporary folder. It is extracted from the kernel's ramdisk. As the its name says it is a ramdisk so if you turn off your phone it is gone and all its content.
Get a stock rom in a flashable zip. Do a wipe in twrp and flash the stock rom.
Click to expand...
Click to collapse
Yeah, I think I'll do so, thanks a lot

Can't flash anything through recovery. (failed to mount "/cpefs" (Invalid Response)

Can't flash anything through recovery. (failed to mount "/cpefs" (Invalid Response)
I recently got this phone and I've been trying to install a custom rom, however, I can't seem to do anything while using TWRP. For some reason the file explorer shows no files and no /storage folder. It also says that the /system partition weights 0MB. I've already tried formatting the /data partition from EXT4 to extFAT, but it won't let me because it cannot mount the "/cpefs" partition, which I've been unable to find any information about.
I can flash the stock firmware trough ODIN, and I can flash the recovery. The internal storage works fine, but nothing shows up when I open TWRP.
I've tried formatting the data partition, repairing it, changing the partition format, wiping, installing a custom rom, installing superSU. But it won't allow me to do any of those things. Either "/data" can't be mounted, or "/cpefs" can't be mounted while formatting /data.
Cepillado said:
I recently got this phone and I've been trying to install a custom rom, however, I can't seem to do anything while using TWRP. For some reason the file explorer shows no files and no /storage folder. It also says that the /system partition weights 0MB. I've already tried formatting the /data partition from EXT4 to extFAT, but it won't let me because it cannot mount the "/cpefs" partition, which I've been unable to find any information about.
I can flash the stock firmware trough ODIN, and I can flash the recovery. The internal storage works fine, but nothing shows up when I open TWRP.
I've tried formatting the data partition, repairing it, changing the partition format, wiping, installing a custom rom, installing superSU. But it won't allow me to do any of those things. Either "/data" can't be mounted, or "/cpefs" can't be mounted while formatting /data.
Click to expand...
Click to collapse
Which phone you're using?
J7 Pro?
Secondly make sure to enable OEM unlock options from the stock ROM's Developer option!
Thirdly check the recovery patches etc of the desired recovery's webiste (you're using) and flash it through the recovery if you're facing the problem!
It'll work, mostly some users said they fixed this by the above mentioned step!
If no luck, maybe someone will sort it out for ya, soon! :laugh:
Good Luck! :good:
sosukeaizen said:
Which phone you're using?
J7 Pro?
Secondly make sure to enable OEM unlock options from the stock ROM's Developer option!
Thirdly check the recovery patches etc of the desired recovery's webiste (you're using) and flash it through the recovery if you're facing the problem!
It'll work, mostly some users said they fixed this by the above mentioned step!
If no luck, maybe someone will sort it out for ya, soon! :laugh:
Good Luck! :good:
Click to expand...
Click to collapse
Thanks for your reply. The model of the phone is SM-J710MN. The OEM unlock option is enabled, otherwise I wouldn't be able to flash the recovery. I am trying to use TWRP. Where would I find a recovery patch for this model?. Everything works fine in the recovery, but it won't let me wipe/format/repair or change ANY partition. It can't mount anything, and the error that I see the most often is that it cannot mount the /cpefs partition.
Cepillado said:
Thanks for your reply. The model of the phone is SM-J710MN. The OEM unlock option is enabled, otherwise I wouldn't be able to flash the recovery. I am trying to use TWRP. Where would I find a recovery patch for this model?. Everything works fine in the recovery, but it won't let me wipe/format/repair or change ANY partition. It can't mount anything, and the error that I see the most often is that it cannot mount the /cpefs partition.
Click to expand...
Click to collapse
try flashing a lower version of the same frimware you've already installed e.g if the latest is nougat 7.1.1 with the recent security update, try flashing with another nougat version that is lower to the recent one's security patch #

0 mb in TWRP internal storage

I searched for an answer and noticed it's a common issue. I am trying to flash a kernel on to my already flashed rom. I was wondering if there is a more current fix. More importantly, how can this be avoided in the future. Thank you guys!
Its caused by a bug/error with either the filesystem or encryption.
Did you wipe data after flashing the new ROM? Data from stock usually doesn't work with custom ROMs.
Do you have a PIN/password on Android?
Are you using the latest build of TWRP?
Press the menu button at the bottom of the screen in TWRP and post what the error message is in the red text.
It's caused by no root access
djhulk2 said:
It's caused by no root access
Click to expand...
Click to collapse
Something is probably wrong with the data partition. TWRP should always have root access.
Try in TWRP:
Wipe > Format Data > Slide to format
This will erase the data partition, so backup everything to a PC in Android first if needed. It should allow TWRP to mount /data again.
KemikalElite said:
Something is probably wrong with the data partition. TWRP should always have root access.
Try in TWRP:
Wipe > Format Data > Slide to format
This will erase the data partition, so backup everything to a PC in Android first if needed. It should allow TWRP to mount /data again.
Click to expand...
Click to collapse
I've debated on doing this. I'm not worried about losing pictures texts etc as they're backed up.
I read that it essentially leaves the device with no OS. If that's wrong please let me know!
I have found that if I choose Slot A and reboot system it reboots me in to TWRP. If I choose Slot B it runs the OS like normal (except I still have issues using Facebook and it's services).
The ROM works and I can perform all the custom mods on it. I just want to flash a kernel and the problem persists. 0 mb in storage.
It's trial and error at this point. Fail fast fail forward. I have another phone I can use but I love the OnePlus. Any help will be appreciated!
https://andi34.github.io/faq/faq_twrp.html
I'm not willing to risk it until I know how to get the custom ROM on to the storage to flash it.
Yes formating by typing in yes will wipe it all,everything including pictures, with no rom on it at all. If u choose to do that, don't close twrp. Instead you should be able mount after wards, once mounted transfer the magisk zip, twrp, and your custom rom(has to be 1.5gb not 200mb through magisk). Flash magesik, install ram disk twrp, install rom. That was a method I've done before but if u want to keep everything there is other way
fastboot boot twrp.img, that command boots twrp if u have it or don't, installing to ram disk makes it permant...this boot command is just a one time thing each time. It's what I do when new firmware update, I loose root but I regain it each time
Never heard of formating data removing the OS, that would be if you wipe the system and normal wipe is like a factory data reset and therefore will not wipe your phone of the OS
djhulk2 said:
Yes formating by typing in yes will wipe it all,everything including pictures, with no rom on it at all. If u choose to do that, don't close twrp. Instead you should be able mount after wards, once mounted transfer the magisk zip, twrp, and your custom rom(has to be 1.5gb not 200mb through magisk). Flash magesik, install ram disk twrp, install rom. That was a method I've done before but if u want to keep everything there is other way
fastboot boot twrp.img, that command boots twrp if u have it or don't, installing to ram disk makes it permant...this boot command is just a one time thing each time. It's what I do when new firmware update, I loose root but I regain it each time
Click to expand...
Click to collapse
I attempted to format. It said
"failed to mount /data (device or resource busy)
"unable to mount storage"
Try this in recovery, sometimes its known to work.
Wipe > Advanced Wipe > Check Data and press Repair or Change File System > Change File System > Change it to EXT2.
Repeat the same process selecting Ext4
Wipe > Advanced Wipe > Check Data and press Repair or Change File System > Change File System > Change it to back to EXT4.
Try formatting data after this.
drey4211 said:
I attempted to format. It said
"failed to mount /data (device or resource busy)
"unable to mount storage"
Click to expand...
Click to collapse
Since you dont care about the data on the phone I would just do 1 of 2 things. 1st I would reflash twrp on to you phone if that doesn't work then I would just grab the fastboot ROM and just flash your phone back to full stock reroot and install twrp from scratch. I would not try to start repairing partitions. I wouldn't want to worry about screwing up the EFS partition
Well in an update, I formatted the
Storage and now I'm stuck in bootloader screen. It's unlocked but I'm having a hard time flashing a ROM through adb.
I use the twrp version 3.3.1-2
Best would be to just use fast command to boot it
But it should be under wipe/format data/then type in yes
That was what I was trying to have you avoid. If your can boot to fastboot download the fastboot ROM I told you to and run the flash-all.bat file. If your on 9.5.8 make sure you use the fastboot ROM of the same version. Do not flash azip of a different version firmware like 9.5.7.
It happens to me any time I'm in twrp and flash a rom then reflash twrp. It doesn't matter if I flash Magisk or not the issue always happens. What I do is use a USB C flash drive and plug it in when I want to flash/backup a rom. This way I can always access it. After flashing any rom then booting I'm always able to access my internal storage again. It seems like a bug in twrp.
The strange part is when this bug happens your files are encrypted in a 0 folder but you can still copy from your PC to your internal storage while in twrp.
I essentially soft bricked my device. Called OnePlus and they got me up and running. That's awesome that they have that service!
Are you removing all security? Pattern, pin and fingerprints? Are you decrypted? Never had an issue with flashing a ROM causing these issues which is why I'm asking. Something you've done at some point is causing this
I'm not sure what that was. Ironically enough I am now stuck in TWRP boot loop. Hopefully I can figure this out otherwise I have to call oneplus again.
I will admit I may not know everything but it's trial and error. I don't have anyone to really teach me this so I try to read the forums and learn. You guys have been great!
ajsmsg78 said:
It happens to me any time I'm in twrp and flash a rom then reflash twrp. It doesn't matter if I flash Magisk or not the issue always happens. What I do is use a USB C flash drive and plug it in when I want to flash/backup a rom. This way I can always access it. After flashing any rom then booting I'm always able to access my internal storage again. It seems like a bug in twrp.
The strange part is when this bug happens your files are encrypted in a 0 folder but you can still copy from your PC to your internal storage while in twrp.
Click to expand...
Click to collapse
I've the same issue.. did you find a fix? So annoying

Categories

Resources