0
Thanks

A few words of thanks would be greatly appreciated.

Linux - Forcing disk verification using fsck





Intro


Disk verification under Linux, is done using the command fsck. However, for security constraints concerning the data present on the disk, it is strongly advised not to launch fsck from on a mounted partition. Note that it is difficult to remove the partitions requiring fsck because they are used by the system.

Solution 1


The aim is to request that the system to perform the fsck at the next reboot. To do this you just need to run the shutdown command with the-F parameter:
  • shutdown -r -F now

Solution 2

  • Another solution is to create the forcefsck file at the root of the system:
  • touch/forcefsck 
  • At the next restart, your hard disk will be analyzed and the file / forcefsck destroyed.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Original article published by . Translated by jak58. Latest update on by jak58.

This document, titled "Linux - Forcing disk verification using fsck," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).

0 Comments