Bricked because of encryption? - Lenovo P2 Questions & Answers

Today I tried to install Cardinal-AOSP on my Lenovo P2. I had no problems during the installation but after booting for the first time I got "Encryption unsuccessful" with an option to "Reset phone" to perform a factory reset so I selected this option. Phone rebooted but i still got the same "Encryption unsuccessful" message.
This is where the trouble started because TWRP did not ask my the password (swipe pattern) anymore to decrypt like it did before.
I can't wipe /data and also not repair or change filesystem. The errors I get are;
"Could not mount /data and unable to find crypto footer." and a lot of "Failed to mount '/data' (Invalid argument)".
In TWRP under "Mount" I can't select Data anymore.
I also can't install OS roms (.zip sideloaded) anymore because of the /data partition.
So OS won't boot because of encrypted /Data and TWRP won't let me mound the /Data partition to make modifications.
I still have full access to ADB and fastboot so that is my last hope.
Is there any shell command I can still try? Manual data formatting? Or maybe an alternative recovery?
Update:
So far I have figured out that /dev/block/mmcblk0p56 is the data partition and that "fdisk -l /dev/block/mmcblk0p56" has "Disk /dev/block/mmcblk0p56 doesn't contain a valid partition table" as output.
/dev/block/mmcblk0p56 has an entry in /etc/fstab: "/dev/block/mmcblk0p56 /data f2fs rw 0 0"
"mount /dev/block/mmcblk0p56" gives "Invalid argument" as output and so does "mount -t f2fs /dev/block/mmcblk0p56 /data"
Is it possible that I need to re-format /dev/block/mmcblk0p56 to f2fs? And if so, how?

Related

cm6.0.1 mounting /data and /system

while running CM 6.0.1 i attempted to format the internal storage being the newb that i am, and not the device cannot mount the internal storage.
i have tried to wipe, restore, clear data and whatnot but i just get stuck at the splash screen
is there some command in adb that i can fix this with? or any way to fix it??
in recovery it says
E:cant mount /dev/block/mmcblk0p2
E:cant mount CACHE:recovery/command
nevermind
somehow i managed to restore to a backup of the stock rom and go from there

CWM mounts and storage question

I was changing the "mount /system, /cache, /data" options for something then realized I forgot what the original order of the "mount or unmount" should be. Currently it is:
-mount /system
-unmount /cache
-mount /data
-mount USB storage (at the bottom)
I'm asking because when I go to settings->storage I get the "Unfortunately, settings have stopped" error. I've searched other threads and found one exactly like this from a few months ago but unfortunately there were no replies. Does anyone know what these values should be by default? Its found by booting into CWM recovery and selecting mounts and storage. Thanks.
Moonkae said:
I was changing the "mount /system, /cache, /data" options for something then realized I forgot what the original order of the "mount or unmount" should be. Currently it is:
-mount /system
-unmount /cache
-mount /data
-mount USB storage (at the bottom)
I'm asking because when I go to settings->storage I get the "Unfortunately, settings have stopped" error. I've searched other threads and found one exactly like this from a few months ago but unfortunately there were no replies. Does anyone know what these values should be by default? Its found by booting into CWM recovery and selecting mounts and storage. Thanks.
Click to expand...
Click to collapse
Mine is
mount /system
mount /data
unmount /cache
mount /sdcard
mount /sd-ext
format /system
format /data
format /cache
format /sdcard
format /sd-ext
mount usb storage

Problems with data partition

