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
  •  


 Vintage 4

Vintage 4" silicon wafer with Microprocessors - From 1980s and Case is Included

$28.50



2x Byte Magazines Vintage featuring Apple Macintosh, Lisa, IIe  picture

2x Byte Magazines Vintage featuring Apple Macintosh, Lisa, IIe

$19.95



Vintage DELL M782P CRT MONITOR for  RETRO GAMING 17” CLASS Flat Panel Display picture

Vintage DELL M782P CRT MONITOR for RETRO GAMING 17” CLASS Flat Panel Display

$165.70



Vintage Mac DB15 male x PC HD15 Female Monitor Adaptor- Apple Mac picture

Vintage Mac DB15 male x PC HD15 Female Monitor Adaptor- Apple Mac

$12.00



Vintage Classic Apple Macintosh System Boot Install Disk Floppy/CD *Pick Version picture

Vintage Classic Apple Macintosh System Boot Install Disk Floppy/CD *Pick Version

$12.75



Vintage 1991 six inch Silicon Wafer, Hewlett Packard memory       picture

Vintage 1991 six inch Silicon Wafer, Hewlett Packard memory

$27.50



Vintage WORKING Dell Optiplex GS+ 5133L Pentium 133 MHz Desktop PC picture

Vintage WORKING Dell Optiplex GS+ 5133L Pentium 133 MHz Desktop PC

$59.99



Vintage Apple AppleDesign Keyboard Model M2980 BRAND NEW picture

Vintage Apple AppleDesign Keyboard Model M2980 BRAND NEW

$19.99



VINTAGE DELL AT101R MECHANICAL KEYBOARD GYURO5SK - Great Condition picture

VINTAGE DELL AT101R MECHANICAL KEYBOARD GYURO5SK - Great Condition

$34.99



Lot of 20x Random Vintage Unpunched Filmsort Duplicard Aperture Punch Cards picture

Lot of 20x Random Vintage Unpunched Filmsort Duplicard Aperture Punch Cards

$6.49