Those files provide rules for how the kernel should do things.
Edit (for future reference): The files should recover and populate with a system re-boot. One should not have to re-install udev as I detailed below.
There may be a better way to do the below, I don't know.
You should re-install udev. Depending on if udev versions have changed since your first installation, the .deb files might be in the cache. Example:
First, determine which version you have:
Code:
doug@doug-64:/etc/udev/rules.d$ dpkg -l | grep udev
ii libudev0 175-0ubuntu9.2 udev library
ii udev 175-0ubuntu9.2 rule-based device node and kernel event manager
Then, determine if the .deb is already in the cache:
Code:
doug@doug-64:/etc/udev/rules.d$ locate .deb |grep udev
/var/cache/apt/archives/libudev0_175-0ubuntu9.2_amd64.deb
/var/cache/apt/archives/udev_175-0ubuntu9.2_amd64.deb
Good, on my computer it is in the cache, install it:
Code:
doug@doug-64:/etc/udev/rules.d$ sudo dpkg -i /var/cache/apt/archives/libudev0_175-0ubuntu9.2_amd64.deb
(Reading database ... 108384 files and directories currently installed.)
Preparing to replace libudev0 175-0ubuntu9.2 (using .../libudev0_175-0ubuntu9.2_amd64.deb) ...
Unpacking replacement libudev0 ...
Setting up libudev0 (175-0ubuntu9.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
doug@doug-64:/etc/udev/rules.d$ sudo dpkg -i /var/cache/apt/archives/udev_175-0ubuntu9.2_amd64.deb
(Reading database ... 108384 files and directories currently installed.)
Preparing to replace udev 175-0ubuntu9.2 (using .../udev_175-0ubuntu9.2_amd64.deb) ...
Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
Unpacking replacement udev ...
Setting up udev (175-0ubuntu9.2) ...
udev stop/waiting
udev start/running, process 1227
Removing 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-33-generic
O.K. but what if it wasn't in the cache? Go to the package web site and get the .deb files. In my case I would search for "udev" in the precise-updates distribution.
Bookmarks