create device file for image file?
Everything in Linux is a file, right? And everything can be represented by a file? So, say I create an image file, like so:
dd if=/dev/zero of=/home/me/partition.img bs=512 count=80000
Is there some way I could create a block device file that represents (i.e., provides an interface to) this image file? If so, then I could use fdisk on the device file to split it into partitions, format the partitions, and then mount them as directories. I could create a file system within a file system, which would be fun.
|