F2FS Data Corruption (Major bug) - Nexus 7 Q&A, Help & Troubleshooting

Hey,
I have a Nexus 7 2012 32GB. It was previously running pretty slow but then I installed SlimKat with F2FS and it started running fine again and I'm very happy with it. Today and earlier this week, I tried installing Android 5.1.1 since I like the Lolipop UI but I was met with a major problem.. I tried the latest nightly of CyanogenMod 12.1, Dirty Unicorns 9.7 (and 9.8) and Blisspop and their problem is that after one boot, the /data partition got corrupted.. I tried repairing it but got ERR=255 and the only way to repair it was to change /data to ext4 and then format to f2fs back again. All four ROMs are confirmed to work with F2FS... I have reverted back to SlimKat 4.4.4 with a backup since it's the only ROM that doesn't corrupt my /data partition. The device doesn't boot when the data partition is damaged and the recovery sometimes crashes (I use TWRP 2.8.7.0). Is there a fix to this or will it be fixed in the future? I'd be happy to provide any logs needed. I use Opengapps pico altough I don't think that really matters. F2FS makes my device much faster but the corruption problem is too major for me..
Thanks,
Aurora

Related

Nexus f2fs mistake

I converted a stable version of cyanogenmod into f2fs format. Everything was going well until I accidentally updated it and now it just sits on a bootloop. Anyone have any ideas how I can fix this without wiping. No i didnt get to create a nandroid.
lovesmyandroid said:
I converted a stable version of cyanogenmod into f2fs format. Everything was going well until I accidentally updated it and now it just sits on a bootloop. Anyone have any ideas how I can fix this without wiping. No i didnt get to create a nandroid.
Click to expand...
Click to collapse
The update you installed likely reformatted your system and cache partitions back to ext4. Try reformatting them and reflashing your ROM.
Alternatively, you could also try just flashing an f2fs-compatible kernel first to see if that gets it booting for you. That may be all you need if /data is still formatted as f2fs.
Did you used TWRP to convert to f2fs ?

Factory image / OTA and F2FS

Hi there,
I searched a lot on the subject, but I'm still not sure if/how this would work:
Can you install a factory image or an OTA update on a F2FS formated Nexus 7 2012?
Currently I have a lollipop custom ROM and kernel, with all F2FS and TWRP running on my Nexus 7. Could I install a custom F2FS kernel on my F2FS formated Nexus 7, like Phantom, and then only flash system.img and userdata.img from a lollipop factory image? Then, could I simply flash future OTA update zips?
Thanks!
It will just format it back to ext4. I've been trying to get f2fs to wepork on mine but I can't get the damn thing to recognize and side load. So I keep having to reflash official builds and it just rewrites everything to the stock build. I flashed the whole thing as f2fs wiped the device.
bill3508 said:
It will just format it back to ext4. I've been trying to get f2fs to wepork on mine but I can't get the damn thing to recognize and side load. So I keep having to reflash official builds and it just rewrites everything to the stock build. I flashed the whole thing as f2fs wiped the device.
Click to expand...
Click to collapse
Hi,
I got as far as (in short):
- Flash factory image
- Flash openrecovery TWRP
- Backup system and data (you have to make some space on system first, e.g. by moving some apps over to data)
- Format system, cache and data to F2FS in TWRP
- Restore system and data backup with "Use rm -rf instead of formatting" checked in TWRP settings
- Flash boot.img from Phantom kernel
I got this to work with LP 5.02, but for some reason with 5.1 the system restore failed so far... As for updates, I thought that, in the same way, you could just restore a system backup of a newer factory install over your actual system, but I haven't tried that yet.
Then again, this all is quite tedious. I'm not very advanced in img or ROM modification, but I'd like to know what one would have to modify in factory images or ROMS to make them F2FS compatible. For JB there are ressources out there, but I haven't found anything for LP so far... Anyone?
All I did was on 5.1 flashed a F2FS kernel then in TWRP formated cache. It was like night and day.
Simply formating cache to f2fs makes already such a difference? Interesting, will give this a try. This would be a fairly easy solution to have a fast stock experience. I might try formating data to f2fs as well (and restoring backup), but leaving system on ext4. This way you may be able to simply flash the system image from future factory images to update your system, that would be a good enough solution for me.
First try updating to 5.1.
5.1 is running and performing so much better than on 5.0.2.
Even with ext4 filesystem and stock kernel.
Sent from my Nexus 7 using XDA Free mobile app
I already am on 5.1. Intitially it ran pretty good indeed, but I'm starting to get occasional lags again now. Not as bad as before, but still not as smooth as with JB when it was new... Like I said earlier, I haven't managed to do the TWRP f2fs backup and restore method for some reason with 5.1, but keeping system on ext4 might do the trick, so I'll try that and see if it improves upon stock 5.1...
rbeavers said:
All I did was on 5.1 flashed a F2FS kernel then in TWRP formated cache. It was like night and day.
Click to expand...
Click to collapse
Hey rbeavers, what kernel did you flash? I tried with Phantom Kernel r1 and r2, and I get NFC force close at startup, which prevents from using the tablet...
Thanks.
maksmtl said:
Hey rbeavers, what kernel did you flash? I tried with Phantom Kernel r1 and r2, and I get NFC force close at startup, which prevents from using the tablet...
Thanks.
Click to expand...
Click to collapse
I'm using Franco Kernel(r82). It supports F2FS(formatted /cache and /data to F2FS) and it works flawlessly.
TWRP backups fail on stock 5.1 with f2fs/franco?
I downloaded the 5.1 factory image; installed it using the included batch file; installed franco r82 and formatted /cache and /data to f2fs. It seems to run reasonably well, but TWRP 2.8.5.1 and 2.8.6.0 both fail to make a backup, giving an unspecified error when backing up the data partition. Do you experience the same thing? Do you know of a workaround?
maksmtl said:
Hey rbeavers, what kernel did you flash? I tried with Phantom Kernel r1 and r2, and I get NFC force close at startup, which prevents from using the tablet...
Thanks.
Click to expand...
Click to collapse
Franco Kernel(r82) sorry so late.
Still working great! Only gripe 2 - 3 second delay on waking up.
rbeavers said:
All I did was on 5.1 flashed a F2FS kernel then in TWRP formated cache. It was like night and day.
Click to expand...
Click to collapse
rbeavers said:
Franco Kernel(r82) sorry so late.
Still working great! Only gripe 2 - 3 second delay on waking up.
Click to expand...
Click to collapse
Running really good so far with Franco Kernel and Cache and Data in f2fs. Thanks guys.
I also don't get that wake delay btw. Maybe wipe cache again?
@CCarson: I made a successful backup using TWRP 2.8.6.0. Maybe backup your sdcard and then re-format data. Also, don't know if this applies to you, but if you have the 16GB model, the 5.1 factory image formated mine to 8GB, so I had to re-format data once to get it back to 16GB and only then I changed it to f2fs.

F2FS - recovery not compatible?

I was trying to convert my system, data and cache to F2FS but after the conversion I can't use Data anymore (apparently it cannot mount data and system anymore).
Could be a problem LinkedIn to the grarak modded 3.0.2 I'm using for Exodus 6?
Any feedback is welcome!
Up
Most probably as the official one from twrp supports f2fs natively.
I would recommend to go back to official twrp convert to f2fs properly from there and then flash the modified one, do this if you are brave enough, i havent tried this method but it should work. If all fails stay on ext4 till garak or twrp updates their twrp versions.
Thanks for you answer... I thought the same... I'll try as the new phone will come and let you know...
IlD4nX said:
I was trying to convert my system, data and cache to F2FS but after the conversion I can't use Data anymore (apparently it cannot mount data and system anymore).
Could be a problem LinkedIn to the grarak modded 3.0.2 I'm using for Exodus 6?
Any feedback is welcome!
Click to expand...
Click to collapse
I got the same error for my Redmi Note 3 ... tried 3.0.0.0, 3.0.2.2, but nothing. then a guy suggested this:
https://www.androidfilehost.com/?fid=24591000424943818
and it worked. Now I can't boot on f2fs, just trying to make it work on 6.0.1 Mokee rom

[Fixed] BOOTLOOP

Hello, Everyone...... I unlocked the bootloader of my Moto G4 plus, installed a custom recovery (TWRP 3.1.0 Shreps) and tried to flash lineage OS latest build with Open Gapps pico, All i get is a bootloop. The same happens with Omnirom and other roms... So far only RR and Invicta OS booted up successfully.... rest others give me a bootloop... why? Did i miss something? Please Help me
Also the cache partition and data partition are formatted in f2fs....can anyone tell me the default formats of these two partitions? Maybe f2fs is creating an issue here?
Amogh Thambi said:
Hello, Everyone...... I unlocked the bootloader of my Moto G4 plus, installed a custom recovery (TWRP 3.1.0 Shreps) and tried to flash lineage OS latest build with Open Gapps pico, All i get is a bootloop. The same happens with Omnirom and other roms... So far only RR and Invicta OS booted up successfully.... rest others give me a bootloop... why? Did i miss something? Please Help me
Also the cache partition and data partition are formatted in f2fs....can anyone tell me the default formats of these two partitions? Maybe f2fs is creating an issue here?
Click to expand...
Click to collapse
Are you clean flashing ROM? (Wiping /system /data /cache /delvik-cache )
Anything else you are flashed with ROM and Gapps?
Try without GApps.
As I understand it, Invicta and RR have f2fs support for cache built in, whereas other ROMs may not have the support (there's a particular commit, if I recall).
The normal formats for cache and system are ext4 whereas data appears to be f2fs. You may wish to attempt formatting cache as ext4 and seeing if your device can boot.
Yes, It worked. Formatted cache to ext4 and it works. Thanks Bros. Facing issues with VOLTE in Lineage, Omni and AOSP extended. I placed my jio sim in sim 1 and enabled 'enhanced LTE' but still no luck with VOLTE.
Amogh Thambi said:
Yes, It worked. Formatted cache to ext4 and it works. Thanks Bros. Facing issues with VOLTE in Lineage, Omni and AOSP extended. I placed my jio sim in sim 1 and enabled 'enhanced LTE' but still no luck with VOLTE.
Click to expand...
Click to collapse
VoLTE doesn't works on LineageOS, you can try Unofficial Builds which may support VoLTE or you can try RR OS which supports VoLTE Natively

Bootloop from Gapps (How to change partition back?) (ftfs tools?)

I changed my partitions to ext4 but it wont let me change my data partition back to f2fs, on account of TWRP not supporting f2fs tools... Im not sure if that would even solve the problem though. It seems flashing TO ext4 has helped some people bypass the open gapps bootloop and also removing the sim and using a terminal command to change build.prop… but none of these helped me.
I am running Omnirom 9.0 and it runs nice, fast and smooth without gapps, the problem only happens after flashing gapps and after that is just stays on the OMNI boot animation.
So far I've tried pico, nano, micro ARM 9.0
edit: now that I look at it, gapps mounts /persist and /system... so im just overall confused since the rom is running fine..

Categories

Resources