Disque dur - commande pour défragmenter [Réglé]
zalappy Membre non connecté
-
- Voir le profil du membre zalappy
- Inscrit le : 28/07/2012
- Groupes :
-Interroger le disque et savoir à combien de pourcent il est fragmenté.
-La commande pour défragmenter.
C'est un disque dur en Fat32, windows ne veut pas le lire il veut d'abord le formater.
Comment faire, merci.
<table class="formatter-table">
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
shaka Membre non connecté
-
- Voir le profil du membre shaka
- Inscrit le : 03/09/2011
- Groupes :

Comprendre pourquoi la défragmentation est inutile sous Linux
a la fin de l'article tu as la reponse a ta 1ere question
Édité par shaka Le 17/09/2017 à 12h02
< mon OS: Mageia6 64 & XFCE4 > < ma machine:
> batterie KO / Proc en surchauffe 
PapyLinux Membre non connecté
-
- Voir le profil du membre PapyLinux
- Inscrit le : 23/05/2011
- Groupes :
Par ailleurs, si ce disque est lisible, Linux devrait être capable de l'ouvrir.
JLB
shaka Membre non connecté
-
- Voir le profil du membre shaka
- Inscrit le : 03/09/2011
- Groupes :
j'ai trouve e4defrag a utiliser en root (et present sur ma MGA5)Citation :
NAME
e4defrag - online defragmenter for ext4 filesystem
SYNOPSIS
e4defrag [ -c ] [ -v ] target ...
DESCRIPTION
e4defrag reduces fragmentation of extent based file. The file targeted
by e4defrag is created on ext4 filesystem made with "-O extent" option
(see mke2fs(8)). The targeted file gets more contiguous blocks and
improves the file access speed.
target is a regular file, a directory, or a device that is mounted as
ext4 filesystem. If target is a directory, e4defrag reduces fragmenta‐
tion of all files in it. If target is a device, e4defrag gets the mount
point of it and reduces fragmentation of all files in this mount point.
OPTIONS
-c Get a current fragmentation count and an ideal fragmentation
count, and calculate fragmentation score based on them. By see‐
ing this score, we can determine whether we should execute
e4defrag to target. When used with -v option, the current frag‐
mentation count and the ideal fragmentation count are printed
for each file.
Also this option outputs the average data size in one extent. If
you see it, you'll find the file has ideal extents or not. Note
that the maximum extent size is 131072KB in ext4 filesystem (if
block size is 4KB).
If this option is specified, target is never defragmented.
-v Print error messages and the fragmentation count before and
after defrag for each file.
NOTES
e4defrag does not support swap file, files in lost+found directory, and
files allocated in indirect blocks. When target is a device or a mount
point, e4defrag doesn't defragment files in mount point of other
device.
Non-privileged users can execute e4defrag to their own file, but the
score is not printed if -c option is specified. Therefore, it is desir‐
able to be executed by root user.
AUTHOR
Written by Akira Fujita <a-fujita@rs.jp.nec.com> and Takashi Sato <t-
sato@yk.jp.nec.com>.
SEE ALSO
mke2fs(8), mount(8).
e4defrag version 2.0 May 2009 E4DEFRAG(8)
e4defrag - online defragmenter for ext4 filesystem
SYNOPSIS
e4defrag [ -c ] [ -v ] target ...
DESCRIPTION
e4defrag reduces fragmentation of extent based file. The file targeted
by e4defrag is created on ext4 filesystem made with "-O extent" option
(see mke2fs(8)). The targeted file gets more contiguous blocks and
improves the file access speed.
target is a regular file, a directory, or a device that is mounted as
ext4 filesystem. If target is a directory, e4defrag reduces fragmenta‐
tion of all files in it. If target is a device, e4defrag gets the mount
point of it and reduces fragmentation of all files in this mount point.
OPTIONS
-c Get a current fragmentation count and an ideal fragmentation
count, and calculate fragmentation score based on them. By see‐
ing this score, we can determine whether we should execute
e4defrag to target. When used with -v option, the current frag‐
mentation count and the ideal fragmentation count are printed
for each file.
Also this option outputs the average data size in one extent. If
you see it, you'll find the file has ideal extents or not. Note
that the maximum extent size is 131072KB in ext4 filesystem (if
block size is 4KB).
If this option is specified, target is never defragmented.
-v Print error messages and the fragmentation count before and
after defrag for each file.
NOTES
e4defrag does not support swap file, files in lost+found directory, and
files allocated in indirect blocks. When target is a device or a mount
point, e4defrag doesn't defragment files in mount point of other
device.
Non-privileged users can execute e4defrag to their own file, but the
score is not printed if -c option is specified. Therefore, it is desir‐
able to be executed by root user.
AUTHOR
Written by Akira Fujita <a-fujita@rs.jp.nec.com> and Takashi Sato <t-
sato@yk.jp.nec.com>.
SEE ALSO
mke2fs(8), mount(8).
e4defrag version 2.0 May 2009 E4DEFRAG(8)
edit: ha pardon c'est pour du ext4

