All of lore.kernel.org
 help / color / mirror / Atom feed
* I've done a very bad mistake
@ 2004-07-01 13:23 Andreas Otto
  2004-07-01 15:25 ` mjt
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andreas Otto @ 2004-07-01 13:23 UTC (permalink / raw)
  To: reiserfs-list

Hi,

  I've done as root: 
   >> cp some_file /dev/hdb7

  /dev/hdb7 is "was :-(" a reiserfs partition.

  Question?

  I need a tool with partition as input (dev/hdb7) and all not damaged files
  as output

  for me it is very important to get a solution ... help welcome :-)


mfg

  aotto


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: I've done a very bad mistake
@ 2004-07-06  6:28 Andreas Otto
  0 siblings, 0 replies; 8+ 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] 8+ messages in thread

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 13:23 I've done a very bad mistake Andreas Otto
2004-07-01 15:25 ` mjt
2004-07-01 15:36 ` Mikael Cluseau
2004-07-01 17:10   ` evilninja
2004-07-01 17:33 ` Redeeman
2004-07-02  4:02   ` David Masover
2004-07-02 12:45     ` Redeeman
  -- strict thread matches above, loose matches on Subject: below --
2004-07-06  6:28 Andreas Otto

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.