FS#11652 - DVDs can't be mounted with IDE drives and HOOK pata

Attached to Project: Arch Linux
Opened by Heiko Baums (cyberpatrol) - Friday, 03 October 2008, 21:48 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 01 March 2009, 22:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan de Groot (JGC)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

DVDs in IDE drives can't be mounted with HOOK pata. I'm not using and I won't use hal and dbus for automounting.
With HOOK ide and on any other distributions particularly Gentoo, where I don't have pata compiled into my kernel in favour of ide, I don't have any problems with mounting the same DVDs and the same IDE drives.

With HOOK pata the device /dev/dvd0 is linked to /dev/sr0 and the device /dev/dvd1 is linked to /dev/sr1.
With HOOK ide the device /dev/dvd0 is linked to /dev/hdc and the device /dev/dvd1 is linked to /dev/hdd.

These are the lines in my /etc/fstab:
/dev/dvd0 /mnt/dvd auto ro,users,noauto 0 0
/dev/dvd1 /mnt/dvdrw auto ro,users,noauto 0 0

These are the outputs of various mount attempts:
# mount /mnt/dvd
mount: you must specify the filesystem type
# dmesg | tail
Buffer I/O error on device sr0, logical block 0
Buffer I/O error on device sr0, logical block 1
Buffer I/O error on device sr0, logical block 2
Buffer I/O error on device sr0, logical block 3
Buffer I/O error on device sr0, logical block 4
Buffer I/O error on device sr0, logical block 5
Buffer I/O error on device sr0, logical block 6
Buffer I/O error on device sr0, logical block 7
Buffer I/O error on device sr0, logical block 8
Buffer I/O error on device sr0, logical block 9


# mount -t udf /dev/sr0 /mnt/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

# dmesg | tail
sr 1:0:0:0: [sr0] Sense Key : 0x4 [current]
sr 1:0:0:0: [sr0] ASC=0x8 ASCQ=0x3
end_request: I/O error, dev sr0, sector 128
udf: Block 32 of volume descriptor sequence is corrupted or we could not read it.
sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
sr 1:0:0:0: [sr0] Sense Key : 0x4 [current]
sr 1:0:0:0: [sr0] ASC=0x8 ASCQ=0x3
end_request: I/O error, dev sr0, sector 192
udf: Block 48 of volume descriptor sequence is corrupted or we could not read it.
UDF-fs: No partition found (1)


# mount -t iso9660 /dev/sr0 /mnt/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0: can't read superblock
# dmesg | tail
end_request: I/O error, dev sr0, sector 192
udf: Block 48 of volume descriptor sequence is corrupted or we could not read it.
UDF-fs: No partition found (1)
ISO 9660 Extensions: Microsoft Joliet Level 3
sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
sr 1:0:0:0: [sr0] Sense Key : 0x4 [current]
sr 1:0:0:0: [sr0] ASC=0x8 ASCQ=0x3
end_request: I/O error, dev sr0, sector 4012
ISOFS: unable to read i-node block
isofs_fill_super: get root inode failed


Additional info:
* package version(s)
kernel26 2.6.26.5-1
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 01 March 2009, 22:07 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Saturday, 04 October 2008, 08:41 GMT
These are I/O errors. Possible explanations:
- bad DVD disk
- bad DVD reader
- bad cable
- bad IDE controler
- bad driver

I suspect it's the last one. What drivers get loaded for your IDE controler?
Comment by Tobias Powalowski (tpowa) - Saturday, 04 October 2008, 08:43 GMT
Audiocds cannot be mounted too
Comment by Heiko Baums (cyberpatrol) - Saturday, 04 October 2008, 10:25 GMT
It can't be a bad DVD disk, a bad DVD reader, a bad cable or a bad IDE controler, because then I wouldn't be able to mount the same DVDs in the same drives in the same computer with the ide HOOK and on Gentoo either.

I of course know, that Audio CDs can't be mounted, but I've written about mounting DVDs. ;-)
But I guess, that (Data) CDs can't be mounted, too, with the pata HOOK.

So I think the bad driver could probably be the problem. The problem can also be somewhere in the initcpio pata HOOK, in the kernel configuration or in the udev rules.

This is the related part of the lsmod output for pata:

sr_mod 16836 0
cdrom 36128 1 sr_mod
shpchp 31512 0
pci_hotplug 27812 1 shpchp
sg 28596 0
rtc_cmos 11424 0
rtc_core 17436 1 rtc_cmos
rtc_lib 4480 1 rtc_core
ext3 125704 2
jbd 45716 1 ext3
mbcache 8708 1 ext3
sd_mod 25240 4
pata_sis 12036 4
pata_acpi 6016 0
libata 150048 2 pata_sis,pata_acpi
scsi_mod 95692 5 usb_storage,sr_mod,sg,sd_mod,libata
dock 9488 1 libata

This is the related part of the lsmod output for ide:

sg 28596 0
sd_mod 25240 1
scsi_mod 95692 3 sg,sd_mod,usb_storage
ide_cd_mod 33668 0
cdrom 36128 1 ide_cd_mod
shpchp 31512 0
pci_hotplug 27812 1 shpchp
rtc_cmos 11424 0
rtc_core 17436 1 rtc_cmos
rtc_lib 4480 1 rtc_core
ext3 125704 2
jbd 45716 1 ext3
mbcache 8708 1 ext3
ide_disk 14208 4
sis5513 8964 0 [permanent]
ide_pci_generic 5892 0 [permanent]
ide_core 104456 4 ide_cd_mod,ide_disk,sis5513,ide_pci_generic
Comment by Jan de Groot (JGC) - Saturday, 04 October 2008, 23:04 GMT
Seems to be an issue with pata_sis and your IDE controler:
http://bugzilla.kernel.org/show_bug.cgi?id=11630
Comment by Emanuele (manu90) - Friday, 28 November 2008, 23:03 GMT
Quando verrà risolto questo problema? Io ho gli stessi identici errori citati sopra
Comment by Jud (judfilm) - Thursday, 04 December 2008, 10:25 GMT
Is this still a problem with kernel 2.6.27.7?
Comment by Thomas Bächler (brain0) - Thursday, 04 December 2008, 10:33 GMT
When I had such a board, I experienced that pata_sis was unstable. I could mount CDs/DVDs, but I was unable to use my CD writer. sis5513 worked great. I'd like to close this bug, as you can switch to the old IDE subsystem with no disadvantages.
Comment by Heiko Baums (cyberpatrol) - Thursday, 04 December 2008, 11:50 GMT
I haven't tested it with kernel 2.6.27.1 yet, but the upstream bug Jan de Groot mentioned is still open. So I guess this is still a problem with this kernel version.

Since I've already switched to IDE I wouldn't have a problem, if this bug is being closed. I'm not sure, if you shouldn't wait until the upstream bug is closed. On the other hand this is a pretty old mainboard (more than 5 years).

Loading...