-
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.
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 PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45
$277.00
Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W
$329.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$159.99
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$197.99
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$174.95
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 
$180.00
DELL PowerEdge R730XD Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45
$271.00
Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config
$477.99