[Oppo Find 7 and 7a] CyberconIII:
For: CM13 nightly: cm-13.0-20151206-NIGHTLY-find7.zip

I have a corrupted sdcard0, formatting in TWRP does not fix this.

I have managed to add the external_sd (sdcard1) to unified storage.

The internal_sd partition sdcard0 does not mount and reports a corrupted in the setting-> Storage & USB

This means I can not download anything or take photos/videos at all as they require the internal_sd or sdcard0 partition:

In adb as root:

su
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 918M 88K 918M 1% /dev
none 918M 12K 918M 1% /sys/fs/cgroup
tmpfs 918M 0 918M 0% /mnt
/dev/block/mmcblk0p14 0.9G 730M 278M 73% /system
/dev/block/mmcblk0p15 2.9G 1.5G 1.3G 53% /data
/dev/block/mmcblk0p17 504M 8.4M 495M 2% /cache
/dev/block/mmcblk0p16 4.9M 4.1M 768K 85% /persist
/dev/block/mmcblk0p1 64M 56M 7.8M 88% /firmware
tmpfs 918M 0 918M 0% /storage
/dev/block/dm-0 59G 1.0G 57G 2% /mnt/expand/98f30347-c475-430a-9548-40c56af84a37

Vold has the following config:

cat fstab.qcom
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs noatime,nosuid,nodev,rw,inline_xattr wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,errors=panic wait,check
/dev/block/platform/msm_sdcc.1/by-name/cache /cache f2fs noatime,nosuid,nodev,rw,inline_xattr wait,check
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait,notrim
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait

/devices/msm_sdcc.1/mmc_host/*/mmcblk0 auto ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,nodelalloc,uid=1023,gid=1023,dmask=0007,fmask=0007,context=u:object_r:sdcard_posix:s0 voldmanaged=sdcard0:29,nonremovable,noemulatedsd
/devices/msm_sdcc.2/mmc_host* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/platform/xhci-hcd* auto auto defaults voldmanaged=usb:auto

This looks to be generated from:

android_device_oppo_find7-common/blob/cm-13.0/rootdir/etc/fstab.qcom

However OmniRom have a recently modified differing config for Android 6.x for sdcard0

This is available here:

omnirom/android_device_oppo_find7/blob/android-6.0/configs/fstab.find7.std

OmniRom have different values for the sdcard0:

# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

#TODO: Add 'check' as fs_mgr_flags with data partition.
# Currently we dont have e2fsck compiled. So fs check would failed.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc wait,check,encryptable=footer,length=-16384
/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/modem /radio emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl1 /sbl1 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl2 /sbl2 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl3 /sbl3 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults
/devices/msm_sdcc.1/mmc_host/mmc0/mmc0:0001/block/mmcblk0* auto auto defaults voldmanaged=sdcard0:auto,noemulatedsd,encryptable=userdata
/devices/msm_sdcc.2/mmc_host/mmc1* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
/devices/platform/xhci-hcd* auto auto defaults voldmanaged=usb:auto