[Galaxy S I9000 Android Development] androidsfan:
Thanks for the kernel. Unfortunately it didn't really improve the situation.

I now get after startup two messages about a corrupted sdcard: "Corrupted SD card. SD card is corrupt. Touch to fix." (I didn't touch as I don't know what would happen.)

As primary sdcard still the new internal one is used, which sits with data on the same partition.

The old internal and the external cards continue to be accessible through the Documents browser. But the old internal one not easily for other apps.

There are now two new entries in /storage (public:179_17 and public:179_9) which are not accessible. (Cf. the grep from logcat below. Could that be related to leaving out the /mmcblk0 after the wildcard?)

I no longer can access the old internal and the external card with usb from my pc. Could that be linked to the missing line:

/devices/platform/s3c_otghcd/usb* auto auto defaults voldmanaged=usb:auto

I simply flashed the new kernel and cleared chaches, should I have done more?

I don't know what most would help to pin down the problem, but here the part of kernel logs where the two cards are mounted:

From last_kmsg:

[ 8.837697] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 8.837843] yaffs: passed flags ""
[ 8.837925] yaffs: Attempting MTD mount of 31.3,"mtdblock3"
[ 8.839606] yaffs: yaffs_read_super: is_checkpointed 1
[ 8.840119] SELinux: initialized (dev mtdblock3, type yaffs2), uses xattr
[ 9.465047] SELinux: initialized (dev dm-1, type f2fs), uses xattr
[ 9.513918] type=1400 audit(1473156632.027:22): avc: denied { create } for pid=184 comm="recovery" name="fstab" scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=1
[ 9.516273] type=1400 audit(1473156632.027:23): avc: denied { write } for pid=184 comm="recovery" name="fstab" dev=rootfs ino=2942 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=1
[ 9.585244] SELinux: initialized (dev mmcblk0p1, type vfat), uses genfs_contexts
[ 9.748172] SELinux: initialized (dev dm-1, type f2fs), uses xattr
[ 9.748560] yaffs: dev is 32505858 name is "mtdblock2" rw
[ 9.748669] yaffs: passed flags ""
[ 9.748760] yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[ 9.804083] yaffs: yaffs_read_super: is_checkpointed 0
[ 9.804685] SELinux: initialized (dev mtdblock2, type yaffs2), uses xattr
[ 9.859376] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts:
[ 9.859564] SELinux: initialized (dev dm-0, type ext4), uses xattr
[ 9.948295] SELinux: initialized (dev mmcblk1p1, type vfat), uses genfs_contexts
[ 11.477970] type=1400 audit(1473156633.988:24): avc: denied { append } for pid=184 comm="recovery" name="log" dev=mtdblock3 ino=513 scontext=u:r:init:s0 tcontext=u:o
bject_r:cache_file:s0 tclass=file permissive=1
[ 11.538795] SELinux: initialized (dev mmcblk1p1, type vfat), uses genfs_contexts

From dmesg:

[ 412.185763] type=1400 audit(1473157093.761:111): avc: denied { ioctl } for pid=2992 comm="Binder_3" path="socket:[24029]" dev="sockfs" ino=24029 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 412.350844] type=1400 audit(1473157093.761:112): avc: denied { ioctl } for pid=2992 comm="Binder_3" path="socket:[24029]" dev="sockfs" ino=24029 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 412.654000] type=1400 audit(1473157094.156:113): avc: denied { getattr } for pid=135 comm="vold" path="/proc/125/fd/0" dev=proc ino=24520 scontext=u:r:vold:s0 tcontext=u:r:logd:s0 tclass=lnk_file permissive=1
[ 412.654966] type=1400 audit(1473157094.156:114): avc: denied { read } for pid=135 comm="vold" name="0" dev=proc ino=24520 scontext=u:r:vold:s0 tcontext=u:r:logd:s0 tclass=lnk_file permissive=1
[ 413.514851] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 413.523520] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 413.530208] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 425.009512] SELinux: initialized (dev mmcblk0p1, type vfat), uses genfs_contexts
[ 425.815509] type=1400 audit(1473157107.370:115): avc: denied { execmod } for pid=2868 comm="system_server" path="/system/vendor/lib/hw/gps.aries.so" dev=dm-0 ino=7929 scontext=u:r:system_server:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
[ 429.033759] type=1400 audit(1473157110.351:116): avc: denied { ioctl } for pid=2756 comm="Binder_2" path="socket:[26178]" dev="sockfs" ino=26178 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 429.034451] type=1400 audit(1473157110.351:117): avc: denied { ioctl } for pid=2756 comm="Binder_2" path="socket:[26178]" dev="sockfs" ino=26178 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 429.035056] type=1400 audit(1473157110.370:118): avc: denied { ioctl } for pid=3138 comm="Binder_4" path="socket:[26181]" dev="sockfs" ino=26181 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1
[ 430.040156] type=1400 audit(1473157110.370:119): avc: denied { ioctl } for pid=3138 comm="Binder_4" path="socket:[26181]" dev="sockfs" ino=26181 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1
[ 430.469081] FIMC0: CMA allocating
[ 430.545172] s5p-cma: allocated pages for fimc0
[ 430.551318] FIMC2: CMA allocating
[ 430.606395] s5p-cma: allocated pages for fimc2
[ 431.302765] SELinux: initialized (dev mmcblk1p1, type vfat), uses genfs_contexts
[ 431.438547] type=1400 audit(1473157112.945:120): avc: denied { ioctl } for pid=3011 comm="Binder_4" path="socket:[26286]" dev="sockfs" ino=26286 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 431.439634] type=1400 audit(1473157112.945:121): avc: denied { ioctl } for pid=3011 comm="Binder_4" path="socket:[26286]" dev="sockfs" ino=26286 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 431.457923] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 431.460265] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 431.461089] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 431.827136] type=1400 audit(1473157112.948:122): avc: denied { ioctl } for pid=3084 comm="Binder_3" path="socket:[26289]" dev="sockfs" ino=26289 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1
[ 432.212047] type=1400 audit(1473157112.948:123): avc: denied { ioctl } for pid=3084 comm="Binder_3" path="socket:[26289]" dev="sockfs" ino=26289 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=1
[ 433.333729] type=1400 audit(1473157114.843:124): avc: denied { ioctl } for pid=3281 comm="Binder_5" path="socket:[26878]" dev="sockfs" ino=26878 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 433.544428] type=1400 audit(1473157114.843:125): avc: denied { ioctl } for pid=3281 comm="Binder_5" path="socket:[26878]" dev="sockfs" ino=26878 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 435.318281] type=1400 audit(1473157116.890:126): avc: denied { ioctl } for pid=3281 comm="Binder_5" path="socket:[27334]" dev="sockfs" ino=27334 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 435.318967] type=1400 audit(1473157116.890:127): avc: denied { ioctl } for pid=3281 comm="Binder_5" path="socket:[27334]" dev="sockfs" ino=27334 ioctlcmd=7704 scontext=u:r:surfaceflinger:s0 tcontext=u:r:surfaceflinger:s0 tclass=unix_stream_socket permissive=1
[ 435.869554] s5p-cma: released pages for fimc0
[ 435.871218] s5p-cma: released pages for fimc2

The result of "grep [Vv]old logcat.txt" you find under termbin.com/ka28

Would anything else help to pin down the problem?