losetup /dev/loop0 example.img
mount /dev/loop0 /home/you/dir
The second command mounts the device on the directory /home/you/dir. The overall effect of executing these two commands is that the content of the file is used as a file system rooted at the mount point.
The mount utility is usually capable of handling the entire procedure:
mount -o loop example.img /home/you/dir
By : singlehop.com

Responses
0 Respones to "How to setup loop device?"
Post a Comment
»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment