{"id":6111,"date":"2016-07-31T16:28:25","date_gmt":"2016-07-31T08:28:25","guid":{"rendered":"http:\/\/rmohan.com\/?p=6111"},"modified":"2016-07-31T16:28:25","modified_gmt":"2016-07-31T08:28:25","slug":"mounting-iso-files-within-rhel","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6111","title":{"rendered":"MOUNTING ISO FILES WITHIN RHEL"},"content":{"rendered":"<p>Download the ISO file using wget.<\/p>\n<p>[root@memberserver ~]# cd tmp;wget http:\/\/cdimage.debian.org\/debian-cd\/7.6.0\/multi-arch\/iso-cd\/debian-7.6.0-amd64-i386-netinst.iso<br \/>\nCreate a directory which you will use to mount the ISO file to.<\/p>\n<p>[root@memberserver ~]# mkdir \/isodir<br \/>\nEdit the \/etc\/fstab as per the below entry:<\/p>\n<p>[root@memberserver ~]# vi \/etc\/fstab<br \/>\n\/tmp\/debian-7.6.0-amd64-i386-netinst.iso \/isodir iso9660 defaults,loop 0 0<br \/>\nRun partprobe to make the kernel aware of the disk changes and finally run mount -a to mount the ISO.<\/p>\n<p>[root@memberserver ~]# partprobe<br \/>\n[root@memberserver ~]# mount -a<br \/>\nmount: \/dev\/loop0 is write-protected, mounting read-only<br \/>\n[root@memberserver ~]# df -hk | grep isodir<br \/>\n\/dev\/loop0               496640  496640         0 100% \/isodir<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the ISO file using wget.<\/p>\n<p>[root@memberserver ~]# cd tmp;wget http:\/\/cdimage.debian.org\/debian-cd\/7.6.0\/multi-arch\/iso-cd\/debian-7.6.0-amd64-i386-netinst.iso Create a directory which you will use to mount the ISO file to.<\/p>\n<p>[root@memberserver ~]# mkdir \/isodir Edit the \/etc\/fstab as per the below entry:<\/p>\n<p>[root@memberserver ~]# vi \/etc\/fstab \/tmp\/debian-7.6.0-amd64-i386-netinst.iso \/isodir iso9660 defaults,loop 0 0 Run partprobe to make the kernel aware of the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6111"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6111"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6111\/revisions"}],"predecessor-version":[{"id":6112,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6111\/revisions\/6112"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}