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

Re: disk moves from /dev/sdd to /dev/sde



Wolfgang S. Rupprecht wrote:
> 
> Thanks.  I (at the /etc/fstab level) do use a label that goes with the
> drive, mainly the lvm VG and LV names.  The problem is that the lvm
> mapper *internally* must still use the name that the drive had when the
> computer first booted.  It gets confused when the drive gets renamed at
> runtime (long after boot).
> 

> 
> Ditto.  I have my machine dual ported and I'd really like eth0 to be the
> internal ethernet and eth1 to be the external.  (Some programs like
> multicast progs seem to default to the first ethernet and it would be
> nice for me not to spew packets towards the public internet.)
> 

I think you can address both problems with udev or HAL.
I've done it in the past, but these things are changing too fast
and with almost no documentation around.
It could be that on newer Fedora things are different.

My /etc/udev/rules.d/70-persistent-net.rules contains (xx where I removed my data): (on Fedora 10)

# PCI device 0x8086:0x1049 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:xx:xx:xx:xx", ATTR{type}=="1", NAME="eth0"

# PCI device 0x8086:0x4230 (iwl4965)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:xx:xx:xx:xx", ATTR{type}=="1", NAME="wlan0"

# PCMCIA device 0x0202:0x021b (axnet_cs)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:xx:xx:xx:xx", ATTR{type}=="1", NAME="eth1"


I created a /etc/udev/rules.d/11-ROB.rules for the external usb disks containing: (on Fedora 5)

BUS=="usb", SYSFS{serial}=="5743xxxxxxxxxxxxxxxxxxxx", SYSFS{product}=="External HDD    ",KERNEL=="sd?1", NAME="external_bup_disk"
BUS=="usb", SYSFS{serial}=="5744xxxxxxxxxxxxxxxxxxxxxxxxxx", SYSFS{product}=="My Book         ",KERNEL=="sd?1", NAME="external_bup_disk2"

The serial has to be found in the lshal output (a lot of output, not easy).


In both cases the NAME part is where you decide what you want to have in /dev.

-- 
   Roberto Ragusa    mail at robertoragusa.it


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