Troubleshooting
Problem
Loopmount command failing with error "1320-007 loopmount: Failed to mount the imagefile".
Symptom
You receive the following error message after running the command:
# loopmount -i Virtual_IO_Server_Base_Install_3.1.3.14_Flash__122021_LCD8250309.iso -o "-V udfs -o ro" -m /mnt/dvd
1320-007 loopmount: Failed to mount the imagefile
Cause
Scenario #1 Probable Cause
Mount point directory does not exist.
Mount point directory does not exist.
Scenario #2 Probable Cause
The mount point directory has already been mounted before.
The mount point directory has already been mounted before.
Scenario #3 Probable Cause
The ISO image path is incorrect or not the absolute path.
The ISO image path is incorrect or not the absolute path.
Scenario #4 Probable Cause
The ISO image is corrupted.
The ISO image is corrupted.
Scenario #5 Probable Cause
Not providing the correct options for the loopmount command
Not providing the correct options for the loopmount command
Environment
AIX and VIOS
Resolving The Problem
Scenario #1: Mount point directory does not exist
You can check that the mount point directory exists by running the following command:
ls: 0653-341 The file /mnt/dvd does not exist.
That means that the mount point is missing and needed to be added.
$ ls -l /mnt/dvd
If you have encountered the following error:ls: 0653-341 The file /mnt/dvd does not exist.
That means that the mount point is missing and needed to be added.
# mkdir -p /mnt/dvd
Scenario #2: The mount point directory has already been mounted before.
To make sure that your mount point directory is not read only and has not been mounted before, you can run the following command:
$ df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.46 9% 3443 4% /
/dev/hd2 5.00 1.08 79% 73539 22% /usr
/dev/hd9var 1.00 0.66 35% 6495 5% /var
/dev/hd3 5.00 4.98 1% 108 1% /tmp
/dev/hd1 30.00 25.17 17% 4552 1% /home
/dev/hd11admin 0.50 0.50 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 1.00 0.55 46% 7570 6% /opt
/dev/livedump 0.50 0.50 1% 4 1% /var/adm/ras/livedump
/dev/fslv00 30.00 21.98 27% 8 1% /31310
/ahafs - - - 40 1% /aha
/dev/loop0 4.62 0.00 100% 2420809 100% /mnt/dvd
If there was a /dev/loop mounted on /mnt/dvd, then it would result in the mentioned error as you cannot mount on a file system that has been already mounted on.
Scenario #3: The ISO image path is incorrect or not the absolute path.
You need to make sure that the correct absolute path of the ISO is added to the command. It can help to run the following commands:
$ ls -l
$ pwd
Scenario #4: The ISO image is corrupted.
When running the loopmount command, the error can appear if the ISO image is corrupted. You can check the file size and the cksum to make sure that the ISO is correct, Or if you used the same ISO image before on another VIOS/LPAR and it doesn't work.
Scenario #5: Not providing the correct options for the loopmount command
The -o flag is the option for mounting the ISO image, miswriting the options correctly can result in the mentioned error. You need to make sure that the correct options are applied
Related Information
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m3p0000006wZLAAY","label":"mount"}],"ARM Case Number":"TS008871103","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
07 December 2022
UID
ibm16584447