what is loop devise ? and how to create loop in redhat linux

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)

loop-1
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)

One thought on “what is loop devise ? and how to create loop in redhat linux

  1. Woah! I’m really loving the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s very hard to
    get that “perfect balance” between usability and visual appeal.

    I must say you have done a great job with this. Also, the blog loads extremely quick for
    me on Firefox. Excellent Blog!

Leave a Reply to Frank Cancel reply

Your email address will not be published. Required fields are marked *

Verified by MonsterInsights