Re: root FS on pendrive

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

 



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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux