[Galaxy S 4 i9505 Original Android Development] crnkoj:
hmm ive found a bug running cm and your 7/7 kernel.

it seems like my exfat formatted sdcard keeps "randomly" removing itself, when i try to view photos through gallery. Here is a dmesg output, if you might find it useful:

<3>[33076.433804] mmc2: CMD 18: Data timeout. DAT0 => 1
<3>[33076.437528] mmc2: SDCC PWR is ON
<3>[33076.440732] mmc2: SDCC clks are ON, MCLK rate=48000000
<3>[33076.445920] mmc2: SDCC irq is enabled
<3>[33076.449521] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12140000, [MENTION=3357318]virt_[/MENTION]base=0xe3394000 =====
<3>[33076.458157] Reg=0x00: 0x00000001, 0x01209b00, 0x00754a40, 0x00001452
<3>[33076.464444] Reg=0x10: 0x00000012, 0x00000900, 0x55363447, 0x80a195e9
<3>[33076.470853] Reg=0x20: 0x6800ca2e, 0x00927c00, 0x00020000, 0x0010200b
<3>[33076.477170] Reg=0x30: 0x00020000, 0x000c0400, 0x00000000, 0x408001ff
<3>[33076.483456] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.489835] Reg=0x50: 0x06000018, 0x00000000, 0x00000000, 0x00000000
<3>[33076.496121] Reg=0x60: 0x60026400, 0x00000000, 0x00000000, 0x00000000
<3>[33076.502530] ===== SDCC-DML: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12140800, [MENTION=3357318]virt_[/MENTION]base=0xe33d0800 =====
<3>[33076.511044] Reg=0x00: 0x00000011, 0x00010000, 0x00000000, 0x00000000
<3>[33076.517300] Reg=0x10: 0x00000000, 0x00001000, 0x00001000, 0x00020001
<3>[33076.523709] Reg=0x20: 0x00000000, 0x00000200, 0x00020000, 0x00000000
<3>[33076.529996] Reg=0x30: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.536374] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.542661] ===== SDCC-BAM: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12142000, [MENTION=3357318]virt_[/MENTION]base=0xe3398000 =====
<3>[33076.551205] Reg=0x00: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.557553] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.563840] Reg=0x20: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.570218] Reg=0x30: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.576505] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.582913] mmc2: MCI_TEST_INPUT = 0x0000003e
<3>[33076.587186] ===== SDCC-DML: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12140800, [MENTION=3357318]virt_[/MENTION]base=0xe33d0800 =====
<3>[33076.595761] Reg=0x00: 0x00000011, 0x00010000, 0x00000000, 0x00000000
<3>[33076.602078] Reg=0x10: 0x00000000, 0x00001000, 0x00001000, 0x00020001
<3>[33076.608365] Reg=0x20: 0x00000000, 0x00000200, 0x00020000, 0x00000000
<3>[33076.614774] Reg=0x30: 0x00000000, 0x00000000, 0x00000000, 0x00000000
<3>[33076.621030] mmc2: SPS mode: busy=1
<3>[33076.624478] mmc2: xfer_size=131072, data_xfered=0, xfer_remain=131072
<3>[33076.630856] mmc2: got_dataend=0, prog_enable=0, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=10000
<3>[33076.641232] mmc2: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0
<3>[33076.648190] mmc2: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0
<6>[33076.660703] sps:BAM 0x12142000 enabled: ver:0x5, number of pipes:6
<3>[33076.666501] mmcblk1: error -110 sending status command, retrying
<3>[33076.677365] mmcblk1: error -110 sending status command, retrying
<3>[33076.693570] mmcblk1: error -110 sending status command, aborting
<3>[33076.720670] mmc_sd_detect(mmc2): Unable to re-detect card (-123)
<6>[33076.725827] mmc2: card e624 removed
<3>[33076.734097] init: untracked pid 16313 exited
<4>[33077.250790] mmc2: host does not support reading read-only switch. assuming write-enable.
<6>[33077.258878] mmc2: new high speed SDXC card at address e624
<1>[33077.259213] ELEVATOR_INIT: row-7
<6>[33077.261929] mmcblk1: mmc2:e624 SU64G 59.4 GiB
<6>[33077.266263] mmcblk1: p1
<6>[33079.628537] max77693_get_input_current: CHG_CNFG_09(0x17)
<6>[33080.332181] [SSP]: debug_work_func(182) - Sensor state: 0x7ff, RC: 0, MS: 0
<6>[33080.332181] 0 : 2329, 15946, -2453 (66ms)
<6>[33080.332181] 7 : 305, 274, 215, 444 (200ms)
<6>[33089.056210] binder: 708:827 transaction failed 29189, size 100-4
<6>[33089.056393] binder: 708:827 transaction failed 29189, size 100-4
<6>[33089.082578] sec-fuelgauge 11-0036: 0x02(0xb9), 0x03(0xf0), 0x04(0x5e), 0x05(0x7a), 0x06(0x00), 0x07(0x00), 0x08(0x00), 0x09(0x12), 0x0a(0x00), 0x0b(0x00), 0x0c(0x6f), 0x0d(0x1e),
<6>[33089.085599] sec-fuelgauge 11-0036: 0x14(0x00), 0x15(0xff), 0x16(0xff), 0x17(0x98), 0x18(0x7d), 0x19(0x00), 0x1a(0x01), 0x1b(0xff),
<6>[33089.085599] sec-fuelgauge 11-0036: sec_fg_get_atomic_capacity: old : 46, current : 46

i cant really say if its kernel or rom related, so thats why i posted it here and in the rom thread. i do however not believe its sdcard related, as it worked flawlessly until recently and seems to have started flashing your kernel to both tw and cm.