Ôpa, sendo reiserfs a solução é mais simples:

http://antrix.net/journal/techtalk/reiserfs_data_recovery_howto.comments

Dois depoimentos sobre o mesmo procedimento:

--------------------------
Bad news, there is no reiserfs undelete. But you can try the following
procedure :

Unmount that partition. e.g., umount /home

Find out what actual device this partition refers to. You can usually get
this information from the file /etc/fstab. We'll assume here that the device
is /dev/hda3.

Run the command: reiserfsck --rebuild-tree -S -l /root/recovery.log
/dev/hda3

You need to be root to do this. Read the reiserfsck man page for what these
options do and for more options. Some interesting options are '--rebuild-sb,
--check'

After the command finishes, which might be a long time for a big partition,
you can take a look at the logfile /root/recovery.log if you wish.

Mount your partition: mount /home

Look for the lost+found directory in the root of the partition. Here, that
would be:

/home/lost+found

This directory contains all the files that could be recovered.
Unfortunately, the filenames are not preserved for a lot of files. You'll
find some sub-directories - filenames withing those are preserved!

Look through the files and copy back what you need.

Robert

----------------
too accidentally deleted some files and followed the procedure listed below
which provided me a glimmer of hope.. and in the end succeeded!

It is recommended that you start this process before using the system too
much, overwriting your precious data. (or recover from backup because we all
keep good backups right?)

System Configuration:
Running Suse 9.1 2.6.5-7.111.30-default
reiserfs-3.6.13-24
raidtools-1.00.3-222.3

my /home partition which I removed the files was on a software raid mirror
(/dev/md0)

after umount /home -- took some effort since it was in use...

I continued with reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/md0

20 minutes later.. 99% of my files recovered (mostly /Maildir email)

Notes:
Instead of them being recovered into the actual directories with the correct
names.
Some files/directories where placed in lost+found, but I am confused on the
purpose. Of all the files I checked, the correct(complete) file was also
placed in the correct location in /home.

WARNING:
because of this recovery into actual directories and not lost+found there is
the chance or overwriting / merging with existing files. I read a post
somewhere where someone was recovering from the root partition (without
backing up first) and ended up corrupting the kernel and most of the
modules.

Shawn Rissman
---------------------

Abraço,

On 2/26/07, Gutemberg Motta <[EMAIL PROTECTED]> wrote:
>
> Nada feito...
> Minha partição é reiserfs...
>
> Valeu,
> Gutemberg
>
> Antonio Fonseca <[EMAIL PROTECTED]> wrote: Se voc� est� usando
> ext3 infelizmente n�o h� muito o que fazer ent�o. Voc�
> poderia at� recuperar alguns arquivos texto usando essa t�cnica:
>
> http://recover.sourceforge.net/unix/
>
> Por causa da maneira como o ext3 funciona (para aumentar a confiabilidade
> dos dados armazenados no volume), diferente do que ocorre com o ext2,
> provavelmente voc� n�o encontrar� uma maneira f�cil para 'undelete' seus
> arquivos.
>
> Veja o que tem a dizer Andreas Dilger, um dos desenvolvedores do ext3:
>
> *In order to ensure that ext3 can safely resume an unlink after a crash,
> it
> actually zeros out the block pointers in the inode, whereas
> ext2 just marks these blocks as unused in the block bitmaps and marks the
> inode as "deleted" and leaves the block pointers alone.*
> *Your only hope is to "grep" for parts of your files that have been
> deleted
> and hope for the best.
>
> http://batleth.sapienti-sat.org/projects/FAQs/ext3-faq.html
> *
> Sei que agora n�o deve ajudar muito mas � sempre bom lembrar de fazer
> backups de dados importantes, principalmente antes de fazer experi�ncias
> com
> o sistema de arquivos.
>
> >Estava procurando uma maneira de renomear varios arquivos ao mesmo tempo,
> entrei no vivaolinux e tentei >ajeitar primeiro, pondo tudo em
> min�sculo...
>
> Desculpe n�o poder ajud�-lo muito nesse caso. Se conseguir algum progresso
> nos informe.
>
> Abra�o,
>
> On 2/25/07, Zandre Bran  wrote:
> >
> > On 2/25/07, Antonio Fonseca  wrote:
> > > Como n�o? Voc� experimentou com o 'recover' que indiquei a pouco? :-)
> > >
> > > sudo apt-get install recover
> >
> >     Antonio, mas o recover n�o � para ext2?
> >
> >     Pelo show ele n�o suporta ext3.
> >
> > > Abra��o,
> >
> >     Ab�s,
> >
> > Zandre.
> >
> > --
> > Interessado em aprender mais sobre o Ubuntu em portugu�s?
> > http://wiki.ubuntu-br.org/ComeceAqui  -
> > ubuntu-br mailing list
> > [email protected]
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
> >
>
>
>
> --
> ASF
> http://antoniofonseca.wordpress.com/
>
> "Voc� v� coisas que existem e se pergunta: por qu�? Eu imagino coisas que
> n�o existem e me pergunto: por que n�o?" (George Bernard Shaw)
>
> Interessado em aprender mais sobre o Ubuntu em portugu�s?
> http://wiki.ubuntubrasil.org/ComeceAqui
> --
> Interessado em aprender mais sobre o Ubuntu em portugu�s?
> http://wiki.ubuntu-br.org/ComeceAqui  -
> ubuntu-br mailing list
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>
>
>
> ---------------------------------
> Have a burning question? Go to Yahoo! Answers and get answers from real
> people who know.
> --
> Interessado em aprender mais sobre o Ubuntu em portugu�s?
> http://wiki.ubuntu-br.org/ComeceAqui  -
> ubuntu-br mailing list
> [email protected]
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>



-- 
ASF
http://antoniofonseca.wordpress.com/

"Você vê coisas que existem e se pergunta: por quê? Eu imagino coisas que
não existem e me pergunto: por que não?" (George Bernard Shaw)

Interessado em aprender mais sobre o Ubuntu em português?
http://wiki.ubuntubrasil.org/ComeceAqui
-- 
Interessado em aprender mais sobre o Ubuntu em português?
http://wiki.ubuntu-br.org/ComeceAqui  -
ubuntu-br mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

Responder a