After 2 or three power cycles, I get the grub rescue menu. I use a Ubuntu LiveCD to check my drive status and gparted says that my drive don't have any partitions. I checked the internet and I found a tool called gdisk. After using gdisk I got:
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Warning! Secondary partition table overlaps the last partition by
16637841297300849166 blocks!
You will need to delete this partition or resize it in another utility.
I checked my partition table and I found that I have 4 new partitions that I didn't create. I removed them Saved my partition table and then i was able to use my pc. The problem is I get this error almost every time I shut down or reboot my pc. I don't know the reason behind it.
I have Ubuntu 14.04 and windows 8.1 in dual boot. My pc is lenovo ideapad z510. If you need any report or want me to try a command I will gladly do it. Thanks in advance.
EDIT:
Sometimes my pc just crushes and I loses my table partition.
I did a test using :
smartctl --all /dev/sda
And This is the output: http://pastebin.com/VHfVnFU4