[Samsung Galaxy J5 Questions & Answers] ilmira:
i'm using adoptable storage patch (found here on xda) to expand internal data storage on my J500FN with Android 6.0.1, but i'm not so satisfied, increment in space for app is very limited also with adoptable storage.

i found this discussion on xda, in which the author had changes fstab to use sdcard as /data partition.

he said that SD card must be partitioned before run the modded kernel, it must have a small FAT32 partition at begin, and EXT4 partition for the main size.

how can i do the same on J500FN ?

my fstab is:

# 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/bootdevice/by-name/system /system ext4 ro,errors=panic,noload,block_validity wait,verify
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer
/dev/block/bootdevice/by-name/efs /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/7824900.sdhci/by-name/persistent /persistent emmc defaults defaults

# VOLD
/dev/block/bootdevice/by-name/hidden /preload ext4 defaults voldmanaged=preload:auto
/devices/soc.0/7864900.sdhci/mmc_host/mmc* auto vfat defaults voldmanaged=sdcard:auto,encryptable=userdata
/devices/platform/msm_hsusb_host/usb* auto auto defaults voldmanaged=usb:auto

fstab made by the author of the post is:

# 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/bootdevice/by-name/system /system ext4 ro,barrier=1 wait
/dev/block/platform/7864900.sdhci/mmcblk1p2 /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard,errors=panic wait,check,encryptable=/dev/block/bootdevice/by-name/extra
/dev/block/bootdevice/by-name/frp /persistent emmc defaults defaults
/devices/soc.0/7864900.sdhci/mmc_host auto vfat defaults voldmanaged=ext_sd:auto,noemulatedsd

if i patch my fstab as follow:

# 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/bootdevice/by-name/system /system ext4 ro,errors=panic,noload,block_validity wait,verify
/dev/block/platform/7864900.sdhci/mmcblk1p2 /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer
/dev/block/bootdevice/by-name/efs /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/7824900.sdhci/by-name/persistent /persistent emmc defaults defaults

# VOLD
/dev/block/bootdevice/by-name/hidden /preload ext4 defaults voldmanaged=preload:auto
/devices/soc.0/7864900.sdhci/mmc_host/mmc* auto vfat defaults voldmanaged=sdcard:auto
/devices/platform/msm_hsusb_host/usb* auto auto defaults voldmanaged=usb:auto

do you think i will obtain the same result on my J500FN ?