Comment 31 for bug 37768

Revision history for this message
Akshay Srinivasan (akshay.srinivasan) wrote :

The bug still persists in the official Feisty.I just wrote a shell script to kill gnome-volume-manager and then start gparted.

$sudo mv /usr/bin/gparted /usr/bin/gpart
$sudo gedit /usr/bin/gparted
Add the following lines:-

#!/bin/sh
killall gnome-volume-manager
gksu /usr/bin/gpart
/usr/bin/gnome-volume-manager
exit

Save the file.
$sudo chmod a+x /usr/bin/gparted

Now open /usr/share/applications/gparted.desktop with gedit or nano (as root)
find the line which says
exec=gksu gparted
   and change this to
exec=gparted
save the file.

This script kills gnome-volume-manager and then starts gparted.On closing gparted , it runs gnome-volume-manager , so that the CDs and USB drives will be automounted.