HP-UX Reference (11i v2 07/12) - 1M System Administration Commands A-M (vol 3)

f
fsdb(1M) fsdb(1M)
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 experi-
enced 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 deter-
mined 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/dsk/c1d2s0
:
fsdb -F hfs /dev/dsk/c1d2s0
Display a completed command line without executing the debugger:
fsdb -V /dev/dsk/c1d2s0
The previous command might display:
fsdb -F hfs /dev/dsk/c1d2s0
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.
AUTHORS
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
SEE ALSO
fsck(1M), fsdb_hfs(1M), fsdb_vxfs(1M), fstyp(1M), stat(2), fs_wrapper(5).
STANDARDS CONFORMANCE
fsdb: SVID3
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 295