[Gllug] CD Rom oddness

Nix nix at esperi.org.uk
Sun Apr 2 20:05:59 UTC 2006


On Sun, 2 Apr 2006, Bruce Richardson announced authoritatively:
> On Sun, Apr 02, 2006 at 04:55:48PM +0100, Adrian wrote:
>> All this stuff about cdrecord prompts me to ask this.
>> 
>> I have a daily backup script which suddenly stopped working about a week
>> ago and I've just been bothered today to see why.
>> 
>> having done cdrecord -scanbus originally I saw that the usb plug in cdr
>> drive was on scsi bus 2. Now it's migrated to scsi bus 4.
>> 
>> The only thing I can think of is that I plugged it in and out a few
>> times when I was messing about with the printer so the usb connection
>> number would have changed.

The number can change without your having done anything: USB devices
are enumerated in no particular order.

> Could be.  Are you using devfs or udev?  If you're using udev, you can
> add a custom rule to create a unique name for that device so that it
> always loads with the same name no matter how often you connect and
> disconnect it.

You *should* do that for all your USB devices, unless the program 
you're using enumerates them itself (as CUPS does, for instance).

-- 
`Come now, you should know that whenever you plan the duration of your
 unplanned downtime, you should add in padding for random management
 freakouts.'
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list