Re: 2.1.118 ramdisk

Stephen C. Tweedie (sct@redhat.com)
Mon, 31 Aug 1998 15:07:24 +0100


Hi,

On Sat, 29 Aug 1998 15:09:42 -0600 (MDT), Charlie Ross
<rossc@cs.colostate.edu> said:

> I am a little confused about tht behavior of the ramdisk. According to the
> Documentation/ramdisk.txt the ramdisk grows dynamically as you wright to
> it but there seems to be some sort of problem in there.

The ramdisk should indeed be allocated dynamically.

> If I cp /etc/fstab /dev/ram1, I get an I/O error, and when I cat /dev/ram1
> to see if anything made it in, it turns out that only the first 1024 bytes
> make it, and then I get a second I/O error on the read.

It works just fine for me. After the cp, a

strace cat /dev/ram1

shows nulls being read successfully for the rest of the ramdisk, up to
the 4MB upper limit.

Make sure that your ramdisk is set up as the correct block device:

$ ls -l /dev/ram1
brw-rw---- 1 root disk 1, 1 May 5 21:32 /dev/ram1

The major and minor number should be 1,1 as here.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html