59:linux_lab
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
59:linux_lab [2012/04/10 10:42] – créée auntiee | 59:linux_lab [2012/04/27 15:27] (Version actuelle) – kai23 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ** | ||
You know that sinking feeling that happens when you realize you just deleted a bunch of important files you really needed. It's a terrible feeling - and often followed by worry, panic and repeated “why did I just do that?” Stealing a cue from Douglas Adams; “don' | You know that sinking feeling that happens when you realize you just deleted a bunch of important files you really needed. It's a terrible feeling - and often followed by worry, panic and repeated “why did I just do that?” Stealing a cue from Douglas Adams; “don' | ||
Ligne 6: | Ligne 7: | ||
A word of caution before proceeding any further - do not mount or boot the drive you’re recovering from. The more the medium is accessed the greater the chance of data loss. Before diving in to recovering data, we make a backup of the original medium. One of the main principles of data recovery is to work with a copy of the original medium rather than the medium itself. | A word of caution before proceeding any further - do not mount or boot the drive you’re recovering from. The more the medium is accessed the greater the chance of data loss. Before diving in to recovering data, we make a backup of the original medium. One of the main principles of data recovery is to work with a copy of the original medium rather than the medium itself. | ||
+ | ** | ||
+ | Vous connaissez sûrement ce sentiment de déprime qui se produit quand vous réalisez que vous venez de supprimer un tas de fichiers importants dont vous avez réellement besoin. C'est un sentiment horrible - et souvent suivi par de l' | ||
+ | |||
+ | Foremost est un outil de récupération de données écrit à l' | ||
+ | |||
+ | sudo apt-get install foremost | ||
+ | |||
+ | Un mot d' | ||
+ | |||
+ | ** | ||
Another important principle is to back up to a medium that isn’t the original medium (obviously you don’t want to corrupt the drive while trying to recover data from it!). The drive you back up to should have enough free space to hold an image of the entire drive (with the lost files). In this example, we'll recover data from a 1GB flash drive to a system with an 80GB hard drive. We begin by making that working image of the flash drive: | Another important principle is to back up to a medium that isn’t the original medium (obviously you don’t want to corrupt the drive while trying to recover data from it!). The drive you back up to should have enough free space to hold an image of the entire drive (with the lost files). In this example, we'll recover data from a 1GB flash drive to a system with an 80GB hard drive. We begin by making that working image of the flash drive: | ||
Ligne 18: | Ligne 29: | ||
mkdir ~/recovery | mkdir ~/recovery | ||
+ | ** | ||
+ | Il est également important de faire les sauvegardes sur un autre support que celui d' | ||
+ | |||
+ | sudo dd if=/ | ||
+ | |||
+ | Ensuite, nous devons donner la propriété utilisateur au fichier image que nous venons de créer. Dans ce cas, le nom d' | ||
+ | |||
+ | sudo chown charm.charm mypendrive.img | ||
+ | |||
+ | Foremost récupère un grand nombre de types de données différents allant des fichiers .art d'AOL aux fichiers audio .wav. Un autre outil, photorec (qui fait partie du paquet testdisk) en reconnaît certes plus, mais Foremost peut fonctionner avec des disques non montés et avec des fichiers images. Foremost a également besoin d'un chemin pour sauver les données. Ce chemin ne devrait pas être sur le support d' | ||
+ | |||
+ | mkdir ~/recovery | ||
+ | |||
+ | ** | ||
Now let's recover some pdf and png files: | Now let's recover some pdf and png files: | ||
Ligne 28: | Ligne 53: | ||
The -t switch specifies the types of files to recover. To specify multiple file types separate each file type with a comma. Lastly the -i switch indicates which image or device to recover from (again, it's best to use an image file rather than working with the original device). | The -t switch specifies the types of files to recover. To specify multiple file types separate each file type with a comma. Lastly the -i switch indicates which image or device to recover from (again, it's best to use an image file rather than working with the original device). | ||
+ | ** | ||
+ | Maintenant, nous allons récupérer quelques fichiers pdf et png : | ||
+ | |||
+ | foremost -vqQ -o recovery/ -t pdf,png -i mypendrive.img | ||
+ | |||
+ | L' | ||
+ | |||
+ | L' | ||
+ | |||
+ | L' | ||
+ | |||
+ | ** | ||
Foremost can recover erased files, files from formatted drives, even files that have been lost over multiple formats. In one case we were able to recover dozens of files from a hard drive formatted for ext3 which were clearly graphic files from a previous Windows installation. | Foremost can recover erased files, files from formatted drives, even files that have been lost over multiple formats. In one case we were able to recover dozens of files from a hard drive formatted for ext3 which were clearly graphic files from a previous Windows installation. | ||
Ligne 42: | Ligne 79: | ||
Now, at least there’s one more option when you get that sinking feeling that you’ve just deleted something you really meant to keep. | Now, at least there’s one more option when you get that sinking feeling that you’ve just deleted something you really meant to keep. | ||
+ | ** | ||
+ | |||
+ | Foremost peut aussi récupérer des fichiers effacés, les fichiers de disques formatés, voire même des fichiers qui ont été perdus au cours de multiples formatages. Il nous est même déjà arrivé de récupérer plusieurs douzaines de fichiers venant d'un disque dur formaté en ext3 qui étaient clairement des fichiers graphiques d'une installation précédente de Windows. | ||
+ | |||
+ | Foremost peut également récupérer des morceaux de fichiers en utilisant l' | ||
+ | |||
+ | Une autre option utile de Foremost est -T. Elle crée un nom de répertoire horodaté. Si vous prévoyez d' | ||
+ | |||
+ | foremost -vqQT -o recovery/ -t pdf,png -i mypendrive.img | ||
+ | |||
+ | Dans l' | ||
+ | |||
+ | recovery_Sun_Mar_11_15_29_42_2012 | ||
+ | |||
+ | Foremost est un excellent outil pour retrouver des images, des documents, des films et d' | ||
+ | |||
+ | Vous avez donc maintenant une solution supplémentaire à sentiment de déprime qui vous envahit lorsque vous venez de supprimer quelque chose que vous vouliez vraiment garder. | ||
+ |
59/linux_lab.1334047325.txt.gz · Dernière modification : 2012/04/10 10:42 de auntiee