[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Newbie ramdisk question
- Subject: [ale] Newbie ramdisk question
- From: laytonjb at bellsouth.net (Jeffrey B. Layton)
- Date: Thu, 21 Aug 2003 18:48:48 -0400
Chris,
Thanks for the help. I've been reading about thses instructions
and have have tried (they work!). But, do you have any idea how
it works? By simply using /dev/ram1 does the kernel know to use
memory? Is this memory dynamic in that I can make the filesystem
to be any size I want and the kernel assigns that much memory to it?
Thanks!
Jeff
>On Thu, Aug 21, 2003 at 06:04:27PM -0400, Jeffrey B. Layton wrote:
>
>
>>I'd like to create a ramdisk that I can format as a filesystem
>>and then mount it just like a disk (or any block device for
>>that matter). Does someone have some pointers or links?
>>
>>
>
>
>Create a 10M files system
>
>dd if=/dev/zero of=fs.img bs=1024k count=10
>
>Create an FS
>
>mke2fs -i 1024 -m 0 ./fs.img
>
>Place in memory and mount
>
>dd if=fs.img of=/dev/ram1
>mount /dev/ram1 /mnt/ramfs
>
>
>
>
>>TIA!
>>
>>Jeff
>>
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>
>>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale