Eric S. Johansson wrote:

> in playing with USB flash drives on systems with SCSI disks, every
> time I boot with the flagstick installed, it gets assigned to /dev/sda
> and the SCSI drives are assigned to subsequent /dev/sdX device names. 
> But when I remove the USB drive, all assignments shift down and things
> like mount points get royally screwed up.
>
> is there any way I can assign the usb flash drive to some guaranteed
> to be unused sdX device name and let the SCSI devices be allocated
> normally or force the USB flash device to be detected after the SCSI
> disks so that it is assigned to the end of the list of SCSI devices?
>
> my goal is to get the SCSI disk device name assignments to be the same
> whether or not the flash drive is present.
>
> ---eric


I solve this by using the LABEL= syntax in /etc/fstab instead of the
device name for my usb key and external 2.5" disk, and by using LVM on
my external 3.5" disks.

I would recommend trying LVM on the SCSI disks, which would give you a
static "/dev/mapper/..." device node, and the LABEL= or udev rule for
your USB key.

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to