Encryption issue : can't mount partition Android 10 - no passwird - Xiaomi Redmi Note 7 Questions & Answers

Hello guys,
I have an issue regarding this Havoc ROM under Android 10. When I fash it and reboot it, it encrypt my /data, and recovery ask me for an unknow password.
I have already test to set up a PIN code into parameter in adroid but it's doesn't work.
I have tried to change the data partition ext4 -> ext2 -> ext4 nothing has changed.
Because I can't mount /data partition I can't wipe dalvik and cache, so I can't get last updates ....
I have used twp and orange fox recovery, they both make same issues.

Related

[Q] Stuck on encrypted boot

I rooted my i9500.
I flashed CM ROM and encrypted my device.
Later I updated my CM ROM using recovery mode.
When I powered on my device I was asked to enter my encryption password.
After taht I am stuck at the Android logo (decrypting logo).
I tried the following using recovery mode:
- I wiped /data
- I wiped cache
- I wiped Dalvik cache
- I set it to factory settings
All this didn't help.
I found 2 (for me not working) solutions:
mke2fs -t ext4 /dev/block/mmcblk0p12
and
mke2fs -t ext4 /dev/block/mmcblk0p15
No success.
Does anyone have a suggestion?
Thank you in advance!
The logic when booting is that vold tries to mount /data and if that fails, tries to read the master key from the crypto footer, setup decryption and then tries to mount it again.
So, formatting /data should be enough, but I think simply using the 'wipe' options from most recovery will only try (and fail) to delete files on the previously mounted filesystem. I don't know which partition is mounted as /data on your device, but the CM tree for i9500 suggests it's mmcblk0p21, not 12 or 15.

Purity rom f2fs

I was considering attempting to use the f2fs filesystem that is discussed in original android development but I'm a bit confused with what to do to load a new rom. Can anyone explain if it will work with the purity rom and what I need to do to get it working? Or also let me know if its not possible.
Yes, I have used Purity with F2FS, but this filesystem is unstable because the system hangs usually (I have also tried with SlimKat and RastaKat with same hangs copying many files).
Basically:
- You must flash "twrp-unofficial-2.7.1.0-f2fs.img" as a normal recovery and change /data, /cache and /system (optional) to F2FS.
You will find this option under Wipe -> Advanced Wipe, then select only one partition and press the "Repair or Change File System" button for change to F2FS. Use Wipe -> Format Data also (you will lost data in /sdcard).
- Install Purity ROM (if /system is converted to F2FS, you must use "convert2F2FS.jar" for modify ROM zip and must install this new ROM).
- If /system is F2FS, install "KTManta_F2FS-26-06-2014-ALLF2FS.zip" Kernel or "KTManta_F2FS-26-06-2014_CACHE_DATA_PARTITIONS.zip" else.
patzzz said:
Yes, I have used Purity with F2FS, but this filesystem is unstable because the system hangs usually (I have also tried with SlimKat and RastaKat with same hangs copying many files).
Basically:
- You must flash "twrp-unofficial-2.7.1.0-f2fs.img" as a normal recovery and change /data, /cache and /system (optional) to F2FS.
You will find this option under Wipe -> Advanced Wipe, then select only one partition and press the "Repair or Change File System" button for change to F2FS. Use Wipe -> Format Data also (you will lost data in /sdcard).
- Install Purity ROM (if /system is converted to F2FS, you must use "convert2F2FS.jar" for modify ROM zip and must install this new ROM).
- If /system is F2FS, install "KTManta_F2FS-26-06-2014-ALLF2FS.zip" Kernel or "KTManta_F2FS-26-06-2014_CACHE_DATA_PARTITIONS.zip" else.
Click to expand...
Click to collapse
Where do you get convert2F2FS.jar?
Using f2fs with omnirom. All partition were formatted with f2fs. Having no issue with last update. You will find all resources in my thread

Bootlooping out of nowhere, cant mount /data

