All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: I've done a very bad mistake
@ 2004-07-06  6:28 Andreas Otto
  2004-07-06  7:15 ` --rebuild-tree Cami
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Otto @ 2004-07-06  6:28 UTC (permalink / raw)
  To: reiserfs-list

Hi,

  cp writes to the file and !!overwrite!! everythin at the beginning
  including bootsector, logs, ....

 just more information:

basic step:
 1. /dev/hdb7 was 40G with 20G data and 1.5G overwritten at the beginning
 2. dd_rescue cp the device into the file
 3. I splitt the 40G file into 100M pieces
 4. do strings at the pieces to extract all strings
 5. start to search 'grep' for the data (ascii source code) I was missing
 6. 2 day ago I've done a backup with a tar file
 7. found tar file (was broken) but I was able to extract the ascii data
    ==>> !!! never use gzip Archive !!! <<== if someting get very very wrong
   you can always recover ascii data even if near everything was broken
  => well done :-)
 
advanced step:
1. build superblock on dev/hdb7
2. build transaction log on dev/hdb7
3. fsck.resierfs --rebuild-tree seems to work
4. after mounting dev/hdb7 the fs was empty  :-(
5. but lost+found was filled :-)
    -> got 1 important archive back :-)))
6. but something I dont like ...
   20G data, 1.5G overwritten at the beginning but got only 8.7G back in 
   lost+found. the 8.7G was mainly a couple of big archive files.
  together 122 files from ~10.000 files

=> question to the reiserfs guys 

   Why was the recover rate so bad?


mfg

  aotto


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-06 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06  6:28 I've done a very bad mistake Andreas Otto
2004-07-06  7:15 ` --rebuild-tree Cami
2004-07-06  8:56   ` --rebuild-tree Vladimir V. Saveliev
2004-07-06  9:20     ` --rebuild-tree Cami
2004-07-06 10:22     ` --rebuild-tree Vitaly Fertman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.