I used these scripts, posted by animacide, with no problems at all in dapper.
Mount:
Code:#!/bin/bash## nautilus-mount-isogksudo -u root -k /bin/echo "got r00t?"sudo mkdir /media/"$*"if sudo mount -o loop -t iso9660 "$*" /media/"$*" then if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.Open Volume?" then nautilus /media/"$*" --no-desktop fi exit 0 else sudo rmdir /media/"$*" zenity --error --title "ISO Mounter" --text "Cannot mount $*!" exit 1 fiUnmount:
Code:#!/bin/bash#for I in "$*"do foo=`gksudo -u root -k -m "enter your password for root terminalaccess" /bin/echo "got r00t?"`sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/" done done exit0
Here is a step by step.
First open a terminal and do a:
I used root to create the files so there was no conflicts later. Then in the empty file I cut and pasted the mount script and saved with crtl-s and exit.Code:sudo gedit ~/mount-iso
Then the same for Unmount script:
Then in this empty file cut and paste the unmount script. Save withCode:sudo gedit ~/unmount-iso
crtl-s and exit.
Ok next to make them executable do a:
and then:Code:sudo chmod +x ~/mount-iso
Ok now to put them in the right spot:Code:sudo chmod +x ~/unmount-iso
next:Code:sudo mv ~/mount-iso ~/.gnome2/nautilus-scripts/
And thats it.Code:sudo mv ~/unmount-iso ~/.gnome2/nautilus-scripts/
Now to use the new scripts find and .Iso or .Nrg anywhere you have it. I've mounted both types from my ntfs storage partition with no problems. Just right click the image file go to scripts and then choose mount or unmount. Could'nt get any better than that. Goodluck and if you need more fuctions or just want to try some other scripts check the UDSF Here.
Edit: It doesn't work with img's on the desktop.





Adv Reply
Hey wait, just thought of something else, I could change the mount directory itself from /media/ to /mnt/ that would probably solve it. O well it works for what I need it for.




Bookmarks