fsdb_hfs.1m (2010 09)
f
fsdb_hfs(1M) fsdb_hfs(1M)
maj Major device number
md Mode
min Minor device number
mt Time last modified
sz File size in byte unit
uid User ID number
The following mnemonics are used for directory examination:
di I-number of the associated directory entry
nm Name of the associated directory entry
EXAMPLES
386i Print i-number 386 in an inode format. This now becomes the current working inode.
ln=4 Change the link count for the working inode to 4.
ln=+1 Increment the link count by 1.
fc Print in ASCII fragment zero of the file associated with the working inode.
2i.fd Print the first fragment-size piece of directory entries for the root inode of this file sys-
tem.
d5i.fc Change the current inode to that associated with the fifth directory entry (numbered from
zero) found from the above command. The first fragment’s worth of bytes of the file are
then printed in ASCII.
1b.px Print the first fragment of the superblock of this file system in hexadecimal.
2i.a0b.d7=3
Change the i-number for the seventh directory slot in the root directory to 3. This exam-
ple also shows how several operations can be combined on one command line.
d7.nm="newname"
Change the name field in the directory slot to the given string. Quotes are optional if the
first character of the name field is alphabetic.
a2b.p0d Print the third fragment of the current inode as directory entries.
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/fstab Static information about the file systems
SEE ALSO
dumpfs(1M), fsck(1M), fsdb(1M), stat(2), dir(4).
STANDARDS CONFORMANCE
fsdb: SVID3
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3