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
    271

    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
  •  


Supermicro 1U Server 10 BAY SFF 2x Xeon E5-2667 v2 3.30Ghz 128GB 2x 10GBase-T picture

Supermicro 1U Server 10 BAY SFF 2x Xeon E5-2667 v2 3.30Ghz 128GB 2x 10GBase-T

$384.00



Dell PowerEdge R720 Server / 2x E5-2670 V2 =20 Cores / 128GB RAM / 4x Trays picture

Dell PowerEdge R720 Server / 2x E5-2670 V2 =20 Cores / 128GB RAM / 4x Trays

$558.40



Dell PowerEdge T320 Tower Server 8-Bay LFF Six-Core E5-2430 2.2GHz 8GB PERC H310 picture

Dell PowerEdge T320 Tower Server 8-Bay LFF Six-Core E5-2430 2.2GHz 8GB PERC H310

$269.99



Dell PowerEdge T610 Tower Server - CTO Wholesale Custom to Order picture

Dell PowerEdge T610 Tower Server - CTO Wholesale Custom to Order

$180.19



Dell Poweredge R410 2 X SIX CORE 2.40GHZ E5645 32GB RAM 500GB HHD SERVER QTY picture

Dell Poweredge R410 2 X SIX CORE 2.40GHZ E5645 32GB RAM 500GB HHD SERVER QTY

$159.99



HPE ProLiant EC200a Mini Server, Xeon D1518 2.2GHz CPU picture

HPE ProLiant EC200a Mini Server, Xeon D1518 2.2GHz CPU

$199.00



Dell PowerEdge R720xd Server 2x E5-2680 2.7Ghz 16-Cores  64gb  H710  12x Trays picture

Dell PowerEdge R720xd Server 2x E5-2680 2.7Ghz 16-Cores 64gb H710 12x Trays

$329.99



Dell PowerEdge R620 1U Server - 2X E5-2630 Hex Core/64GB/H310 RAID/2X 300GB SAS picture

Dell PowerEdge R620 1U Server - 2X E5-2630 Hex Core/64GB/H310 RAID/2X 300GB SAS

$174.99



Supermicro 2U Server 8 HD Bay 3.5 LFF E ATX Storage Chassis TQ Direct Connect picture

Supermicro 2U Server 8 HD Bay 3.5 LFF E ATX Storage Chassis TQ Direct Connect

$199.00



Server 2022 2019 2016 2012 Standard/Datacenter/ essential License Key Activation picture

Server 2022 2019 2016 2012 Standard/Datacenter/ essential License Key Activation

$15.00