2010/5/16 maptex <maptex@xxxxxxxxx>: > thans by your response, > > 2.6.18 is old and unsupported but it is stable for the application we are using, > the actual OS installed over about 2000 appliances is 2.4.x and will be migrated > to 2.6.18. > > The actual FS on appliances are not labeled and are mounted refering to kernel > names, /etc/fstab contain references to kernel names. > > The migration planned to have a unique manual operation consisting plugging a > usb pendrive. The other tasks will be automated by transferring scripts and > running them. > When more changes we need to do, more complex the scripts must be. > I can modify the init and scripts on initramfs distributed on the pendrive to > identify usb storage devices, but if I can manage the kernel enumeration for his > devices then I can simplify the scripts, the other way is to label > filesystems and > modify all the appliance configuration for applications using kernel names > (no easy to control in some simple (low error prone) scripts). > > I am not an expert in kernel, but AFAIK udev can run after the kernel assign > kernel names to storage devices, and only alias names can be managed from > udev, kernel names cannot be changed, or I am in error? > > thakns! > > 2010/5/16 Greg KH <greg@xxxxxxxxx>: >> On Sat, May 15, 2010 at 05:50:58PM -0300, maptex wrote: >>> Hi all, >>> I hava a linux system (2.6.18) configured to boot from ide (disk on >> >> 2.6.18 is _very_ old and unsupported, you know that, right? >> >>> chip) and mount >>> root filesystem from an usb pendrive. This is ok while the system >>> assign the same >>> device name to the pendrive (/dev/sdx) as configured on bootloader configuration >>> file (lilo.conf). Some times, when the system boot with other usb storage device >>> connected, the name assigned to the device with root filesystem is changed and >>> the system is unable to mount root filesystem. >>> I need to find a solution to identify the device and change system configuration >>> to mount root filesystem. >>> The system may have one or two usb storage devices connected and /etc/fstab >>> makes references to device names (/dev/sdx) and it is not possible to label the >>> others filesystems. >>> >>> As a solution I'm trying to swap device names, by modifying scripts in >>> initrd, but >>> I cant find how to change /proc/partitions to reflect changes (I also >>> need to change >>> /dev/disk/by-* links). >> >> Use the /dev/disk/by-label/ link and you will be fine, as you can >> control the label on your root device, right? Use that. >> >> thanks, >> >> greg k-h >> > -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html