[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: onboard ethernet on Tyan Thunder K8WE (s2895)



Lennart Sorensen wrote:
On Fri, Mar 31, 2006 at 08:09:33PM -0800, Sebastian Haase wrote:
Does that mean that the port assignment COULD potentially change after each reboot !? And I need a special script to adjust
/etc/network/interfaces !?  Hard to believe...

[[ OK - I just started reading the mentioned wiki web page and here is a quote just for documentation purposes:
"""
One of the problems of Linux is that the order of the network interfaces is unpredictable. Between reboots it does stay the same, but it is very well possible that after an upgrade to a new kernel or the addition or replacement of a network card (NIC) that the other of all network interface changes. For example, what used to be eth0 now becomes eth1 or eth2 or visa versa.

Well with udev this now applies to every @#$#@$ boot. :)

You can create a rule file for udev telling it which MAC address should
be named what eth name.  I tried this and it worked very well.

Now if someone has an idea how to control the order of sata drives in
initramfs-tools initrd on 2.6.15 I would be happy.  Half the time my
promise card goes first, and half the time the via onboard goes first.
Since disk labels seem unsupported at this time, having the disk order
change (sda <-> sdc, sdb <-> sdd), being able to at least have something
make sure the initrd can actually find the root partition would be very
handy.  At this point I am getting close to thinking whoever invented
udev shouldn't have.
Hi Len,

Another way to solve this -- sort of oldfashioned but very elegant -- is to use labels. Say you want to label drives tv0 to tv2:

* ext2 and ext3: e2label or "tune2fs -L tv0 /dev/sde1"
* XFS: "xfs_admin -L tv1 /dev/sda1" (max 12 characters, unmounted drive)
* JFS: "jfs_tune -L tv2 /dev/sdb1" (max 16 characters)

In /etc/fstab,

LABEL=tv0 /tv0 ext2 auto,defaults,user,exec 0 0 LABEL=tv1 /tv1 jfs auto,defaults,user,exec 0 0 LABEL=tv2 /tv2 xfs auto,defaults,user,exec 0 0

No matter how you attach the drives -- SATA channel, USB -- they will be mounted where they should. This has been around for so long that it's rumored the guy who came up with it also invented the wheel!

David




Len Sorensen





Reply to: