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

Related posts

You may also like...

72 Responses

  1. Use quotes says:

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

  2. junderdo says:

    thanks! Playing starcraft without the loud disc spinning now.

  3. STM says:

    Thank you very much, this works brilliantly! But indeed, why is not already available?

    /me pokes Ubuntu monkeys

  4. Please note that in Intrepid a right-click with ‘open with Archive Mounter’ does the job now.

  5. VÍkþórr says:

    I get “Cannot mount”. What could be the problem?

  6. VÍkþórr says:

    Never mind. The problem was – surprise! – a space in the file name! XD

  7. Remco says:

    Perfect, worked for me in less then a minute!

  8. Anonymous says:

    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.

  9. Anonymous says:

    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.

  10. Ali says:

    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!

  11. sid says:

    thank you very much. great scripts, sooo handy. u rock man 🙂

  12. Larry says:

    Jesus Christ. Two god damn much work.

  13. Trey says:

    nice script you made there.

    Timberland for men

  14. Jay says:

    This is great, thanks for writing this up!

  15. Angel Zone says:

    Thanks, For me it works….

  16. david says:

    just wanted the mount command
    and found this page via Google

    thank you very much!

  17. Ton says:

    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!

  18. Wayne says:

    Can this work for Helena 8.0 mint.

  19. rhyden says:

    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.

  20. TannerS says:

    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?

  21. Alex says:

    Thank you for the information this was very helpful !!!

  22. Surya says:

    It works…

    Thanks…

  23. oDesk says:

    well done

  24. let it be says:

    O_o. Great! Thanks

  25. priyaranjan says:

    works gr8.. thnx

  26. Dustin says:

    Brilliant tutorial! thanks alot!

  27. Neo Anderson says:

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

  28. Neo Anderson says:

    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

  29. Drakezilla says:

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

Leave a Reply

Your email address will not be published.