Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Can I modify whatever is executed by File Manager's "Safely Remove"?


    Hi,

    I have been experiencing problems while using "Safely remove drive" button in Gnome's file Manager. The problem was that the drive would never power-off so I made a script that actually works and maybe I can combine that with whatever is executed when I click on "Safely Remove Drive".

    Is that possible at all?

    I'm using Fedora 24 with GNOME.

    Thanks in advance!

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    i'm pretty sure that gnome's file manager (nautilus iirc) will not allow you to modify that.
    now, if you were using spacefm...

    anyhow, i'm curious what this custom script is.
    can you share it?

  3. #3
    -->
    Quote Originally Posted by nihili View Post
    i'm pretty sure that gnome's file manager (nautilus iirc) will not allow you to modify that.
    now, if you were using spacefm...

    anyhow, i'm curious what this custom script is.
    can you share it?
    Hi, sure, it's just this (I pass the device and it will umount it and power off):
    Code:
    #!/bin/bash
    
    udisksctl unmount -b $11
    sleep 1
    udisksctl power-off -b $1
    The problem is that using the GNOME's file manager will almost always leave the drive (external HDD) powered ON and spinning, with the led light on the drive blinking... :/

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •