NAME
fsdb — file system debugger (generic)
SYNOPSIS
/usr/sbin/fsdb
[-F
FStype]
[-o
specific_options]
[-V]
special
Remarks
Always execute the
fsck
command (see
fsck(1M))
after running
fsdb.
DESCRIPTION
The
fsdb
command can be used to patch up a damaged file system after a crash.
It is intended for experienced users only.
The file system type to be debugged is specified as
FStype.
Each file system type has a unique structure
requiring different debugging capabilities.
The manual entries for the file-system-specific
fsdb
should be consulted before attempting any debugging or modifications.
Options and Arguments
fsdb
recognizes the following options and arguments:
- special
The file name of the special file containing the file system.
- -F FStype
Specify the file system type on which to operate (see
fstyp(1M)
and
fs_wrapper(5)).
If this option is not included on the command line,
then the file system type is determined from the file
/etc/fstab
by matching
special
with an entry in that file.
If there is no entry in
/etc/fstab,
then the file system type is determined from the file
/etc/default/fs.
- -o specific_options
Specify suboptions specific to each file system type.
specific_options
is a comma-separated list of suboptions and/or keyword/attribute pairs
supported by the specific
FStype.
- -V
Echo the completed command line, but perform no other action.
The command line is generated by incorporating the user-specified options
and other information derived from the
/etc/fstab
file.
This option allows the user to verify the command line.
EXAMPLES
Invoke the file system debugger on HFS file system
/dev/disk/disk2:
fsdb -F hfs /dev/disk/disk2
Display a completed command line without executing the debugger:
The previous command might display:
fsdb -F hfs /dev/disk/disk2
WARNINGS
Only experienced users should use
fsdb.
The failure to fully understand the usage of
fsdb
and the file system's internal organization
can lead to complete destruction of the file system and total loss of data.
AUTHOR
fsdb
was developed by HP and AT&T.
FILES
- /etc/default/fs
Specifies the default file system type
- /etc/fstab
Static information about the file systems
STANDARDS CONFORMANCE
fsdb: SVID3