Results 1 to 2 of 2

Thread: Replacing `pcmanfm→side pane→Right Clk→Eject Removable Media` with script

  1. #1
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    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.

  2. #2
    Junior Member registered user
    Join Date
    Aug 2004
    Posts
    13
    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
  •  


Dell R630 8 Port SFF Server 2x E5-2690v4 28-Cores H730P 64GB RJ-45 iDRAC ENT picture

Dell R630 8 Port SFF Server 2x E5-2690v4 28-Cores H730P 64GB RJ-45 iDRAC ENT

$305.00



Dell R630 8 Port SFF 2x E5-2690v4 28-Cores H730P 128GB Server RJ-45 iDRAC ENT picture

Dell R630 8 Port SFF 2x E5-2690v4 28-Cores H730P 128GB Server RJ-45 iDRAC ENT

$370.00



DELL R630 Server 24 Cores 128GB RAM picture

DELL R630 Server 24 Cores 128GB RAM

$260.00



Dell PowerEdge R720 Server 2x E5-2690 2.90Ghz 16-Core 192GB H710 picture

Dell PowerEdge R720 Server 2x E5-2690 2.90Ghz 16-Core 192GB H710

$233.45



Dell PowerEdge R620 Server - 128GB RAM, 2x8Core CPU, 3x450Gb, H710, VMware ESXi8 picture

Dell PowerEdge R620 Server - 128GB RAM, 2x8Core CPU, 3x450Gb, H710, VMware ESXi8

$260.00



Dell PowerEdge R730 2xE5-2660V3 2.6Ghz 20Core 128GB RAM H730 2xSFP+2xRJ45 2x750W picture

Dell PowerEdge R730 2xE5-2660V3 2.6Ghz 20Core 128GB RAM H730 2xSFP+2xRJ45 2x750W

$349.99



Dell PowerEdge R630 Server | 2x E5-2695 V4 =36 Cores | H730 | Choose RAM/Drives picture

Dell PowerEdge R630 Server | 2x E5-2695 V4 =36 Cores | H730 | Choose RAM/Drives

$516.99



DELL POWEREDGE C6100 8x Xeon X5660 2.80Ghz 48 Cored 96GB RAM 4x Nodes no HD QTY picture

DELL POWEREDGE C6100 8x Xeon X5660 2.80Ghz 48 Cored 96GB RAM 4x Nodes no HD QTY

$164.99



Dell PowerEdge R710 Virtualization Server 3.06GHZ 12-CORES 128GB 24TB H700 RAID picture

Dell PowerEdge R710 Virtualization Server 3.06GHZ 12-CORES 128GB 24TB H700 RAID

$259.99



Dell PowerEdge R710 2U Server 2x X5660 2.80GHZ 12-Core / 64gb / 2xTrays / Perc6i picture

Dell PowerEdge R710 2U Server 2x X5660 2.80GHZ 12-Core / 64gb / 2xTrays / Perc6i

$84.99