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
--
"You don't change the way people think by changing what they
say. You change the way people think with HEADLESS CHARRED BODIES
FLYING THROUGH THE AIR. BLOOD! FLAMES! HELLFIRE AND DAMNATION!"
-- Alastair J. R. Young
--