how to force fsck on next boot or reboot ?

Due to the deletion of the data, I concluded that data with old date stamps or older data was deleted first rather than newer data. Am I foolish in the above conclusion ? If so, please post a comment or email me without any hesitance.

I was immediately in debian irc and a kind person has informed or more precisely educated me about how to force check the file system at next reboot or boot.

By default Debian forces file check after 30 boots or 180 days, whichever comes first. In order to override the above defaults, you can give the following command.

# touch /forcefsck

If you give the above command, it will check your data on next boot.
If you are impatient, then give the following command [ please close all open programs and save the data before giving the command ]

# reboot

There is also another method, If you are familiar with shutdown command, you can use :

# shutdown -Fr now

-F will force fsck to run on reboot
-r reboot after shutdown

By the above two methods you can force fsck to run.

The End.
 
 
Creative Commons License
This work by maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
 
 

0 comments :: how to force fsck on next boot or reboot ?

Post a Comment