Jump to content

Force integrity check?


hea
 Share

Recommended Posts

After unclean shutdown (usually power failure, not ML freezing or somthing ofcourse 8) ) the question arises when booting: Force integrity check? And i have to decide in seconds. Is this parallell to the windoze scandisk. Should i answer yes? I once did with little luck. I didnt manage to get back in to the system at all. This was a fresh install so i didnt bother much to find out what happend, just reinstalled. But in general what is the integrity check supposed to do , and is there any risk of loosing data connected to it?

Link to comment
Share on other sites

Integrity checks are similar to what Windows does with scan disk. It used to check whether your filesystem is still intact, and find any left over files.

 

Its not so important if you have a journalled file system, as they are designed deal with these problems. Personnally I rarely bother as use ext3 and its only a desktop PC, but I always did when I had ext2.

Link to comment
Share on other sites

However, it will do this for several reasons..

 

1. You powered down in a "nasty" way.. It wants to check everything and make sure its ok. Say YES.

 

2. Periodically, the OS will schedule the partition for a check (e.g. once a month). Say YES. Can't hurt.

 

Journaled means that changes are tracked in a journaled log. It's very quick to restore any chanages if something went wrong since it only has to process the info in the journal log vs checking the entire file system. A check however will check your entire partition and isn't a bad idea once in a blue moon.

Link to comment
Share on other sites

2. Periodically, the OS will schedule the partition for a check (e.g. once a month). Say YES. Can't hurt. 

 

Is this a periodic check that is set up by default when installing the system or will i have to specify this somewhere.

 

But; as i mentioned previously i had a terrible expierience when answering yes to this on a nother occasion so i will make a backup first i guess.

Link to comment
Share on other sites

It might vary by distribution, but ext3 (and other JFS) does (do) run the check periodically, just as ext2 does. Unless you have a very large disk and large files, generally you won't notice it, because the journalling keeps track of what files were opened, closed, etc., so it doesn't have to check every file. As far as the bad experience goes, generally a system will be smart enough to know when it can automatically fix something. At time it will come across something and prompt you as to whether you want it to force a repair which is different from force a check. This is the point where you can screw up the filesystem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...