Re: [Ilugc] Re: Help needed - recovering formatted ext3 (Ravi Kumar Tenneti)

2009-04-30 Thread Mano
Very useful writeup. Thanks.

mano
___
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
unsubscribe password address
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Re: Help needed - recovering formatted ext3 (Ravi Kumar Tenneti)

2009-04-29 Thread K.C. Ramakrishna
 Please try http://www.cgsecurity.org/wiki/TestDisk
 and post the details.

Thank you. I did download Testdisk but was not sure whether I should use it. I 
did use it after you recommended it and it worked like a charm. Its absolutely 
fantastic. It showed me all previously deleted partitions, the folders and 
files. It offered to copy them and as I am typing this, it is copying files 
from the depeted partition to my external harddisk. 

It must have saved me at least Rs. 5k in charges and a lot of headache. I can't 
praise this software enough.

Mohan suggested Photorec. It is a part of Testdisk download package. I havn't 
tried it out but will do it today.

For referrence, I will explain how the backups/restore failed -- this should 
prevent others from making the same mistake.

1. I use the tool 'Simple Backup and restore' in Ubuntu. 
2. I had configured it to store the backup files into an external hard drive.
3. I took a backup (almost a year back) and tested it by restoring from the 
backup and everything worked fine.
4. I have been backing up regularly at least once a fortnight. I look at the 
processes to verify and have noticed that the tar and gz processes run as 
expected.
4. I also took a backup just before formatting.
5. After formatting, when I tried recovering, I realised that the last backup 
in the hard drive was about 3-4 months back.

So what happened to all the backup files  I think I solved the mystery 
..Read on to know.

1. My external drive is named KC and when mounted is accessible via 
/media/KC
1.1 I configured 'Simple Backup and restore' to backup to /media/KC.
2. About 3-4 months, back, I clicked on backup without noticing that my 
external drive was not attached.
2.1 Half way thorough the backup, I realised it, aborted the backup, attached 
the external drive and started the backup again.
3. The 'Simple Backup and restore' tool did a very stupid thing. When the 
external drive was not attached, it went ahead an created a directory called 
KC in /media.
4. So, when I attached the external drive, Ubuntu mounted it to /media/_KC - 
notice the underscore in _KC.
5. Since 'Simple Backup and restore' was configured to use /media/KC, it 
happily backed up everything to my laptop harddrive and not my external drive.
6. When I formatted my harddrive, I lost all backups in /media/KC.
7. I should have done a simple copy/paste of the important folders from hard 
disk to external drive but my supreme stupidity made me decide against it and I 
paid the price.

Please be very careful when taking backups and do try a restore at least once a 
month. These kind of stupid problems can be easily detected and corrected by 
doing a test restore to a different PC or distro every month or so. I had 
Fedora on a separate partition. If I had tried a restore in Fedora, I would 
have found this error during the restore. (Don't try on the same 
machine/partition as it will restore perfectly.)

Hope people learn from my mistakes and don't have to face the sinking feeling 
when I realised that I lost almost 3-4 months of very valuable data.

Thanks again to Ravi and Mohan.

There are a couple of other tools too but will try very hard not to be in 
another situation where I have to recover from formatted hard drive.
Regards,
kc
K. C. Ramakrishna
www.rknowsys.com



  
___
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
unsubscribe password address
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Re: Help needed - recovering formatted ext3

2009-04-29 Thread Muralidhar Kamidi

You can also try sleuthkit [www.sleuthkit.org].
___
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
unsubscribe password address
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Re: Help needed - recovering formatted ext3

2009-04-29 Thread Muralidhar Kamidi
Hi Ramakrishna,

Maybe this is something on the lines of what you are looking for:
http://forums.gentoo.org/viewtopic-t-365703.html

Regards,
Muralidhar.
___
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
unsubscribe password address
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Re: Help needed - recovering formatted ext3

2009-04-28 Thread Mohan R
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ravi Kumar Tenneti wrote:
 Dear Ramakrishna,
 
 On Tue, Apr 28, 2009 at 4:52 PM, K.C. Ramakrishna
 kcramakris...@yahoo.comwrote:
 
 Hi all,

 I recently installed ubuntu 9.04 and reformatted my hard drive. I had taken
 a backup before I attempted this but the restore failed after the
 installation.
 I had re-allocated partitions of my harddrive and know for a fact that the
 previous sectors were not overwritten. In fact with a couple of tools, I can
 see signs of it.
 
 
  Please try http://www.cgsecurity.org/wiki/TestDisk
 
 and post the details.
 
 If you would like to go with commercial data recovery agency:
 
 you can try http://www.stellarinfo.com/contact.htm
 
 But I would recommend using Test Disk as you might recover it on your own.
 
 Best of Luck
 
 Ravi Kumar Tenneti

Also Photorec,

http://www.cgsecurity.org/wiki/PhotoRec

One problem is, It will not recover the filename, it will recover only
the content of a file.

Thanks,
Mohan.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn3U+UACgkQvyYJpV5CUmvYYACgnQVmTX0mmPaVkG6cfJSYLVUJ
0/AAmgIhjRXdFfOsK8puD8PZU+7fF27O
=bcIo
-END PGP SIGNATURE-

___
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
unsubscribe password address
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc