How does the operating system (Linux) while rebooting checks whether abnormal termination happened during last shutdown and then does the file system consistent checks etc if required ?


Filesystems write a mark before mounting a volume read-write and reset this mark after successfully closing all write operations and unmounting (or mounting read-only). See https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#The_Super_Block

  • what other checks are performed while the system reboots after abnormal termination ?
    – Sanket
    Mar 11 '13 at 6:40
  • 1
    @Sanket File system check is about it. If you need to check something else (application-level data consistency) you have to explicitly put it into the start-up scripts.
    – peterph
    Mar 11 '13 at 9:07
  • Similar to the journal run of a FS is (or may be in a good configuration) the sync run of a RAID. That is even before the FS is seen, of course. In contrast to a file system check or journal run the RAID sync doe not block the system, though (unless you prefer it) because this can be done in the background. Mar 11 '13 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.