|
|
1.1 ! root 1: ! 2: ! 3: fsck Command fsck ! 4: ! 5: ! 6: ! 7: ! 8: Check and repair file systems interactively ! 9: ! 10: /eettcc/ffsscckk [ -ffnnqqyy ] [ -tt _t_e_m_p_f_i_l_e ] [ _f_i_l_e_s_y_s_t_e_m ... ] ! 11: ! 12: fsck checks and interactively repairs file systems. If all is ! 13: well, ffsscckk merely prints the number of files used, the number of ! 14: blocks used, and the number of blocks that are free. If the file ! 15: system is found to be inconsistent in one of the aspects outlined ! 16: below, ffsscckk asks whether it should fix the inconsistency and ! 17: waits for you to reply yyeess or nnoo. ! 18: ! 19: The following file system aspects are checked for consistency by ! 20: fsck: ! 21: ! 22: * If a block is claimed by more than one i-node, by an i-node ! 23: and the free list, or more than once in the free list. ! 24: ! 25: * Whether an i-node or the free list claims blocks beyond the ! 26: file system's range. ! 27: ! 28: * Link counts that are incorrect. ! 29: ! 30: * Whether the directory size is not aligned for 16 bytes. ! 31: ! 32: * Whether the i-node format is correct. ! 33: ! 34: * Whether any blocks are not accounted for. ! 35: ! 36: * Whether a file points to an unallocated i-node. ! 37: ! 38: * Whether a file's i-node number is out of range. ! 39: ! 40: * Whether the super block refers to more than 65,536 i-nodes. ! 41: ! 42: * Whether the super block assigned more blocks to the i-nodes ! 43: than the system contains. ! 44: ! 45: * Whether the format of the free block list is correct. ! 46: ! 47: * Whether the counts of the total free blocks and the free i- ! 48: nodes are correct. ! 49: ! 50: fsck prints a warning message when a file name is null, has an ! 51: embedded slash `/', is not null-padded, or if `.' or `..' files ! 52: do not have the correct i-node numbers. ! 53: ! 54: When ffsscckk repairs a file system, any file that is orphaned (that ! 55: is, allocated but not referenced) is deleted if it is empty, or ! 56: copied to a directory called lloosstt+ffoouunndd, with its i-node number ! 57: as its name. The directory lloosstt+ffoouunndd must exist in the root of ! 58: the file system being checked before ffsscckk is executed, and it ! 59: must have room for new entries without requiring that new blocks ! 60: be allocated. ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66: ! 67: ! 68: ! 69: fsck Command fsck ! 70: ! 71: ! 72: ! 73: fsck accepts the following options: ! 74: ! 75: -ff Fast check. ffsscckk only checks whether a block has been claimed ! 76: by more than one i-node, by an i-node and the free list, or ! 77: more than once in the free list. If necessary, ffsscckk will ! 78: reconstruct the free list. ! 79: ! 80: -nn No option: a default reply of nnoo is given to all of ffsscckk's ! 81: questions. ! 82: ! 83: -qq Quiet option: run quietly. ffsscckk automatically removes all un- ! 84: referenced pipes, and automatically fixes list counts in the ! 85: super block and the free list. File-name warning messages are ! 86: suppressed, but ffsscckk still prints the number of files used, ! 87: the number of blocks used, and the number of blocks that ! 88: remain free. ! 89: ! 90: -tt Specify temporary file option: ffsscckk uses RAM device /ddeevv/rrrraamm11 ! 91: for temporary storage when checking filesystems larger than ! 92: approximately 35 megabytes. This option allows the user to ! 93: specify temporary storage other than the RAM device. ! 94: ! 95: -yy Yes option: a default reply of yyeess is given to all of ffsscckk's ! 96: questions. ! 97: ! 98: If you do not name a file system in ffsscckk's command line, ffsscckk ! 99: checks the file systems named in the file /eettcc/cchheecckklliisstt. ! 100: ! 101: If fsck is invoked for a file system larger than approximately 35 ! 102: megabytes, it uses the RAM device /dev/rram1 for temporary ! 103: storage. For this reason, it is strongly advised that you not ! 104: use /dev/rram1 as a RAM disk. ! 105: ! 106: ***** Files ***** ! 107: ! 108: /eettcc/cchheecckklliisstt ! 109: ! 110: ***** See Also ***** ! 111: ! 112: clri, commands, icheck, ncheck, ram, sync, umount ! 113: ! 114: ***** Notes ***** ! 115: ! 116: The correction of file systems almost always involves the ! 117: destruction of data. ! 118: ! 119: You can run fsck only when the COHERENT system is in single-user ! 120: mode. ! 121: ! 122: Previous editions of fsck could check no partition larger than 35 ! 123: megabytes. This restriction has been lifted. ! 124: ! 125: ! 126: ! 127: ! 128: ! 129: ! 130: COHERENT Lexicon Page 2 ! 131: ! 132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.