Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: How to : Iso Mounter! (mount *.iso)

  1. #1
    Join Date
    Jun 2007
    Location
    UK
    Beans
    483
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Thumbs down How to : Iso Mounter! (mount *.iso)

    Hello all i been looking for some good ISO Image mounters to mount some ISO game files of mine.. And i seen this one!

    http://www.ubuntugeek.com/mount-and-...ning-them.html

    Am going to put this all down.. Because the guy who made that topic on that site did not put it in right!
    It did not work.


    Right where to start?

    You have to download 2 files what are called "mount" and "unmount"...
    You can get this from the site link at the top or here.

    mount.sh - unmount.sh

    Save the 2 files on to your desktop.
    And here are the commands for Terminal... Put your user name in where is says user name.



    sudo chmod +x /home/USER NAME/Desktop/mount.sh

    sudo chmod +x /home/USER NAME/Desktop/unmount.sh



    This is for changing the permissions!


    Then what we do is put this in... Using the same user name in user name!



    sudo mv /home/USER NAME/Desktop/mount.sh ~/.gnome2/nautilus-scripts/

    sudo mv /home/USER NAME/Desktop/unmount.sh ~/.gnome2/nautilus-scripts/



    This is for setting all of it up and moving "mount" and "unmount" In to the setup folder.


    Thats it all done

    Right click on a ISO and go to scripts you will see in scripts "mount" and "unmount"... When you click on mount it will ask for your password put it in and click on ok!

    Then when that is all done you will see a message saying
    "Successfully mounted" click ok.

    Now it will open a drive.. In the drive will be your files!

    And a drive icon will be on your desktop.

    In your system computer folder will be a drive icon to!


    The drive can play some Computer ISO games for Wine to play!


    For more info go to -> http://www.ubuntugeek.com/mount-and-...ning-them.html
    Last edited by UK-Wobbie; October 24th, 2007 at 07:27 PM.

  2. #2
    Join Date
    Dec 2005
    Location
    Islamabad, Pakistan
    Beans
    573
    Distro
    Ubuntu

    Re: Iso Mounter!

    great!!!!
    - ^root^, Error404NotFound, sleeping`dragon, |404NotFound| on irc.freenode.net
    Blog | Company | @err404notfound

  3. #3
    Join Date
    Dec 2005
    Location
    Islamabad, Pakistan
    Beans
    573
    Distro
    Ubuntu

    Re: Iso Mounter!

    I tried this for a ISO file that did have spaces in the file name, is that matters, and it gave me this on mount:

    ISO Mounter
    e /media/sda5/Academics/Co-Curricular/Video Lectures/Linux tutorial/Shell
    Fundamentals.iso
    <OK>


    and then


    ISO Mounter
    Cannot mount !
    <OK>


    can you tell me why?
    - ^root^, Error404NotFound, sleeping`dragon, |404NotFound| on irc.freenode.net
    Blog | Company | @err404notfound

  4. #4
    Join Date
    Nov 2007
    Beans
    8

    Re: Iso Mounter!

    Thanks for the script, however I'm getting the same error as shoaibi. Where are we going wrong?

  5. #5
    Join Date
    Oct 2004
    Location
    Albuquerque New Mexico, U
    Beans
    1,189
    Distro
    Ubuntu Development Release

    Re: Iso Mounter!

    If your filename has spaces (bad practice in general) it needs to be enclosed in " marks. In this case it is probably easier to rename the .iso file to something without spaces.
    regards

  6. #6
    Join Date
    Sep 2007
    Beans
    3
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Iso Mounter!

    I tried Gmount-Iso...and didn't like the French. Now I use AcetoneISO and it works really well!

  7. #7
    Join Date
    Mar 2006
    Location
    Devon UK
    Beans
    419

    Re: Iso Mounter!

    Put these two files in your nautilus scripts folder ie:
    /home/YOURUSERNAME/.gnome2/nautilus-scripts
    change the password in them (or dont use sudo use gksudo)
    set the exec flag and then just right click on an iso to mount it and right click on the desktop icon to unmount it
    Attached Files Attached Files
    In /dev/null no one can hear the kernel panic!
    Don't EVER use sudo rm -rf / . if you don't understand a command check it out first!
    BACK UP YOUR DATA OR YOU WILL LOSE IT!!
    Supergrub - The best thing since sliced bread www.supergrubdisk.org

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Iso Mounter!

    Quote Originally Posted by shoaibi View Post
    I tried this for a ISO file that did have spaces in the file name, is that matters, and it gave me this on mount:

    ISO Mounter
    e /media/sda5/Academics/Co-Curricular/Video Lectures/Linux tutorial/Shell
    Fundamentals.iso
    <OK>


    and then


    ISO Mounter
    Cannot mount !
    <OK>


    can you tell me why?
    he he he ...

    that is why you should quote your variables in bash scripts.

    If the variable is embeded in text, use brackets.

    echo /media/"${i}"

    The "$" character introduces parameter expansion, command substitution, or arithmetic expansion. The parameter name or symbol to be expanded may be enclosed in braces, which are optional but serve to protect the variable to be expanded from characters immediately following it which could be interpreted as part of the name.
    so ...

    #!/bin/bash

    PASS="YOUR PASSWORD"
    echo "$PASS" | sudo -S mkdir /media/"${1}"
    echo "$PASS" | sudo -S mount -o loop "${1}" /media/"${1}"
    In addition , you need to quote or escape the spaces if you run that script from the command line :

    bodhi@host:~/test$ ls
    script

    bodhi@host:~/test$ sh script iso with spaces.iso
    bodhi@host:~/test$ ls
    iso script

    bodhi@host:~/test$ rm -rf iso/

    bodhi@host:~/test$ sh script "iso with spaces.iso"
    bodhi@host:~/test$ ls
    iso with spaces.iso script

    bodhi@host:~/test$
    Last edited by bodhi.zazen; November 21st, 2007 at 12:10 AM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Jun 2007
    Beans
    31
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Iso Mounter!

    Wow this works really well. Don't need a big interface like AcetoneISO when I can do it like this.

    Thanks!

  10. #10
    Join Date
    Mar 2006
    Location
    Devon UK
    Beans
    419

    Re: How to : Iso Mounter! (mount *.iso)

    brackets are only needed when there may be confusion about the variable name ie:

    avar="some data "

    echo $avarsomeotherdata

    would not work (theres no variable called avarsomeotherdata)
    so echo ${avar}someotherdata
    would produce "some data someotherdata"
    You also need bracets when string slicing
    so "${1}" /media/"${1}" as above does no harm but is redundant
    as "$1" /media/"$1" does not cause any variable name confusion
    In /dev/null no one can hear the kernel panic!
    Don't EVER use sudo rm -rf / . if you don't understand a command check it out first!
    BACK UP YOUR DATA OR YOU WILL LOSE IT!!
    Supergrub - The best thing since sliced bread www.supergrubdisk.org

Page 1 of 3 123 LastLast

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
  •