[Pkg-lxde-maintainers] Replacing `pcmanfm→side pane→Right Clk→Eject Removable Media` with script?

Susmita/Rajib bkpsusmitaa at gmail.com
Mon Aug 21 02:46:31 UTC 2017


The detailed email:
I have an ancient pendrive that still works well, but is irresponsive
to `pcmanfm→side pane→Right Clk→Eject Removable Media` . It has an LED
lamp that keeps glowing even when "Eject..." is clicked.
I have had the solution for a long time. I had found it from elsewhere
then also from here: Ask Ubuntu 447471:
https://askubuntu.com/questions/447471/need-to-disable-usb-device/945232#945232
and here: Karl's Code at
http://karlcode.owtelse.com/blog/2017/01/09/disabling-usb-ports-on-linux/

I first run :

Code:
for device in $(ls /sys/bus/usb/devices/*/product); do echo
$device;cat $device;done

I identify the Mass Storage Device, then use the command:
Code:
echo 'x-y' | sudo tee /sys/bus/usb/drivers/usb/unbind

and the LED switches off, which is an evidence that the drive is powered off.
One could also have used:
Code:
dmesg | grep -e "Mass Storage"

then use the `unbind` code.
Is there a possibility of adding these two lines of codes as script in
`pcmanfm→side pane→Right Clk→Eject Removable Media`?



More information about the Pkg-lxde-maintainers mailing list