top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

How to change udev rules in Fedora

0 votes

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".

posted Jul 17, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

From "man 7 udev"

The udev rules are read from the files located in the system rules directory /usr/lib/udev/rules.d, the volatile runtime directory /run/udev/rules.d and the local administration directory /etc/udev/rules.d. All rules files are collectively sorted and processed in lexical order, regardless of the directories in which they live.
However, files with identical file names replace each other. Files in /etc have the highest priority, files in /run take precedence over files with the same name in /lib. This can be used to override a system-supplied rules file with a local file if needed; a symlink in /etc with the same name as a rules file in /lib, pointing to /dev/null, disables the rules file entirely.

answer Jul 17, 2013 by anonymous
Similar Questions
+1 vote

I have installed NVIDIA propriety drivers on Fedora 21. And now I wants to change the display resolution.

How can I do that?

+1 vote

I changed the value in /etc/hostname but it did not see changes in my hostname. What could be the correct way to achieve this.

0 votes

I know this is an easy one, but I can't seem to find the current correct way to do it. I've got a TB HDD that I need to change the LABEL on. Currently it's 'LIVE' (it's an old production drive) and I really want to just remove the label altogether and mount it with the UUID of the drive.

What's the best and most current way to do it? I was thinking e2label will do it, but it's been so long since I've done it, I'm playing it safe.

0 votes

Runnning old "Fedora 20-x86_64", and want to install Fedora-Kde-live-25-1-3.

$ uname -rov
3.19.8-100.fc20.x86_64 #1 SMP Tue May 12 17:08:50 UTC 2015 GNU/Linux

$ sudo lvmdiskscan
/dev/fedora/root [ 50,00 GiB]
/dev/fedora/swap [ 3,77 GiB]
/dev/sda2 [ 500,00 MiB]
/dev/vg_maq01/lv_swap [ 5,75 GiB]
/dev/sda3 [ 118,75 GiB] LVM physical volume
/dev/vg_maq01/lv_home [ 63,00 GiB]
/dev/vg_maq01/lv_root [ 50,00 GiB]
/dev/fedora/home [ 48,48 GiB]
/dev/sdb2 [ 500,00 MiB]
/dev/sdb3 [ 194,87 GiB]
/dev/sdb4 [ 500,00 MiB]
/dev/sdb5 [ 102,24 GiB] LVM physical volume
6 disks
4 partitions
0 LVM physical volume whole disks
2 LVM physical volumes

The /dev/sda* is a SSD(KINGSTON SV200S3128G) 128GB, with old "Fedora 16-x86_64", and only want to recover some files in /home.

The /dev/sdb* is a Seagate(ST3320613AS) 320GB, running old "Fedora 20-x86_64", with some important file in /home.

$ sudo lvscan
ACTIVE '/dev/fedora/swap' [3,77 GiB] inherit
ACTIVE '/dev/fedora/home' [48,48 GiB] inherit
ACTIVE '/dev/fedora/root' [50,00 GiB] inherit
ACTIVE '/dev/vg_maq01/lv_swap' [5,75 GiB] inherit
ACTIVE '/dev/vg_maq01/lv_home' [63,00 GiB] inherit
ACTIVE '/dev/vg_maq01/lv_root' [50,00 GiB] inherit

$ mount | grep /dev/mapper
/dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
/dev/mapper/fedora-home on /home type ext4

Want to mount the SSD on "Fedora 20" to recover some files, copying it to /dev/sdb3 space(/dev/sdb3 not used/mounted). After this, I can erase all SSD and install "Fedora 25" on it.

Thanks for help.

0 votes

I want my Fedora 22 box to run at a video resolution of 1680x1050.

I added and selected that resolution by doing:

$ xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
$ xrandr --addmode VGA-0 1680x1050_60.00
$ xrandr --output VGA-0 --mode 1680x1050_60.00

That worked, but when I reboot the resolution reverts to 1280x1024.

I tried creating file:


and putting in it:

Section "Monitor"
 Identifier "VGA-0"
 Option "PreferredMode" "1680x1050_60.00"

but that had no effect (perhaps because the resolution was not found after the reboot).

How can I set the resolution to 1680x1050 permanently?

Useful Links with Similar Problem
Contact Us
+91 9880187415
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.