In question "Parted command line not get the same result", the answer was selected as correct (to create IMG file systems and partitions with "parted") is:
# parted MyDrive.img \ mklabel msdos \ mkpart primary NTFS 1 1024 \ set 1 lba on \ align-check optimal 1 \ print Model: (file) Disk /dev/shm/MyDrive.img: 1074MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1074MB 1073MB primary ntfs lba
The same for fat32/ext4. However when I mount image in /dev/loop (
sudo losetup loop1 MyDrive.img) it's doesn't work (
So the secuence is incomplete.
Somebody can help me to complete the secuence to create .img for ext4/ntfs/fat32 (
MSDOS) to recognize when mounting it in a loop (ready to work)