Re: mke2fs /dev/loop0

Jens Axboe (axboe@suse.de)
Wed, 28 Feb 2001 16:41:51 +0100


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
bug.

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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/