partitioning disk image file

view full story

http://unix.stackexchange.com – i want to partition raw disk image with those following commands #creating the blank image $ dd if=/dev/zero of=example.img bs=1M count=50 #write the partition table $ parted example.img mktable msdos #creating partition but not the file system #creating fat32 primary partition 1 to 15 MB $ parted example.img mkpart p fat32 1 15 #creating ext3 primary partition 16 to end $ parted example.img mkpart p ext3 16 -0 These command doesn't create file system. How could i do that .. i am trying mkfs command in parted but it showing no command found. How could I create file system externally ? Th (HowTos)