Lately I have been looking into virtualization, and all the fun stuff which comes with that. Here is a collection of links related to virtual devices; how to copy block devices, partition, format, mount, etc.

Creating and using disk images mini-howto

DD Tutorial

Learn The DD Command

Running Microsoft Windows inside Debian: qemu

Copying Windows to a new drive, using linux - How-to/Guide

The most interesting tutorial, was the second, which creates a virtual block device, which later can be used with Qemu. Here's a quick summary:

dd if=/dev/zero of=win_e.img bs=1024 count=1000000
losetup /dev/loop0 win_e.img
fdisk -ul /dev/loop0  # Create a W95 FAT32 partition
losetup -o 32256 /dev/loop1 /dev/loop0
mkfs.vfat -v /dev/loop1
mount -o uid=myuser,gid=myuser /dev/loop1 tmp