-
Senior Member
registered user
Replacing `pcmanfm→side pane→Right Clk→Eject Removable Media` with script
Sorry for being absent from the forum for so long.
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
and here: Karl's Code
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`?
I will also write to pcmanfm user-group for a solution and will post the responses, if any, here too. I still use Knoppix 7.2.0
Last edited by rajibando; 08-11-2017 at 08:27 AM.
-
Junior Member
registered user
i recently learned eject is a binary which is called by the filemanagers
you can even remove it
sudo apt-get -y --purge remove eject
maybe thereafter a script with the same name stored at the same place would work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

DEFECTIVE IBM SYSTEM X3530 M4 7160AC1 Server 2INTEL XEON E52430L 0 80GB G3D
$142.50

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30

IBM 02YC027 Seagate ST2400MM0129 2.4TB 10K SAS 12Gb/s 2.5" Server Hard Drive
$200.00

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

IBM Power S824 12Bay 4U Server - 2x Power8 CPU, 512GB DDR4, MT: 8286-42A
$1731.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

Rare Vintage IBM 93ZZ PowerPC Server Board - MCM Ceramic CPU - 40N1844 - 1.1 lbs
$49.99