Create 2GB image file dd if=/dev/zero of=/home/user/MyDocs/fedora-image bs=1024 count=2097152 Create filesystem on image file mkfs.ext3 /home/user/MyDocs/fedora-image Create mount point and loopback mount the image export FEDORA_ROOT="/mnt/fedora_root" mkdir $FEDORA_ROOT mount -o loop /home/user/MyDocs/fedora-image $FEDORA_ROOT
apt-get install tar-gnu gtar -tzf <fedora-image> gtar -xzf <fedora-image> -C $FEDORA_ROOT umount $FEDORA_ROOT