- Как смонтировать файл образа ISO в Linux
- How to Mount ISO File on Linux
- В этом руководстве мы объясним, как монтировать файлы ISO в Linux.
- Как смонтировать файлы ISO с помощью командной строки
- Монтирование файлов ISO с помощью Gnome
- Вывод
- How to Mount and Unmount an ISO Image in Linux
- How to Mount an ISO Image in Linux
- How to Unmount an ISO Image in Linux
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- How to Mount an ISO File in Linux
- Graphical way to mount ISO in Linux
- Use Command Line to mount ISO in Linux
- Unmount the ISO
- How To Mount ISO File In Linux?
- Mount ISO File with mount Command
- List ISO File Contents
- Unmount ISO File with umount Command
- Mount ISO File In GNOME Desktop
- HOW TO MOUNT AN ISO IMAGE IN LINUX
- Introduction
- Follow the Steps to Mount ISO Image in Linux
- Step: 1 Create a mount point
- Step: 2 Mount the .iso File
- Step: 3 Check mounted .iso File
- Step: 4 Permanently Mount the .iso File
Как смонтировать файл образа ISO в Linux
How to Mount ISO File on Linux
В этом руководстве мы объясним, как монтировать файлы ISO в Linux.
Файл ISO — это архивный файл, который обычно содержит полный образ CD или DVD. Например, большинство операционных систем, таких как Windows, Linux и macOS, распространяются как образы ISO.
Файлы ISO могут быть извлечены с использованием популярных архивных программ, смонтированы на петлевом устройстве и записаны на флэш-накопитель USB или чистый компакт-диск.
Как смонтировать файлы ISO с помощью командной строки
Команда mount позволяет прикреплять (монтировать) файлы ISO в определенной точке монтирования в дереве каталогов.
Инструкции в этом разделе должны работать с любым дистрибутивом Linux, включая Ubuntu, Debian и CentOS.
Начните с создания точки монтирования, это может быть любое место, которое вы хотите:
Смонтируйте файл ISO в точку монтирования, введя следующую mount команду:
Здесь важен -o loop вариант. Он сообщает команде для сопоставления устройства цикла с указанным файлом ISO и монтирует это устройство в указанной точке монтирования.
Не забудьте заменить /path/to/image.iso путь к файлу ISO.
Чтобы просмотреть содержимое ISO-образа, используйте ls команду:
Вы также можете открыть файловый менеджер для просмотра содержимого ISO.
Размонтируйте файл ISO с помощью umount команды, за которой следует каталог, куда был смонтирован образ:
Если файловая система используется, umount команда не сможет отсоединить файловую систему.
Монтирование файлов ISO с помощью Gnome
Если вы используете дистрибутив Linux, в котором в качестве среды рабочего стола используется Gnome, вы можете смонтировать файл ISO, используя приложение монтирования образа диска Gnome.
Найдите файл ISO, который вы хотите смонтировать, и щелкните по нему правой кнопкой мыши. В контекстном меню выберите опцию «Открыть с помощью образа диска».
После того, как образ смонтирован, на рабочем столе должен появиться значок устройства. Дважды щелкните по нему, и откроется файловый менеджер Gnome.
Чтобы демонтировать файл ISO, щелкните правой кнопкой мыши значок устройства и выберите «демонтировать».
Вывод
В Linux вы можете монтировать файлы ISO с помощью mount команды. Пользователи настольных компьютеров могут использовать графические инструменты, такие как Gnome Disk Image Mounter.
How to Mount and Unmount an ISO Image in Linux
An ISO image or .iso (International Organization for Standardization) file is an archive file that contains a disk image called ISO 9660 file system format.
Every ISO file has .iso an extension has a defined format name taken from the ISO 9660 file system and is specially used with CD/DVD ROMs. In simple words, an iso file is a disk image.
mount and unmount iso images in Linux
I have seen most of the Linux operating system images that we download from the internet are .ISO format. Typically an ISO image contains the installation of software such as operating system installation files, games installation files, or any other applications.
Sometimes it happens that we need to access files and view content from these ISO images, but without wasting disk space and time by burning them onto CD/DVD or USB drives using our tools.
This article describes how to mount and unmount an ISO image on a Linux Operating system to access and list the content of files.
How to Mount an ISO Image in Linux
To mount an ISO image on RedHat-based or Debian-based Linux distributions, you must be logged in as a “root” user or switch to “sudo” and run the following commands from a terminal to create a mount point.
Create Linux Mount Directory
Once you created a mount point, use the “mount” command to mount an iso file called “Fedora-Server-dvd-x86_64-36-1.5.iso“.
Mount ISO File in Linux
Where Options
- -t – This argument is used to indicate the given filesystem type.
- ISO 9660 – It describes the standard and default filesystem structure to be used on CD/DVD ROMs.
- -o – Options are necessary with a -o argument followed by a separated comma string of options.
- loop -The loop device is a pseudo-device that is often used for mounting CD/DVD ISO images and makes those files accessible as a block device.
After the ISO image is mounted successfully, go to the mounted directory at /mnt/iso and list the content of an ISO image. It will only mount in read-only mode, so none of the files can be modified.
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 a Fedora-Server-dvd-x86_64-36-1.5.iso image would look like this.
View ISO Files in Linux
How to Unmount an ISO Image in Linux
Simply run the following command from the terminal either “root” or “sudo” to unmount a mounted ISO image.
Unmount ISO File in Linux
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
How to Mount an ISO File in Linux
ISO files are everywhere. They’re incredibly useful for a number of things, but you’ll most commonly find them as software installation images. ISOs are also commonly used for making backups and storing data.
Linux has a couple of great ways to manage ISO files. You can handle things from your graphical desktop, or you can work exclusively from the command line. Both have their upsides.
Graphical way to mount ISO in Linux
When you’re working with a physical disk with an ISO image on it, the graphical tools that come with your desktop environment are easily the simplest to work with.
Insert your disk into your computer’s disk drive. Open your desktop file manger, and look to the side of the window where the storage devices are listed. Before long, your disk should appear.
Click on your disk, and you’ll open the contents in the main body of the window. You’ll be able to read the files on the media and copy things onto your computer.
When you’re done, either right-click the disk on the device listing and unmount, or use the Eject icon, if there is one.
For an ISO file, most File Managers in Linux come with native ISO support. Most of the time you just need to right-click on the ISO file and select “Mount Archive” (or equivalent option).
And if you really need another application to handle the mounting, Furius ISO Mount is a useful software that you can use to mount ISO files graphically. It is available for most Linux distros.
In Ubuntu you can install with the command:
Use Command Line to mount ISO in Linux
The command line offers a simple and direct way to mount an ISO on your system, too. It’s not as fast as the couple of clicks that it takes graphically, but it’s not complicated either. You can handle it with a single command.
While you can mount the ISO from a physical disk graphically, it’s much easier to mount an ISO file though the command line. That’s what this part of the guide is going to focus on.
Mounting an ISO is very similar to mounting any filesystem on Linux. There are a couple of flags that you’ll need to add in. You’re also going to need a directory to mount it to, so make one.
That will mount your ISO file to the directory that you created.
The first flag to look at specifies the type of filesystem being mounted. In this case it’s an ISO. You specify it with the -t flag. In this case, it isn’t strictly necessary, but it’s better to be certain.
The -o flag is a generic options flag. It takes a bunch of different potential options, but in this case, you’re going to be using loop. The loop option tells Linux to use a virtual loopback interface in place of a physical device. Since the ISO isn’t an actual device with a listing in the “/dev” directory, adding this flag is necessary.
When you mount your ISO, you’ll get a warning message stating that the file was mounted in read-only mode. This is totally normal. An ISO is a snapshot. It’s not meant to be written and altered like a normal drive.
Unmount the ISO
Unmounting your ISO is very easy. This follows the exact same procedure as unmounting another drive.
Your system will unmount the file. Since ISOs are snapshots, you can mount it and return to where you were at any time.
Whether you’re mounting a physical disk on your computer or you’re working with ISO files and letting them behave like a virtual drive, managing ISOs in Linux is fairly simple. A lot of the simplicity comes from Linux’s Unix heritage. Because it handles everything as a file or directory, drives and ISO files are no different.
Nick is a freelance tech. journalist, Linux enthusiast, and a long time PC gamer.
Our latest tutorials delivered straight to your inbox
How To Mount ISO File In Linux?
ISO is a popular file format that is generally used to store optical media data like CDs, DVDs, etc. ISO files contain the image of a specific CD or DVD. Generally, operating systems, software, software bundles are stored inside ISO files. ISO is a file format and file system which is also defined as ISO 9660. ISO 9660 standard created in order to make every CD and DVD content compatible. The UDF is the next version of the ISO 9660 standard. UDF is backward compatible with the ISO 9660.
Mount ISO File with mount Command
The mount command is used to mount different disks and partitions with different file systems. As an ISO file is a file system defined as ISP 9660 or UDF we can use the mount command in order to mount ISO files. To mount the ISO file a mount point is required where the contents of the ISO represented. In the following example, the ISO file named ubuntu.iso mounted into cdrom directory located in the current user home directory. We provide the -o loop option and do not provide the sudo command. Following ISO mount operation does not require root privileges because the current user has access rights for his/her home directory.
Generally physical CD-ROM and ISO files are mounted under the /mnt directory. The /mnt directory requires root privielges to mount or create directory. First we will create a directory named /mnt/iso to mount ISO file.
Now we can mount the ISO file but again we require the root privileges. We provide the sudo command.
By default the ISO file file system type is automatically detected by the mount command. But in some cases it may not work. The file system type of the ISO file can be specified explicitly. The -t iso9660 can be specified as the file system like below.
List ISO File Contents
After mounting ISO file we can list the contents of the ISO file. We use the ls command to list mount directory contents. In the following example the ISO file is mounted under /mnt/iso .
Unmount ISO File with umount Command
The mounted ISO file can be unmounted by using the umount command. Just provide the mount directory of the ISO file to the umount command. In the following example, we unmount the /mnt/iso .
If the directory is its contents allready in use it can not be unmounted and return error about this.
Mount ISO File In GNOME Desktop
GNOME is a popular desktop environment used in Linux. It provides the tool named Disk Image Mounter which can be used to mount ISO files. First right-click to the ISO file like below. Select the “Open With Other Application” if the “Open With Disk Image Mounter” not listed.
In the following Select Application screen select the Disk Image Mounter. As the last step click to the Select button. This mounts the ISO file automatically.
After the ISO file mounted it listed in the File Manager menu side bar like below.
HOW TO MOUNT AN ISO IMAGE IN LINUX
by Balamukunda Sahu · Published November 26, 2016 · Updated January 26, 2017
MOUNT AN ISO IMAGE IN LINUX
Introduction
ISO Image file is like Container which contains all required materials or in simple word its an Screw Driver box which contains all different shape of bit’s for different Screws, Like that ISO Image file is an archive of files and directories like tar in Linux, which may contains video/Audio files, Operating System Supporting files and directories, May be games and so on…ISO file can be identified by a file with extension “.iso“.
Example : ubuntu-16.10-desktop-amd64.iso
As we can see in Example ubuntu-16.10-desktop-amd64.iso is an iso file with extension “.iso” which contains all required supported file and directories of Ubuntu Operation System.
There are so many Third party applications are available to create or extract .iso files, But Today in this topic we are going to discuss how to mount an iso file in Linux.
Follow the Steps to Mount ISO Image in Linux
To Mount iso image, first we need a .iso file, I have one iso file as shown below.
Step: 1 Create a mount point
Create a Directory in /mnt or any where else where you want to mount the .iso file, Now go to the path where you have your .iso file (For Example i have my .iso file under /app directory).
Step: 2 Mount the .iso File
The command to mount the .iso file would look like this :
mount -t iso9660 -o loop
Follow the command below.
Where :
-t : Used to Indicate the File System Type.
iso9660 : It is an Standard by International Organisation Standardiztion (ISO) for Medias (CD/DVD).
-o : Options are specified with a -o flag followed by a comma separated string of options.
loop : It is a pseudo-device or a fake device that is allow you to mount a file and makes a file accessible as a block device. Loop devices are often used for ISO images. We can check the mounted devices by below command.
Step: 3 Check mounted .iso File
We can check mounted device by df -h command as shown below.
Now we can go to “/mnt/ubuntu” where we mounted the .iso file to check the content of the file.
So we are able to mount the .iso file successfully by following above steps but this is Temporary Mounting means once we restart the system the mount point will gone and we have to remount it if we need that.
Also Read:
Step: 4 Permanently Mount the .iso File
But if you want to mount the .iso file permanently then we have to mount it on “/etc/fstab” file, So let’s have look on steps below.
The Pattern to enter the .iso permanent mount would look like this :
So As per our Secnario :
/app/ubuntu-16.04.1-desktop-amd64.iso /mnt/ubuntu iso9660 loop 0 0
Then refresh the mount table by mount -a Command.
Mount ISO Image in fstab File
You can Unmount the ISO image by below command.
So this is how we can mount the ISO image file in Linux, For any Query Please feel free to comment on comment box below.