Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-2008, 05:04 PM
AZ Nomad
 
Posts: n/a
forcing scsi cdrom device names

I'm using the scsi/sata to handle an IDE dvdrw and a SATA dvdrw. I get two
devices named /dev/sr0 and /dev/sr1.

Normally the IDE dvdrw goes to /dev/sr0 and the SATA dvdrw goes to /dev/sr1.
So far so good.

The problem is that about one reboot in twenty, the devices get reversed.
/dev/sr0 is assigned to the SATA drive and sr1 to the IDE drive. This is
a major PITA. Is there any way to fix the assignments?
Reply With Quote
  #2 (permalink)  
Old 03-30-2008, 10:09 AM
Aragorn
 
Posts: n/a
Re: forcing scsi cdrom device names

AZ Nomad wrote:

> I'm using the scsi/sata to handle an IDE dvdrw and a SATA dvdrw. I get
> two devices named /dev/sr0 and /dev/sr1.
>
> Normally the IDE dvdrw goes to /dev/sr0 and the SATA dvdrw goes to
> /dev/sr1. So far so good.
>
> The problem is that about one reboot in twenty, the devices get reversed.
> /dev/sr0 is assigned to the SATA drive and sr1 to the IDE drive. This is
> a major PITA. Is there any way to fix the assignments?


Yes, by manually including entries for them in your /udev/ configuration
file(s). Not that I've ever done this myself - I'm new to /udev/ myself,
actually - but I know it is possible via the information for each device
under the */sys* and/or */proc* trees.

If I understand correctly, then it would be similar to using a NIC's MAC
address for assigning an IP address to it. You would thus use
hardware-specific strings to tell /udev/ which device needs to be
*/dev/sr0* and which device needs to be */dev/sr1.*

I believe I'll be up to that task myself - not that I am in the habit of
rebooting any of my machines - because my one machine has an SATA Plextor
DVD-writer and a USB Iomega REV drive, which is seen by the kernel as a CD
device - it's actually a kind of removable hard disk, similar to the old
Iomega Jaz but smaller in size and much larger in storage capacity.

Hope this helps... ;-)
--
Aragorn
(registered GNU/Linux user #223157)
Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 10:18 AM
pk
 
Posts: n/a
Re: forcing scsi cdrom device names

AZ Nomad wrote:

> I'm using the scsi/sata to handle an IDE dvdrw and a SATA dvdrw. I get
> two devices named /dev/sr0 and /dev/sr1.
>
> Normally the IDE dvdrw goes to /dev/sr0 and the SATA dvdrw goes to
> /dev/sr1. So far so good.
>
> The problem is that about one reboot in twenty, the devices get reversed.
> /dev/sr0 is assigned to the SATA drive and sr1 to the IDE drive. This is
> a major PITA. Is there any way to fix the assignments?


Try this:

http://www.reactivated.net/writing_udev_rules.html

Just find something that identifies each device uniquely (eg by using
udevinfo or looking into /dev/disk/by-id), and write appropriate udev rules
to create symlinks.

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:46 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Personal Finance | Loans | Mortgage Calculator | Debt Consolidation | Buy PSP



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109