DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Solving filesystem problems

fsck_ufs Phase 4: check reference counts

This phase checks the link count information obtained in Phases 2 and 3. It reports error conditions resulting from:

All errors in this phase (except running out of space in the lost+found directory) are correctable if the filesystem is being preened.

fsck_ufs Phase 4 error messages


UNREF FILE I=I OWNER=O MODE=M SIZE=S MTIME=T (RECONNECT)
Inode I was not connected to a directory entry when the filesystem was traversed. The owner O, mode M, size S, and modify time T of inode I are printed. When preening the file is cleared if either its size or its link count is zero; otherwise, it is reconnected.

Possible responses to the RECONNECT prompt are:


YES
Reconnect inode I to the filesystem in the directory for lost files (usually the lost+found directory). This may generate the lost+found error message in Phase 4 if there are problems connecting inode I to the lost+found directory.

NO
Ignore this error condition. This always invokes the CLEAR error condition in Phase 4.

(CLEAR)
The inode mentioned in the error message immediately preceding cannot be reconnected. This message cannot appear if the filesystem is being preened, because lack of space to reconnect files is a fatal error.

Possible responses to the CLEAR prompt are:


YES
Deallocate the inode by zeroing out its contents.

NO
Ignore this error condition.

NO lost+found DIRECTORY (CREATE)
There is no lost+found directory in the root directory of the filesystem; when preening, fsck tries to create a lost+found directory.

Possible responses to the CREATE prompt are:


YES
Create a lost+found directory in the root of the filesystem. This might generate the message:
   NO <Space> LEFT IN / (EXPAND)
See below for the possible responses. Inability to create a lost+found directory generates the message:
   SORRY. CANNOT CREATE lost+found DIRECTORY
and aborts the attempt to link up the lost inode. This in turn generates the UNREF error message in Phase 4.

NO
Abort the attempt to link up the lost inode. This generates the UNREF error message in Phase 4.

lost+found IS NOT A DIRECTORY (REALLOCATE)
The entry for lost+found is not a directory.

Possible responses to the REALLOCATE prompt are:


YES
Allocate a directory inode and change the lost+found directory to reference it. The previous inode reference by the lost+found directory is not cleared. Thus it is either reclaimed as an UNREFed inode or has its link count ADJUSTed later in this phase.

Inability to create a lost+found directory aborts the attempt to link up the lost inode and generates this message:

   SORRY. CANNOT CREATE lost+found DIRECTORY
This generates the UNREF error message in Phase 4.

NO
Abort the attempt to link up the lost inode. This generates the UNREF error message in Phase 4.

NO SPACE LEFT IN /lost+found (EXPAND)
There is no space to add another entry to the lost+found directory in the root directory of the filesystem. When preening, the lost+found directory is expanded.

Possible responses to the EXPAND prompt are:


YES
Expand the lost+found directory to make room for the new entry. If the attempted expansion fails fsck aborts the attempt to link up the lost inode and prints this message:
   SORRY. NO SPACE IN lost+found DIRECTORY
This generates the UNREF error message in Phase 4. Clear out unnecessary entries in the lost+found directory. This error is fatal if the filesystem is being preened.

NO
Abort the attempt to link up the lost inode. This generates the UNREF error message in Phase 4.

LINK COUNT TYPE I=I OWNER=O MODE=M SIZE=S MTIME=T COUNT=X
SHOULD BE Y (ADJUST)
The link count for inode I is X but should be Y. The owner O, mode M, size S, and modify time T are printed. When preening, the link count is adjusted unless the number of references is increasing, a condition that should never occur unless precipitated by a hardware failure. When the number of references is increasing during preening, fsck exits with the message:
   LINK COUNT INCREASING
Possible responses to the ADJUST prompt are:

YES
Replace the link count of file inode I by Y.

NO
Ignore this error condition.

UNREF TYPE I=I OWNER=O MODE=M SIZE=S MTIME=T (CLEAR)
Inode I was not connected to a directory entry when the filesystem was traversed. The owner O, mode M, size S, and modify time T of inode I are printed. Because this is a file that was not connected because its size or link count was zero, it is cleared during preening.

Possible responses to the CLEAR prompt are:


YES
Deallocate inode I by zeroing out its contents.

NO
Ignore this error condition.

BAD/DUP TYPE I=I OWNER=O MODE=M SIZE=S MTIME=T (CLEAR)
Phase 1 or Phase 1B has found duplicate blocks or bad blocks associated with inode I. The owner O, mode M, size S, and modify time T of inode I are printed. This message cannot appear when the filesystem is being preened, because it would have caused a fatal error earlier.

Possible responses to the CLEAR prompt are:


YES
Deallocate inode I by zeroing out its contents.

NO
Ignore this error condition.

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004