All of lore.kernel.org
 help / color / mirror / Atom feed
* Undeleting a whole reiserfs partition
@ 2002-08-05 20:47 Javier Marcet
  0 siblings, 0 replies; 3+ messages in thread
From: Javier Marcet @ 2002-08-05 20:47 UTC (permalink / raw)
  To: reiserfs-list

Yesterday, by error, a 'rm -fr' slipped through to my /music partition,
a 20GB reiserfs which was at arounf 85% full. SInce then no other
activity took place on it. Is there any easy way to recover my files?

In the docs, it says you cannot undelete files in reiserfs partitions,
since what you delete is most probable overwritten by the next comitted
data. In my case, there has been no additional modification of the
partition, though.


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

* Undeleting a whole reiserfs partition
@ 2002-08-10  9:27 zephod
  2002-08-10 10:29 ` Hans Reiser
  0 siblings, 1 reply; 3+ messages in thread
From: zephod @ 2002-08-10  9:27 UTC (permalink / raw)
  To: reiserfs-list

>Yesterday, by error, a 'rm -fr' slipped through to my /music partition,
>a 20GB reiserfs which was at arounf 85% full. SInce then no other
>activity took place on it. Is there any easy way to recover my files?
>
>In the docs, it says you cannot undelete files in reiserfs partitions,
>since what you delete is most probable overwritten by the next comitted
>data. In my case, there has been no additional modification of the
>partition, though.

Today I did exactly the same thing (on a 3.9 GB partition though). I could
have killed myself for doing it!

I first backed up the partition just to be safe:

   dd if=/dev/hdsomething of=backupfie
   losetup /dev/loop5 backupfile

then I tried:

   reiserfsck --rebuild-tree --scan-whole-partition /dev/loop5
   mount /dev/loop5 <mountpoint>

and what do you know! All my deleted stuff reappeared. As we speak I am
restoring now the original partition.

I guess this only worked because immediatly unmounted the partition after my
unfortunate error to prevent writing new nodes and data.

Also: Making backups of your data is never wasted time nor a waste of CD's
 and it is better for your nervous system too (I think this cost me another
 year of my life ;) )

Hope this works out for you,

Z.



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

* Re: Undeleting a whole reiserfs partition
  2002-08-10  9:27 Undeleting a whole reiserfs partition zephod
@ 2002-08-10 10:29 ` Hans Reiser
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Reiser @ 2002-08-10 10:29 UTC (permalink / raw)
  To: zephod; +Cc: Ramon Reiser, Vitaly Fertman, reiserfs-list

zephod (by way of zephod ) wrote:

>>Yesterday, by error, a 'rm -fr' slipped through to my /music partition,
>>a 20GB reiserfs which was at arounf 85% full. SInce then no other
>>activity took place on it. Is there any easy way to recover my files?
>>
>>In the docs, it says you cannot undelete files in reiserfs partitions,
>>since what you delete is most probable overwritten by the next comitted
>>data. 
>>
Where does it say that?  It needs correcting.....

>>In my case, there has been no additional modification of the
>>partition, though.
>>    
>>
>
>Today I did exactly the same thing (on a 3.9 GB partition though). I could
>have killed myself for doing it!
>
>I first backed up the partition just to be safe:
>
>   dd if=/dev/hdsomething of=backupfie
>   losetup /dev/loop5 backupfile
>
>then I tried:
>
>   reiserfsck --rebuild-tree --scan-whole-partition /dev/loop5
>   mount /dev/loop5 <mountpoint>
>
>and what do you know! All my deleted stuff reappeared. As we speak I am
>restoring now the original partition.
>
>I guess this only worked because immediatly unmounted the partition after my
>unfortunate error to prevent writing new nodes and data.
>
>Also: Making backups of your data is never wasted time nor a waste of CD's
> and it is better for your nervous system too (I think this cost me another
> year of my life ;) )
>
>Hope this works out for you,
>
>Z.
>
>
>
>
>  
>


-- 
Hans




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

end of thread, other threads:[~2002-08-10 10:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-10  9:27 Undeleting a whole reiserfs partition zephod
2002-08-10 10:29 ` Hans Reiser
  -- strict thread matches above, loose matches on Subject: below --
2002-08-05 20:47 Javier Marcet

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.