[gull] récup fichier effacé
Marc SCHAEFER
schaefer at alphanet.ch
Fri Oct 10 18:01:02 CEST 2003
On Thu, Oct 09, 2003 at 10:37:49AM +0200, Eric Piollet wrote:
> J'avais un scipt shell (majmail sur /dev/hda6 (en ext3) ) mais j'avais aussi
> un fichier .majmail.swp (que je viens d'effacer)
> Mon malheur c'est que mon fichier majmail est maintenant une ancienne
> version
> Que puis je faire pour récupérer le fichier .majmail.swp ?
Cela a déjà été traité ici. Je vais résumer selon mon point de vue:
- en règle générale ce n'est pas possible avec les systèmes
de fichiers actuellement disponibles. Faire des backups
fréquents est une bonne solution.
- on peut dans certains cas et sous certaines conditions utiliser
e2fsdebug pour retrouver le fichier.
- il y a même un undelete, je ne sais pas ce qu'il vaut:
schaefer at defian:~% apt-cache search undelete
gmc - Midnight Commander - A powerful file manager. - Gnome version
gtkrecover - GUI for recover
mc - Midnight Commander - A powerful file manager. - normal version
recover - Undelete files on ext2 partitions
schaefer at defian:~% apt-cache show recover
Package: recover
Priority: optional
Section: admin
Installed-Size: 104
Maintainer: Noel Koethe <noel at debian.org>
Architecture: i386
Version: 1.3b-1
Depends: libc6 (>= 2.2.4-4)
Filename: pool/main/r/recover/recover_1.3b-1_i386.deb
Size: 13360
MD5sum: a6d0b77ce1ad858878f46b426490a661
Description: Undelete files on ext2 partitions
Recover automates some steps as described in the ext2-undeletion
howto. This means it seeks all the deleted inodes on your hard drive
with debugfs. When all the inodes are indexed, recover asks you some
questions about the deleted file. These questions are:
* Hard disk device name
* Year of deletion
* Month of deletion
* Weekday of deletion
* First/Last possible day of month
* Min/Max possible file size
* Min/Max possible deletion hour
* Min/Max possible deletion minute
* User ID of the deleted file
* A text string the file included (can be ignored)
.
If recover found any fitting inodes, it asks to give a directory name
and dumps the inodes into the directory. Finally it asks you if you
want to filter the inodes again (in case you typed some wrong
answers).
More information about the gull
mailing list