LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.3 Ch 7.13 Udev Problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-3-ch-7-13-udev-problem-639789/)

Jude Lucien 05-04-2008 09:13 AM

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.

drut 05-15-2008 08:17 AM

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


All times are GMT -5. The time now is 12:21 AM.