fsck_s5 Phase 4: Check Reference Counts
This phase checks the link count information
obtained in Phases 2 and 3.
It reports error conditions resulting from:
-
unreferenced files
-
a missing or full
lost+found
directory
-
incorrect link counts for files, directories,
or special files
-
unreferenced files and directories
-
bad or duplicate blocks in files and directories
-
incorrect total free-inode counts
Types of error messages--fsck_s5 Phase 4
Phase 4 has five types of error messages:
-
Informational messages.
-
Messages with a
RECONNECT?
prompt, which can be responded to as follows:
n (no)-
Ignore this error condition.
This response generates a
CLEAR
error message later in Phase 4.
y (yes)-
Reconnect inode
I
to the filesystem in the directory for
lost files (usually the
lost+found
directory).
This can generate a
lost+found
error message in this phase
if there are problems connecting inode
I
to the
lost+found
directory.
-
Messages with a
CLEAR?
prompt, which can be responded to as follows:
n (no)-
Ignore the error condition.
This response is appropriate only if the user intends
to take other measures to fix the problem.
y (yes)-
Deallocate the inode by zeroing out its contents.
-
Messages with an
ADJUST?
prompt, which can be responded to as follows:
n (no)-
Ignore the error condition.
This response is appropriate only if the user intends
to take other measures to fix the problem.
y (yes)-
Replace the link count of file inode
I
by
Y.
-
Messages with a
FIX?
prompt, which can be responded to as follows:
n (no)-
Ignore the error condition.
This response is appropriate only if the user intends
to take other measures to fix the problem.
y (yes)-
Replace the count in superblock by the actual count.
fsck_s5 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.
If the
-n
option is omitted and the filesystem is not mounted,
empty files are cleared automatically.
Non-empty files are not cleared.
If the
-p
option is specified the inode is reconnected.
SORRY. NO lost+found DIRECTORY
-
There is no
lost+found
directory in the root directory of the filesystem;
fsck
ignores the request to link a file to the
lost+found
directory.
This generates the
CLEAR
error message later in Phase 4.
The access modes of the
lost+found
directory might be incorrect.
SORRY. NO SPACE IN lost+found DIRECTORY
-
There is no space to add another entry to the
lost+found
directory in the root directory of the filesystem;
fsck
ignores the request to link a file to the
lost+found directory.
This generates the
CLEAR
error message later in Phase 4.
Check the size and contents of the
lost+found directory.
(CLEAR)
-
The inode mentioned in the
UNREF
error message immediately preceding cannot be reconnected.
LINK COUNT FILE I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T COUNT=
X-
SHOULD BE
Y (ADJUST?)
-
The link count for file inode
I is X
but should be Y.
The owner O, mode
M, size S,
and modify time T
are printed. If the -p
option is specified the link count is adjusted.
LINK COUNT DIR I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T COUNT=
X-
SHOULD BE
Y (ADJUST?)
-
The link count for directory inode I is
X but should be Y. The owner
O, mode M, size S,
and modify time T of inode
I are printed. If the -p
option is specified the link count is adjusted.
UNREF FILE I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T (CLEAR?)
-
File 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.
If the -n
option is omitted and the filesystem is not mounted,
empty files are cleared automatically.
Non-empty directories are not cleared.
If the -p
option is specified the file is cleared
if it cannot be reconnected.
UNREF DIR I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T (CLEAR?)
-
Directory 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. If the n
option is omitted and the filesystem is not mounted,
empty directories are cleared automatically.
Non-empty directories are not cleared.
If the
-p
option is specified the directory is cleared
if it can not be reconnected.
BAD/DUP FILE I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T (CLEAR?)
-
Phase 1 or Phase 1B found duplicate blocks
or bad blocks associated with file inode
I.
The owner
O,
mode
M,
size
S,
and modify time
T
of inode
I
are printed.
If the
-p
option is specified the file is cleared.
BAD/DUP DIR I=
I OWNER=
O MODE=
M SIZE=
S MTIME=
T (CLEAR?)
-
Phase 1 or Phase 1B found duplicate blocks or
bad blocks associated with directory inode
I. The owner
O, mode
M, size
S, and modify time
T of inode
I are printed.
If the -p
option is specified the directory is cleared.
FREE INODE COUNT WRONG IN SUPERBLK (FIX?)
-
The actual count of the free inodes does not
match the count in the superblock of the filesystem.
If the -q or -p
option is specified,
the count in the superblock will be fixed automatically.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004