Skip to main content

You are here

Creating a loopback file system for testing purposes

(This example the block size is 1024 bytes and a total of 5000 blocks)

dd if=/dev/zero of=/tmp/temploopbackimage.img bs=1024 count=5000

Associate the image file to the loopback device

losetup /dev/loop3 /tmp/temploopbackimage.img

Now you should be able to format /dev/loop3

Premium Drupal Themes by Adaptivethemes