Re: dracut not including udev rules in initramfs

2022-08-06 Thread stan via users
On Sat, 6 Aug 2022 10:59:06 -0500 Ian Pilcher wrote: > Anyone know the trick to getting dracut to include the udev rules in > /etc/udev/rules.d in the initramfs that it builds? > > I'm sure that there's a way to include a specific file, but it really > seems like t

dracut not including udev rules in initramfs

2022-08-06 Thread Ian Pilcher
Anyone know the trick to getting dracut to include the udev rules in /etc/udev/rules.d in the initramfs that it builds? I'm sure that there's a way to include a specific file, but it really seems like there ought to be a way to include all of the udev rules. (Frankly, it seems like tha

Re: UDEV RULES

2019-07-05 Thread Richard England
Angelo, You might look at "Back in time" https://backintime.readthedocs.io/en/latest/mainwindow.html   This is a Python script that uses rsync as the backup mechanism but has  GUI front end to allow configuration. The only caveat is that it does not seem to work with NTFS file systems.  I form

Re: UDEV RULES

2019-07-05 Thread Seth Kenlon
Your experience with udev matches mine. I'm not sure if it's just a really complex process, or if it doesn't actually work the way it says it works, but it seems that using it successfully rarely takes fewer than 19 attempts. And I don't believe that ``--reload`` works at all; I always reboot to tr

Re: UDEV RULES

2019-07-05 Thread Angelo Moreschini
Hi, although I did a lot of tests with many engagement I was not able to catch the UDEV event Having exhausted my trust ... I give up. I will not try bacula which (perhaps) is excessive for my purposes, and so I'll try with a simple script that uses the rsynk utility to copy the only file

Re: UDEV RULES

2019-07-04 Thread Seth Kenlon
You should be using the UUID of the partition to detect and mount your target. Detecting the "whole" drive is immaterial, since you want udev to mount a partition, not a drive. I would try to get one partition working first, then proceed to the others. With udev testing, I've always had far more l

Re: UDEV RULES

2019-07-03 Thread Angelo Moreschini
HI Seth, I'm sorry to still bother you ..., but your help could save me a lot of useless tests (since there are many parameters to manage and knowing what I really have to do could, this trigger me the use of useless ones). I think that I understood the crux of the problem ... (the UDEV theory …

Re: UDEV RULES

2019-07-02 Thread Fred Smith
On Wed, Jul 03, 2019 at 07:16:17AM +1200, Seth Kenlon wrote: > Using the UUID is correct. > > If the script isn't being executed by udev but you can confirm that > udev is correctl mounting your target partition, and the shell script > functions as expected when you run it manually, then I would c

Re: UDEV RULES

2019-07-02 Thread Seth Kenlon
Using the UUID is correct. If the script isn't being executed by udev but you can confirm that udev is correctl mounting your target partition, and the shell script functions as expected when you run it manually, then I would create a simple timestamp shell script just to confirm that you can get

Re: UDEV RULES

2019-07-01 Thread Angelo Moreschini
thank you Seth, I have no problems with the script executed at the UDEV event (if this is the meaning you attribute to the term ). I've already done this script that works, if run from a terminal. If by the term you mean something different, please tell me. The problem is that this script is no

Re: UDEV RULES

2019-07-01 Thread Seth Kenlon
Angelo, I agree with Tom's analysis, but my udev script accounts for it by mounting your drive with a very specific designator. Here is how I have tested this sort of thing before: 0. Get the UUID of your drive with blkid 1. Write a udev script to detect your drive by UUID when attached, and to e

Re: UDEV RULES

2019-07-01 Thread Angelo Moreschini
part of the computer causing problems .. one of which (the most annoying) was the request to access the USB HD. I remember that this always happened when I used the command and at the end I also had a data leak (a back-up HD partition got corrupted and became inaccessible). I tried to use the

Re: UDEV RULES

2019-06-30 Thread Angelo Moreschini
Thank you Tom, OK,I hadn't consider, at the moment, the threat duration aspect,. The script (to execute for the UDEV 'event) cannot be affected by this kind on problem because it have only to write a small file, his content is : This script carries out its task when performed from the command l

