TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:9949] How do I set up a ramdisk?
On Tue, 9 Nov 1999, Eric M. Hopper wrote:
> I have a very disk instensive test that I'm running. I want to
> speed up my test by having it use a ramdisk instead.
>
> Without rebooting, how do I set up a small ramdisk and bring it
> down again?
1) You can do the following. First decide how big you would like the ramdisk
to be then simply create it. In the example that follows i create a 2Mb
ramdisk.
# dd if=/dev/zero of=/dev/ram bs=1024 count=2048
2) Then create the filesystem on the ramdisk
# /sbin/mke2fs -vm0 /dev/ram 2048
3) Then mount it wherever you like
# mount /dev/ram /mnt
Regards - Karl