Page 10 of 10 FirstFirst ... 8910
Results 91 to 94 of 94

Thread: HOWTO: Nautilus Script to mount .iso files

  1. #91
    Join Date
    Aug 2009
    Beans
    24

    Re: HOWTO: Nautilus Script to mount .iso files

    Nice scripts indeed. This is what called vivid community.

    However my suggestion is to first try out solutions already embeded in your Ubuntu before creating new scripts, for something which has already been done and is supported.
    The bash scripts are great if you want to mount/unmount from command line, but if all you need is to have this in nautilus, it could be not worth the hassle.

    As someone has already written, since 8.10 you can right click on image file and open it with "archive mounter". If you need something more you could go with gisomounter or cdemu.

  2. #92
    Join Date
    Nov 2007
    Location
    Manchester - UK
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Nautilus Script to mount .iso files

    @qva5,

    The main problem with archive mounter is that it doesn't result in a proper path, therefore nothing can be excecuted.

    CDEmu isn't on the main repositories and gISOmounter produces errors when run as user.

    The script is an elegant and compact solution, besides not having any dependencies.

    @all,

    Since most ISOs have long names and rarely more than one file needs to be mounted at the same time, I changed the script a little bit the scripts.

    ISO Mount:
    Code:
    #!/bin/bash
    
    gksudo mkdir /media/ISO
    
    if sudo mount -o loop,user,uid=1000,gid=100 -t auto "$*" /media/ISO
    then
            if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted. 
    	
    Open Volume?"
            then
                    nautilus /media/ISO --no-desktop
            fi
            exit 0
    else
            sudo rmdir /media/ISO
            zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
            exit 1
    fi
    Also with this script the volume is user manageable, meaning that you can unmount it just by right-clicking on the volume icon and selecting 'unmount', without the need for a specific script!

    Regards,
    Eduardo Ristow
    Last edited by frumple; July 28th, 2010 at 08:02 PM.

  3. #93
    Join Date
    May 2008
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Nautilus Script to mount .iso files

    Quote Originally Posted by RattyMan View Post
    This doesn't work with any ISO file that is outside your home directory, other than that, great script
    I just tried the scripts and it DOES work outside the home as well.

    Cheers

  4. #94
    Join Date
    Sep 2011
    Beans
    1

    Re: HOWTO: Nautilus Script to mount .iso files

    Great little script! thank you very much....:P

Page 10 of 10 FirstFirst ... 8910

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •