Bricked - Data Partition

aenews

Senior Member
Jul 29, 2013
230
52
48
Bakersfield
I accidentally deleted the data partition. Everything else works fine including Recovery/Fastboot. Normally I'd be using the Mega Unbrick Guide to restore the partition, but not an option right now for the 5 (128GB). Assistance would be appreciated. Maybe flashing a userdata.img would work?
 
Last edited:

aenews

Senior Member
Jul 29, 2013
230
52
48
Bakersfield
I'd recommend you to completely wipe and flash Stock OOS from here : https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003

That should sort all your problems related to partitioning. Let me know how it goes.
Already tried flashing the Full ROM earlier, but that doesn't fix the missing partition. Unless flashing with Stock Recovery would make a difference. Need a link to stock recovery to try that :)

Was looking into dumping partitions off a working OP5.
https://forum.xda-developers.com/showthread.php?t=2450045

Don't have a second OP5 (128GB) to dump partitions, but I did generate some .img files using this method. Optimally, flashing a proper userdata.img through fastboot should fix the partition, I believe.
 

Hastaloego

Senior Member
Sep 14, 2014
621
232
63
I accidentally deleted the data partition. Everything else works fine including Recovery/Fastboot. Normally I'd be using the Mega Unbrick Guide to restore the partition, but not an option right now for the 5 (128GB). Assistance would be appreciated. Maybe flashing a userdata.img would work?
fastboot format userdata ?
 

flame360

Senior Member
Dec 28, 2010
140
92
48
The partition doesn't exist right now. It cannot be mounted or formatted. If someone could use the guide above and pull a userdata.img from a 128GB OP5, pretty sure that would restore the partition if I flash it in fastboot.

Have you tried going into TWRP > Wipe> advance wipe > data >change or repair filesystem > change filesystem> ext4?

This should help.
 
Last edited:
  • Like
Reactions: bjeagle and aenews

aenews

Senior Member
Jul 29, 2013
230
52
48
Bakersfield
Have you tried going into TWRP > Wipe> advance wipe > data >change or repair filesystem > change filesystem> ext4?

This should help.
Thanks that worked! And much simpler and faster. I didn't realize there was an easy way to repair the filesystem in TWRP (derp) but that's awesome.
You can also try restore the nandroid uploaded on my thread

Sent from Funk Tuned 3T
Thanks for the tip!

Also I *think* I was able to extract a userdata.img after I fixed the partition. In case that's ever needed in the future...
 

Funk Wizard

Forum Moderator
Staff member
Nov 8, 2014
4,715
17,214
263
New Delhi
Thanks that worked! And much simpler and faster. I didn't realize there was an easy way to repair the filesystem in TWRP (derp) but that's awesome.

Thanks for the tip!

Also I *think* I was able to extract a userdata.img after I fixed the partition. In case that's ever needed in the future...
Welcome buddy
 

Funk Wizard

Forum Moderator
Staff member
Nov 8, 2014
4,715
17,214
263
New Delhi
So I managed to do the same thing, but with my system partition. I can't figure out what img to flash to system or where to get it from. Can anyone help me please?

Also, first thing I did was attempt to repair the partition via TWRP but no dice on that...
Restore the Nandroid

Sent from my OnePlus5 using XDA Labs