Skip navigation.
Home
A Lump in the World Wide Soup

Umount ISO

Description:

Let you umount ISO mounted on your Desktop with the 'Mount ISO' schema.

Configuration file:
downloadconfig_umount_iso.schemas

Additional files:
downloadumiso

Dependencies:

- gksudo
- zenity

Installation notes:

- Copy the umiso script into a "bin" folder in your home dir (~/bin)
- Check that it is executable
- Import the configuration file into Nautilus-actions


spaces in filename.zenity message If your filename have

Hi.
If your filename have spaces, then on umount zenity will just show the message "/media/dev". To resolve this use:

sudo umount "$1" && zenity --info --text "Successfully unmounted /media/$(echo "$filename")/" && sudo rmdir "/media/"$filename"/"

instead of:

sudo umount "$1" && zenity --info --text "Successfully unmounted /media/"$filename"/" && sudo rmdir "/media/"$filename"/"

Hi! If your filename have

Hi!
If your filename have spaces, then the folder will not be deleted under /media. It stops at first blank.

Regards.

Re: umount removes iso files when they are on the desktop

Should be fixed now :)

I reupload the script after replacing the line :

rm /home/$USER/Desktop/"$filename"

by this one :

find /home/$USER/Desktop/ -type l -name "$filename" -exec rm {} \;

which only remove a symbolic link.

If you can test it again and tell us if it is ok for you, we would be glad :)

Anyway thanks for the feedback !

thx! It works very well! I

thx!

It works very well!

I might be wrong but I think that it is gksu instead of gksudo when using dapper drake...

umount removes iso files when they are on the desktop

Hi!
Thanks for this tool.
However, I had a .iso on my desktop and decided to try the mount and umount tools with it.
I click on the file, mount and saw how the tool was perfect so I decided to umount.
It umount the iso but remove my .iso!!!

Here is the explanation:
rm /home/$USER/Desktop/"$filename"

I think you want to remove the link to /media/"$filename" but it my case, it sent to trash both the link and file!