{"id":12123,"date":"2019-03-22T11:13:08","date_gmt":"2019-03-22T11:13:08","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12123"},"modified":"2019-03-22T11:13:08","modified_gmt":"2019-03-22T11:13:08","slug":"how-to-mount-and-unmount-an-iso-image-in-rhel-centos-fedora-and-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/how-to-mount-and-unmount-an-iso-image-in-rhel-centos-fedora-and-ubuntu\/","title":{"rendered":"How to Mount and Unmount an ISO Image in RHEL\/CentOS\/Fedora and Ubuntu"},"content":{"rendered":"<p>An\u00a0<strong>ISO<\/strong>\u00a0image or\u00a0<strong>.iso<\/strong>\u00a0(<strong>International Organization for Standardization<\/strong>) file is an archive file that contains a disk image called\u00a0<strong>ISO 9660<\/strong>\u00a0file system format. Every\u00a0<strong>ISO<\/strong>\u00a0file have\u00a0<strong>.ISO<\/strong>\u00a0extension has defined format name taken from the\u00a0<strong>ISO 9660<\/strong>\u00a0file system and specially used with\u00a0<strong>CD\/DVD<\/strong>\u00a0Rom\u2019s. In simple words an iso file is a disk image.<\/p>\n<div id=\"attachment_2134\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/02\/How-to-mount-iso-image-in-linux.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2134\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/02\/How-to-mount-iso-image-in-linux-300x215.png\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/02\/How-to-mount-iso-image-in-linux-300x215.png 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/02\/How-to-mount-iso-image-in-linux.png 442w\" alt=\"How to mount iso image in linux\" width=\"300\" height=\"215\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">mount and unmount iso images in linux<\/p>\n<\/div>\n<p>I have seen most of the Linux operating system that we download from the internet are\u00a0<strong>.ISO<\/strong>\u00a0format. Typically an\u00a0<strong>ISO<\/strong>\u00a0image contains installation of software\u2019s such as, operating system installation, games installation or any other applications. Sometimes it happens that we need to access files and view content from these\u00a0<strong>ISO<\/strong>\u00a0images, but without wasting disk space and time in burning them on to\u00a0<strong>CD\/DVD<\/strong>.<\/p>\n<p>This article describes how to\u00a0<strong>mount<\/strong>\u00a0and\u00a0<strong>unmount<\/strong>\u00a0an ISO image on a Linux Operating system to access and list the content of files.<\/p>\n<h3>How to Mount an ISO Image<\/h3>\n<p>To mounting an\u00a0<strong>ISO<\/strong>\u00a0image on Linux (<strong>RedHat<\/strong>,\u00a0<strong>CentOS<\/strong>,\u00a0<strong>Fedora<\/strong>\u00a0or\u00a0<strong>Ubuntu<\/strong>), you must be logged in as \u201c<strong>root<\/strong>\u201d user or switch to \u201c<strong>sudo<\/strong>\u201d and run the following commands from a terminal to create a mount point.<\/p>\n<pre># mkdir \/mnt\/iso\r\n\r\nOR\r\n\r\n$ sudo mkdir \/mnt\/iso<\/pre>\n<p>Once you created mount point, use the \u201c<strong>mount<\/strong>\u201d command to mount an iso file called \u201c<strong>Fedora-18-i386-DVD.iso<\/strong>\u201c.<\/p>\n<pre># mount -t iso9660 -o loop \/home\/tecmint\/Fedora-18-i386-DVD.iso \/mnt\/iso\/\r\n\r\nOR\r\n\r\n$ sudo mount -t iso9660 -o loop \/home\/tecmint\/Fedora-18-i386-DVD.iso \/mnt\/iso\/<\/pre>\n<p>After the\u00a0<strong>ISO<\/strong>\u00a0image mounted successfully, go the mounted directory at\u00a0<strong>\/mnt\/iso<\/strong>\u00a0and list the content of an ISO image. It will only mount in read-only mode, so none of the files can be modified.<\/p>\n<pre># cd \/mnt\/iso\r\n# ls -l<\/pre>\n<p>You will see the list of files of an ISO image, that we have mounted in the above command. For example, the directory listing of an\u00a0<strong>Fedora-18-i386-DVD.iso<\/strong>\u00a0image would look like this.<\/p>\n<pre>total 16\r\ndrwxrwsr-x  3 root 101737 2048 Jan 10 01:00 images\r\ndrwxrwsr-x  2 root 101737 2048 Jan 10 01:00 isolinux\r\ndrwxrwsr-x  2 root 101737 2048 Jan 10 01:00 LiveOS\r\ndrwxrwsr-x 28 root 101737 4096 Jan 10 00:38 Packages\r\ndrwxrwsr-x  2 root 101737 4096 Jan 10 00:43 repodata\r\n-r--r--r--  1 root root   1538 Jan 10 01:00 TRANS.TBL<\/pre>\n<h3>How to Unmount an ISO Image<\/h3>\n<p>Simply run the following command from the terminal either \u201c<strong>root<\/strong>\u201d or \u201c<strong>sudo<\/strong>\u201d to unmount an mounted ISO image.<\/p>\n<pre># umount \/mnt\/iso\r\n\r\nOR\r\n\r\n$ sudo umount \/mnt\/iso<\/pre>\n<h5>Where Options<\/h5>\n<ol>\n<li><strong>-t :<\/strong>\u00a0This argument is used to indicate the given filesystem type.<\/li>\n<li><strong>ISO 9660 :<\/strong>\u00a0It describes standard and default filesystem structure to be used on CD\/DVD ROMs.<\/li>\n<li><strong>-o :<\/strong>\u00a0Options are necessary with a -o argument followed by a separated comma string of options.<\/li>\n<li><strong>loop:<\/strong>\u00a0The loop device is a pseudo-device that often used for mounting CD\/DVD ISO image and makes those files accessible as a block device.<\/li>\n<\/ol>\n<p>Read Also :\u00a0<a href=\"https:\/\/www.tecmint.com\/how-do-i-access-or-mount-windows-ntfs-partition-in-linux\/\" target=\"_blank\" rel=\"noopener\">How to Mount Windows NTFS Partition in Linux<\/a><\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/how-to-mount-and-unmount-an-iso-image-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An\u00a0ISO\u00a0image or\u00a0.iso\u00a0(International Organization for Standardization) file is an archive file that contains a disk image called\u00a0ISO 9660\u00a0file system format. Every\u00a0ISO\u00a0file have\u00a0.ISO\u00a0extension has defined format name taken from the\u00a0ISO 9660\u00a0file system and specially used with\u00a0CD\/DVD\u00a0Rom\u2019s. In simple words an iso file is a disk image. mount and unmount iso images in linux I have seen most &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/how-to-mount-and-unmount-an-iso-image-in-rhel-centos-fedora-and-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Mount and Unmount an ISO Image in RHEL\/CentOS\/Fedora and Ubuntu&#8221;<\/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":[1],"tags":[],"class_list":["post-12123","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12123"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12123\/revisions"}],"predecessor-version":[{"id":12124,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12123\/revisions\/12124"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}