Technical article 104952

I can't create a filesystem on a large ramdisk on SCO OpenServer Release 5.0.

OpenServer 5.0.0

Written · Last revised

Problem

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

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

I have used mknod(ADM) to create the ramdisk 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.

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

mkfs /dev/ram512 2048
This results in the error message:

mkfs: /dev/ram512: cannot open: Not enough space (error 12)

Cause

There is an internal limitation in the SCO OpenServer Release 5.0.0 kernel that will prevent more than 152Mb 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

The 152Mb memory and contiguous memory limitations have been removed in the SCO Large System Supplement Release 1.0.0.

See also

TA105137, "What is the Large Server Supplement Version 1.0.1 and how can I obtain it?"

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