Re: mke2fs /dev/loop0

From: Jens Axboe (
Date: Wed Feb 28 2001 - 10:41:51 EST

On Wed, Feb 28 2001, Richard B. Johnson wrote:
> `mke2fs /dev/loop0` requires an additional parameter (file size to
> create). Otherwise, it will try to use all the RAM in your system, plus...
> If it worked before, it was because of luck. FYI, this is not the
> way to create a ramdisk. Normally you use the loop device to mount
> a file as a file-system, i.e., `mount -o loop filename /mnt`.
> So, I don't know what you are trying to do except crash your system.

This could not be more wrong. mke2fs will query the size of the
loop device, and make the correct size file system regardless
of whether it's file or block device backed. And it will not
try to use all RAM in the system?! This is loop, not a ramdisk.
Dirty buffers will be flushed to loop like any other block
device in the system, if that doesn't work then we have a mm

The previous answer was right -- loop has been broken for quite
some time, but use -ac latest on top of 2.4.2 and it should work
flawlessly for you.

Jens Axboe

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:16 EST