[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /dev/ram
On Mon, 16 Aug 1999, cloudmaster wrote:
...
> Try looking into man ramsize, that might be marginally helpful... I'm not
you might also look at
less /usr/src/linux/Documentation/ramdisk.txt
it's kinda helpful too, but not much.
Anyway, do you have ramdisk compiled in or inserted as a module? Here's my
console while I played with it... I thought it was neat that the files
stayed in it through a remount. Removing then inserting the module cleared
the filesystem though. I'm constantly amazed that my OS of choice actually
does things that make sense... :)
root@pyro:/home/sauer > cat /proc/modules
dummy0 716 1 (autoclean)
root@pyro:/home/sauer > modprobe rd
root@pyro:/home/sauer > cat /proc/modules
rd 1712 1
dummy0 716 1 (autoclean)
root@pyro:/home/sauer > dd if=/dev/zero of=/dev/ram1 bs=1k count=2048
2048+0 records in
2048+0 records out
root@pyro:/home/sauer > mke2fs -m0 /dev/ram1 2048
mke2fs 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09
Linux ext2 filesystem format
Filesystem label=
512 inodes, 2048 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1 block group
8192 blocks per group, 8192 fragments per group
512 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@pyro:/home/sauer > mount /dev/ram1 /mnt/1
root@pyro:/home/sauer > df -h /mnt/1
Filesystem Size Used Avail Capacity Mounted on
/dev/ram1 1.9M 13K 1.9M 1% /mnt/1
root@pyro:/home/sauer > echo > /mnt/1/test
root@pyro:/home/sauer > ls --color -l /mnt/1
total 13
drwxr-xr-x 2 root root 12288 Aug 16 22:09 lost+found
-rw-r--r-- 1 root root 1 Aug 16 22:11 test
root@pyro:/home/sauer > umount /mnt/1
root@pyro:/home/sauer > mount /dev/ram1 /mnt/1
root@pyro:/home/sauer > ls --color -l /mnt/1
total 13
drwxr-xr-x 2 root root 12288 Aug 16 22:09 lost+found
-rw-r--r-- 1 root root 1 Aug 16 22:11 test
--end--
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.
- References:
- Re: /dev/ram
- From: cloudmaster <cloudmaster@cloudmaster.com>