Page 8 of 10 FirstFirst ... 678910 LastLast
Results 71 to 80 of 94

Thread: HOWTO: Nautilus Script to mount .iso files

  1. #71
    Join Date
    Feb 2007
    Location
    New York
    Beans
    894
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Nautilus Script to mount .iso files

    Quote Originally Posted by blueyez View Post
    why install gisomount and / or other similar applications ?
    just because are ready for you desktop ?

    command line is better owns !
    Because it's simpler and easier to remember than the cryptic command line, of course.
    "Please remember to do things the Ubuntu way. There is always more than one solution to a problem, choose the one you think will be the easiest for the user. ... Try to think as a green user and choose the simplest solution." — Code of Conduct

  2. #72
    Join Date
    Jul 2008
    Location
    Delhi, India
    Beans
    10
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Nautilus Script to mount .iso files

    I mounted an iso file using the following command:
    Code:
     sudo mount -o loop -t iso9660 /home/mukul/Desktop/CBTNuggets/CBT1.ISO /mnt/iso/
    Now how to unmount it??

  3. #73
    Join Date
    Dec 2006
    Location
    Richmond, VA
    Beans
    83
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Nautilus Script to mount .iso files

    Code:
    sudo umount /mnt/iso
    I believe.

  4. #74
    Join Date
    Jul 2008
    Location
    Delhi, India
    Beans
    10
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Nautilus Script to mount .iso files

    Quote Originally Posted by rickatnight11 View Post
    Code:
    sudo umount /mnt/iso
    I believe.
    This didn't work.

  5. #75
    Join Date
    Dec 2006
    Location
    Richmond, VA
    Beans
    83
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Nautilus Script to mount .iso files

    Hm, what output did you get?

  6. #76
    Join Date
    Jul 2008
    Location
    /home/nicholas
    Beans
    207
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Nautilus Script to mount .iso files

    Thank you for this awesome Script!I can finally Mount without having to extract a ISO! Thanks a LOT.
    Never mind.Kept screwing up XFCE.XD
    http://www.crashie.com will crash an IE install.

  7. #77
    Join Date
    Aug 2008
    Beans
    1

    Re: HOWTO: Nautilus Script to mount .iso files

    Quote Originally Posted by Aragorn View Post
    Hi at all!

    I've patched the iso mounter...now it can mount a file from every position in the home directory and it creates a mount point without the .iso extension.

    #!/bin/bash
    # mount

    gksudo -k /bin/echo "got r00t?"

    BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`

    sudo mkdir "/media/$BASENAME"

    zenity --info --title "ISO Mounter" --text "$BASENAME e $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"


    if sudo mount -o loop -t iso9660 $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS "/media/$BASENAME"
    then
    if zenity --question --title "ISO Mounter" --text "$BASENAME Successfully Mounted. Open Volume?"

    then
    nautilus /media/"$BASENAME" --no-desktop
    fi

    exit 0
    else
    sudo rmdir "/media/$BASENAME"

    zenity --error --title "ISO Mounter" --text "Cannot mount $BASENAME!"

    exit 1
    fi



    #!/bin/bash
    # unmount

    gksudo -k /bin/echo "got r00t?"

    BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`

    sudo umount "/media/$BASENAME"

    sudo rmdir "/media/$BASENAME"

    zenity --info --text "Successfully unmounted /media/$BASENAME"

    exit 0
    Did some simple deduction of your unmount script and came up with this. It works fine for me, it may help others.
    CODE:
    Unmount

    #!/bin/bash
    # unmount

    sudo umount /media/*.iso
    sudo rmdir /media/*.iso

    zenity --info --text "Successfully unmounted media"

    exit 0

  8. #78
    Join Date
    Nov 2007
    Beans
    75

    Re: HOWTO: Nautilus Script to mount .iso files

    Great script.

    The only thing I didn't see was how to add the scripts to nautilus location and make them executable. Noobs such as my self really needs this info.
    This is how I did it, I'm not sure if this is the norm but it worked for me.

    This created the file:
    Code:
    sudo gedit ~/.gnome2/nautilus-scripts/Mount.pl
    This made it executable:
    Code:
    sudo chmod +x ~/.gnome2/nautilus-scripts/Mount.pl

    This created the file:
    Code:
    sudo gedit ~/.gnome2/nautilus-scripts/Unmount.pl
    This made it executable:
    Code:
    sudo chmod +x ~/.gnome2/nautilus-scripts/Unmount.pl
    After doing this I was able to use these AWESOME scripts!

  9. #79
    Join Date
    Jul 2007
    Beans
    31

    Re: HOWTO: Nautilus Script to mount .iso files

    I've made one along the same lines, it's a single file solution (no separate mount and unmount, just unmounts anything at the mount point before loading) and it will let you write to the image as well. Also notifies you whether it mounted or not.

    http://ubuntuforums.org/showthread.php?t=52255

  10. #80
    Join Date
    May 2006
    Location
    United Kingdom
    Beans
    469
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Nautilus Script to mount .iso files

    I have tried some mount/unmount scripts but get error "Cannot Mount".

Page 8 of 10 FirstFirst ... 678910 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
  •