Hi,
this "script" doesn't mount the flashdisk, it does the oposite, eject it using the kio_media_mounthelper command. You just need to copy one file to the KDE service menus dir.
Like guerrier said, some types of usb sticks doesn't work with the eject command , others need to be umounted and ejected, to change it just edit the flashdisk_eject.desktop script file, look to the last line and change the -e option to -u for unmount or -s to unmount and eject.
Yup, it's alreay done. Just have it in my last KDE update (3.4.2-2) in FC 4. sticking the usb flashdisk will make a helper app show up in tray. There goes the option :)
hi, i really like your work, especially when i install my friends pc's who don't know really good linux. This was the feature i missed. Altough it seems that it doesn't work for me.
If i launch the command kio_media_mounthelper -e /dev/sda it in a shell i get following error message: Eject /dev/sda failed!, ok i try with sudo and use -u instead of -e it works fine, so i changed the command in the file flashdisk_eject.desktop and now it's working for me.
Ratings & Comments
6 Comments
How does it work? There are several different ways to mount an usb stick: * fstab * subfs ...
Hi, this "script" doesn't mount the flashdisk, it does the oposite, eject it using the kio_media_mounthelper command. You just need to copy one file to the KDE service menus dir. Like guerrier said, some types of usb sticks doesn't work with the eject command , others need to be umounted and ejected, to change it just edit the flashdisk_eject.desktop script file, look to the last line and change the -e option to -u for unmount or -s to unmount and eject.
This is already implemented in KDE 3.4.x Option is called "Safely Remove" What version are you running?
I'm running KDE 3.4.2 "Level a" in SuSE 9.3 64-bit and it doesn't have it and I saw a lot of people that doesn't have that option too.
Yup, it's alreay done. Just have it in my last KDE update (3.4.2-2) in FC 4. sticking the usb flashdisk will make a helper app show up in tray. There goes the option :)
hi, i really like your work, especially when i install my friends pc's who don't know really good linux. This was the feature i missed. Altough it seems that it doesn't work for me. If i launch the command kio_media_mounthelper -e /dev/sda it in a shell i get following error message: Eject /dev/sda failed!, ok i try with sudo and use -u instead of -e it works fine, so i changed the command in the file flashdisk_eject.desktop and now it's working for me.