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)

Advertisements

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

  1. Frank

    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!

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s