lundi 16 janvier 2012

Défragmenter Linux

J'ai souvent entendu dire beaucoup de bêtises à ce sujet...
Contrairement à ce que beaucoup s'imaginent (ou croient savoir...) Linux se fragmente... Certes beaucoup moins que Windows, mais cette fragmentation est bien réelle.
Le meilleur moyen de défragmenter Linux, c'est de faire une image (un ghost) de votre système avec Clonezilla. Lors de la procédure, celui-ci vous donnera le taux de fragmentation qui reste généralement insignifiant. Il suffit ensuite de restaurer cette "image" pour que votre disque soit défragmenté avec un minimum de risques (à condition de savoir se servir correctement de Clonezilla). Mais je vous rassure tout de suite cette défragmentation n'apporte généralement pas grand-chose...

Voici quelques notes prises sur Internet (je décline toute responsabilité en cas de problème!):


DEFRAGMENTER LINUX (notes)

Faire sudo fsck -a (utiliser depuis un CD live)
http://www.linuxquestions.org/questions/linux-general-1/defrag-on-linux-331862/

Hi,
do a "shutdown -F"
and it will tell you how much it is fragmented when the system reboots. It will be less than 5% unless the disk is full. The only file systems that seem to get fragmented are: ms-dos fat 16, fat32, ntfs. And vms. Since the person who wrote most of VMS is now working for Microsoft it probably has the some bugs. When I used to fix hard drives on DEC systems it was common to back the systems to tape, initialize the original drive, restore it all back again.

http://www.ehow.com/how_4473590_defrag-linux.html
There is one native solution to defragging a Linux partition or boot drive from directly within Linux. The “Linux File-System Defragmenter” runs only in the command-line environment. The application can be downloaded directly from the SourceForge software depository. To use The Linux File-System Defragmenter, download and expand the tarball and type “make” in the command-line terminal. Use of the utility can be implemented with the command: “#defragfs /mnt/hda1” (without the quotes). Specification of "-f" will also force defragmentation.

Read more: How to Defrag in Linux | eHow.com

Aucun commentaire:

Enregistrer un commentaire

Ajoutez un commentaire mais en bon Français ou éventuellement en bon Anglais. Les commentaires en langage SMS seront supprimés.