-
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 x3250 M4 1U Server With Four 2.5](/store/img/g/vZsAAOSwPOdmctvy/s-l225/IBM-x3250-M4-1U-Server-With-Four-2-5-Drive-Bays.jpg)
IBM x3250 M4 1U Server With Four 2.5" Drive Bays
$299.99
![IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture](/store/img/g/M~sAAOSwFVlkVr-r/s-l225/IBM-System-X3250-M3-Server-8GB-RAM-Intel-Xeon-x344.jpg)
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
![IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture](/store/img/g/YXgAAOSwzGNjh6tH/s-l225/IBM-x3650-M4-2x-Xeon-E5-2670-2-6ghz-16-Core-64GB-M.jpg)
IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU
$229.99
![IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE picture](/store/img/g/sNoAAOSw5Plkqcwy/s-l225/IBM-System-X-3250-M5-Single-Xeon-Quad-Core-E3-1220.jpg)
IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE
$159.00
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/g/oRsAAOSw~pRmQitC/s-l225/IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$74.50
![IBM System x3250 M1 1U Server Intel Pentium D @3.4 2GB RAM x2 250GB DRIVES NO OS picture](/store/img/g/rWYAAOSwgvdlRGsP/s-l225/IBM-System-x3250-M1-1U-Server-Intel-Pentium-D-3-4-.jpg)
IBM System x3250 M1 1U Server Intel Pentium D @3.4 2GB RAM x2 250GB DRIVES NO OS
$50.00
![IBM System x3650 M4 Dual Intel Xeon E5-2670 @2.60GHz 128GB RAM No HDD picture](/store/img/g/h7IAAOSwXXxmOOmR/s-l225/IBM-System-x3650-M4-Dual-Intel-Xeon-E5-2670-2-60GH.jpg)
IBM System x3650 M4 Dual Intel Xeon E5-2670 @2.60GHz 128GB RAM No HDD
$114.50
![1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture](/store/img/g/RRoAAOSwonVguq4o/s-l225/1U-IBM-x3550-M5-4-Bay-SFF-SAS3-Server-2x-E5-2683-V.jpg)
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
![IBM X3850 M2 4U Rack Server BOOTS 4x Xeon MP 2.93Ghz Hot Swap 32GB RAM NO HDDs picture](/store/img/g/pkYAAOSw5NplBH4i/s-l225/IBM-X3850-M2-4U-Rack-Server-BOOTS-4x-Xeon-MP-2-93G.jpg)
IBM X3850 M2 4U Rack Server BOOTS 4x Xeon MP 2.93Ghz Hot Swap 32GB RAM NO HDDs
$279.99
![IBM QRadar XX28-C 2U Server BOOTS 2x Xeon E5-2650 v3 2.3GHz 128GB RAM NO HDDs picture](/store/img/g/-sEAAOSwLcJkSQSy/s-l225/IBM-QRadar-XX28-C-2U-Server-BOOTS-2x-Xeon-E5-2650-.jpg)
IBM QRadar XX28-C 2U Server BOOTS 2x Xeon E5-2650 v3 2.3GHz 128GB RAM NO HDDs
$249.99