[HTC Desire X] Delold:
My phone keeps randomly restarting for the last three months with ROM Slimbean 0.1 flashed. Usually the phone restarts, when the display is off, but sometimes it restarts out of blue.

After getting the kmsg log, found out, that it might be related with the SD card. The SD card itself is ok, verified with scandisk & the socket seems to be ok, as it always properly mounts after reboot.

[ 2230.608158] C0 mmc0: Controller has been reinitialized
[ 2230.615133] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.621089] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.627128] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.627249] C0 end_request: I/O error, dev mmcblk0, sector 5250040
[ 2230.627456] C0 Buffer I/O error on device mmcblk0p28, logical block 4991
[ 2230.627593] C0 EXT4-fs warning (device mmcblk0p28): ext4_end_bio:258: I/O error writing to inode 30 (offset 258048 size 4096 starting block 656256)
[ 2230.628796] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.628909] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.629176] C0 mmc0: Controller has been reinitialized
[ 2230.636071] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.642109] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.648058] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.648266] C0 end_request: I/O error, dev mmcblk0, sector 5214360
[ 2230.648383] C0 end_request: I/O error, dev mmcblk0, sector 5214368
[ 2230.648621] C0 Aborting journal on device mmcblk0p28-8.
[ 2230.648794] C0 EXT4-fs error (device mmcblk0p28) in ext4_reserve_inode_write:5645: Journal has aborted
[ 2230.649924] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.650123] C0 Flush data: 0000c003 11620000 00000000 00400040 00400040 00000003
[ 2230.650321] C0 mmc0: Controller has been reinitialized
[ 2230.657301] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.663256] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.669294] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.669411] C0 end_request: I/O error, dev mmcblk0, sector 728920
[ 2230.670531] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.670646] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.670919] C0 mmc0: Controller has been reinitialized
[ 2230.677891] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.683848] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.689886] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.689999] C0 end_request: I/O error, dev mmcblk0, sector 5210960
[ 2230.690199] C0 Buffer I/O error on device mmcblk0p28, logical block 106
[ 2230.690309] C0 lost page write due to I/O error on mmcblk0p28
[ 2230.690571] C0 JBD2: I/O error detected when updating journal superblock for mmcblk0p28-8.
[ 2230.692661] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.692886] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.693361] C0 mmc0: Controller has been reinitialized
[ 2230.700399] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.706699] C0 mmcblk0: error -110 sending status command, retrying
[ 2230.712823] C0 mmcblk0: error -110 sending status command, aborting
[ 2230.713211] C0 end_request: I/O error, dev mmcblk0, sector 5210112
[ 2230.713431] C0 Buffer I/O error on device mmcblk0p28, logical block 0
[ 2230.713811] C0 lost page write due to I/O error on mmcblk0p28
[ 2230.714074] C0 EXT4-fs (mmcblk0p28): Remounting filesystem read-only
[ 2230.714454] C0 ext4_e2fsck
[ 2230.715753] C0 mmc0: DMA channel flushed (0x80000004)
[ 2230.716143] C0 Flush data: 0000c003 11620000 00000000 00400040 003f003d 00008003
[ 2230.716459] C0 mmc0: Controller has been reinitialized
[ 2230.720488] C0 ext4_reboot: reboot to run e2fsck
[ 2230.720704] C0 Take CPU down - Begin
[ 2230.720914] C0 Take CPU down - End
[ 2230.722351] C0 [BATT][tps65200] TPS65200 shutdown
[ 2230.722848] C0 journal commit I/O error
[ 2230.724989] C0 Restarting system with command 'oem-22'.

I have Link2sd installed, most of my apps are linked to the second partition of the SD card.