Is it safe to stop a fsck in progress?

Depends on the filesystem and the actual checking. E.g. it is usually not a good idea to interrupt a reiserfsck --rebuild-tree but nothing can happen when interrupting a read-only fsck of an ext3 filesystem.


The filesystem check on boot is usually read-only until it finds a problem then it will prompt you before making any changes so it is probably safe to intereupt.

But is is quite possible (and not uncommon for servers that need to come back up after a power-out) for it to be set to auto-fix, so unless you know for sure that your system is not configured this way let it run to completion for safety.

Most fsck programs are written in such a way that any changes that make are as atomic as possible and they will clean-up (completing or rolling back any current change) before responding to a TERM or INT signal (SIGINT is what is sent to the active process when ctrl+c is pressed) so even an actively writing fsck should be safe to interrupt, but I woudl not recommend taking the risk - better safe than sorry!

Tags:

Linux

Fedora

Fsck