View previous topic :: View next topic |
Author |
Message |
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 218
|
Posted: Tue Sep 28, 2010 2:37 pm Post subject: [solved] No /dev/cdrom |
|
|
Hi, I am missing /dev/cdrom and other symlinks associated to DVD drive. I have read similar topics, but there problem was usually caused by switching to scsi driver and outdated udev rules. My drive is still recognized as /dev/hdc and works (I can mount discs). I am just missing symlinks and k3b sees no drives. I have tried to enable scsi generic and scsi cdrom drivers, and disabling ide atapi cdrom support in kernel, but this way the drive was recognized as sg0 and stopped working completely. So should I try to fix udev somehow or go scsi way? Thanks.
Last edited by krotuss on Wed Sep 29, 2010 10:52 am; edited 1 time in total |
|
Back to top |
|
|
bobspencer123 Guru
Joined: 19 Dec 2005 Posts: 544
|
Posted: Tue Sep 28, 2010 3:14 pm Post subject: |
|
|
what does
Code: |
ls -all /dev/dv*
ls -all /dev/cd*
ls -all /dev/hd*
ls -all /dev/sd*
|
show?
I had this happen and udev (i think) started naming my device /dev/dvd2 and just skipping over /dev/dvd _________________ Increasingly becoming a 2 channel audio nut! |
|
Back to top |
|
|
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 218
|
Posted: Wed Sep 29, 2010 7:59 am Post subject: |
|
|
ls -all /dev/... (in order):
Code: | ls: cannot access /dev/dv*: No such file or directory
ls: cannot access /dev/cd*: No such file or directory
brw-rw---- 1 root disk 3, 0 Sep 29 2010 /dev/hda
brw-rw---- 1 root disk 3, 1 Sep 29 2010 /dev/hda1
brw-rw---- 1 root disk 3, 2 Sep 29 2010 /dev/hda2
brw-rw---- 1 root disk 3, 3 Sep 29 2010 /dev/hda3
brw-rw---- 1 root disk 3, 4 Sep 29 2010 /dev/hda4
brw-rw---- 1 root disk 22, 0 Sep 29 2010 /dev/hdc
brw-rw---- 1 root disk 8, 0 Sep 29 2010 /dev/sda
brw-rw---- 1 root disk 8, 1 Sep 29 2010 /dev/sda1
brw-rw---- 1 root disk 8, 3 Sep 29 2010 /dev/sda3
|
cdrecord -scanbus:
Code: | scsibus1000:
1000,0,0 100000) *
1000,1,0 100001) *
1000,2,0 100002) 'HL-DT-ST' 'DVDRAM GSA-4165B' 'DL03' Removable CD-ROM
1000,3,0 100003) *
1000,4,0 100004) *
1000,5,0 100005) *
1000,6,0 100006) *
1000,7,0 100007) * |
dmesg:
Code: | hdc: HL-DT-ST DVDRAM GSA-4165B, ATAPI CD/DVD-ROM drive
hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide-cd: hdc: ATAPI 79X DVD-ROM DVD-R/RAM CD-R/RW drive, 2048kB Cache |
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
|
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 218
|
Posted: Wed Sep 29, 2010 10:20 am Post subject: |
|
|
I am running 2.6.35-gentoo-r4 kernel. I know that ATA drivers are deprecated (they were by the time a was installing system), but i like the hd names for ata drives. So I had compiled ATA drivers directly into kernel and SATA as modules. This way the old ATA driver has picked up ATA drive and SATA the rest, probably not good idea at all but it worked for me. I have just find out that disabling IDE/ATAPI CDROM support wont prevent the ATA driver from hooking on cdrom so SATA/SCSI driver cant take over. Now I am running completely on SATA and have symlinks again. Thank you. Maybe I could somehow configure udev to map ATA drive to /dev/hda |
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Wed Sep 29, 2010 10:28 am Post subject: |
|
|
what version of udev are you using? if its 151x then try downgrading it. |
|
Back to top |
|
|
krotuss Apprentice
Joined: 01 Aug 2008 Posts: 218
|
Posted: Wed Sep 29, 2010 10:38 am Post subject: |
|
|
Thank you, I am using 151-r4 but I dont know how long will be older versions available in portage. I have just noticed -old-hd-rules USE flag for udev, maybe thar could do the trick. |
|
Back to top |
|
|
richard.scott Veteran
Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Wed Sep 29, 2010 10:43 am Post subject: |
|
|
before you downgrade udev, check that CONFIG_SYSFS_DEPRECATED_V2 isn't set. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Sep 29, 2010 10:49 am Post subject: |
|
|
remove /etc/udev/rules.d/70-persistent-cd.rules, reboot and see if the cd/dvd links show up then. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
johnny99 Apprentice
Joined: 24 Oct 2005 Posts: 249 Location: Berkeley, California
|
Posted: Sat Oct 02, 2010 12:28 am Post subject: |
|
|
I've got the same issue. Building udev tells me to get rid of CONFIG_IDE and CONFIG_SYSFS_DEPRECATED_V2, and now there is no /dev/sr0. |
|
Back to top |
|
|
johnny99 Apprentice
Joined: 24 Oct 2005 Posts: 249 Location: Berkeley, California
|
Posted: Wed Oct 06, 2010 6:32 pm Post subject: |
|
|
I figured it out. I had to add some stuff to my kernel config.
One one system with an nvidia chip set,
lspci |grep IDE
Code: | 00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3) |
I changed the kernel .config changed, adding the following:
Code: | CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_EATA=y
CONFIG_ATA=y
CONFIG_SATA_AHCI=m
CONFIG_SATA_AHCI_PLATFORM=y
CONFIG_SATA_NV=y
CONFIG_PATA_AMD=y
CONFIG_PATA_PLATFORM=y
CONFIG_PATA_ACPI=y
CONFIG_ATA_GENERIC=y
CONFIG_PATA_LEGACY=y |
Another system with a Broadcom chipset:
lspci |grep IDE
Code: | 00:02.1 IDE interface: Broadcom BCM5785 [HT1000] IDE |
I changed the kernel .config, adding the following:
Code: | PATA_LEGACY=y
PATA_SERVERWORKS=y
PATA_PLATFORM=y
BLK_DEV_SR=y
SCSI_EATA=y
CONFIG_PATA_LEGACY=y
CONFIG_ATA_SFF=y
ATA_GENERIC=y |
Now the device appears:
ls -tlr /dev/sr0
Code: | brw-rw---- 1 root cdrom 11, 0 Oct 5 21:30 /dev/sr0 |
|
|
Back to top |
|
|
crowbert Tux's lil' helper
Joined: 28 Apr 2003 Posts: 140
|
Posted: Mon Jan 07, 2013 5:00 pm Post subject: |
|
|
Anon-E-moose wrote: | remove /etc/udev/rules.d/70-persistent-cd.rules, reboot and see if the cd/dvd links show up then. |
That did it for me. I skipped the reboot with: /etc/init.d/udev restart |
|
Back to top |
|
|
|