Édité par shaka Le 17/09/2017 à 12h19
< mon OS: Mageia6 64 & XFCE4 > < ma machine:
> batterie KO / Proc en surchauffe 
zalappy Membre non connecté
-
- Voir le profil du membre zalappy
- Inscrit le : 28/07/2012
- Groupes :
PapyLinux :
Si Windows n'arrive pas à lire le disque c'est qu'il y a plus grave qu'un problème de fragmentation à mon avis.
Par ailleurs, si ce disque est lisible, Linux devrait être capable de l'ouvrir.
JLB
Par ailleurs, si ce disque est lisible, Linux devrait être capable de l'ouvrir.
JLB
Non, c'est le disque dur connecter à mon décodeur Sat.
Windows est incapable de le lire, alors qu'avec notre chère Linux rien ne lui résiste.
<table class="formatter-table">
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
funix Membre non connecté
-
- Voir le profil du membre funix
- Inscrit le : 17/12/2012
- Site internet
- Groupes :
teutates Membre non connecté
-
- Voir le profil du membre teutates
- Inscrit le : 24/09/2011
- Site internet
- Groupes :
Sinon, depuis ta distribution préférée Linux, monter le disque pour récupérer les données afin de les copier ailleurs (sous réserve de la masse de données) et pouvoir ensuite reformater ce disque ? ... Méthode un peu bourrin mais ....
Toco y se gausos !
Asus P8Z68-V/GEN3 + Intel Core i2700k + RAM G-Skill 4x4Go PC 12800 + Gainward Geforce GTX 560 - 2 Go + Western Digital Velociraptor 300 Go (Mageia Cauldron / Fedora / Debian / Manjaro / Windows 10) + Seagate Barracuda 7200t/mn - 2 To - Sata 3 (data) + SSD Samsung 64 Go - Sata 3 (Mageia stable)
Asus P8Z68-V/GEN3 + Intel Core i2700k + RAM G-Skill 4x4Go PC 12800 + Gainward Geforce GTX 560 - 2 Go + Western Digital Velociraptor 300 Go (Mageia Cauldron / Fedora / Debian / Manjaro / Windows 10) + Seagate Barracuda 7200t/mn - 2 To - Sata 3 (data) + SSD Samsung 64 Go - Sata 3 (Mageia stable)
zalappy Membre non connecté
-
- Voir le profil du membre zalappy
- Inscrit le : 28/07/2012
- Groupes :
teutates :
Et en montant ce disque sur une machine virtuelle (même si l'opération sera probablement plus longue) ?
Sinon, depuis ta distribution préférée Linux, monter le disque pour récupérer les données afin de les copier ailleurs (sous réserve de la masse de données) et pouvoir ensuite reformater ce disque ? ... Méthode un peu bourrin mais ....
Sinon, depuis ta distribution préférée Linux, monter le disque pour récupérer les données afin de les copier ailleurs (sous réserve de la masse de données) et pouvoir ensuite reformater ce disque ? ... Méthode un peu bourrin mais ....
C'est déjà fait, j'ai copié tous les dossiers sur mon /home
Je vais cloner le disque avant d'y faire quoi que ce soit.
J'avais carrément pensé à faire un écrasement de fichier avec le system Ext4/
y mettre quelques fichiers, puis reformater le disque avec Mageia une fois ça le système aura tout remis à 0%
Je rebranche le disque sur le décodeur je le réinitialise et ensuite je recopie les dossiers que j'avais.
La méthode standard il y en aura facilement pour 3 jours d'immobilisation en défragmentation.
Là avec Ext4 , je suis certain du résultat, et c'est rapide.
<table class="formatter-table">
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
zalappy Membre non connecté
-
- Voir le profil du membre zalappy
- Inscrit le : 28/07/2012
- Groupes :
J'ai préféré donc, copié sur un autre dd la totalité des dossiers.
Formater avec mon décodeur
Recopier les dossiers sur le dd.
C'est plus rapide et le résultat est parfait.
<table class="formatter-table">
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
<tr class="formatter-table-row">
<td class="formatter-table-col">Mageia7.1/6/5-64bits-Xfce</td>
<td class="formatter-table-col">Demander la maj d'un prog existant du CCM.</td>
<td class="formatter-table-col">[Tuto] Configuration d'un serveur LAMP</td>
</tr>
<tr class="formatter-table-row">
<td class="formatter-table-col">[Tuto] installer VeraCrypt.</td>
<td class="formatter-table-col">Cloner un disque, une partition</td>
<td class="formatter-table-col">Thèmes icônes xfce/plasma les modifiées</td>
</tr>
</table>
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie