Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
It might be easier to help you if you tell us about your setup. –  N.N. Aug 25 '11 at 12:16

3 Answers 3

up vote 8 down vote accepted

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.

share|improve this answer

Mac OS X uses a different file system type (HFS+), which based on your feedback (I don't use it) can be checked with the filesystem mounted. Ext3 and Ext4 can not be safely checked while mounted.

share|improve this answer

You cannot do that because you can cause damage to the partitions.

What you can do is first umount the disk you're interested in and do the fsck, if it's the root disk, the simplest thing you can do is to run an ubuntu live cd and run it from there.

share|improve this answer
    
you're using the ``f'' option that means fix, so in some cases it could modify the partition if it finds errors. –  Ignacio Bermudez Aug 26 '11 at 6:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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