{"id":4075,"date":"2014-12-10T00:51:23","date_gmt":"2014-12-09T16:51:23","guid":{"rendered":"http:\/\/rmohan.com\/?p=4075"},"modified":"2014-12-10T00:51:23","modified_gmt":"2014-12-09T16:51:23","slug":"iso-mountunmount","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4075","title":{"rendered":"ISO &#8211; Mount\/Unmount"},"content":{"rendered":"<h3 class=\"post-title entry-title\">ISO &#8211; Mount\/Unmount<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-5328967955389110537\" class=\"post-body entry-content\">\n<div dir=\"ltr\">\n<div class=\"gmail_default\"><b>Objective:\u00a0<\/b><\/div>\n<div class=\"gmail_default\">1. Mount the ISO to CD\/DVD, then mount it to file system.<\/div>\n<div class=\"gmail_default\">2. Create an ISO from the CD\/DVD, then mount to file system.<\/div>\n<div class=\"gmail_default\">3. Created ISO will be mounted, and will be mounted as an file system.<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\"><b>Environment:\u00a0<\/b>CentOS release 6.3 (32-bit).<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\"><b>Implementations:<\/b><\/div>\n<div class=\"gmail_default\"><b>\u00a0<\/b><\/div>\n<div class=\"gmail_default\"><b>&#8211; M<\/b>ounted my ISO image to CD\/DVD, then copy files.<\/div>\n<div class=\"gmail_default\"># mount -r -t iso9660 \/dev\/sr0 \/mnt<\/div>\n<div class=\"gmail_default\"># cd \/mnt<\/div>\n<div class=\"gmail_default\"># du -sh .<\/div>\n<div class=\"gmail_default\">3.5G \u00a0 \u00a0CentOS_6.3\/<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">&#8211;<b>C<\/b>reated an ISO image from the CD\/DVD image.<\/div>\n<div class=\"gmail_default\">WARNING: Check the free disk space before using below.<\/div>\n<div class=\"gmail_default\"># dd if=\/dev\/sr0 of=\/root\/centos6.3.iso<\/div>\n<div class=\"gmail_default\"># ls -l \u00a0\/root\/centos6.3.iso<\/div>\n<div class=\"gmail_default\">-rw-r&#8211;r&#8211; 1 root root 3713204224 Jun 17 10:04 centos6.3.iso<\/div>\n<div><\/div>\n<div class=\"gmail_default\">&#8211;<b>L<\/b>ocal ISO image created on the system can be mounted to CD\/DVD.<\/div>\n<div class=\"gmail_default\">#mount -o loop -t iso9660 centos6.3.iso \/mnt\/isoimage\/<\/div>\n<div class=\"gmail_default\">\n<div class=\"gmail_default\">tux:\/mnt\/isoimage]# du -sh .<\/div>\n<div class=\"gmail_default\">3.5G \u00a0 \u00a0.<\/div>\n<div class=\"gmail_default\">tux:\/mnt\/isoimage]#<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">Since my colleagues faced difficulty in creating the local\/remote repositories, I thought I should write this, as it plays very crucial role in creation.<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">\u00a0I would post up <b>How to create local\/remote Redhat\/CentOS repository<\/b>\u00a0in coming days.<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ISO &#8211; Mount\/Unmount Objective: 1. Mount the ISO to CD\/DVD, then mount it to file system. 2. Create an ISO from the CD\/DVD, then mount to file system. 3. Created ISO will be mounted, and will be mounted as an file system. Environment: CentOS release 6.3 (32-bit). Implementations: &#8211; Mounted my ISO image to CD\/DVD, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4075"}],"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=4075"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4075\/revisions"}],"predecessor-version":[{"id":4076,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4075\/revisions\/4076"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}