[Galaxy S Plus I9001 Android Development] hnkotnis:
Ext4 SD Card mounting

Hello,

I am using K^Kernel v2.6 UV 416MB on SGS+ with CyanogenMod 11 Release 11 by ADC Team.

I have formatted my External SD Card (Sandisk 32GB class 10) to ext4 since CyanogenMod has poor support for exFAT and FAT32 does not support large file sizes. Only 1 partition of ext4 for photos, music, APKs, etc. No Link2SD, no SWAP business.

Tried formatting from both TWRP by ADC latest and Minitool with Primary partition ext4.

When I start phone External SD Card is mounted at /storage/sdcard1. If I open in only lost+found is present. If I try to access it (even as root from terminal) permission denied. I cannot create files/folders, nothing. Even default folders are not created like LOST.DIR, Android etc.

I have NOT SWAPPED internal and external cards. But everything is working in FAT32 or exFAT. But obviously I am not interested in them because RW is poor and lots of errors in large files.

Anyone knows how to do repair this and get normal RW permissions?

P.S. I have attached Outputs of mount command and tune2fs if required.

Output of mount command (sdcard1 things highlighted in red)

rootfs / rootfs ro,seclabel,relatime 0 0

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,seclabel,relatime 0 0

selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0

debugfs /sys/kernel/debug debugfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0

none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0

tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0

none /dev/cpuctl cgroup rw,relatime,timer_slack,cpu 0 0

/dev/block/mmcblk0p15 /system ext4 ro,seclabel,noatime,errors=panic,data=ordered 0 0

/dev/block/mmcblk0p16 /cache ext4 rw,seclabel,nosuid,nodev,noatime,journal_checksum,journal_async_commit,data=ordered 0 0

/dev/block/mmcblk0p17 /data ext4 rw,seclabel,nosuid,nodev,noatime,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered 0 0

[COLOR="Red"]/dev/block/vold/179:33 /mnt/media_rw/sdcard1 ext4 rw,dirsync,context=u:object_r:sdcard_external:s0,nosuid,nodev,noexec,noatime,data=ordered 0 0[/COLOR]

[COLOR="red"]/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0[/COLOR]

/dev/block/vold/179:28 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/block/vold/179:28 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/block/dm-0 /mnt/asec/com.navfree.android.OSM.ALL-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

/dev/block/dm-1 /mnt/asec/com.ea.nfshp-2 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

/dev/block/dm-2 /mnt/asec/com.realvnc.viewer.android-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

/dev/block/dm-3 /mnt/asec/com.nextgenreality.gunclub3-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime 0 0

Output of tune2fs of External SD

Filesystem features: has_journal filetype needs_recovery extent flex_bg sparse_super large_file huge_file extra_isize

EDIT:- 4:40PM 01/12/2014​

I managed to get Write access by going to /mnt/media_rw and chmod to drwxrwx--- and chown media_rw,media_rw

But still applications have problems accessing External Card because this does not seem proper way.