Skip to contentSkip to conversation

eth0 in dmesg became eth1 from kernel

DISCUSSION Aras Vaichas 2 participants 2 messages Oct 6, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I'm working on a Linux live filesystem CD and I've come across a very strange problem. My system is based on a Debian system with a custom 2.6.17 kernel.

dmesg reported the SKY2 network adapter as eth0, but it became eth1 in /sys/class/net. /sys/class/net doesn't show any eth0 whatsoever.

The laptop I was using also had a firewire adapter, but I'm not loading any firewire modules at all. If I boot a Knoppix CD on this system, the ethernet becomes eth0 and the firewire becomes eth1.

On my live filesystem, if I run udevmonitor followed by udevtrigger, I see that the kernel is sending a UEVENT for eth1 only - even though dmesg say that the only network device is eth0.

Why is this happening? Is there anything I can do about this in udev?

I can probably handle this with iftab and ifrename, but I'd like to know if there is a udev way.

regards,

Aras Vaichas

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 5 lines · Aras Vaichas

Hello,

I'm working on a Linux live filesystem CD and I've come across a very strange problem. My system is based on a Debian system with a custom 2.6.17 kernel.

Debian keeps track of MAC addresses and uses udev to keep the names persistent. Take a look at:

/etc/udev/rules.d/z25_persistent-net.rules

mh

Signature · 1 line
Martin Hicks || [email protected] || PGP/GnuPG: 0x4C7F2BEE

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel