[OnePlus 5 Questions & Answers] KyoN_tHe_DeStRoYeR:
It started with yesterday with the usual use of my phone when it showed me an errors in facebook (like not loading the contents in the app and such). Later, my facebook app crashed and didn't wanted to open, my nova laucher started crashing too and I thought I needed to reboot my device since this is not okay. When I did, it stayed in boot loop. Tried booting in TWRP and it didn't asked for my password as it normally would and I looked into it and saw my data and internal storage size to 0.

Starting TWRP 3.2.1-0-780d645e on Tue Sep 7 18:15:27 1971
(pid 596)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:LANG: en
Starting the UI...
Skipping adf graphics -- not present in build tree
cannot find/open a drm device: No such file or directory
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 0 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 16 .length = 8
setting GGL_PIXEL_FORMAT_RGBA_8888
double buffered
framebuffer: 3 (1080 x 1920)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
I:Blacklisting input device: hbtp_vm
=> Linking mtab
=> Processing recovery.fstab
I:Reading /etc/recovery.fstab
I:Processing '/boot'
I:Processing '/cache'
I:Processing '/recovery'
I:Processing '/system'
I:Processing '/system_image'
I:Processing '/data'
I:Processing '/firmware'
I:Processing '/misc'
I:Processing '/modem'
I:Processing '/bluetooth'
I:Processing '/dsp'
I:Processing '/efs1'
I:Processing '/efs2'
I:Processing '/efsc'
I:Processing '/efsg'
I:Processing '/usbstorage'
I:Created '/usbstorage' folder.
I:Done processing fstab files
I:Setting up '/data' as data/media emulated storage.
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
get_crypt_ftr_info crypto key location: 'footer'
Bad magic for real block device /dev/block/sda13
Could not mount /data and unable to find crypto footer.
I:Setting up '/data' as data/media emulated storage.
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
Failed to mount '/data' (Structure needs cleaning)
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
Unable to recreate /data/media folder.
I:Backup folder set to '/data/media/TWRP/BACKUPS/a2f8fff'
I:Settings storage is '/data/media'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
Updating partition details...
Failed to mount '/data' (Structure needs cleaning)
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/usbstorage'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
Unable to mount storage
I:Unmounting main partitions...

Partition Logs:
/boot | /dev/block/sde19 | Size: 64MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/sde19
Display_Name: Boot
Storage_Name: boot
Backup_Path: /boot
Backup_Name: boot
Backup_Display_Name: Boot
Storage_Path: /boot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/cache | /dev/block/sda3 | Size: 247MB Used: 0MB Free: 247MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/sda3
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/recovery | /dev/block/sde22 | Size: 64MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/sde22
Display_Name: Recovery
Storage_Name: recovery
Backup_Path: /recovery
Backup_Name: recovery
Backup_Display_Name: Recovery
Storage_Path: /recovery
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/system | /dev/block/sde21 | Size: 2929MB Used: 2742MB Free: 186MB Backup Size: 2742MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only
Primary_Block_Device: /dev/block/sde21
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/system_image | /dev/block/sde21 | Size: 3072MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/sde21
Display_Name: System Image
Storage_Name: system_image
Backup_Path: /system_image
Backup_Name: system_image
Backup_Display_Name: System Image
Storage_Path: /system_image
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/data | /dev/block/sda13 | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/sda13
Display_Name: Data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files
MTP_Storage_ID: 65537

/firmware | /dev/block/sde10 | Size: 109MB Used: 107MB Free: 2MB Backup Size: 107MB
Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_To_Decrypt Mount_Read_Only
Primary_Block_Device: /dev/block/sde10
Display_Name: Firmware
Storage_Name: Firmware
Backup_Path: /firmware
Backup_Name: firmware
Backup_Display_Name: Firmware
Storage_Path: /firmware
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files

/misc | /dev/block/sda4 | Size: 1MB
Flags: IsPresent
Primary_Block_Device: /dev/block/sda4
Display_Name: misc
Storage_Name: misc
Backup_Path: /misc
Backup_Name: misc
Backup_Display_Name: misc
Storage_Path: /misc
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/modem | /dev/block/sde10 | Size: 110MB
Flags: Can_Be_Backed_Up Has_SubPartition IsPresent
Primary_Block_Device: /dev/block/sde10
Display_Name: Modem
Storage_Name: Modem
Backup_Path: /modem
Backup_Name: modem
Backup_Display_Name: Modem
Storage_Path: /modem
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/bluetooth | /dev/block/sde24 | Size: 1MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /modem
Primary_Block_Device: /dev/block/sde24
Display_Name: bluetooth
Storage_Name: bluetooth
Backup_Path: /bluetooth
Backup_Name: bluetooth
Backup_Display_Name: bluetooth
Storage_Path: /bluetooth
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/dsp | /dev/block/sde11 | Size: 16MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /modem
Primary_Block_Device: /dev/block/sde11
Display_Name: dsp
Storage_Name: dsp
Backup_Path: /dsp
Backup_Name: dsp
Backup_Display_Name: dsp
Storage_Path: /dsp
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/efs1 | /dev/block/sdf1 | Size: 2MB
Flags: Can_Be_Backed_Up Has_SubPartition IsPresent
Primary_Block_Device: /dev/block/sdf1
Display_Name: EFS
Storage_Name: EFS
Backup_Path: /efs1
Backup_Name: efs1
Backup_Display_Name: EFS
Storage_Path: /efs1
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/efs2 | /dev/block/sdf2 | Size: 2MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /efs1
Primary_Block_Device: /dev/block/sdf2
Display_Name: efs2
Storage_Name: efs2
Backup_Path: /efs2
Backup_Name: efs2
Backup_Display_Name: efs2
Storage_Path: /efs2
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/efsc | /dev/block/sdf4 | Size: 0MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /efs1
Primary_Block_Device: /dev/block/sdf4
Display_Name: efsc
Storage_Name: efsc
Backup_Path: /efsc
Backup_Name: efsc
Backup_Display_Name: efsc
Storage_Path: /efsc
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/efsg | /dev/block/sdf3 | Size: 2MB
Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
SubPartition_Of: /efs1
Primary_Block_Device: /dev/block/sdf3
Display_Name: efsg
Storage_Name: efsg
Backup_Path: /efsg
Backup_Name: efsg
Backup_Display_Name: efsg
Storage_Path: /efsg
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/usbstorage | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/sdg1
Alternate_Block_Device: /dev/block/sdg
Display_Name: USB Storage
Storage_Name: USB Storage
Backup_Path: /usbstorage
Backup_Name: usbstorage
Backup_Display_Name: USB Storage
Storage_Path: /usbstorage
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
Mount_Flags: 0, Mount_Options: utf8
MTP_Storage_ID: 65538

I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount '/data'
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
Failed to mount '/data' (Structure needs cleaning)
I:Actual block device: '/dev/block/sda13', current file system: 'ext4'
I:Unable to mount /data/media during GUI startup.
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Including file: /twres/portrait.xml...
I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page flash_sleep_and_reboot
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page reboot_system_routine
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page appcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backup_options
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Unable to open '/data/media/TWRP/BACKUPS/a2f8fff'
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page rebootapp
I:Loading page system_readonly
I:Loading page settings
I:Loading page settings_timezone
I:Loading page settings_screen
I:Loading page settings_vibration
I:Loading page settings_language
I:Loading page copylog
I:Loading page advanced
I:Loading page partsdcardsel
I:Loading page partsdcardcheck
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageraction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page installsu
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
SELinux contexts loaded from /file_contexts
Full SELinux support is present.
Startup Commands:
sys.usb.config=adb
service.adb.root=1
ro.persistent_properties.ready=true
ro.crypto.type=file
ro.crypto.state=encrypted
ro.build.fingerprint=OnePlus/omni_cheeseburger/cheeseburger:8.1.0/OPM3.171019.013/codewo01032101:eng/test-keys
ro.boottime.adbd=3106357082
ro.boottime.init=2192
ro.boottime.init.selinux=34
ro.boottime.init.cold_boot_wait=786
ro.boottime.ueventd=2235880667
ro.boottime.recovery=3047688673
ro.boottime.sbinqseecomd=3110547549
ro.boottime.keymaster-3-0=3144175908
ro.boottime.gatekeeper-1-0=3146829237
ro.boottime.servicemanager=3149246443
ro.boottime.set_permissive=3045167415
ro.boottime.hwservicemanager=3141531589
ro.boot.serialno=a2f8fff
ro.serialno=a2f8fff
hwservicemanager.ready=true
net.bt.name=Android
sys.usb.rmnet.func.name=gsi
sys.usb.rndis.func.name=gsi
sys.usb.controller=a800000.dwc3
sys.listeners.registered=true
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart.so
persist.sys.disable_rescue=true
debug.atrace.tags.enableflags=0
dalvik.vm.isa.arm.variant=cortex-a9
dalvik.vm.isa.arm.features=default
dalvik.vm.isa.arm64.variant=generic
dalvik.vm.isa.arm64.features=default
dalvik.vm.lockprof.threshold=500
dalvik.vm.stack-trace-dir=/data/anr
dalvik.vm.image-dex2oat-filter=verify-at-runtime
ro.config.ringtone=omni_ringtone1.ogg
ro.config.alarm_alert=omni_alarm1.ogg
ro.config.notification_sound=omni_notification1.ogg
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.boot.mode=recovery
ro.boot.type=normal
ro.boot.angela=disabled
ro.boot.battery.absent=false
ro.boot.console=ttyMSM0
ro.boot.secboot=enabled
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.configfs=true
ro.boot.hardware=qcom
ro.boot.keymaster=1
ro.boot.bootdevice=1da4000.ufshc
ro.boot.hw_version=23
ro.boot.rf_version=53
ro.boot.veritymode=enforcing
ro.boot.pcba_number=001685907701036300013579
ro.boot.rpmb_enable=true
ro.boot.startupmode=pwrkey
ro.boot.project_name=16859
ro.boot.usbcontroller=a800000.dwc3
ro.boot.enable_dm_verity=1
ro.boot.verifiedbootstate=orange
ro.omni.device=cheeseburger
ro.omni.version=8.1.0-20180103-cheeseburger-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.2.1-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=msm8998
ro.build.id=OPM3.171019.013
ro.build.date=Wed Jan 3 21:01:26 CET 2018
ro.build.date.utc=1515009686
ro.build.host=ryzen
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=codeworkx
ro.build.flavor=omni_cheeseburger-eng
ro.build.display.id=omni_cheeseburger-eng 8.1.0 OPM3.171019.013 eng.codewo.20180103.210126 test-keys
ro.build.product=cheeseburger
ro.build.selinux=1
ro.build.version.sdk=27
ro.build.version.base_os=
ro.build.version.release=8.1.0
ro.build.version.codename=REL
ro.build.version.incremental=eng.codewo.20180103.210126
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2018-01-05
ro.build.description=omni_cheeseburger-eng 8.1.0 OPM3.171019.013 eng.codewo.20180103.210126 test-keys
ro.build.characteristics=default
ro.bionic.ld.warning=1
ro.kernel.android.checkjni=1
ro.secure=0
ro.treble.enabled=false
ro.vendor.product.name=omni_cheeseburger
ro.vendor.product.brand=OnePlus
ro.vendor.product.model=OnePlus A5000
ro.vendor.product.device=cheeseburger
ro.vendor.product.manufacturer=OnePlus
ro.display.series=OnePlus 5
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=omni_cheeseburger
ro.product.board=msm8998
ro.product.brand=OnePlus
ro.product.model=OnePlus A5000
ro.product.device=cheeseburger
ro.product.manufacturer=OnePlus
ro.baseband=msm
ro.bootmode=recovery
ro.hardware=qcom
ro.revision=0
ro.bootimage.build.date=Wed Jan 3 21:01:26 CET 2018
ro.bootimage.build.date.utc=1515009686
ro.bootimage.build.fingerprint=OnePlus/omni_cheeseburger/cheeseburger:8.1.0/OPM3.171019.013/codewo01032101:eng/test-keys
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=OmniROM-8.1.0-20180103-cheeseburger-HOMEMADE
ro.setupwizard.enterprise_mode=1
ro.property_service.version=2
init.svc.adbd=restarting
init.svc.ueventd=running
init.svc.recovery=running
init.svc.sbinqseecomd=running
init.svc.keymaster-3-0=running
init.svc.gatekeeper-1-0=running
init.svc.servicemanager=running
init.svc.set_permissive=stopped
init.svc.hwservicemanager=running
twrp.crash_counter=0
twrp.action_complete=0
crypto.ready=1

Is there a way to restore my phone or at least to back up what I had on it ?