All,
I have a SM-G35FD which is in a bad state. My phone started boot looping one morning after it was fine the night prior (3 days ago now) and I believe an auto-update may be the root cause. I am trying to find any way to access the internal memory to recover data, however I am not able to mount /data or /sdcard. I have not done much with my phone besides adding root, no CFWs ever, and no custom recoveries (prior to today). Also, I lock my phone with my thumbprint. I did not go through any encryption setup on my device.
Details about the initial problem:
It started boot looping several times and at some point it shows a black screen with red text. after letting the battery drain (because I could not force reboot) i was able to get into stock recovery and wipe the cache and reboot; this led to occasionally getting to the security screen which would freeze 1-2 seconds after logging in.
Things I have tried (19mar2017)
got into stock recovery, wiped cache, rebooted. Freezes at security login screen
Installed TWRP to get more functionatity. Was able to install TWRP
used TWRP to try to mount Data, but it will not mount (only System, Cache, EFS, and USB OTG will mount)
used TWRP to wipe Dalvik and Cache only. Errors show "cannot mount /data"
used TWRP to install CWF, freezes during extraction (4-5%)
can use ADB to run shell
UPDATE 20mar2017: Ran "Wipe -> Advanced Wipe -> *Select System Partition -> Repair or Change File System" on /system. I think this was a bad move as now I can access the /sdcard folder and its missing all data. I didn't think it would matter since the options under Wipe show "System" and "Internal Storage" separately.
Perhaps data does not mount because it needs my thumbprint? Is there anything I can try to backup the internal user memory partition and my fingerprint signatures? any way to access the user data?
Thanks to all for their time!
I found a video ( https://www.youtube.com/watch?v=VJRKuQf0puE ) which suggest that I can use TWRP to "change the filesystem" for the /System (and other) mounts in order to fix the /data mount. This can be accessed using Recovery(TWRP) -> Wipe -> Advanced Wipe -> *Select System Partition -> Repair or Change File System -> Change File System -> Options { EXT2, EXT3, EXT4, FAT, exFAT, F2FS }. Since my goal is to recover the "User Data" partition, I would not perform this on "Internal Memory" but would on the other partitions. Hopefully this would allow me to reinstall the Stock FW and allow me to login to the Internal Memory to access my files.
Does anyone know if using "Repair or Change File System" will impact the Internal Storage?
Try to reinstall the Stock Firmware Through Odin, I had this problem also when I used to own a J5... All I did was just Reinstall the stock firmware... if you want to find the stock firmware.. just go to sammobile.com

E: Unable to mount on hard reset screen and while wipe in twrp. Phone stuck on logo

I'm a noob here. Below is the sequence of events.
1. I was already running on low internal storage (No external sdcard)
2. Phone switches off due to low battery
3. Switched on after a full battery and got this msg-"encryption unsuccessful with 'reset all' button"
4. After few restarts stuck at logo screen
5. Tried hard reset (for factory reset)- getting E: unable to mount cache recovery log
6. Tried wiping cache system dalvik data through twrp- getting unable to mount data system cache error
Tried changing filesystem to ext4 but that didnt work. Tried checking other threads but couldnt find a similar scenario.
Thanks!
defeated24 said:
I'm a noob here. Below is the sequence of events.
1. I was already running on low internal storage (No external sdcard)
2. Phone switches off due to low battery
3. Switched on after a full battery and got this msg-"encryption unsuccessful with 'reset all' button"
4. After few restarts stuck at logo screen
5. Tried hard reset (for factory reset)- getting E: unable to mount cache recovery log
6. Tried wiping cache system dalvik data through twrp- getting unable to mount data system cache error
Tried changing filesystem to ext4 but that didnt work. Tried checking other threads but couldnt find a similar scenario.
Thanks!
Click to expand...
Click to collapse
Ext4 is the default filesystem. Change it to fat and then revert back to ext4 again. It will repair your partition.
shivamgupta1996 said:
Ext4 is the default filesystem. Change it to fat and then revert back to ext4 again. It will repair your partition.
Click to expand...
Click to collapse
Tried doing that. I get a message-
E: Error changing file system
updating partition details...
E: unable to mount /system /cache /data
ONE MORE IMPORTANT THING- twrp shows internal storage as 0 MB and no OS installed.
I think I corrupted my partitions or something to do with encryption.
defeated24 said:
Tried doing that. I get a message-
E: Error changing file system
updating partition details...
E: unable to mount /system /cache /data
ONE MORE IMPORTANT THING- twrp shows internal storage as 0 MB and no OS installed.
I think I corrupted my partitions or something to do with encryption.
Click to expand...
Click to collapse
Which partition did you tried to change?
shivamgupta1996 said:
Which partition did you tried to change?
Click to expand...
Click to collapse
I tried cache and data partitions to fat from ext4.
Dalvik cache partition is something ghat is showing as- "file system options are not available for this partition"
defeated24 said:
I tried cache and data partitions to fat from ext4.
Dalvik cache partition is something ghat is showing as- "file system options are not available for this partition"
Click to expand...
Click to collapse
Change data or system partition. If system partition shows 0mb in details section after tapping on 'change or repair fs', then change fs of 'system' partition.
But if data shows zero, then change fs of 'data'.
shivamgupta1996 said:
Change data or system partition. If system partition shows 0mb in details section after tapping on 'change or repair fs', then change fs of 'system' partition.
But if data shows zero, then change fs of 'data'.
Click to expand...
Click to collapse
Both system and data partitions (and cache too) are showing 0mb size in details. I tried changing fs but arriving at the same error.
No matter what operation I try to do, i see unable to mount system data cache error lines coming up.
i am having same prblem i tried all this bt always got error unable to repair system data cache
i tried flashing qfil method not works still stuck on boot

DATA partition is on F2FS by default?

I've unlocked my new MI9T to install xiaomi.eu rom.
First of all, after unlock, i've installed the official TWRP and i've formatted (not wiped) the DATA partition.
I've noticed that TWRP logged that it was formatting the DATA partition with mkfs.f2fs ...... really strange...
So, i've rebooted to TWRP and changed the DATA partition type to EXT4 and formatted it... after a reboot i've tried to format it again and it was formatted again in F2FS (like F2FS was the default selection).
So i've tried to switch to OrangeFox recovery (i suspected a bug in TWRP)... but the same behaviour...seems that F2FS is the default partition type for my DATA partition.
I've installed the xiaomi.eu (the kernel in this rom is the official one, and i dont think that it supports F2FS) and the rom boot ok, without problems.
I've tried also to force ext4 on DATA, but with this partition type the rom never boot (it remains on the android bootanimation).
So right now, i see a f2fs partition type on my data partition, with original kernel.
I've tried also to change the cache partition to f2fs (by default this partition is formatted in ext4) but in this way, the rom boots, but i can't see the cache partition, seems that effectively the kernel can't mount the cache partition.
so i've unpacked the official miui_DAVINCIEEAGlobal_V11.0.4.0.QFJEUXM_5001481fbb_10.0 rom, and i've found that in the vendor partition, under (vendor)/etc/fstab.qcom there is this entry for DATA partition:
Code:
/dev/block/bootdevice/by-name/userdata /data [B]f2fs [/B]noatime,nosuid,nodev,nodiscard,fsync_mode=nobarrier,reserve_root=32768,resgid=1065 wait,check,fileencryption=ice,wrappedkey,quota,reservedsize=128M,latemount
So, this phone uses by default a F2FS partition type for DATA????
gulp79 said:
...so i've unpacked the official miui_DAVINCIEEAGlobal_V11.0.4.0.QFJEUXM_5001481fbb_10.0 rom, and i've found that in the vendor partition, under (vendor)/etc/fstab.qcom there is this entry for DATA partition:
So, this phone uses by default a F2FS partition type for DATA????
Click to expand...
Click to collapse
Yes - stock QFJEUXM 11.0.4, never formatted (or wiped) Data, see screenshot from /vendor/etc/fstab.qcom

Categories

Resources