Results 1 to 4 of 4

Thread: gui to mount iso over network?

  1. #1
    Join Date
    Jun 2008
    Beans
    30

    gui to mount iso over network?

    I have a NAS setup with several iso cd images on it. I would like to be able to mount those images in ubuntu using a gui, but have tried a few different methods and none of them work. They only work if I copy the image to the local computer first.

    The most promising method is to use a nautilus script to mount and unmount (so I can just browse to the iso, right click, and mount) but I am new to ubuntu and don't really know how or if the script can be edited so that I can mount an iso on a windows share. I was reading something that said I had to mount the file system first???

    Anyways, can someone help? Here are the scripts:

    mount.sh
    Code:
    #!/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
    unmount.sh
    Code:
    #!/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

  2. #2
    Join Date
    Jun 2008
    Beans
    30

    Re: gui to mount iso over network?

    bump

  3. #3
    Join Date
    Jun 2010
    Beans
    4

    Re: gui to mount iso over network?

    I am trying to do the same thing, were you ever able to get something to work?

  4. #4
    Join Date
    Aug 2009
    Location
    Lake Tahoe Area
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: gui to mount iso over network?

    Quote Originally Posted by Mike The KID View Post
    I am trying to do the same thing, were you ever able to get something to work?
    check this thread http://ubuntuforums.org/showthread.p...1#post10572251

Tags for this Thread

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
  •