Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ clri(1M) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck(1M)

fsdb(1M)

ncheck(1M)

fstyp(3)

fs(4)




clri(1M) clri(1M)
NAME clri - clear inode SYNOPSIS /etc/clri [-Tfile-system-type] file-system i-number ... DESCRIPTION clri zeros (clears) the inode numbered i-number and incre- ments the inode generation count. The file-system must be a special file name referring to a device containing a file system. After clri is executed, any blocks in the affected file show up as ``missing'' in an fsck(1M) of the file- system. This command should only be used in emergencies, and extreme care should be exercised. The -T flag option indicates the file-system type, such as 4.2 or 5.2. If this option is not used, clri attempts to determine the file-system type. Read and write permission is required on the specified file-system device. The inode becomes allocatable. The primary purpose of this command is to remove a file that for some reason appears in no directory. If it is used to ``zap'' an inode that does appear in a directory, care should be taken to track down the entry and remove it. Oth- erwise, when the inode is reallocated to some new file, the old entry will still point to that file. At that point, re- moving the old entry will destroy the new file. The new en- try will again point to an unallocated inode, so the whole cycle is likely to be repeated again and again. EXAMPLE clri /dev/rdsk/c0d0s0 65 where /dev/rdsk/c0d0s0 is a legitimate file system and 65 is the inode number to be cleared. WARNING This command should be used with caution. FILES /etc/clri SEE ALSO fsck(1M), fsdb(1M), ncheck(1M), fstyp(3), fs(4). BUGS If the file is open, clri is likely to be ineffective. April, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026