Re: UDEV RULES

2019-06-30 Thread Seth Kenlon
That tecmint article has several serious issues with it (this is reflected in the comments, too). You need a slightly more complex script for what you are attempting. This is based on Attachup, a pyudev srcipt that backs-up a thumbdrive to a computer upon attaching it - but you can make your shell

Re: UDEV RULES

2019-06-30 Thread Tom Horsley
In general I have no ideas, but I do know that scripts executed in udev rules have to run "fast", or they are automatically killed off. You might want to consider having the script do something like: /usr/bin/at -M now <<'HERE' > /dev/null 2>&1 /full/path/to/

Re: UDEV RULES

2019-06-30 Thread Robert Moskowitz
I use crontab to run an rsync command... On 6/30/19 8:38 AM, Angelo Moreschini wrote: Hi, in order to backing up data when I connect to computer an USB HD, I wrote the follow UDEV rule : -- SUBSYSTEM=="block", ACTION=="add", ATTRS

UDEV RULES

2019-06-30 Thread Angelo Moreschini
Hi, in order to backing up data when I connect to computer an USB HD, I wrote the follow UDEV rule : -- SUBSYSTEM=="block", ACTION=="add", ATTRS{vendor}=="152d", ATTRS{model}=="0578", SYMLINK+="external%n", RUN+="/usr/bin/mrs-auto_bac

Re: auto mount and unmount using udev rules

2019-05-17 Thread Danishka Navin
Hi Seth, On Thu, May 16, 2019 at 3:23 AM Seth Kenlon wrote: > Here's what I use for my automated backup script (see > https://gitlab.com/slackermedia/attachup for context): > > If you adapt this, you'll need to update the path (I use /media), > you'll need to update the UUID, and you'll probabl

Re: auto mount and unmount using udev rules

2019-05-15 Thread Seth Kenlon
Here's what I use for my automated backup script (see https://gitlab.com/slackermedia/attachup for context): If you adapt this, you'll need to update the path (I use /media), you'll need to update the UUID, and you'll probably need to verify that your drive has a label, because this rule uses the

auto mount and unmount using udev rules

2019-05-15 Thread Danishka Navin
Hi, I am trying to mount a USB drive to given symlink and mount it to a given mount point. Mount is working but when the device removed, I can still see the mount cat /etc/udev/rules.d/81-hnt-usb-rule.rules ACTION=="add", KERNEL=="sd?1", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", \ SYMLINK+="hant

Re: udev rules for webcam

2014-11-07 Thread Fred Smith
On Fri, Nov 07, 2014 at 03:20:20PM -0500, Kevin Cummings wrote: > On 11/06/2014 06:53 PM, Tom Horsley wrote: > > On Thu, 6 Nov 2014 18:47:23 -0500 > > Fred Smith wrote: > > > >> not finding anything on that, I hit on writing a udev rule for the > >> USB device to make sure it appeared as a predict

Re: udev rules for webcam

2014-11-07 Thread Kevin Cummings
On 11/06/2014 06:53 PM, Tom Horsley wrote: > On Thu, 6 Nov 2014 18:47:23 -0500 > Fred Smith wrote: > >> not finding anything on that, I hit on writing a udev rule for the >> USB device to make sure it appeared as a predictable /dev/video. Did you try looking in /dev/v4l? My laptop builtin webcam

Re: udev rules for webcam

2014-11-06 Thread Tom Horsley
On Thu, 6 Nov 2014 18:47:23 -0500 Fred Smith wrote: > not finding anything on that, I hit on writing a udev rule for the > USB device to make sure it appeared as a predictable /dev/video. I did something similar to recognize my 3D printer when I plug it in, and it was quite challenging to make al

udev rules for webcam

2014-11-06 Thread Fred Smith
uld adapt. not finding anything on that, I hit on writing a udev rule for the USB device to make sure it appeared as a predictable /dev/video. So, I found a bunch of advice on the web, and tried two rather different udev rules, neither of which works in any way I can confirm. Here's one of 'e

udev rules fails with last fedora update