Hi,
I tried to flash viperOS using squid twrp for moto G5S, but something in the process i think i did wrong.
My phone model is montana xt1790.
I unlocked the bootloader.
I tried to install the recovery, but had same problem than @dau999
dau999 said:
Bootloader gives me a notification that the img is not signed or corrupt (squids one)
Click to expand...
Click to collapse
I tried to flash "no-verity-opt-encrypt-5.1.zip" file posted as solution here https://forum.xda-developers.com/showpost.php?p=74813124&postcount=23.
After this i have working the recovery, but i believe this is what did wrong:
With debug mode enabled, after a wipe clean (Cache, Data, Dalvik/ART and system) and format data (wipe all your apps, backups, pictures, videos, media and removes encryption on internal storage) got this errors:
Code:
Could not mount /data and unable to find crypto folder.
Failed to mount '/data' (Invalid argument)
Unable to recreate /data/media folder.
Unable to mount storage.
Unable to mount /data/media/TWRP/.twrps
Failed to mount '/data' (Invalid argument)
After this errors i flashed ViperOS, but after first boot it, first thing viper OS ask me was the phone password, after i enter it, the phone show up a message saying that password is ok but data is corrupt, restarting and trying to fix my phone without success (same errors like failed to mount /data)
Also i tried to use the "repair or change file system" selecting Data partition, twrp show me this: http://oi65.tinypic.com/2prin8y.jpg, also i got this errors:
Code:
/sbin/fsck.f2fs /dev/block/mmcblk0p54 process ended with ERROR: 255
Unable to repair Data
What should i do?, i don't know is related with an encryption on data partition, or if this can be solve.
EDIT:
Found the solution in reddit: www.reddit.com/r/AndroidQuestions/comments/7w5c75/used_the_format_data_option_in_twrp_recovery_on/
Just fixed the issue after making a second format in TWRP ( WIPE > FORMAT DATA)

[Q] S8500 - Unable to mount data

Hello everyone,
Phone: S8500
TWRP: 2.8.7.0
Starting the new OmniRom I'm getting the following error: "Encryption unsuccsessful".
During the installation I got the error (TWRP): E: Unable to mount '/data'.
Terminal "cat /etc/fstab" output:
/dev/mapper/lvpool-system /system ext4 rw
/dev/block/mtdblock2 /cache ext3 rw
/data f2fs rw
/dev/block/mmcblk1p1 /external_sd vfat rw
TWRP -> Wipe -> Advanced Wipe -> "Data" -> Repair or Change File System:
Present: No Removable: No
Size: 0 MB Used 0 MB
Free: 0 MB Backup Size: 0 MB
Click on Button "Repair File System":
Repairing Data using fsck.f2fs ...
E: /sbin/fsck.f2fs process emdem with ERROR=1
E: Unable to repair '/data' .
E: Error repairing file system
Click on Button "Change File System":
Mount Point: /data
Current file system: f2fs
Click on EXT4:
E: Block device not present. cannot wipe Data
E: Unknown MTP message type: 1
E: Error changing file system
...
Same with EXT2, FAT, EXT3, F2FS.
Maybe someone can help me out.
Best Regards
Dima
DimaX154, Hi, I would try to flash first Bada 2 through multiloader, and then install Android.
Union_Jack said:
DimaX154, Hi, I would try to flash first Bada 2 through multiloader, and then install Android.
Click to expand...
Click to collapse
Dear Union_Jack,
thank you for the help!
I was able to flash bada. Phone is running again. (with Bada)
Trying to install Android again, I'm getting the same problem.
Best Regards
Dima
DimaX154 , Strange, usually helps firmware Bada or change the file system.
Try again repair or change file system for cache, data and system.
Hackarama

Unable to format using twrp - Unable to format to remove encryption

Hello everybody. I need Your help.
Last days i tried some ROMs. I have TWRP and before every new upload i FORMAT DATA(Wipe) and of course wipe cache, system
Today when I try to format I have error:
Unable to wipe '/data' -- unknown file system 'auto'
Unable to format to remove encryption
when i typed :
cat /etc/fstab
i got:
/dev/block/mmcblk0p56 /data ext4 rw 0 0
I read some posts of forum and ?solution? to repair is to type this:
make_ext4fs /dev/block/mmcblk0p56
after this i had 0MB Internal Storage and many errors when try to format any data, cache, internal....
So i changed to f2fs and back to ext4 and Internal Storage is OK but still can't format data
Now I can upload ROM but when it starting i have monit "Encryption unsuccessful and interrupted"
PLEASE HELP i can't use my Lenovo :crying:
btw. my linux knowledge is not very well

Categories

Resources