15
June
2022
Mounting CD/DVD ISO images in Linux
11:38

Mounting CD/DVD ISO images in Linux

15 June 2022 11:38

Some CD/DVD discs, especially those in a single copy, are more convenient to convert into digital form and store on your hard drive in the form of ISO images, connecting them if necessary.

Retrieving information from a CD/DVD disc

From the command line you need to find out the device name

mount -t udf

The device name in the operating system corresponding to the data disk installed in the CD-DVD drive will be displayed:

/dev/sr0 on /media/vladimir/601723_TERRATEC_T_Stick+_L1 type udf (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,uhelper=udisks2)

Now we know the device name - /dev/sr0.

Let's save the information to an ISO image file:

sudo dd if=/dev/sr0 of=terratec.iso bs=1M

Where terratec.iso is the name of the file to save the disk image.

Copy to storage

You need to copy from the current folder to another disk to store digital copies in the form of ISO files.
Or, if the ISO file is not very large, such as a driver disk, you can copy it to Yandex.Disk(my path to Yandex Disk is /home/vladimir/Yandex.Disk).

Creating a Mount Point

You need to create a folder - a mount point for ISO images

sudo mkdir /media/iso

Connecting an ISO image

Method 1: Using the Command Line

We make sure that the required source file is in place:

cd /home/vladimir/Yandex.Disk

if it is in a folder, execute a CD into it, for example,

cd Terratec

looking through the folder

ls *.iso

Let's mount the ISO file using the mount command:

sudo mount ./terratec.iso /media/iso -o loop

Important: at the end of the mount command, be sure to specify the -o loop parameter. It involves using a ring device to connect a physical device as a folder (mapping). The command mounts the source ISO image using a ring device to the target mount point /media/iso.

The "mount" command with the "-o" option can only be executed by a superuser, since only the superuser "root" can use the "-o" option, a synonym for "--options" in the "mount" command. This limitation is due to the fact that only the user who mounted it can unmount the file system.

Now you can use the disk in the /media/iso folder: view it, copy or run files as if the disk was physically located in this folder (but this is only a projection using the loop device of the image from the ISO file, read-only).

Method 2: in a file management program (as a regular user)

You need to click on the ISO file and select "Mount disk image" from the context menu.

mount-iso

Or, open the file using "Disk Image Mounter"

mount-iso-2

Using a mounted disk

In the command line it is possible to navigate to a disk folder.

If the drive was mounted to a folder using the sudo mount command:

cd /media/iso

or, if the disk was mounted using the GUI:

cd /media/username
ls
cd folder_name

Or in Disk Explorer a line with the name of the disk will appear on the left side of the window - the disk can be opened for viewing by clicking left mouse button.

If you connect the ISO via the GUI, the image will be mounted in the folder "media" current user /media/имя пользователя/.

explore

Unmounting a disk (umount)

Method 1:

Run the command from the command line

sudo umount /media/iso

Method 2:

In Explorer (PCManFM), on the left side of the window, click on the icon "Extract".

umount

Enter the administrator password if prompted.


Links:
*How to mount ISO File on Linux - linuxize.com



Related publications