Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > N


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


ncheck_hfs: ncheck — generate a list of path names from inode numbers for a HFS file system


/usr/sbin/ncheck [-F hfs] [-V] [-S sector_ranges] [-i inode-numbers] [-a] [-s] [special ...]


ncheck, when invoked without arguments, generates a list of path names corresponding to the inode numbers of all files contained on the HFS file systems listed in /etc/fstab. If special is specified, ncheck reports on the special only. Path names generated by ncheck are relative to the given special. Names of directory files are followed by /.



Allow printing of the names . and .., which are ordinarily suppressed.

-F hfs

Specify the HFS file system type.

-i inode-numbers

Report only on files whose inode numbers are specified on the command line, in inode-numbers. inode-numbers is a comma separated list of inode numbers.


Report only on special files and regular files with set-user-ID mode. The -s option is intended to discover concealed violations of security policy.


Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from /etc/fstab. This option allows the user to verify the command line.

-S sector_ranges

Report only on files using sector numbers specified on the command line in sector_ranges. sector_ranges is a comma separated list of sector ranges. A sector range is a starting sector number and an ending sector number separated by a dash, or just a sector number. The sector numbers should be in DEV_BSIZE units. If no pathname contains the sector number it will be reported as free or containing file system structure. Sectors beyond the end of the file system will be reported as illegal.

Access Control Lists

Continuation inodes (that is, inodes containing additional access control list information) are quietly skipped since they do not correspond to any path name.


Execute the ncheck command on all special in /etc/fstab:


Execute the ncheck command on HFS file system /dev/dsk/c1d2s0:

ncheck -F hfs /dev/dsk/c1d2s0


International Code Set Support

Single- and multi-byte character code sets are supported.


When the file system structure is improper, ?? denotes the ``parent'' of a parentless file and a path-name beginning with ... denotes a loop.


ncheck was developed by AT&T and HP.



Specifies the default file system type.


Static information about the file systems.


ncheck: SVID2, SVID3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.