I want to partition a raw disk image with the 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 commands don't create a file system. How could I do that? I am trying the
mkfs command in
parted but it is showing no command found. How could I create file system externally?