Ubuntu – Fsck gets mad when the file system is mounted

filesystemfsckmount

When I run fsck -fy in a terminal it says something similar to:

WARNING!! FILE SYSTEM MOUNTED!! You will cause seviere damages.

Why is that? This might be a little off-topic but I ran that command under Mac OS X and it didn't complain about anything, nothing bad happened.

I have the familiar setup, Mac G4 800mhz 832mb ram lubuntu 11.04

Best Answer

Running fsck -fy on a mounted ext3/ext4 formatted drive is not recommended because logically, it will be trying to analyse for inconsistencies on effectively a moving target. The action of modifying the filesystem means that anything you have analysed will have to be reanalysed.

There is very similar question and answer on the Unix Stackoverflow site that has more detail as to why it is a bad idea.

Related Question