From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qawtz-0005qg-Tk for garchives@archives.gentoo.org; Sun, 26 Jun 2011 21:30:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31D561C112; Sun, 26 Jun 2011 21:28:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DED941C112 for ; Sun, 26 Jun 2011 21:28:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5EC841B4030 for ; Sun, 26 Jun 2011 21:28:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.907 X-Spam-Level: X-Spam-Status: No, score=-4.907 required=5.5 tests=[AWL=1.692, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-rPylOI+2gA for ; Sun, 26 Jun 2011 21:28:28 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 38D191B4034 for ; Sun, 26 Jun 2011 21:28:26 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QawsS-0005kG-F2 for gentoo-user@gentoo.org; Sun, 26 Jun 2011 23:28:24 +0200 Received: from adsl-69-234-190-154.dsl.irvnca.pacbell.net ([69.234.190.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Jun 2011 23:28:24 +0200 Received: from w41ter by adsl-69-234-190-154.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Jun 2011 23:28:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] Re: no cdrom (IDE) Date: Sun, 26 Jun 2011 14:28:06 -0700 Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-190-154.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110624 In-Reply-To: X-Archives-Salt: X-Archives-Hash: 83a0f79dfd31763d2a911ec9740372ba On 06/25/2011 03:32 PM, Alexey Mishustin wrote: > Hi. > > After updating udev the links /dev/cdrom, /dev/dvd etc disappeared. There > are four /dev/sgX but there is no /dev/srX at all. No hdX, all sdX are > hard drives. So, I can't mount any cd or dvd. > > My drive is IDE (Pioneer). I assume it's connected to a PATA disk controller like my dvd player is? #lspci -k [output edited] 00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) Subsystem: VIA Technologies, Inc. VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE Kernel driver in use: pata_via > # dmesg | grep sg > msgmni has been set to 1759 > Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) > sd 0:0:0:0: Attached scsi generic sg0 type 0 > sd 0:0:1:0: Attached scsi generic sg1 type 0 > sd 2:0:0:0: Attached scsi generic sg2 type 0 > sd 3:0:0:0: Attached scsi generic sg3 type 0 Surprise, I also have sg* devices I didn't know about: #dmesg | grep -i scsi Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) scsi0 : sata_promise scsi1 : sata_promise scsi2 : sata_promise scsi3 : pata_via scsi4 : pata_via <----- this is the dvdrom, on my old PATA controller scsi 0:0:0:0: Direct-Access ATA Maxtor 6Y080M0 YAR5 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] Attached SCSI disk scsi 3:0:0:0: Direct-Access ATA Maxtor 7Y250P0 YAR4 PQ: 0 ANSI: 5 sd 3:0:0:0: [sdb] Attached SCSI disk scsi 4:0:0:0: CD-ROM ATAPI iHDP118 4 GL05 PQ: 0 ANSI: 5 sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 3:0:0:0: Attached scsi generic sg1 type 0 scsi 4:0:0:0: Attached scsi generic sg2 type 5 <----- the dvd is sg2 sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray sr 4:0:0:0: Attached scsi CD-ROM sr0 #ls -l /dev/sg* crw-rw---- 1 root disk 21, 0 Jun 26 04:50 /dev/sg0 crw-rw---- 1 root disk 21, 1 Jun 26 04:50 /dev/sg1 crw-rw---- 1 root cdrom 21, 2 Jun 26 04:50 /dev/sg2 <----- sg2 again crw-rw---- 1 root disk 21, 3 Jun 26 04:50 /dev/sg3 crw-rw---- 1 root disk 21, 4 Jun 26 04:50 /dev/sg4 I'm trying to separate kernel device support problems from udev problems, as you can see. #cat /etc/udev/rules.d/70-persistent-cd.rules # This file was automatically generated by the /lib/udev/write_cd_rules # program, run by the cd-aliases-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and set the $GENERATED variable. # iHDP118_4 (pci-0000:00:11.1-scsi-1:0:0:0) SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.1-scsi-1:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1" SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.1-scsi-1:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1" Note how the pci number matches the output of lspci -k. If the number doesn't match your hardware then you should delete the 70-persistent-cd.rules file and reboot. A new file will be generated during the reboot.