Tags:,,,,, Posted in Debian,ligne de commande,planet-libre.org,Ubuntu 7 Comments

Je suis en train de revoir ma doc d’initiation à Debian (publication d’une nouvelle version très prochainement). Du coup, je sors quelques articles de cette doc. Là, je vais vous parler de la gestion des fichiers PAR2 sous Linux. Avis aux amateurs de newsgroups – tous ne savent pas qu’on peut gérer les .PAR2 autre part que dans QuickPar2 sous Windows. Hum.

J’explique par l’exemple :

aptitude install par2

Vous comprendrez vite fait comment utiliser la commande de vérification ou réparation, un exemple :

$ par2verify *PAR2 *
par2cmdline version 0.4, Copyright (C) 2003 Peter Brian Clements.
...
Loading "toto.vol001+01.PAR2".
Loaded 57 new packets including 1 recovery blocks
Loading "toto.vol002+02.PAR2".
Loaded 2 new packets including 2 recovery blocks
...
There are 27 recoverable files and 0 other files.
The block size used was 243200 bytes.
There are a total of 2002 data blocks.
The total size of the data files is 481943615 bytes.
Verifying source files:
Target: "toto.nfo" - found.
Target: "toto.r00" - found.
...
Target: "toto.r17" - missing.
...
Target: "toto.rar" - found.
Target: "toto.sfv" - found.
Scanning extra files:
File: "toto.r17.01-45" - found 45 of 83 data blocks from "toto.r17".
File: "toto.r17.50-83" - found 34 of 83 data blocks from "toto.r17".
Repair is required.
1 file(s) are missing.
26 file(s) are ok.
You have 1998 out of 2002 data blocks available.
You have 201 recovery blocks available.
Repair is possible.
You have an excess of 197 recovery blocks.
4 recovery blocks will be used to repair.

Nickel, vous n’avez plus qu’à lancer par2repair pour effectuer la réparation.

Voilà, y’a pas beaucoup plus à dire.
Ah si. Connaissiez-vous le paquet hellanzb et le plug-in hellafox pour Firefox ?
Un prochain article peut-être. Sinon lancez-vous, c’est assez simple. Un fichier de conf à revoir et zou.

28 novembre 2008