top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do I run a script automatically when a specific drive mounts when using Fedora?

+2 votes
231 views

I want to execute a script every time a specific drive is mounted on the system. I have a thumb drive that has a name I've given it. When it's mounted, I want to copy the contents of my .gnupg directory to it so I can always have a current backup of my keyring.

From the research I've done, it looks like UDEV rules are the way to go but, IIRC, Fedora doesn't use UDEV anymore. How can I accomplish this now?

posted Jul 14, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I have a running Fedora 21 system. I would like to make a backup of it to a USB drive, a clone that can be booted. I know how to do all the "normal" stuff (partition, LVM, mkfs, rsync, and GRUB), but I'd like the USB drive to be encrypted, and I don't know how to set that up manually (I haven't messed with encrypted filesystems under Linux before).

The system I'm backing is also headless, so no GUI tools. Any Pointers, tips, suggestions?

0 votes

When I try to benchmark a hard drive (from the Disk application on my fedora machine), I get:

Error opening /dev/sdc: Device or resource busy (udisks-error-quark, 0)

This disk work fine (from GsmartControl). What do I miss?

+1 vote
0 votes

Just for kicks, I decided to play a bit with Fedora 23 beta. Yes, I know it's not supposed to work like a production distro, but I thought it would be fun to poke around on it a little. I sorta need to install a couple of packages from rpmfusion, though. Unfortunately, they don't have a Fedora 23 setup out yet.

I tried to install the Fedora 22 repositories, but it didn't work.

I get the error:
Failed to synchronize cache for repo 'rpmfusion-free' from 'http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-23&arch=x86_64':
Cannot prepare internal mirrorlist: No URLs in mirrorlist, disabling.

So, how would I go about, say, installing mplayer in Fedora 23 beta?

...