hello guys today we will learn how to create loop before we know what is loop .loop device is connected to an existing file in the filesystem.
at fast we create blank 200mb file
# dd if=/dev/zero of=file bs=m1 count=200 (create for blank file )
# losetup /dev/loop0 file (configure loop0)
# losetup -a (looking for loop0)
# mkdir data (create data folder )
# mkfs.ext3 /dev/loop0 (format loop0)
# mount /dev/loop0 data (loop is mount in data folder)
# df -h (looking for mount loop0)
we can remove to following cmd..
at fast we remove permanently go to vim /etc/fstab and umount
# umount data ( loopo unmount to data folder )
# losetup -d /dev/loop0 (delet loop0)
# losetup -a
# rm -rf file (delet foe file)