Bug 5536 - DVD drives not showing/working.
Summary: DVD drives not showing/working.
Status: RESOLVED DUPLICATE of bug 4997
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-21 18:12 CEST by Peter Wallace
Modified: 2012-04-22 15:37 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Dmesg out put (67.36 KB, text/plain)
2012-04-21 18:18 CEST, Peter Wallace
Details

Description Peter Wallace 2012-04-21 18:12:13 CEST
Fresh install of Mageia 2 beta 3 64bit of a pen drive via mandriva seed.

After installation the dvd drives are not working.

Drives are on the primary IDE channel
they shown as on /dev/hda and /dev/hdb.

I believe it is related to this bug here:-
https://bugs.mageia.org/show_bug.cgi?id=4997

Here's the output of the various commands of my setup.

[root@localhost ~]# lspcidrake -v | grep STORAGE
pata_jmicron    : JMicron Technology Corp.|JMB362/JMB363 Serial ATA Controller [STORAGE_IDE] (vendor:197b device:2363 subv:1458 subd:b000) (rev: 02)
ahci            : JMicron Technology Corp.|JMB362/JMB363 Serial ATA Controller [STORAGE_SATA] (vendor:197b device:2363 subv:1458 subd:b000) (rev: 02)
ahci            : ATI Technologies Inc|SB7x0/SB8x0/SB9x0 SATA Controller [RAID5 mode] [STORAGE_RAID] (vendor:1002 device:4393 subv:1458 subd:b002) (rev: 40)


[root@localhost ~]# lsmod | grep ata
pata_amd               14118  0
pata_jmicron           12747  0 
pata_acpi              13027  0 
ata_generic            12899  0 
libata                212549  5 ata_generic,pata_acpi,libahci,ahci,pata_jmicron
scsi_mod              218408  2 libata,sd_mod

[root@localhost ~]# lsmod | grep ide
ide_cd_mod             35451  2 
ide_pci_generic        12866  0 
ide_core              117252  3 ide_pci_generic,jmicron,ide_cd_mod

[root@localhost ~]# ls -l /dev/*cd*
total 0
crw-rw---- 1 root cdrom 10, 62 Apr 21 15:56 control

[root@localhost ~]# getfacl /dev/*cd*
getfacl: Removing leading '/' from absolute path names
# file: dev/pktcdvd
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

[root@localhost ~]# getfacl /dev/hda
getfacl: Removing leading '/' from absolute path names
# file: dev/hda
# owner: root
# group: disk
user::rw-
group::rw-
other::---
                                                                  
[root@localhost ~]# getfacl /dev/hdb
getfacl: Removing leading '/' from absolute path names
     # file: dev/hdb
# owner: root
# group: disk
user::rw-
group::rw-
other::---


[root@localhost ~]# cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe mpt2sas; /sbin/modprobe ahci; /sbin/modprobe ata_piix; /sbin/modprobe pata_jmicron; /bin/true                                                   
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ohci_hcd; /sbin/modprobe uhci_hcd; /sbin/modprobe xhci_hcd; /bin/true                                                     
alias sound-slot-1 snd_hda_intel
alias eth0 r8169
alias sound-slot-0 snd_hda_intel

Now I think its the fact it is placing the drives in group disk instead of cdrom.
Have tried rdloaddriver=pata_amd with no luck.

Steps to Reproduce.

1 Install then reboot.
Comment 1 Peter Wallace 2012-04-21 18:18:02 CEST
Created attachment 2060 [details]
Dmesg out put
Manuel Hiebel 2012-04-21 22:55:31 CEST

CC: (none) => mageia, thierry.vignaud, tmb

Comment 2 Colin Guthrie 2012-04-22 13:16:26 CEST
What about rdloaddriver=pata_jmicron seeing as that's what driver seems to be used for your device.

Check that this driver IS actually in your initrd first by doing:
lsinitrd | grep jmicron
Comment 3 Filip Komar 2012-04-22 13:26:04 CEST
In my opinion this is duplicate of bug 4997.

Did you try workaround from bug 4997, comment 11?

*** This bug has been marked as a duplicate of bug 4997 ***

Status: NEW => RESOLVED
CC: (none) => filip.komar
Resolution: (none) => DUPLICATE

Comment 4 Peter Wallace 2012-04-22 14:17:11 CEST
In reply to comment #2)
> What about rdloaddriver=pata_jmicron seeing as that's what driver seems to be
> used for your device.
> 
> Check that this driver IS actually in your initrd first by doing:
> lsinitrd | grep jmicron

That did it, never tried that as was loaded in modprobe.conf. 
Guess it needs it at initial boot time as to sort out the drive arrangement.
Comment 5 Colin Guthrie 2012-04-22 14:19:17 CEST
Incidentally, how was it done in modprobe.conf?

Was it via ide-controller? Can you paste the text that should do it?
Comment 6 Colin Guthrie 2012-04-22 14:38:30 CEST
Also, out of curiosity, if it is via the ide-controller thing in modprobe, does adding rdloadmodule=ide-controller work?
Comment 7 Colin Guthrie 2012-04-22 14:39:04 CEST
Sorry, I mean rdloaddriver
Comment 8 Colin Guthrie 2012-04-22 14:45:01 CEST
Actually, never mind about the rdloadmodule=ide-controller test, but I'd still be interested in your modprobe.conf line that should do this for you.
Comment 9 Peter Wallace 2012-04-22 15:17:39 CEST
My modprobe.conf output.

install scsi_hostadapter /sbin/modprobe mpt2sas; /sbin/modprobe ahci; /sbin/modprobe ata_piix; /sbin/modprobe pata_jmicron; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ohci_hcd; /sbin/modprobe uhci_hcd; /sbin/modprobe xhci_hcd; /bin/true
alias sound-slot-1 snd_hda_intel
alias eth0 r8169
alias sound-slot-0 snd_hda_intel

It does state pata_jmicron. but it only worked when I added it at boot time.

Also if I do lsmod | grep ata it states pata_jmicron isnt been used. as shown on the initial report. 

but what is missing now out of lsmod is ide_cd_mod, ide_pci_generic, ide_core.

Could it have been a conflict between modules?
Comment 10 Peter Wallace 2012-04-22 15:24:00 CEST
For got to add the out put of lsinitrd | grep jmicron

lsinitrd | grep jmicron
-rw-r--r--   1 root     root         1624 Apr 20 20:01 lib/modules/3.3.1-desktop-2.mga2/kernel/drivers/ide/jmicron.ko.xz
-rw-r--r--   1 root     root         1960 Apr 20 20:01 lib/modules/3.3.1-desktop-2.mga2/kernel/drivers/ata/pata_jmicron.ko.xz
Comment 11 Colin Guthrie 2012-04-22 15:37:05 CEST
(In reply to comment #9)
> but what is missing now out of lsmod is ide_cd_mod, ide_pci_generic, ide_core.

Well I believe that when done this way (via the pata_jmicron module) that the ide specific module are no longer needed as everything is going through the ATA layer. Assuming that everything does indeed work, then I wouldn't worry too much about those modules being missing.

We just need to find a way to actually load the module by default....

Note You need to log in before you can comment on or make changes to this bug.