Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
multiple usb drives

multiple usb drives

2006-08-16       - By Rick Stevens

 Back
Reply:     1     2  

On Wed, 2006-08-16 at 11:54 -0700, chuck lawrence wrote:
> greetings,
>
> I've got an interesting problem.  I've got 3 external usb drives, all
> running thru a usb 2.0 pci card.  the first two (sda and sdb) are
> roughly the same vintage.  the most recent addition, a year later, is a
> larger, faster disk.
>
> when I boot with them all on, the new disk wants to be sda, rather than
> sdc.  I surmise this may be because it's a faster disk, and registers
> first.  I was mounting volumes from the older disks in /etc/rc.local,
> but now must mount manually, powering up the new disk after booting.
> claerly this is less than ideal.
>
> is this an inherent problem with multiple external usb drives?  I could
> reorder the mount sequence, but it makes me a bit wary that I can't
> control which disk is which.  should I not try to mount them at boot time?

The problem is that there's no way to control how the drives come up.
The system does a scan of the USB drives and assigns them drive letters
depending on the order in which they became available.  The same thing
can happen with SCSI...it depends on how fast the drives spin up, etc.

This is the ONLY time I recommend filesystem labels.  If the drives are
Linux filesystems, then label them.  To do this, figure out which drive
is what right now and what you really want them to be.  Let's say the
three drives are a 10G, a 20G and an 80G, and you want them to be known
as "drive1", "drive2" and "drive3" respectively.  Find out which drive
is /dev/sda NOW (let's say it's the 20G drive).  Label the filesystem
on it via:

  e2label /dev/sda1 drive2

And repeat for each of the drives/filesystems.  Then change your
/etc/fstab entries to reflect the names you gave the filesystems.  For
example, if you want the 20G drive to mount at, say, "/usr/drive2", then
put in a line:

  LABEL="drive2"   /usr/drive2   ext3   defaults   0 0

Then, WHENEVER that drive is plugged in, it'll get mounted as
/usr/drive2.

Now, if the filesystems are not Linux filesystems (e.g. VFAT), you're
kinda stuck.  There are games you can play in hotplug and udev to deal
with that, but it depends on setting up rules to look at the USB ID
strings and setting things up that way.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
- Rick Stevens, Senior Systems Engineer     rstevens@(protected) -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
- If at first you don't succeed, quit. No sense being a damned fool! -
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe