?
Solved

rebuild /udev/rules.d

Posted on 2012-08-21
7
Medium Priority
?
757 Views
Last Modified: 2012-08-24
I accidentally deleted my /etc/udev/rules.d files. Now I have no network devices. Does anyone know how I can restore or rebuild this folder? No, I don't have a backup! BUT, I understand that this folder is built "upon first boot", so there must be a way to rebuild

This is slackware release 12.1.0, kernel 2.6.24.5-smp
0
Comment
Question by:jmarkfoley
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:AggieTex
ID: 38318361
Have you tried restarting the computer?  Most of those files in the /etc/udev/rules.d/ should be regenerated.  

Not sure about slackware, but other distributions had a bug for awhile where it wouldn't regenerate them if you deleted them.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38318786
nope - it didn't regen. Am I stuck? Reinstall?
0
 
LVL 3

Accepted Solution

by:
AggieTex earned 2000 total points
ID: 38318873
You shouldn't need to reinstall.  I am not that familiar with slackware/udev, so someone else might be able to give you a faster fix.  There should be a 70-persistent-net.rules file in /etc/udev/rules.d/ which is generated from the /lib/udev/rules.d/75-persistent-net-generator.rules on startup.

If it isn't working, you can try doing a:
# touch /etc/udev/rules.d/70-persistent-net.rules

If that doesn't work after a reboot, you could always boot up to a live cd and then just copy the files that are generated from the rescue boot into the directory after doing a chroot.  Someone else might have an easier method though.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:jmarkfoley
ID: 38319054
I went ahead and reinstalled the system. I would have liked to have tried your suggestion on  `touch /etc/udev/rules.d/70-persistent-net.rules` had I read that before reinstalling. The reinstall wasn't too tough though. This computer just does minimal stuff and not formatting the disk before installing kept all my stuff so I didn't really have to change anything.

The tricky bit was that I installed a more recent release of Slackware (why not?) and it named the drive devices differently: sda instead of hda. That, coupled with my choosing not to update the fstab caused a bit of a head-scratcher, but I figured it out quickly enough.

My only remaining issue is that I get the messages:

configuration error - unknown item 'DIALUPS_CHECK_ENAB (notify administrator)
contifuration error - unknown item 'NOLOGIN_STR' (notify administrator)

whenever I log in as any user (root or otherwise). I haven't been able to track this down yet. If you have some insight I'd appreciate the advice although I know this is more proper in another question.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38319055
btw - I get those error messages after entering the user ID but before the password prompt.
0
 
LVL 3

Assisted Solution

by:AggieTex
AggieTex earned 2000 total points
ID: 38319075
How old was that version of slackware?  I thought they did away with hda naming of drives sometime ago, even for pata drives.

# mv /etc/login.defs /etc/login.defs.old
# mv /etc/login.defs.new /etc/login.defs
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38323155
> How old was that version of slackware?

Slackware distro 12-1.0, kernel 2.6.24.5-smp; circa 2008. New[er] install is Slackware 13.37.0, kernel 2.6.37.6-smp. Yeah, it was old. Probably time for an upgrade anyway.

In any case, the rename worked! Brilliant! How did you know that? I've been working with Linux for a LOOOONG time and I've *never* run into having to mess with that file.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month16 days, 17 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question