Bonjour tout le monde.
Je voudrais que le check du file system ne se lance pas quand je démarre on portable sur batterie. J’imagine que c’est un paramètre à régler quelque part mais je ne sais pas où.
Merci.
A+
Bonjour tout le monde.
Je voudrais que le check du file system ne se lance pas quand je démarre on portable sur batterie. J’imagine que c’est un paramètre à régler quelque part mais je ne sais pas où.
Merci.
A+
Quels fs sont en présence ?
$ df -hT
Option “T” comme type.
Si tu veux un fs qui te débarasse à jamais de fsck, utilise xfs.
Deuxième chiffre à zéro à la ligne du montage dans /etc/fstab désactivera fsck pour ext3 (déconseillé).
$ man fstab
…
[code] The sixth field (fs_passno).
This field is used by the fsck(8) program to determine the order in which filesystem checks
are done at reboot time. The root filesystem should be specified with a fs_passno of 1, and
other filesystems should have a fs_passno of 2.
…
If the sixth field is not present or zero, a
value of zero is returned and fsck will assume that the filesystem does not need to be
checked.[/code]
La fréquence des vérifications de ext2/3/4 peut se régler à travers tune2fs.
$ man tune2fs
[code]
OPTIONS
-c max-mount-counts
Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If
max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disre‐
garded by e2fsck(8) and the kernel.
Staggering the mount-counts at which filesystems are forcibly checked will avoid all
filesystems being checked at one time when using journaled filesystems.
You should strongly consider the consequences of disabling mount-count-dependent checking
entirely. Bad disk drives, cables, memory, and kernel bugs could all corrupt a filesystem
without marking the filesystem dirty or in error. If you are using journaling on your
filesystem, your filesystem will never be marked dirty, so it will not normally be checked.
A filesystem error detected by the kernel will still force an fsck on the next reboot, but
it may already be too late to prevent data loss at that point.
See also the -i option for time-dependent checking.[/code]
Salut
Au début, il n’y avait pas de scan quand le portable est sur batterie.
Mais ça était désactivé dans squeeze en raison du bogues 526398
voir le fichier /etc/init.d/checkfs.sh et /etc/init.d/checkfroot.sh
pour désactiver temporairement le scan au prochain démarrage tu peux créer un fichier /fastboot :
Le système de fichier c’est du ext3.
Merci pour ces infos précieuses et rapides. Je vais finalement garder le fsck sur batterie je pense. Tant pis si c’est un peu plus long au démarrage quelquefois.
A+