[Android Q&A, Help & Troubleshooting] dklovedoctor:
Hi all,

I have taken a look at the threads that are similar to mine, as the forum suggests, and a lot more for about a week now.

I have not managed to solve my problem yet, I hope you will help to find a solution.

I own a Samsung Ace 2 GT-i8160.

A month ago a decided to change the stock rom and flashed my phone with a CM11 rom.

Everything worked perfectly.

However suddenly my phone has started rebooting by itself.

Every 2 or 3 minutes it reboots automatically. In fact is switches off and starts over again, it does not perform a software reboot.

I have tried these:

I have tried to use another battery, my wife owns the same mobile and we switched batteries.

I have tried to install the stock rom. The whole process seems to be perfect but when the phone reboots, everything is just like before the install. The phone boots into the old CM11 and reboots repeatedly every 2 minutes!

I have tried to install the CM12 rom. Now the setup seems to succedd again. However the phone again enters the old CM11 and reboots every 2 minutes. However now, there is this warning: symlink: some symlinks failed

I have tried to install the CM11 rom again. The whole process seems to be perfect but when the phone reboots, everything is just like before the install.

I try to format every partition (except for the external sdcard) and no error comes up. If i mount the partitions everything is in place! Nothing has been deleted!

I tried to format the /data partition with this command from adb shell:

mke2fs -t ext4 -c -v /dev/block/mmcblk0p5

Here is the output of the command:

mke2fs 1.41.14 (22-Dec-2010)
fs_types for mke2fs.conf resolution: 'ext4'
Calling BLKDISCARD from 0 to 1308622848 failed.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
80000 inodes, 319488 blocks
15974 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=327155712
10 block groups
32768 blocks per group, 32768 fragments per group
8000 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Running command: badblocks -b 4096 -X -s /dev/block/mmcblk0p5 319487
sh: badblocks: not found
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

If if mount the partition no change has been done!

fdisk yields this warning:

fdisk: WARNING: rereading partition table failed, kernel still uses old table: Invalid argument

I guess - it is only a guess - that for some reason the kernel protects the phone filesystems! How can I stop the kernel from doing that? Can i flash my phone with a tool, avoiding the use of the kernel?

Can you suggest something else?

In case you may ask, at this time in my phone are installed:

CWM-based Recovery v6.0.5.0

CyanogenMod: 11-20140807-unofficial-codina

Android Version: 4.4.4

Kernel Version: 3.0.101 - CyanogenMod-g17eea61

Thanks a lot for reading, I hope a solution comes up!