LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-04-2008, 10:13 AM   #1
Jude Lucien
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian Sarge
Posts: 18

Rep: Reputation: 0
LFS 6.3 Ch 7.13 Udev Problem


I am at chapter 7.13 "Configuring the network script".

When I do the following to pre-generate the udev rules:

Code:
/lib/udev/write_net_rules all_interfaces
I get the error:

Code:
sed: can't read /etc/udev/rules.d/70-persistent-net.rules:  No such file or directory
It seems that in that file should be the configuration information for my network card which udev has not detected. Is there a udev command that I can run so it will detect the ethernet card and populate that file?

If I do:

Code:
dmesg | grep eth
Than it outputs my card and chip, and correctly says the link is down.

Googling has not turned up the information I am looking for and I am lost. If I create the file then I get an error about the file already existing and that the rules will not be saved.

Can anyone point me in the right direction?

Thanks.
 
Old 05-15-2008, 09:17 AM   #2
drut
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
Just found your post (shame no-one replied )- as I had got to that very section in the LFS 6.3 book and seemed to get the same error as you:

Code:
root:~# /lib/udev/write_net_rules all_interfaces
sed: can't read /etc/udev/rules.d/70-persistent-net.rules: No such file or directory
Then when I tried the second time:

Code:
root:~# /lib/udev/write_net_rules all_interfaces
/etc/udev/rules.d/70-persistent-net.rules exists, persistent interface names
not saved.
- We may have made a similar error somewhere else???

Typing "cat /etc/udev/rules.d/70-persistent-net.rules" gives:

Code:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:02:e3:ab:cd:ef", NAME="eth0"

When I do "dmesg | grep eth" I get "eth0: link up"
BUT, I have not rebooted the system yet and am still running from the livecd which has setup eth0 itself- I am using a netgear fa330 by the way... What net card are you trying to setup?

Anyway, I couldn't figure it out - so I have moved on to the next stage. If I can't connect to the net later on I'll have an idea of where to start!

Regards

Last edited by drut; 05-15-2008 at 09:23 AM. Reason: added "code" tags :)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
udev problem BigBenton Linux - Hardware 1 01-25-2007 03:43 AM
starting udev: problem math_1048 Fedora 12 01-02-2007 06:19 PM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 04:43 AM
udev problem schanker21 MEPIS 2 11-23-2005 10:19 PM
ERROR IN??: lfs 6.0 chapter 5.35. Udev-030 jobesd Linux From Scratch 4 01-31-2005 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration