On 08/06/2001 11:28 PM, Jean-Francois Landry wrote:
> On Mon, Aug 06, 2001 at 03:49:59PM -0400, Greg Ward wrote:
>
>>I'm curious enough about ReiserFS that I want to play with it, but not
>>curious enough to devote a whole partition to it just yet. So I thought
>>I'd create a big file somewhere, put a filesystem in it, and "mount -o
>>loop" it. Alas, mkreiserfs won't let me get away with it:
>>
>> # dd if=/dev/zero of=reiserfs.raw bs=4096 count=10240
>> 10240+0 records in
>> 10240+0 records out
>>
>> # mkreiserfs reiserfs.raw
>>
>> <-------------mkreiserfs, 2000------------->
>> reiserfsprogs 3.x.0d
>> mkreiserfs: reiserfs.raw is not a block special device.
>>
>>Is there a way to create a ReiserFS in a regular file?
>>
>>This is with Linux 2.4.2 (specifically the "kernel-source-2.4.2" package
>>from Progeny Debian 1.0) and reiserfsprogs 3.x.0d.
>>
>>
>
> losetup /dev/loop0 /path/to/reiserfs.raw
>
> mkreiserfs /dev/loop0
>
> mount it, play with it, umount it,
>
> losetup -d /dev/loop0 ; rm /path/to/reiserfs.raw
>
> man losetup for more info.
>
> Jean-Francois Landry
>
Maybe you, Greg, want to play with more disk space as the reiserfs
journal would take 32MB, of course. But Jean-Francois' advice works with
the latest reiserfs-progs/&kernel for me, too; though I mounted -o
noatime, notail ...
Best wishes,
Manuel