loopumount Command

Purpose

Unmounts a previously mounted image file on a loopback device and then removes the device.

Syntax

loopumount { -i imagefile | -l device } [-o umount options -m mountpoint ]

Description

This command is similar to umount except that it unmount the file and deletes the loopback device associated with the mount point if the temporary attribute for the loopback device in CuAt is set to yes, and then unmounts it. All the restrictions and features of the umount command apply to loopumount also.

Flags

Item Description
-i Specify an image file name such as an ISO image. This must be specified if –l is not specified.
-l ODM name of a loopback device such as loop0, loop1, etc. This must be specified if –i is not specified.
-o Options for the umount command.
-m Mount point such as /mnt.

If -i and –l both are specified, -i is ignored.

Security

Privilege Control: Only the root user and members of the system group should have execute (x) access to this command.

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. The following unmount /mnt and deletes the underlying device that was created by a previous invocation of loopmount.
    $ loopumount –i cdrom.iso –o "/mnt"
  2. The following command unmount /dev/loop2 from /mydisk but does not delete the device as loop2 was created by the user with mkdev.
    $ loopumount –l loop2 –o "/mydisk"

Files

Item Description
/usr/sbin/loopumount Contains the loopumount command.