grub is a boot loader which means that it is running in processor's real
mode before the linux kernel and it's device drivers assign the /dev/*
entries to the hardware devices.
grub's naming therefore corresponds to the interrupt calls provided by
the systems BIOS but unfortunately there is no reliable way to detect
the device order at boot time once the system has started nor the device
names assigned by linux at boot time.
Even worse they may both change depending on the boot device priority
settings in BIOS and the order in which device drivers are loaded in
linux. So everything boils down to black magic which works surprisingly
good.
Tom
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail preferred - KeyID 96FFCB89
finger thomasz(a)hostmaster.org for key
The three Rs of Microsoft support: Retry, Reboot, Reinstall.