How to mount and unmount images in linux

Posted: December 23, 2011 in Linux
Tags: , , , , ,

When i was using Win xp i had to create a virtual drive through power iso, alcohol 120 or nero smart… Everytime the trial period gets expired and i would be in trouble when i were in need to extract iso..

In linux mounting and unmounting iso images is so simple.. Here to we have some softwares to read iso.. gmountiso and isomaster.. there of few 100 kb size.. but through terminal its too simple..

Mounting:

open the terminal

Login as root by su command

$ su
Password:

Create a directory ie. mount point

$ mkdir /mnt/mountpoint

move to the location where iso is saved and type

$ mount -o loop abc.iso /mnt/mountpoint

We have created a directory named mountpoint and in that directory we have extracted the contents of abc.iso..

Unmounting:

Unmount is so simple.. use umount(its ‘umount’ not ‘unmount’. Be careful while typing )

$umount /mnt/mountpoint

Just specify the directory where we have extracted the iso file…

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s