Nothing good happens after 2AM


I was dreaming of the past,John lennon
And my heart was beating fast.
I began to lose control,
I began to lose control.
I didn’t mean to hurt you.
I’m sorry that I made you cry.
Oh no, I didn’t mean to hurt you.

I’m just a jealous guy.

I was trying to catch your eyes,
though that you was trying to hide.
I was swallowing my pain,
I was swallowing my pain.
I didn’t mean…
I’m just a jealous guy. — John Lennon

Today was kind of a ‘Do first think later’ or to be more precise ‘screw up whatever you touch’ day and it began at 3 am in the morning, no kidding !

It could have been so much better and easy if I would have slept just an hour ago considering “Nothing good happens after 2 am” but you know if you can screw things up then you will screw ’em up and there is nothing you can do about it cause that’s my friend is the legendary Murphy’s law but wait for it, cause there is also an extension to this law which states that all of it would be your fault and despite the fact you already knew that it would be your fault you probably can’t do anything about it, sounds pretty helpless  but what can I say as I’m in similar situation right now and just to keep my minds off for a while I’m listening to John Lennon and in the meantime I am going to pour everything out here.

“I ACCIDENTLY DELETED MY HOME-STATION DISK PARTITION TABLE” :cheers !!

Yeah, right but don’t worry it’s not gonna be some self-loathed post because well to a certain degree hint of narcissism is a good thing as it gives us drive and ambition so I’ve a better idea in mind to jot down the steps regarding how I recovered my data even after such disaster.

In GParted(Disk partition utility) I could only see one whole unpartitioned disk while booting from a Ubuntu Live CD and no partitions and no data, so forget about even booting without a Live CD.

Voila, all of my personal files seems to be gone for good, and when I thought what am I going to do now, I had a panic attack so I went out and drank lots of water(Beer would have probably made it worse) and well later came back holding my calm and started thinking about how to recover my files cause it would probably be just some table entry placed at some different location but the data can’t be missing just because they can’t be accessed, and so with that thought I started gaining my confidence that the data has to be there so I just need to somehow find a way to locate.

After doing a little bit of research, I found that there are few tools like ‘testdisk’ or ‘foremost’ or ‘scalpel’.

You just need to install any one of them. I downloaded ‘testdisk’ from web “http://www.cgsecurity.org/wiki/TestDisk_Download” or could just download and install testdisk from your aptitude package manager bundled in Ubuntu distribution and let me tell you “TestDisk” utility is a real lifesaver.

It’s gonna be a bit time consuming but still I had nothing to lose in trying this as, installing a fresh copy of OS and losing all of my data would be like dude, I really got screwed, not rescued. Running this utility brought most of my partitions back in the partition table so next time when I ran Live CD I was able to mount these partition except few partitions were still missing due to some errors and to recover data from there I ran this utility again and let it do a ‘deeper search’ for me and this baby returned me the list of missing partition which let me iterate over these data so I’d only one option left to use the copy option of the utility and copy these un-partitioned cylinders data to some mounted partition. That’s exactly what I did and thus successfully recovered all of my data. 🙂

“When things get tough, tough gets going !! “

Share your thoughts