When attempting to mount a filesystem in OpenServer I get the error: fsck: there is no fsck of type HTFS.

Export to PDF | Export to DOC

Problem:  When attempting to mount a filesystem in OpenServer I get the error: fsck: there is no fsck of type HTFS.

Cause: There are corrupt files in the filesystem subdirectory under /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d. More then likely this is caused by the reference of the fsck or the mkfs files in the HTFS & DTFS directoriessymbollically linked to themselves.

While in the filesystem subdirectory such as /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/HTFS list the files with the l command. You will see the error:

l: exceeded maximum number of symbolic links on ./mkfs: Too many symbolic links in path (error 150)

 

Also when running the *Software Manager from custom and running verify the system/software you will see:

Error: Broken/missing symbolic links (automatically fixable)
Expected : /etc/fscmd.d/DTFS/mkfs

File: /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/HTFS/fsck
Error: Broken/missing symbolic links (automatically fixable)
Expected : /etc/fscmd.d/HTFS/fsck

File: /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/HTFS/mkfs
Error: Broken/missing symbolic links (automatically fixable)
Expected : /etc/fscmd.d/HTFS/mkfs

*IMPORTANT NOTE: Choosing to “Fix” the discrepancies will, in effect, remove the files from the system

These error will occur after installing the SCO OpenServer Release 5.0.7 Large Filesystem Performance Supplement 1.1.0a.

See SCO Technical Article 125446 for additional information.

 

Solution:

Choosing to “Fix” the discrepancies after runing in the Software Manager Veirfy System will, in effect, remove the files from the system.

More precisely, since the base directories /etc/fscmd.d/[DH]TFS are symbolically linked to /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/[DH]TFS, the software manager will end up creating a symbolic link from the files to themselves. The resulting file listings will look like:

# ls -lai /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/DTFS/mkfs /etc/fscmd.d/DTFS/mkfs

65848 lrwxrwxrwx 1 root sys 45 Nov 3 13:43 /etc/fscmd.d/DTFS/mkfs -> /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/DTFS/mkfs

65848 lrwxrwxrwx 1 root sys 45 Nov 3 13:43 /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/DTFS/mkfs -> /opt/K/SCO/Unix/5.0.7Hw/etc/fscmd.d/DTFS/mkfs

However, during the process of remaking the links, the software manager makes a backup copy of these files in their respective directories called filename#. i.e.,

/etc/fscmd.d/HTFS/fsck#
/etc/fscmd.d/DTFS/mkfs#
/etc/fscmd.d/HTFS/mkfs#

If the “Fix Discrepancies” utility was run, you can restore the relevant files with:

# cp -p /etc/fscmd.d/HTFS/fsck# /etc/fscmd.d/HTFS/fsck
# cp -p /etc/fscmd.d/DTFS/mkfs# /etc/fscmd.d/DTFS/mkfs
# cp -p /etc/fscmd.d/HTFS/mkfs# /etc/fscmd.d/HTFS/mkfs

Leave a Reply

Your email address will not be published. Required fields are marked *