How To: Unmount an ISO Image in Linux

Iknow how to mount an iso image under Linux. But, how do I unmount the same under Linux?

You need to use the umount command detaches the file system(s) mentioned from the file hierarchy. A file system is specified by giving the directory where it has been mounted. Giving the special device on which the file system lives may also work, but is obsolete, mainly because it will fail in case this device was mounted on more than one directory.

List Your Currently Mounted File System

Either use df or mount command as follows:
# df -H
OR
# mount

Unmount an ISO Image

Type the following command (assuming that your image is mounted at /mnt/iso):
# umount /mnt/iso
You can also force unmount (if it is giving some error), enter:
# umount -f /mnt/iso

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s