Results 1 to 2 of 2

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

Hybrid View

  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
  •  


Lenovo Yoga 7i Laptop, 15.6

Lenovo Yoga 7i Laptop, 15.6" FHD IPS LED , i7-1165G7, 12GB, 512GB, Win 11 Home

$589.99



Lenovo ThinkPad P50 Laptop 15.6

Lenovo ThinkPad P50 Laptop 15.6" Core i7 16GB Ram 512GB SSD Windows 10 NVIDIA

$369.47



Lenovo ThinkPad T470 14

Lenovo ThinkPad T470 14" FHD Core i7-7600U 2.80GHz Webcam Backlit HDMI USB-C

$195.00



Lenovo ThinkPad T460 14

Lenovo ThinkPad T460 14" Laptop Core i7-6600U 6th 2.60GHz WebCam Backlit HDMI

$295.00



Lenovo LOQ 15 15.6

Lenovo LOQ 15 15.6" Gaming Laptop FHD R7-7840HS 16GB RAM 512GB SSD RTX 4060 8GB

$869.99



Lenovo Ideapad Gaming 3 15.6

Lenovo Ideapad Gaming 3 15.6" FHD Laptop R5-7535HS 8GB RAM 512GB SSD RTX 2050

$549.99



Lenovo ThinkPad X1 Nano Gen 1 13

Lenovo ThinkPad X1 Nano Gen 1 13" Notebook 2K i5-1130G7 16GB RAM 512GB SSD

$599.99



Lenovo - Ideapad 3i 15.6

Lenovo - Ideapad 3i 15.6" FHD Touch Laptop - Core i5-1155G7 with 8GB Memory -...

$429.99



Lenovo Thinkpad X1 Carbon G7 8th Gen i5 16GB 512GB FHD Cam Windows 11 Pro picture

Lenovo Thinkpad X1 Carbon G7 8th Gen i5 16GB 512GB FHD Cam Windows 11 Pro

$379.00



Lenovo ThinkPad X1 Carbon Gen 11 Intel Laptop, 14

Lenovo ThinkPad X1 Carbon Gen 11 Intel Laptop, 14" IPS, vPro®, 16GB, 1TB

$1539.00