{"id":16,"date":"2012-06-02T16:40:12","date_gmt":"2012-06-02T16:40:12","guid":{"rendered":"http:\/\/vickistan.com\/?p=16"},"modified":"2012-06-02T16:40:12","modified_gmt":"2012-06-02T16:40:12","slug":"using-loopback-command","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=16","title":{"rendered":"Using Loopback Command"},"content":{"rendered":"<p>Loopback filesystem support allows a user to mount an ordinary file as if it were a device, such as \/dev\/hda1. This is useful for mounting a CD-ROM filesystem to populate and test before burning it to CDROM.<\/p>\n<p>Use the dd command to create file large enough to contain the filesystem:<\/p>\n<p>dd if=\/dev\/zero of=filesystem.img bs=1M count=20<\/p>\n<p>Associate the new file with the loopback device:<\/p>\n<p>losetup \/dev\/loop0 filesystem.img<\/p>\n<p>Create a filesystem within the file:<\/p>\n<p>mkfs -t ext2 \/dev\/loop0<\/p>\n<p>Mount the filesystem:<\/p>\n<p>mount \/dev\/loop0 mount point<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Loopback filesystem support allows a user to mount an ordinary file as if it were a device, such as \/dev\/hda1. This is useful for mounting a CD-ROM filesystem to populate and test before burning it to CDROM. Use the dd &hellip; <a href=\"https:\/\/vickistan.com\/?p=16\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":2,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/18"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}