Contenu | Rechercher | Menus

Annonce

Bientôt Ubuntu 16.04 LTS
Réservez vos DVD et clé USB Ubuntu-fr dès maintenant

En cas de déconnexions intempestives, merci de vous connecter à partir de cette page en cochant la case « Me connecter automatiquement lors de mes prochaines visites ».

#1 Le 03/05/2010, à 18:33

grandtoubab
Membre

Parametrer la frequence du check disk (fsck) au demarrage de Lucid

Bonjour
Péridiquement au démarrage vous avez surement remarqué un check disk qui est lancé alors que c'est justement à ce moment que vous voudriez que ça boot rapidos mad

Apparemmment ça se passe par là
http://manpages.ubuntu.com/manpages/dapper/en/man8/tune2fs.8.html

Repérer ses partitions / et /home

@ubuntu-desktop:~$ df -T
Sys. de fich. Type   1K-blocs       Occupé Disponible Capacité Monté sur
/dev/sda3     ext4    10160468   5372964   4275436  56% /
none      devtmpfs      185264       288    184976   1% /dev
none         tmpfs      189676      1040    188636   1% /dev/shm
none         tmpfs      189676       108    189568   1% /var/run
none         tmpfs      189676         0    189676   0% /var/lock
none         tmpfs      189676         0    189676   0% /lib/init/rw
/dev/sda2  fuseblk    94847756  60170320  34677436  64% /media/ACERDATA
/dev/sda6     ext4    19308816  12016772   6318912  66% /home

lister les parametres en cours:
 

sudo dumpe2fs -h /dev/sda3 | grep -i 'mount count'
sudo dumpe2fs -h /dev/sda6 | grep -i 'mount count'

Ajuster la valeur, j'ai choisit le lancement de fsck tout les 90 montages

@ubuntu-desktop:~$ sudo tune2fs -c 90 /dev/sda3
tune2fs 1.41.11 (14-Mar-2010)
Initialisation du nombre maximal de montages à 90
@ubuntu-desktop:~$ sudo tune2fs -c 90 /dev/sda6
tune2fs 1.41.11 (14-Mar-2010)
Initialisation du nombre maximal de montages à 90

listage complet des caractéristiques:

@ubuntu-desktop:~$ sudo dumpe2fs -h /dev/sda3
dumpe2fs 1.41.11 (14-Mar-2010)
Filesystem volume name:   Ubuntu
Last mounted on:          /
Filesystem UUID:          ae02ece1-192f-4996-8067-144aaa760f93
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent sparse_super large_file uninit_bg
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              642112
Block count:              2560359
Reserved block count:     128017
Free blocks:              1196918
Free inodes:              366996
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      625
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8128
Inode blocks per group:   254
Filesystem created:       Fri Oct 17 22:09:45 2008
Last mount time:          Mon May  3 18:09:12 2010
Last write time:          Mon May  3 18:56:23 2010
Mount count:              8
Maximum mount count:      90
Last checked:             Sun May  2 14:24:10 2010
Check interval:           15552000 (6 months)
Next check after:         Fri Oct 29 14:24:10 2010
Lifetime writes:          71 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          128
Journal inode:            8
First orphan inode:       284547
Default directory hash:   tea
Directory Hash Seed:      b8964b01-05de-4595-a41b-6d1ebdb9f5b9
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Taille du journal:        128M
Journal length:           32768
Journal sequence:         0x0013f509
Journal start:            1
@ubuntu-desktop:~$ sudo dumpe2fs -h /dev/sda6
dumpe2fs 1.41.11 (14-Mar-2010)
Filesystem volume name:   Home
Last mounted on:          /home
Filesystem UUID:          eebd4af3-8098-400f-a05b-54298dca87cd
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              1220608
Block count:              4865679
Reserved block count:     243283
Free blocks:              1823576
Free inodes:              1137330
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1022
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   256
Filesystem created:       Fri Oct 17 22:09:50 2008
Last mount time:          Mon May  3 18:09:15 2010
Last write time:          Mon May  3 18:56:35 2010
Mount count:              3
Maximum mount count:      90
Last checked:             Mon May  3 17:46:19 2010
Check interval:           15552000 (6 months)
Next check after:         Sat Oct 30 17:46:19 2010
Lifetime writes:          38 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          128
Journal inode:            8
First orphan inode:       802833
Default directory hash:   tea
Directory Hash Seed:      4c973ea7-8e75-4cea-b999-34a7f29d97d1
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Taille du journal:        128M
Journal length:           32768
Journal sequence:         0x0017647a
Journal start:            1

Sinon la documentation complète est là

http://doc.ubuntu-fr.org/verification_de_fichiers

Dernière modification par grandtoubab (Le 09/05/2010, à 06:44)


Linux tout seul sur le disque dur  Acer Aspire T650 :=))
RAM: 1,7 Gio, CPU: Intel® Pentium(R) 4 CPU 3.06GHz × 2. Carte graphique Gallium 0.4 on ATI RC410 (Radeon Xpress200)
Linux desktop 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) i686 GNU/Linux
Debian 8 Jessie XFCE

Hors ligne