- How to Mount and Unmount an ISO Image in RHEL/CentOS/Fedora and Ubuntu
- How to Mount an ISO Image
- How to Unmount an ISO Image
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- Mounting an ISO Image in Linux
- Create a Mount Point for ISO Image
- Mount an ISO File in Linux
- Verify that ISO File is Mounted
- Unmount an ISO File in Linux
- Как смонтировать файл образа ISO в Linux
- How to Mount ISO File on Linux
- В этом руководстве мы объясним, как монтировать файлы ISO в Linux.
- Как смонтировать файлы ISO с помощью командной строки
- Монтирование файлов ISO с помощью Gnome
- Вывод
- How to Mount ISO Images Files in Linux
- Mount Command
- Mount / Extract Using Archive Managers
- GNOME Disks
- P7zip-full
- Conclusion
- About the author
- Nitesh Kumar
- How to mount an ISO image/file under Linux
- How to Mount ISO File on Linux
- More about loop devices on Linux
- Procedure to mount ISO file/images under Linux
- How do I unmount the ISO image on Linux?
- How to mount an ISO file using a GUI app on Linux
- How to install furiusisomount app
- Mounting ISO Files using Linux Gnome or KDE GUI
- Conclusion
How to Mount and Unmount an ISO Image in RHEL/CentOS/Fedora and Ubuntu
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 have .ISO extension has defined format name taken from the ISO 9660 file system and specially used with CD/DVD Rom’s. 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 that we download from the internet are .ISO format. Typically an ISO image contains installation of software’s 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 ISO images, but without wasting disk space and time in burning them on to CD/DVD.
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
To mounting an ISO image on Linux (RedHat, CentOS, Fedora or Ubuntu), you must be logged in as “root” user or switch to “sudo” and run the following commands from a terminal to create a mount point.
Once you created mount point, use the “mount” command to mount an iso file called “Fedora-18-i386-DVD.iso“.
After the ISO image mounted successfully, go 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 an Fedora-18-i386-DVD.iso image would look like this.
How to Unmount an ISO Image
Simply run the following command from the terminal either “root” or “sudo” to unmount an mounted ISO image.
Where Options
- -t : This argument is used to indicate the given filesystem type.
- ISO 9660 : It describes 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 often used for mounting CD/DVD ISO image and makes those files accessible as a block device.
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.
Источник
Mounting an ISO Image in Linux
You can easily access an ISO image of a CD or DVD (e.g. RHEL DVD) from the command line in Linux.
To access an ISO disc image, you have to create a mount point (empty folder that will be used as a root filesystem) and mount an ISO file to it.
In this article, i’ll show how to Mount and Unmount an ISO file from the Linux Command Line (CentOS, RHEL, Fedora, Ubuntu, Debian, Mint etc.).
To mount an ISO image in Linux, you must be a root or use sudo.
Create a Mount Point for ISO Image
A mount point – is a directory (typically an empty folder) from which the content of an ISO disc image will be accessible.
Create a mount point:
Mount an ISO File in Linux
Mount an ISO file /home/user/disk.iso to the mount point /mnt/mount_point :
After ISO disk is mounted, you will receive the following message: ‘mount: warning: /mnt/mount_point seems to be mounted read-only‘.
You can ignore it, because according to the ISO 9660 standard, ISO images are always mounted in read-only mode.
Verify that ISO File is Mounted
List mounted devices to verify that ISO image has successfully been mounted:
Below you should see a line like the following:
Now you can access the mount point and list the files stored on the ISO disk image:
Unmount an ISO File in Linux
Use the following command to unmount an ISO disc image:
Источник
Как смонтировать файл образа 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 ISO Images Files in Linux
Mount Command
The mount command, as the name suggests, allows you to mount a variety of filesystems. Once you mount a ISO image filesystem using the mount command, you will be able to explore its content using a graphical file manager or command line. To mount an ISO image file, use the following two commands in succession:
Replace “file.iso” with the name of your own ISO image file. You can change “mountpoint” to any other name. It represents the name of the folder where the ISO image filesystem will be mounted. In this case, a new folder is created in the home directory. On certain Linux distributions, you may have to prefix “mount” command with “sudo” to run the command as root.
To check if the ISO image file has been successfully mounted or not, you can run the following command:
If the command above returns a list of files and directories, then you can safely assume that the ISO image filesystem has been successfully mounted. You can now copy contents from the mount point to your local filesystem. Do note that most of the time, this mounted filesystem may be in read-only mode. If you want to modify the contents of the ISO image file, you may have to remove the write-protection mechanism and may have to use some external tools to repackage the ISO image file.
To unmount the mount point created in previous command, use the command specified below:
You may have to run it with “sudo” depending on configuration of your Linux distribution. It is highly recommended that you manually unmount the mount point once your work is done to avoid file corruption.
You can know more about “mount” command by running these two commands in a terminal:
Mount / Extract Using Archive Managers
File managers in almost all major Linux distributions come with an integrated plugin for extracting and managing compressed archives. You can use these archive managers to mount or extract content from ISO image files.
If for some reason your file manager doesn’t have a dedicated archive manager plugin, you can install such archive managers in your Linux distributions by searching for “archive manager”, “file roller”, “archivemount” and “engrampa” terms in the package manager. Once these packages are installed, just right click on an ISO image file and click on the menu entry that allows you to explore the archive.
Depending on the archive manager plugin you are using, the ISO image filesystem may be mounted or it may be opened in the archive manager GUI window. Once mounted, a new filesystem entry should appear in the sidebar of your file manager. Just click on the sidebar entry to explore its content. When your work is done, unmount it manually to avoid file corruption.
GNOME Disks
GNOME Disks or GNOME Disk Utility is a comprehensive utility for managing storage devices, local filesystems, partitions and disk image files. You can use it to mount an ISO image file and browse its contents. To install GNOME Disks in Ubuntu, use the command specified below:
You can install GNOME Disks from the package manager in other Linux distributions. Source code is available here.
You can follow two approaches to mount an ISO image file using GNOME Disks. After installing GNOME Disks, a new right click menu entry called “Disk Image Mounter” may appear in your file manager. Just click on the menu entry to mount the ISO image file.
If the right click entry doesn’t appear in your file manager, launch “Disks” application from the main application menu and click on the “Attach Disk Image” menu option to mount your desired ISO image file.
Once mounted, the newly created mount point should automatically appear in the GNOME Disks and your file manager.
P7zip-full
P7zip-full is an open source implementation of “7z” file format and archive management utility. You can use it to extract contents of an ISO image file.
To install P7zip-full in Ubuntu, use the command specified below:
You can install P7zip-full from the package manager in other Linux distributions. Additional packages and source code is available here.
Once installed, run the following command to extract content from an ISO image file (replace “file.iso” with your desired filename):
You can know more about “7z” command by running these two commands in a terminal:
Depending on the file manager you are using, you may get a new menu entry in the right click menu to extract the ISO archive.
Conclusion
These are some of the ways you can mount ISO image files in your Linux distribution. Some Linux distributions come with a dedicated, pre-installed utility for mounting and burning CD / DVD disks. You can also use these applications to explore the data contained in an ISO image file.
About the author
Nitesh Kumar
I am a freelancer software developer and content writer who loves Linux, open source software and the free software community.
Источник
How to mount an ISO image/file under Linux
H ow do you mount ISO file on Linux using the CLI and GUI app? First, try to understand an ISO image. It is an archive file (disk image) of an optical disc using a conventional ISO (International Organization for Standardization) format. ISO image files typically have a file extension of .ISO. The name “ISO” comes from the ISO 9660 file system used with CD-ROM or DVD media, but an ISO image can also contain UDF file system because UDF is backward-compatible to ISO 9660. You can mount an ISO file or images via the loop device under Linux. It is possible to specify transfer functions (for encryption/decryption or other purposes) using loop device. This page explains how to mount ISO files on Linux.
How to Mount ISO File on Linux
- Create the mount point directory on Linux: sudo mkdir /mnt/iso
- Mount the ISO file on Linux: sudo mount -o loop /path/to/my-iso-image.iso /mnt/iso
- Verify it, run: mount OR df -H OR ls -l /mnt/iso/
- Unmount the ISO file using: sudo umount /mnt/iso/
More about loop devices on Linux
The loop device is a block device that maps its data blocks not to a physical device such as a hard disk or optical disk drive, but to the blocks of a regular file in a filesystem or to another block device. This can be useful for example to provide a block device for a filesystem image stored in a file, so that it can be mounted with the mount command.
A loop device is a pseudo-device that makes a file accessible as a block device. Loop devices are often used for CD ISO images and floppy disc images. Mounting a file containing a filesystem via such a loop mount makes the files within that filesystem accessible. They appear in the mount point directory using following Linux commands. So, how do you mount an ISO image file under Linux? You need to use the mount commandas follows:
Let us see all commands and examples in details.
Procedure to mount ISO file/images under Linux
First, you must login as a root user, if not root user then switch to root user using the su command:
$ su —
One can use the sudo command:
$ sudo -i
Next, create the directory i.e. mount point using the mkdir command, run:
# mkdir -p /mnt/disk
Finally, use the mount command as follows to mount iso file called disk1.iso:
# mount -o loop disk1.iso /mnt/disk
OR
# mount -o loop /path/to/disk1.iso /mnt/disk
Verify it with the df command or mount command:
# df -H
# mount
# ls -l /mnt/disk/
Change directory to list files stored inside an ISO image:
# cd /mnt/disk/
# ls -l
To copy files using the cp command:
$ cp file1 file2 /home/vivek/Downloads
Mounting ISO files on Linux using mount command
How do I unmount the ISO image on Linux?
Use the following command to unmount the ISO file/image on Linux:
$ sudo umount /mnt/disk/
OR
$ sudo umount /path/to/disk1.iso
Verify it:
$ df -H
$ mount
$ ls -l /mnt/disk/
How to mount an ISO file using a GUI app on Linux
Not a fan of the CLI? Try image management utility called furiusisomount:
Furius ISO Mount is a simple application for mounting ISO, IMG, BIN, MDF and NG image files even without burning them to disk. It provides the following features:
1. Automatically Mounts ISO, IMG, BIN, MDF and NRG image files.
2. Creates a mount point in your home directory.
3. Unmounts the Image files and mnd more.
How to install furiusisomount app
Type the following apt-get command/apt command on a Debian/Ubuntu/Mint Linux:
$ sudo apt install furiusisomount
Start furiusisomount:
$ furiusisomount &
Sample outputs:
Mount an ISO file on Linux using Furius ISO Mount GUI app
Just select an ISO image an click on the mount button. Open your file browser:
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
View mounted iso image in Ubuntu Linux file manager
Mounting ISO Files using Linux Gnome or KDE GUI
Conclusion
You learned how to use the mount, unmount command and GUI apps for mounting the ISO9660 images or files. For more information see:
Category | List of Unix and Linux commands |
---|---|
Documentation | help • mandb • man • pinfo |
Disk space analyzers | df • duf • ncdu • pydf |
File Management | cat • cp • less • mkdir • more • tree |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Linux Desktop Apps | Skype • Spotify • VLC 3 |
Modern utilities | bat • exa |
Network Utilities | NetHogs • dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop |
Searching | ag • grep • whereis • which |
Shell builtins | compgen • echo • printf |
Text processing | cut • rev |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
Cheers, worked like a charm 🙂
Quick comment:
You need the kernel module loop for it; people that get the error about it in mount should get the latest copy of the linux source and proceed to compile the correct module which is under block devices
Other than that it works 😉
Just what i needed, mahalo!
Thanks! This was very very easy to find and follow. I’m new to linux and this is the reason I made the swicth, the help that everyone give make learning linux easy and fun. Thank you for your time, thank you!
sweet! worked cleanly, no stupid paid software for windows needed to do such a simple task!
Looks like we cant mount it for RW. Bloody well then.
You’d have to finalize the RW disc so that it becomes an iso image. You can still erase the disc later.
I think he means mounting the iso file for reading and writing.
This tip was a great help! I only need to read the iso for installations so thanks a heap!
richard, to edit bootable ISO mount it as it’s described here, copy it’s contents to some directory, edit files you need and generate new ISO by command:
sudo mkisofs -o /tmp/new.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V “new iso name” .
Works like a charm. It kept me from Burning a DVD for a computer that didn’t read DVDs. I did a Net Install of Linux over FTP. I copied the File to a Linux FTP Server, mounted the ISO and did an install. Sweet.
But what if I don’t have root? Or am too lazy to su or sudo?
Источник