The Full Wiki

Fsck: Wikis


Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to fsck article)

From Wikipedia, the free encyclopedia

The system utility fsck (for "file system check") is a tool for checking the consistency of a file system in Unix and Unix-like operating systems such as Linux.

Generally, fsck is run automatically at boot time when the operating system detects that a file system is in an inconsistent state, indicating a non-graceful shutdown, such as a crash or power loss. As the command must be tailored specifically to the design of the file system, the exact behavior of various fsck implementations will vary. Typically, fsck utilities provide options for either interactively repairing damaged file systems (the user must decide how to fix specific problems), automatically deciding how to fix specific problems (so the user doesn't have to answer any questions), or reviewing the problems that need to be resolved on a file system without actually fixing them.

A system administrator can also run fsck manually if there is believed to be a problem with the file system. Because running fsck to repair a file system which is mounted for read/write operations can potentially cause severe data corruption/loss, the file system is normally checked while unmounted, mounted read-only, or with the system in a special maintenance mode that limits the risk of such damage.

A journaling file system is designed such that tools such as fsck do not need to be run after unclean shutdown (i.e. crash). The UFS2 Filesystem in FreeBSD has background fsck, so it is usually not necessary to wait for fsck to finish before accessing the disk.

The Microsoft equivalent programs are CHKDSK and SCANDISK.

Contents

NTFS

Support for NTFS volumes is not currently (2009) included in fsck, but there are plans to include such support eventually.

Use as profanity

Before the rise of journaling file systems, it was common for an improperly shut-down Unix system's file system to develop a corrupted superblock. This possibly-serious problem could only be resolved by running fsck, which could take anywhere from a few seconds to hours, depending on the volume's size and disk I/O throughput. Because of the severity of fsck not being able to resolve this error, the terms "fsck" and "fscked" have come into use among Unix system administrators as a minced oath.[1] When one is told "Go fsck yourself!" the implied meaning is to "go away, analyze yourself, and fix your problems", mirroring fsck's primary function.

It is unclear whether this usage was cause or effect, as it has been anecdotally reported that Dennis Ritchie has claimed "The second letter was originally different." [2]

Pronunciation

Like many computer jargon terms without vowels, fsck is essentially unpronounceable in most languages and so people are forced to improvise when speaking it aloud. It can be pronounced "F-S-C-K", "F-S-check", "F-sack", "fisk", "fizik", "F-sick", "F-suck" (associated with how long it takes to run [3]), "F-sek", the sibilant "fsk", or "fusk".

Example

The following example checks the file system on the first partition of the second hard disk:

fsck /dev/sdb1

See also

References

  1. ^ Raymond, Eric S (September 24, 1999). "fscking". The Jargon File. Archived from the original on 2010-01-03. http://www.webcitation.org/5mVBHbWKJ. "fscking: /fus'-king/ or /eff'-seek-ing/ adj. [Usenet; common] Fucking, in the expletive sense (it refers to the Unix filesystem-repair command fsck(1), of which it can be said that if you have to use it at all you are having a bad day). Originated on {scary devil monastery} and the bofh.net newsgroups, but became much more widespread following the passage of {CDA}. Also occasionally seen in the variant ‘What the fsck?’"  
  2. ^ Google USENET archive of a 1998 post to alt.sysadmin.recovery
  3. ^ Example USENET post

External links








Got something to say? Make a comment.
Your name
Your email address
Message