Re: ram disk?

From: Walter Roberson (roberson_at_mts.net)
Date: 08/27/04

  • Next message: Khalid Schofield: "Re: ram disk?"
    Date: Fri, 27 Aug 2004 02:15:11 GMT
    
    

    In article <Pine.LNX.4.58.0408261058170.24612@crow.linux.ox.ac.uk>,
    Khalid Schofield <oums0246@crow.linux.ox.ac.uk> wrote:
    :I've seen this on google
    : mknod -m 660 /dev/ram b 1 1
    : chown root:disk /dev/ram

    :if one can make /dev/ram and access it as a block device can one make a
    :ram disk or is this still impossible under irix?

    At least as of 6.5.20, it's still not possible. Look in
    /var/sysgen/master.d/mem and notice that the flags there show that
    it is a character only device. Then search the other files there
    to see if there is anything else there that has a major device
    number of 1 and that is a block device. For example,

    cd /var/sysgen/master.d
    nawk '{sub(/\*.*$/,"")}; /^ *$/ {next};
          $3 ~ /1/ {print FILENAME, $1, $3, $4}' *

    and if you scan the output you'll find zippo of interest.
    (Sorry, you'll get a number of false hits, but it's a quick hack
    expression and you get what you pay for ;-) )


  • Next message: Khalid Schofield: "Re: ram disk?"

    Relevant Pages

    • ram disk?
      ... I've seen this on google ... if one can make /dev/ram and access it as a block device can one make a ... ram disk or is this still impossible under irix? ... University Of Oxford ...
      (comp.sys.sgi.admin)
    • [patch][rfc] rewrite ramdisk
      ... device which serves data out of its own buffer cache. ... The new one is more like a regular block device driver. ... Most normal users won't need the RAM disk functionality, ... +config BLK_DEV_BRD ...
      (Linux-Kernel)
    • [PATCH] docs: ramdisk/initrd/initramfs corrections
      ... RAM from the buffer cache. ... -Also, the RAM disk supports up to 16 RAM disks out of the box, and can ... Recent kernels have support for populating a ramdisk from a compressed cpio ... backing store (usually the block device the filesystem is mounted on) are kept ...
      (Linux-Kernel)