Mount CD/DVD Image file as virtual drive

Being able to mount a CD/DVD image file is useful in many circumstances, be it to check an image’s functionality before burning or to install software without having to waste a disk.

Create a mountpoint. I often place it in /tmp for testing purposes.
The mountpoint-directory will be the root directory of your image file.

$ mkdir <mountpoint>

Mount Image file as a loop device

$ sudo mount -o loop <image file>  <mountpoint>

Unmount virtual drive

$ sudo umount  <mountpoint>

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

%d bloggers like this: