Technical article 104822

"Out of inodes" error when creating boot/root floppy on SCO OpenServer 5.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

When I try to create an emergency boot floppy disk, this error message occurs:

NOTICE: HTFS: Out of inodes on EAFS dev marry (76/2)

The floppy creation process then fails.

Solution

First, make sure you have installed the most recent Release
Supplement for your operating system.  Currently, Release
Supplement 5.0.0d is most current for SCO OpenServer Release
5.0.0. No Release Supplement was issued for Release 5.0.2. SCO
OpenServer Release 5.0.4 requires Release Supplement RS504C.

If installation of the Release Supplement does not resolve the problem, there are two possible solutions:

1. The best solution is to reduce the number of device nodes
created on the diskette.  Many of these devices are not required
in an emergency boot environment, but each requires an inode.

To eliminate unwanted device nodes follow these steps:

a. Log in as root.
b. Change to the directory /usr/lib/mkdev

c. Back up the fd script with the following command:

cp fd fd.orig

d. Open the file "fd" in the vi text editor and find the following lines:

NOTREQ="aud byte cbd cdt da dup ecc_ eisarom err log marry pa\ prf ptm ptspwr uapm rtc sleeper"

These are the devices from node.d that will be excluded from the root diskette.

e. Change the word "ptspwr" to two words, "pts pwr".  If it
   is already two words, leave it as is.
Change the word "cbd" to "cdb".

f. If you have OpenServer 5.0.0 or 5.0.2, add the following words:

merge mpm spm svdsp svkbd vdsp vkbd vmouse spt mpt

Otherwise, if you have OpenServer 5.0.4 or 5.0.5, add the following:

merge mpm spm svdsp svkbd vdsp vkbd vmouse

The line should now look like this on OpenServer 5.0.0/5.0.2:

NOTREQ="aud byte cdb cdt da dup ecc_ eisarom err log marry pa\
        prf ptm pts pwr uapm rtc sleeper merge mpm spm svdsp\
        svkbd vdsp vkbd vmouse spt mpt"
or this on OpenServer 5.0.4/5.0.5:
NOTREQ="aud byte cdb cdt da dup ecc_ eisarom err log marry pa\
        prf ptm pts pwr uapm rtc sleeper merge mpm spm svdsp\
        svkbd vdsp vkbd vmouse tun"

g. If you have OpenServer 5.0.0 or 5.0.2, find the following lines:

# Now build the omitted nodes.
rm -f /tmp/extra_nodes

After the second line, add this line:

ls /dev/[pt]typ? >>/tmp/extra_nodes
h. Save the file "fd" and run mkdev fd.  You should almost
   certainly be able to create the floppy now.

i. If you are still running out of inodes, run the following command:

wc -l /etc/conf/node.d/* | sort -nr | more
This will list all the devices in the link kit along with the
number of nodes that will be created for each.  If you see any
you can do without in an emergency boot situation, add that
device name to the NOTREQ list.  An example would be if you
have a multiport board or a terminal server configured.

j. Always test any boot/root floppy set to be sure you have all the functionality you will need in an emergency recovery situation.

2. Another alternative is to increase the number of inodes on
the diskette. This is not recommended unless absolutely
necessary.  Each extra inode will use 128 bytes on the root
filesystem.  This will result in fewer utilities being copied
and make the floppy less useful in a recovery situation.  If
you still wish to increase the inodes take the following steps:
a. Log in as root.
b. Change to the directory /usr/lib/mkdev

c. Back up the fd script with the following command:

cp fd fd.orig

d. Open the file "fd" with the vi text editor.

For OpenServer Release 5.0.0 and 5.0.2:

Find the line that creates the filesystem:

/etc/mkfs -y -f EAFS /dev/marry/tmp/ramdisk 5120:XXXX>/dev/null 2>&1
where "XXXX" is a number. This is the amount of inodes that will
be allocated when "mkdev fd" is invoked. With the Release Supplement
applied, this should be 1000.  You can increase this as needed. If
you find you need more than 2048 inodes, you may want to decrease
the number of device nodes instead.
For OpenServer Release 5.0.4:

Find the line that sets the value of the INODES variable:

INODES=XXX
where "XXX" is a number.  As with the other releases, this is the
number of inodes that will be allocated when "mkdev fd" is invoked.
You can increase this as needed. If you find you need more than
2048 inodes, you may want to decrease the number of device nodes
instead.

e. Write the changes to this file.

f. Always test any boot/root floppy set to be sure you have all the functionality you will need in an emergency recovery situation.

From the Xinuos technical article database, record 104822. Reproduced with permission. The original is at www.sco.com/ta/104822, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.