Alors , en version 12.04 que j'ai installée il y a quelques semaines
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"
.
Le seul truc que j'ai réussi à faire
1) Formatage d'un disque externe au format ext4 compatible 12.04 avec création d'une partition SDB2
2) Montage de la partition et positionnement
sudo mount /dev/sdb2 /mnt
cd /mnt
et recherche a partir d'une partition. Pour pas mal c'était impossible car nouveau format ext4. La partition ne doit pas être montée.
La commande fut donc
a@a:/mnt$ sudo extundelete /dev/sda21 --restore-all
WARNING: Extended attributes are not restored.
Loading filesystem metadata ... 512 groups loaded.
Loading journal descriptors ... 28672 descriptors loaded.
Searching for recoverable inodes in directory / ...
38 recoverable inodes found.
Looking through the directory structure for deleted files ...
38 recoverable inodes still lost
.....
Mais au résultat
a@a:/mnt$ ls -ls RECOVERED_FILES
total 0
a@a:/mnt$
Il faudrait peut-être que je supprime des fichiers....
Ajout. Je viens de faire un essai que je crois complet tout en version 12.04.
- Création d'une partition SDB en ext4
- Duplication de pas mal de répertoire,
- Démontage
- Suppression de ce qui a été dupliqué.
- Démontage
- Lancement de la récupération
sudo mount /dev/sdb2 /mnt
cd /mnt
sudo extundelete /dev/sdb1 --restore-all
WARNING: Extended attributes are not restored.
Loading filesystem metadata ... 1600 groups loaded.
Loading journal descriptors ... 32137 descriptors loaded.
Writing output to directory RECOVERED_FILES/
Searching for recoverable inodes in directory / ...
58518 recoverable inodes found.
Looking through the directory structure for deleted files ...
Unable to restore inode 7996586 (lost+found/control): No data found.
Unable to restore inode 7996587 (lost+found/async): No data found.
Unable to restore inode 7996588 (lost+found/runtime_enabled): No data found.
Unable to restore inode 7996589 (lost+found/runtime_active_kids): No data found.
Unable to restore inode 7996590 (lost+found/runtime_active_time): No data found.
Unable to restore inode 7996592 (lost+found/runtime_status): No data found.
Unable to restore inode 7996593 (lost+found/runtime_usage): No data found.
Unable to restore inode 7996594 (lost+found/runtime_suspended_time): No data found.
Unable to restore inode 8000111 (lost+found/mode): No data found.
Unable to restore inode 7998780 (lost+found/ff): No data found.
Unable to restore inode 7998781 (lost+found/ev): No data found.
Unable to restore inode 7998782 (lost+found/sw): No data found.
Unable to restore inode 7998783 (lost+found/abs): No data found.
Unable to restore inode 7998784 (lost+found/key): No data found.
Unable to restore inode 7998785 (lost+found/led): No data found.
Unable to restore inode 7998786 (lost+found/msc): No data found.
Unable to restore inode 7998787 (lost+found/rel): No data found.
Unable to restore inode 7998788 (lost+found/snd): No data found.
Unable to restore inode 8126466 (lost+found/xps_cpus): No data found.
Unable to restore inode 8126467 (lost+found/tx_timeout): No data found.
Unable to restore inode 8126468 (lost+found/byte_queue_limits): No data found.
a@a:/mnt$ cd RE*
a@a:/mnt/RECOVERED_FILES$ ls -als
total 8
4 drwxr-xr-x 2 root root 4096 déc. 24 15:21 .
4 drwxr-xr-x 5 root root 4096 déc. 24 15:21 ..
a@a:/mnt/RECOVERED_FILES$
Evidemment, avec une version très récente de ubuntu....
a@a:~$ sudo extundelete /dev/sdb1 --restore-all
extundelete: Bad magic number in super-block when trying to open filesystem /dev/sdb1
a@a:~$