Vous n'êtes pas identifié(e).
Le saviez-vous ? La commande 'shutdown' peut également servir à analyser les disques durs au redémarrage de la machine via l'option -F.
Afin de forcer une analyse au prochain démarrage de la machine utilisez la commande suivante:
shutdown -r -F now
On peut aussi créer un fichier forcefsck à la racine, qui a le même effet. (non testé pour le moment)
[sudo] touch /forcefsck
Cette fonctionnalité incluse à shutdown permet de se faciliter la vie et est moins fastidieuse à utiliser que les commandes e2fsck et badblocks.
Extrait du man:
OPTIONS
-a Use /etc/shutdown.allow.-k Don't really shutdown; only send the warning messages to everybody.
-r Reboot after shutdown.
-h Halt or power off after shutdown.
-P Halt action is to turn off the power.
-H Modifier to the -h flag. Halt action is to halt or drop into boot monitor on systems
that support it. Must be used with the -h flag.-f Skip fsck on reboot.
-F Force fsck on reboot.
-n [DEPRECATED] Don't call init(8) to do the shutdown but do it ourself. The use of this
option is discouraged, and its results are not always what you'd expect.-c Cancel a waiting shutdown. ("shutdown now" is no longer waiting.) With this option it is
of course not possible to give the time argument, but you can enter explanatory message
arguments on the command line that will be sent to all users.-t sec Tell init(8) to wait sec seconds between sending processes the warning and the kill sig‐
nal, before changing to another runlevel.time When to shutdown.
warning message
Message to send to all users.The time argument can have different formats. First, it can be an absolute time in the format
hh:mm, in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in two digits).
Second, it can be in the format +m, in which m is the number of minutes to wait. The word now
is an alias for +0.If shutdown is called with a delay, it will create the advisory file /etc/nologin which causes
programs such as login(1) to not allow new user logins. This file is created five minutes before
the shutdown sequence starts. Shutdown removes this file if it is stopped before it can signal
init (i.e. it is cancelled or something goes wrong). It also removes it before calling init to
change the runlevel.The -f flag means `reboot fast'. This only creates an advisory file /fastboot which can be
tested by the system when it comes up again. The boot rc file can test if this file is present,
and decide not to run fsck(1) since the system has been shut down in the proper way. After
that, the boot process should remove /fastboot.The -F flag means `force fsck'. This only creates an advisory file /forcefsck which can be
tested by the system when it comes up again. The boot rc file can test if this file is present,
and decide to run fsck(1) with a special `force' flag so that even properly unmounted file sys‐
tems get checked. After that, the boot process should remove /forcefsck.The -n flag causes shutdown not to call init, but to kill all running processes itself. shut‐
down will then turn off quota, accounting, and swapping and unmount all file systems.
Hors ligne
Merci, on peut également forcer le chackdisk dans fstab.
Utiliser des logiciels propriétaires, c'est comme les plats préparés, on est incapable de dire les conservateurs qu'ils contiennent, on dira toujours que c'est bon, mais ça ne remplacera jamais le repas fait maison par sa maman.
]:D #! Crunchbang & Archlinux GNU/Linux User ]:D
Hors ligne
___________________________________________________________________
Édit:
Merci pour l'info
Dernière modification par Yzeew (26-12-2013 17:57:32)
>> Good things come to those who, Wait.. <<
>> sip:yzeew@ekiga.net << and >> #Pouni3 <<
Hors ligne