[ale] Newbie ramdisk question

Christopher Fowler cfowler at outpostsentinel.com
Thu Aug 21 18:07:42 EDT 2003


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





More information about the Ale mailing list