Mount and Unmout ISO images without burning them

Sponsored Link
Some times you want to use iSO images without burning them.If you don't want to waste your CD's/DVD's here is the simple possible solutions using these tips you can mount and unmount ISO images without burning them.

I know two possible solutions

1) Using Nautilus Scripts

2) Using kernel loop module

Now we will see each one in detailed

Using Nautilus Scripts

I am taking this tip from here first you need to download two scripts for mount iso images download from here for unmount iso images download from here

Once you have these two scripts you need to change the permissions using the following commands

sudo chmod +x /home/username/mount.sh

sudo chmod +x /home/username/unmount.sh

Now you need to copy them nautilus scripts

sudo mv /home/username/mount.sh ~/.gnome2/nautilus-scripts/

sudo mv /home/username/unmount.sh ~/.gnome2/nautilus-scripts/

That's it now you are ready for mounting and unmounting your ISO images.

Example

Mount ISO Image

Now i have one ISO image if you want to mount you need to right click and select scripts ---> mount-iso

Now it will prompt for root password and click ok

You can see the Mounter notification like the following

Here is the Successfully mounted message if you want to open this one click ok

This shows you available contents in mounted ISO image

Unmount ISO Image

Now i have one ISO image if you want to mount you need to right click and select scripts--->unmount-iso

Here is the Successfully Unmounted message

Using loop Kernel Module

First you need to make the directory to put the ISO into using the following command

sudo mkdir /media/isoimage

Now you need to add the loop module to your kernel.

What kernel loop module does?

I want to give brief introduction to kernel loop module.Using the module loop it is possible to mount a filesystem file. squashfs is a "loop" with (de)compression (Compressed Loopback Device) and it is possible to mount a compressed filesystem like a block device and seamlessly decompress its data while accessing it.

Use the following command to load loop module

sudo modprobe loop

Mount ISO Image

If you want to mount you need to use the following command

sudo mount debianetch.iso /media/isoimage/ -t iso9660 -o loop

In the above command you can replace debianetch.iso to your own iso image.

Now you should have your iso file mounted, and accessible from your desktop.

Unmount ISO Image

Unmount ISO Image Using the following command

sudo umount /media/isoimage

Sponsored Link

Incoming search terms:

Related posts

72 thoughts on “Mount and Unmout ISO images without burning them

  1. I had to change the quotes to straight quotes to make the script run. A quick “replace all” in gedit did the trick.

    [Reply]

  2. Works! ***w3rkZ!***
    Running- Ubuntu 8.10 Intrepid on brand new hardware (CompizFusion powered on Of Course).

    The above steps are easier if you have already installed the Nautilus-Scripts. After installing Nautilus-Scripts you will see the correct location to place these above “mount.sh” and “unmount.sh” scripts into. Place the two mount shell scripts in there (~/.gnome2/nautilus-scripts). Then select them both, right click them, goto Properties. Goto Permissions. Make sure the box is checked for ALLOW EXECUTION AS A PROGRAM. Then goto OK so that it saves changes of course. Then goto all open Nautilus windows (all open file browsers) and REFRESH the window so that it reloads your rightclick scripts!!! Easy.

    Thank a billion!
    Now I can scan ISOs for virus before burning them off.

    [Reply]

  3. Note:

    When attempting to use the “unmount.sh” script the first try, the mount point stayed in left-hand-side column inside nautilus listing devices. To get nautilus to recognize I had unmounted the drive, I flailed around with commands, &, in the process, attempted unmount from Desktop after closing nautilus. Then I dragged to trash. Then I open back up nautilus and mount point still visible along left side, but, I go back to the ISO in question, rightclick it and goto unmount.sh, and then it unmount clean and POOF mountpoint dissapear from left-hand-side device list inside nautilus. Why did it do this? Anyone know?

    Corrections:

    Now I can [EASILY, Without having to open a terminal] scan ISOs for virus before burning them off.

    [Reply]

  4. Thanks alot for the great scripts!
    It’s getting easier and easier to use linux. Thanx to the great guys like yourself who dedicated some of their time for helping others!

    [Reply]

  5. This so nice! I am fairly new to the linux community, but I love all the great work and super solutions you people have come up with!

    [Reply]

  6. I’m using Ubuntu 9.10 and the Nautilus scripts worked for me; modprobe loop gave me the error “Module loop not found.”

    Using Nautilus’ “Open with Archive Mounter” only worked with some ISO images, not all of the ones I tried.

    [Reply]

  7. I could not unmount it, once it had to fix it some other way every time I turn on ym pc

    /media/cdrom0 opens with our without cd in drive

    can anyone tell me what to do?

    [Reply]

  8. It is not working in Lucid Lynx. Shows “cannot Mount iso”! do you have this scripts’ latest versions?

    [Reply]

  9. Is there any prob with the $BASENAME variable?
    I can’t get an echo out of it after the step:
    BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
    why is this?
    am using lucid

    [Reply]

  10. excellent script, only one thing …the ISO file’s name should not contain blank spaces… you get an error if any

    [Reply]

Leave a comment

Your email address will not be published. Required fields are marked *