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.

I mean I'm already here right. If not, why?

share|improve this question

1 Answer 1

up vote 9 down vote accepted

No.

Do not run fsck on a live or mounted file system. fsck is used to check and optionally repair a Linux file systems. Running fsck on a mounted filesystem can usually result in disk and/or data corruption.

This will force a check on next boot:

sudo touch /forcefsck

So will this but it will also reboot the machine at the moment you hit enter:

shutdown -rF now

There are more ways (like telling the machine to go to init 1 and then umount the partition/disc your want to check) but these 2 are the easiest.

share|improve this answer
1  
Also, don't try to get around this by running it read-only. The results from analyzing a moving target cannot be trusted. –  ændrük Jun 10 '11 at 5:59
    
Good call ændrük –  Rinzwind Jun 10 '11 at 6:50
    
Cool, thanks for the info. –  wojox Jun 10 '11 at 15:50

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.