Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #933

Re: CDROM drive by UUID in fstab

From Bit Twister <BitTwister@mouse-potato.com>
Newsgroups comp.os.linux.hardware
Subject Re: CDROM drive by UUID in fstab
Date 2011-12-23 23:31 +0000
Organization A noiseless patient Spider
Message-ID <slrnjfa3pv.ab3.BitTwister@wb.home.test> (permalink)
References <877h1pwti1.fsf@engels.HistoricalMaterialism.info> <op.v6u83nhwa3w0dxdave@hodgins.homeip.net> <8739ccwqif.fsf@engels.HistoricalMaterialism.info> <j1pcs8-dv9.ln1@lat.localnet> <87ty4rv8sg.fsf@engels.HistoricalMaterialism.info>

Show all headers | View raw


On Fri, 23 Dec 2011 06:15:11 -0500, Haines Brown wrote:
> I see the difference but am too ignorant to know what to make of
> it. What is the "path" to? What do the end numbers refer to? 

One is the hardware bus id, the other the scsi channel used by the
system to channel data to the device.  What you are interested in is
the last two digits of the scsi id to identify which device you want
associated with what SYMLINK and what the symlink will be.

Here look at my two devices. Memorex is read/writer and ASUS is reader.

# grep CD-ROM /var/log/messages 
Dec 23 16:58:47 localhost kernel: scsi 3:0:0:0: CD-ROM  Memorex  DVD+-RAM 
Dec 23 16:58:47 localhost kernel: scsi 3:0:1:0: CD-ROM  ASUS     DVD-E616A

My udev rules snippet:
 ENV{ID_PATH}=="pci-0000:00:14.1-scsi-1:0:0:0", SYMLINK+="dvd",
 ENV{ID_PATH}=="pci-0000:00:14.1-scsi-1:0:0:0", SYMLINK+="dvdrw",
 ENV{ID_PATH}=="pci-0000:00:14.1-scsi-1:0:1:0", SYMLINK+="dvd1",

No idea why messages has 3:0:x:x and rules has 1:0:x:x

the results are
# cd /dev
# ls -al | grep dvd
lrwxrwxrwx   1 root       root             3 Dec 23 11:32 dvd -> sr0
lrwxrwxrwx   1 root       root             3 Dec 23 11:32 dvdrw -> sr0
lrwxrwxrwx   1 root       root             3 Dec 23 11:32 dvd1 -> sr1

Back to comp.os.linux.hardware | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

CDROM drive by UUID in fstab Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-21 15:37 -0500
  Re: CDROM drive by UUID in fstab Bit Twister <BitTwister@mouse-potato.com> - 2011-12-21 21:49 +0000
  Re: CDROM drive by UUID in fstab J G Miller <miller@yoyo.ORG> - 2011-12-21 23:20 +0000
  Re: CDROM drive by UUID in fstab "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2011-12-21 20:00 -0500
    Re: CDROM drive by UUID in fstab Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-22 10:54 -0500
      Re: CDROM drive by UUID in fstab J G Miller <miller@yoyo.ORG> - 2011-12-22 18:08 +0000
        Re: CDROM drive by UUID in fstab Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-22 20:03 -0500
      Re: CDROM drive by UUID in fstab Bill Marcum <bill@lat.localnet> - 2011-12-22 17:54 -0500
        Re: CDROM drive by UUID in fstab Haines Brown <haines@HistoricalMaterialism.info> - 2011-12-23 06:15 -0500
          Re: CDROM drive by UUID in fstab Bit Twister <BitTwister@mouse-potato.com> - 2011-12-23 23:31 +0000
          Re: CDROM drive by UUID in fstab "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2011-12-23 22:37 -0500

csiph-web