Linux force fsck on the next Reboot/Boot

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

Linux force fsck on the next Reboot/Boot

Postby lik » Thu Feb 04, 2010 6:30 am

Force fsck on boot using /forcefsck

By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check.

Login as the root. Create a file called forcefsck:
Code: Select all
touch /forcefsck

Now reboot the system:
Code: Select all
reboot


Force fsck on next boot using shutdown command

The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck:
Code: Select all
shutdown -rF now
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific

 


  • Related topics
    Replies
    Views
    Last post
cron