Monthly Archives: June 2017

Linux disk partitions using loopback file and loop device

1. Create a 1GB loopback file: dd if=/dev/zero of=imgfile bs=1M count=1024 Note:¬†For single partition, you can skip the following steps and directly run the commands: mkfs.ext4 imgfile; mkdir mnt;¬†mount imgfile mnt 2. Create partitions: Let us create a 512 MB … Continue reading

Posted in LFCS, Linux | Tagged