Desfragmentando seu HD com linux
Dica publicada em Linux / Sistema de Arquivos
Desfragmentando seu HD com linux
O maior estereótipo que existe no mundo Linux afirma que não precisamos desfragmentar nosso HD. Será mesmo? Não é o que parece na opinião do autor do defragfs-0.8, que pode ser visualizada em: The defragfs project.
Caso queira tirar isso a limpo, baixe-o no endereço http://sourceforge.net/projects/defragfs. Com apenas 3kb, ele pode analisar/desfragmentar seu sistema de arquivos, não sendo recomendado para ReiserFS.
O script é instalado com um simples "make" e o comando para analisar o disco é:
sudo defragfs /mnt/partição_desejada -f (este parâmetro força a desfragmentação, não sendo obrigatório)
Vejam abaixo um pequeno relatório de minha partição /home/user:
sudo ./defragfs /home/user
defragfs 0.8, Released under GPL by xucanhao@gmail.com
Analysis in progress...
NOTE: if the directory you specified contains too much files(e.g. tens of thousands), it could take you several minutes on analysis, you may disturb it by CTRL+C at anytime. And BTW: the program is CURRENTLY not accurate on Reiser4 due to its default tailing policy(you may see a high fragment rate before and even after)
find: `/home/user/.gvfs': Permissão negada
Statistics for /home/user
Total Files: 20749
Fragmented Files: 65
File Fragmentation Rate: 0.313268109306473%
Avg File Fragments(1 is best): 1.00530146031134
Most Fragmented Files(for details see /tmp/frags-result-before):
/home/user/Meus downloads/pacotes_genericos/LinuxMint-7.iso: 25 extents found, perfection would be 6 extents
/home/user/.mozilla/firefox-3.5/123sb0uf.default/XPC.mfasl: 10 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_002_: 5 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_003_: 4 extents found, perfection would be 1 extent
/home/user/Meus downloads/icones/Breathless.tar.bz2: 4 extents found, perfection would be 1 extent
/home/user/.config/cairo-dock/current_theme/indicator-evergreen.svg: 4 extents found, perfection would be 1 extent
/home/user/.mozilla.tar.gz: 3 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/XUL.mfasl: 3 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_001_: 3 extents found, perfection would be 1 extent
/home/user/Meus documentos/pdf/linux_mint.pdf: 3 extents found, perfection would be 1 extent
You do not need a defragmentation!
E no final vem a recomendação de que não necessito desfragmentá-la. Uma boa notícia!
Um relatório detalhado dos arquivos examinados você encontra em "/tmp/frags-result-before".
Até a próxima dica!
;o))
Caso queira tirar isso a limpo, baixe-o no endereço http://sourceforge.net/projects/defragfs. Com apenas 3kb, ele pode analisar/desfragmentar seu sistema de arquivos, não sendo recomendado para ReiserFS.
O script é instalado com um simples "make" e o comando para analisar o disco é:
sudo defragfs /mnt/partição_desejada -f (este parâmetro força a desfragmentação, não sendo obrigatório)
Vejam abaixo um pequeno relatório de minha partição /home/user:
sudo ./defragfs /home/user
defragfs 0.8, Released under GPL by xucanhao@gmail.com
Analysis in progress...
NOTE: if the directory you specified contains too much files(e.g. tens of thousands), it could take you several minutes on analysis, you may disturb it by CTRL+C at anytime. And BTW: the program is CURRENTLY not accurate on Reiser4 due to its default tailing policy(you may see a high fragment rate before and even after)
find: `/home/user/.gvfs': Permissão negada
Statistics for /home/user
Total Files: 20749
Fragmented Files: 65
File Fragmentation Rate: 0.313268109306473%
Avg File Fragments(1 is best): 1.00530146031134
Most Fragmented Files(for details see /tmp/frags-result-before):
/home/user/Meus downloads/pacotes_genericos/LinuxMint-7.iso: 25 extents found, perfection would be 6 extents
/home/user/.mozilla/firefox-3.5/123sb0uf.default/XPC.mfasl: 10 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_002_: 5 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_003_: 4 extents found, perfection would be 1 extent
/home/user/Meus downloads/icones/Breathless.tar.bz2: 4 extents found, perfection would be 1 extent
/home/user/.config/cairo-dock/current_theme/indicator-evergreen.svg: 4 extents found, perfection would be 1 extent
/home/user/.mozilla.tar.gz: 3 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/XUL.mfasl: 3 extents found, perfection would be 1 extent
/home/user/.mozilla/firefox-3.5/123sb0uf.default/Cache/_CACHE_001_: 3 extents found, perfection would be 1 extent
/home/user/Meus documentos/pdf/linux_mint.pdf: 3 extents found, perfection would be 1 extent
You do not need a defragmentation!
E no final vem a recomendação de que não necessito desfragmentá-la. Uma boa notícia!
Um relatório detalhado dos arquivos examinados você encontra em "/tmp/frags-result-before".
Até a próxima dica!
;o))