Technical article 104940

I can't create a filesystem on a large ramdisk on SCO UNIX Version 4.2.

OpenServer 5.0.0

Written · Last revised

Problem

I would like to create a ramdisk(HW) or ramdisks on my system where the sum total of all the ramdisks will exceed 104Mb in size.

The ramdisk(ADM) documentation indicates that I can create a single ramdisk(ADM) of up to 512Mb in size.

I have used mknod(ADM) to create the ramdisk device as follows:

mknod /dev/ram512 b 31 248

where /dev/ram512 is a block device, 31 is the major number of the ram device driver, and the minor number 248 represents a permanent 512Mb ramdisk.

When I use mkfs(ADM) to create a 1Mbyte filesystem on the device using this command:

mkfs /dev/ram512 2048
I get this error:
mkfs: default type (AFS) used
/dev/ram512: cannot open

Cause

There is an internal limitation in the SCO UNIX Operating System Version 4.2 kernel that will prevent more that 104Mb being allocated for use with the ramdisk(ADM) driver.

Furthermore, this memory must be available in one contiguous fragment for the ramdisk driver to function correctly.

Solution

This has been reported to SCO Engineering.  Currently, there
is no workaround for SCO UNIX Version 4.2 based systems.

From the Xinuos technical article database, record 104940. Reproduced with permission. The original is at www.sco.com/ta/104940, 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.