LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-25-2012, 01:05 PM   #1
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 24

Rep: Reputation: Disabled
Missing /etc/udev/rules.d/70-persistent-net.rules - Chapter 7.2.1.


Greetings,

Seems I am stuck at chapter 7.2.1. Here are the logs:

******************************
I check here I can ping google.ca
******************************

root:~# ping www.google.ca
PING www-cctld.l.google.com (74.125.226.95): 56 data bytes
64 bytes from 74.125.226.95: icmp_seq=0 ttl=128 time=3.029 ms
64 bytes from 74.125.226.95: icmp_seq=1 ttl=128 time=25.284 ms
64 bytes from 74.125.226.95: icmp_seq=2 ttl=128 time=27.924 ms
64 bytes from 74.125.226.95: icmp_seq=3 ttl=128 time=35.604 ms
64 bytes from 74.125.226.95: icmp_seq=4 ttl=128 time=47.645 ms
64 bytes from 74.125.226.95: icmp_seq=5 ttl=128 time=76.196 ms
64 bytes from 74.125.226.95: icmp_seq=6 ttl=128 time=138.804 ms
^C--- www-cctld.l.google.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.029/50.641/138.804/41.553 ms

*****************************************************************************************
I copy/paste the command from chapter 7.2.1.

As you will see, it will read from /lib/udev/rules.d/ as supposed to /etc/udev/rules.d/
*****************************************************************************************


root:~# for NIC in /sys/class/net/* ; do
> INTERFACE=${NIC##*/} udevadm test --action=add $NIC
> done
run_command: calling: test
adm_test: version 181
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

builtin_kmod_init: load module index
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/etc/udev/rules.d/55-lfs.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-accelerometer.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-probe_mtd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
udev_rules_new: rules use 12888 bytes tokens (1074 * 12 bytes), 7639 bytes buffer
udev_rules_new: temporary index used 8100 bytes (405 * 20 bytes)
udev_device_new_from_syspath: device 0x80751e0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
udev_device_new_from_syspath: device 0x80753d8 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
udev_device_read_db: device 0x80753d8 filled with db file data
udev_device_new_from_syspath: device 0x80758d0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0'
udev_device_new_from_syspath: device 0x8075c00 has devpath '/devices/pci0000:00/0000:00:11.0'
udev_device_new_from_syspath: device 0x8075e80 has devpath '/devices/pci0000:00'
udev_rules_apply_to_event: IMPORT builtin 'pci-db' /lib/udev/rules.d/75-net-description.rules:11
Failed to open database file 'no': No such file or directory
udev_device_new_from_syspath: device 0x8076360 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0'
udev_device_update_db: created db file '/run/udev/data/n2' for '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0
ID_BUS=pci
ID_MODEL_ID=/sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0
ID_VENDOR_ID=0x1022
IFINDEX=2
INTERFACE=eth0
MATCHADDR=00:0c:29:43:d3:20
MATCHIFTYPE=1
SUBSYSTEM=net
UDEV_LOG=6
USEC_INITIALIZED=72987878209
builtin_kmod_exit: unload module index
run_command: calling: test
adm_test: version 181
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

builtin_kmod_init: load module index
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/etc/udev/rules.d/55-lfs.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-accelerometer.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-probe_mtd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
udev_rules_new: rules use 12888 bytes tokens (1074 * 12 bytes), 7639 bytes buffer
udev_rules_new: temporary index used 8100 bytes (405 * 20 bytes)
udev_device_new_from_syspath: device 0x80751e0 has devpath '/devices/virtual/net/lo'
udev_device_new_from_syspath: device 0x8075358 has devpath '/devices/virtual/net/lo'
udev_device_read_db: device 0x8075358 filled with db file data
udev_device_update_db: created empty file '/run/udev/data/n1' for '/devices/virtual/net/lo'
ACTION=add
DEVPATH=/devices/virtual/net/lo
IFINDEX=1
INTERFACE=lo
SUBSYSTEM=net
UDEV_LOG=6
USEC_INITIALIZED=77641685320
builtin_kmod_exit: unload module index

********************************************************
There is no /etc/udev/rules.d/70-persistent-net.rules
********************************************************

root:~# ls /etc/udev/rules.d
55-lfs.rules

********************************************************
There is no /lib/udev/rules.d/70-persistent-net.rules
********************************************************

root:~# ls /lib/udev/rules.d
42-qemu-usb.rules 60-persistent-serial.rules 75-cd-aliases-generator.rules 78-sound-card.rules
50-udev-default.rules 60-persistent-storage-tape.rules 75-net-description.rules 80-drivers.rules
60-cdrom_id.rules 60-persistent-storage.rules 75-persistent-net-generator.rules 95-udev-late.rules
60-persistent-alsa.rules 60-persistent-v4l.rules 75-probe_mtd.rules
60-persistent-input.rules 61-accelerometer.rules 75-tty-description.rules

******************************
eth0 is present
******************************

root:~# ls /sys/class/net
eth0 lo



How should I go from here? I'm so close to finish it. Thx ...
 
Old 05-25-2012, 01:22 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Mordillo98
builtin_kmod_init: load module index
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
Is this done from inside the chrooted environment?

If not: Restart from here http://www.linuxfromscratch.org/lfs/...sedchroot.html
 
Old 05-25-2012, 01:58 PM   #3
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Yes I did. But to be in the safe side, I rebooted the machine, chrooted again and tried again.

Same problem.
 
Old 05-25-2012, 02:33 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Did you do the mount parts from chapter 6.2 after the reboot and before chrooting (as mentioned in chapter 6.64)?

I still believe you're not in the correct environment. The following isn't yet possible at this point of the build (no network):
Quote:
root:~# ping www.google.ca
PING www-cctld.l.google.com (74.125.226.95): 56 data bytes
64 bytes from 74.125.226.95: icmp_seq=0 ttl=128 time=3.029 ms
and I do believe this also points to your host:
Quote:
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
 
Old 05-25-2012, 02:56 PM   #5
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Humm. My guess is that at one point I haven't chrooted properly on Chapter6 and created some bad links. I do everything from putty so that I can copy and paste the documentation, so sometimes I log off and log in from putty and need to chroot again.

Let me do Chapter 6 again and get back to you.

Tkx ...
 
Old 06-11-2012, 08:37 PM   #6
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
I redid the entire thing using Debian Live CD, and I got the exact same problem.

That means I am doing the same wrong thing.

However, if I boot with Debian Live CD, do a chroot as per Chapter 6.64 and recompile UDev, the problem gets fixed.

Making as resolved.
 
  


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
overriding /etc/udev/rules.d/70-persistent-net.rules Skaperen Linux - Networking 11 03-06-2014 09:24 PM
[SOLVED] /etc/udev/rules.d/70-persistent-net.rules and 'ip link' rename rakeafake Linux - Networking 3 06-05-2012 10:14 AM
correcting udev network persistent-net rules Skaperen Linux - Networking 2 09-19-2011 04:11 PM
Slack 13.1 : /etc/udev/rules.d70-persistent-net.rules Ramurd Slackware 10 02-18-2011 09:56 AM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration