On Sunday 26 February 2006 00:14, "Nick Smith" <[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] re-scanning for devices': > > > also, what if it detects a drive as sda, and i want it to be sdb? is > > > there a way i can tell it what i want to be sda, sda etc? without > > > actually having to move the drives around? > > > > Write udev rules to create persistent device names. > > its actually running a 2.4 kernel on sparc, and i dont think they use > udev, i think they are still on devfs. IIRC. is udev the only way to > accomplish this?
Yes, which is one of the main reasons users and distributions wanted to get away from devfs. devfs always uses the kernel name for the device, which depends on the order the devices are detected, which depends on module loading order and physical device arrangement. With sysfs around it would be possible to find out the kernel name of a device based on persistent attributes which intelligent find and grep-ing. That would be a "pull" way of doing what udev does in a "push" way. In this case, it's fairly clear (to me, I suppose this could be just my opinion) that the push way is more efficient and less-error prone. Depending on you exact needs, you may be able to use UUIDs and filesystem labels, instead of persistent device nodes. Recent versions of mount will scan for either [including when invoked based on fstab], LVM, EVMS, and mdadm use UUIDs rather than device names. The mini-tool findfs, provided on my system by e2fsprogs (weird), is able to map either to a device name (despite the package that provides it, it does successfully find my reiser filesystems on LVM by either). -- Boyd Stephen Smith Jr. [EMAIL PROTECTED] ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list