2014-04-10 Thread Ambrogio De Lorenzo
Hi all, I'm running Fedora 20 and I have a rules in 70-persistent-net.rules to have eth0 to my ethernet card. Today I updated and so I installed the new kernel-3.13.9-200.fc20.x86_64. With this kernel the udev do a rename from eth0 to p3p1. In the messages I see Apr 10 09:28:07 pc-delo systemd-ud

Excluding devices from udev rules?

2013-10-16 Thread Konstantin Svist
I've been trying to set up rules suggested by powertop to be applied by default. Unfortunately, the wireless mouse receiver gets shut down randomly when the usb powerdown rules are applied to it -- so I tried excluding it from the udev rule: ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}!="046d

Re: how to change udev rules in Fedora

2013-07-18 Thread lee
lee writes: > What I'm trying to do is three things: > > > + make it so that smart information is not being polled from /dev/sda > > + make it so that DVD drives are not being polled for media changes > > + make sure that /dev/sda can go into sleep mode without being woken up > unless I mount t

Re: how to change udev rules in Fedora

2013-07-16 Thread lee
Ed Greshko writes: > On 07/17/13 12:32, lee wrote: >> Joe Zeff writes: >> >>> On 07/16/2013 08:39 PM, lee wrote: Thank you! So I'll just copy the file I want to modify into /etc/udev/rules.d/ and delete everything I don't want to modify, that should work ... >>> Please let us kn

Re: how to change udev rules in Fedora

2013-07-16 Thread Ed Greshko
On 07/17/13 12:32, lee wrote: > Joe Zeff writes: > >> On 07/16/2013 08:39 PM, lee wrote: >>> Thank you! So I'll just copy the file I want to modify into >>> /etc/udev/rules.d/ and delete everything I don't want to modify, that >>> should work ... >> Please let us know how this works. I'm sure t

Re: how to change udev rules in Fedora

2013-07-16 Thread Joe Zeff
On 07/16/2013 09:32 PM, lee wrote: Joe Zeff writes: >On 07/16/2013 08:39 PM, lee wrote: >>Thank you! So I'll just copy the file I want to modify into >>/etc/udev/rules.d/ and delete everything I don't want to modify, that >>should work ... > >Please let us know how this works. I'm sure t

Re: how to change udev rules in Fedora

2013-07-16 Thread lee
Joe Zeff writes: > On 07/16/2013 08:39 PM, lee wrote: >> Thank you! So I'll just copy the file I want to modify into >> /etc/udev/rules.d/ and delete everything I don't want to modify, that >> should work ... > > Please let us know how this works. I'm sure that there are others on > this list

Re: how to change udev rules in Fedora

2013-07-16 Thread Joe Zeff
On 07/16/2013 08:39 PM, lee wrote: Thank you! So I'll just copy the file I want to modify into /etc/udev/rules.d/ and delete everything I don't want to modify, that should work ... Please let us know how this works. I'm sure that there are others on this list who could take advantage of the

Re: how to change udev rules in Fedora

2013-07-16 Thread lee
Ed Greshko writes: > On 07/17/13 08:07, lee wrote: >> Hi, >> >> what's the proposed way to permanently change udev rules in Fedora? >> >> The file I need to edit has a comment in it: "do not edit this file, it >> will be overwritten on update&quo

Re: how to change udev rules in Fedora

2013-07-16 Thread Ed Greshko
On 07/17/13 08:07, lee wrote: > Hi, > > what's the proposed way to permanently change udev rules in Fedora? > > The file I need to edit has a comment in it: "do not edit this file, it > will be overwritten on update". > > From "man 7 udev"

how to change udev rules in Fedora

2013-07-16 Thread lee
Hi, what's the proposed way to permanently change udev rules in Fedora? The file I need to edit has a comment in it: "do not edit this file, it will be overwritten on update". -- Fedora release 19 (Schrödinger’s Cat) -- users mailing list users@lists.fedoraproject.org To

Re: udev rules + adb insufficient permission

2011-01-23 Thread Rahul Sundaram
On 01/23/2011 03:46 AM, Tom Horsley wrote: > On Sat, 22 Jan 2011 17:01:00 -0500 > slamp slamp wrote: > >> did anything change on how udev creates devices for usb's? >> specifically debugging device for adb? > I thought they had been eradicating all the google android > patches in the kernel and wot

Re: udev rules + adb insufficient permission

2011-01-23 Thread slamp slamp
On Sat, Jan 22, 2011 at 5:16 PM, Tom Horsley wrote: > On Sat, 22 Jan 2011 17:01:00 -0500 > slamp slamp wrote: > >> did anything change on how udev creates devices for usb's? >> specifically debugging device for adb? > > I thought they had been eradicating all the google android > patches in the ke

Re: udev rules + adb insufficient permission

2011-01-22 Thread Tom Horsley
On Sat, 22 Jan 2011 17:01:00 -0500 slamp slamp wrote: > did anything change on how udev creates devices for usb's? > specifically debugging device for adb? I thought they had been eradicating all the google android patches in the kernel and wot not because google won't wiggle the rubber chicken t

udev rules + adb insufficient permission

2011-01-22 Thread slamp slamp
did anything change on how udev creates devices for usb's? specifically debugging device for adb? i dont know when this changed but all of the sudden i did not have permission to my adb device. i had to create a udev rule to specify the proper permission. i am running fedora 14 x86 with all the lat

Re: Changing permissions to LVM block device using udev rules

2010-09-03 Thread Roberto Fichera
On 09/02/2010 10:41 PM, Hiisi wrote: > 2010/9/1 Roberto Fichera : >> Hi All in the list, >> >> I'm just fighting with udev rules in a F13 environment about setting >> permissions (group, owner and mode) to certain block devices created >> from a LVM storage

Re: Changing permissions to LVM block device using udev rules

2010-09-02 Thread Hiisi
2010/9/1 Roberto Fichera : >  Hi All in the list, > > I'm just fighting with udev rules in a F13 environment about setting > permissions (group, owner and mode) to certain block devices created > from a LVM storage so that they become persistent across reboots. > > Does

Changing permissions to LVM block device using udev rules

2010-09-01 Thread Roberto Fichera
Hi All in the list, I'm just fighting with udev rules in a F13 environment about setting permissions (group, owner and mode) to certain block devices created from a LVM storage so that they become persistent across reboots. Does anyone give me some hints. Thanks in advance. Roberto Fi

Re: FC12 udev rules

2010-03-03 Thread T. Horsnell
in /lib/udev/rules.d. >> But what is the stuff still in /etc/udev/rules.d/ used for I wonder... > > Take a look at udev(7), where it says: > > The udev rules are read from the files located in the default rules directory > /lib/udev/rules.d/, the custom rules directory

Re: FC12 udev rules

2010-03-03 Thread Patrick O'Callaghan
retty sure you have > to > > explicitly do something to make udev bail completely partway through > > those evaluations. > > > > > > Many thanks for that info. The file I need is right there > in /lib/udev/rules.d. > But what is the stuff still in /etc/udev/r

Re: FC12 udev rules

2010-03-03 Thread T. Horsnell
Paul W. Frields wrote: > On Thu, Feb 25, 2010 at 09:42:15AM +, T. Horsnell wrote: >> Hi all, >> I need to set up a custom rule to give me mode 666 on a custom USB device >> (or on all the otherwise un-handled USB devices). >> I used to do this (in FC9) by modifying ruleset 50-udev-default.rules

Re: FC12 udev rules

2010-02-25 Thread Paul W. Frields
On Thu, Feb 25, 2010 at 09:42:15AM +, T. Horsnell wrote: > Hi all, > I need to set up a custom rule to give me mode 666 on a custom USB device > (or on all the otherwise un-handled USB devices). > I used to do this (in FC9) by modifying ruleset 50-udev-default.rules at > the libusb entry (I kno

FC12 udev rules

2010-02-25 Thread T. Horsnell
Hi all, I need to set up a custom rule to give me mode 666 on a custom USB device (or on all the otherwise un-handled USB devices). I used to do this (in FC9) by modifying ruleset 50-udev-default.rules at the libusb entry (I know this was not the 'correct' way, but I could never understand udev eno