-
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
![Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram picture](/store/img/g/JKYAAOSwpONmaNJP/s-l225/Dell-SNPTP9W1C-16G-16-GB-2666MHz-PC4-2666-Memory-R.jpg)
Dell SNPTP9W1C/16G 16 GB 2666MHz (PC4-2666) Memory Ram
$34.95
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/g/~u4AAOSwK-liKn7t/s-l225/Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
![Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture](/store/img/g/mecAAOSw2Vlkv6Ot/s-l225/Crucial-DDR3L-16GB-1600-2x-8GB-PC3-12800-Laptop-SO.jpg)
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
![8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A picture](/store/img/g/tmAAAOSwxu1mDNSQ/s-l225/8GB-PC3L-12800S-1600MHz-SODIMM-DDR3-RAM-Grade-A.jpg)
8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A
$12.00
![HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture](/store/img/g/XNYAAOSwg81kv6CG/s-l225/HyperX-FURY-DDR3-8GB-16GB-32GB-1600-MHz-PC3-12800-.jpg)
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$15.90
![16MB 4x4MB 30pin SIMM RAM MEMORY non parity 4x8 30-pin Apple Mac PC SE/30 USED picture](/store/img/g/GjIAAOSw0rhlFwsS/s-l225/16MB-4x4MB-30pin-SIMM-RAM-MEMORY-non-parity-4x8-30.jpg)
16MB 4x4MB 30pin SIMM RAM MEMORY non parity 4x8 30-pin Apple Mac PC SE/30 USED
$19.98
![HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin picture](/store/img/g/8XUAAOSwupJkv6B5/s-l225/HyperX-FURY-DDR4-4GB-8GB-16GB-32GB-3200-2400-2666-.jpg)
HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin
$8.99
![SK Hynix 64GB (4x16GB) DDR4 2666 MHz PC4-21300 DIMM RAM Kit - HMA82GU6JJR8N-VK picture](/store/img/g/rOsAAOSwNL1mesZt/s-l225/SK-Hynix-64GB-4x16GB-DDR4-2666-MHz-PC4-21300-DIMM-.jpg)
SK Hynix 64GB (4x16GB) DDR4 2666 MHz PC4-21300 DIMM RAM Kit - HMA82GU6JJR8N-VK
$89.99
![Dell Memory SNPK7G24C/16G AB883074 16GB 1Rx8 DDR5 UDIMM 4800MHz RAM picture](/store/img/g/-owAAOSwv5NkYdzf/s-l225/Dell-Memory-SNPK7G24C-16G-AB883074-16GB-1Rx8-DDR5-.jpg)
Dell Memory SNPK7G24C/16G AB883074 16GB 1Rx8 DDR5 UDIMM 4800MHz RAM
$98.95