I think that the best thing for you, is creating inside a tmpfs filesystem a file containing a disk image. And then, format this one as you want.
I sometime do like this, when I want to give a look at filesystems behaviour without formatting a disk.
You can make use of "dd" to create the disk image, e.g.
cd /tmp
dd if=/dev/zero of=sample.img bs=1048675 seek=256 count=0
creates a "sparse", 256Mb, disk image, that you can manage as you want.
|