IDE disks not found by linux 2.6.24 (but are working fine in gutsy)

Bug #182949 reported by Anders
This bug report is a duplicate of:  Bug #106931: Unable to detect ITE8212 RAID0 array. Edit Remove
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: linux-source-2.6.24

I recently upgraded to Ubuntu 8.04 (hardy) but when booting the system no longer sees my two 320 Gb IDE drives.

The disks are connected to a IT8212 IDE-RAID PCI card but are not in a RAID configuration. This configuration works fine in Gutsy. I initially suspected this to be a duplicate of Bug #97325 (related to uuid confusion on kernel upgrade) but it appears to be a different beast. The failure is serious, as upon not finding the disks, fsck fails on boot and starts a root-shell with no further information to the user.

The problem is reproducible and a number of reboots can be seen in the attached messages and syslog files. I suspect the offending lines are these (extract form messages):

Jan 6 22:09:09 plasken kernel: [ 53.313304] ata3.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (625142448)
Jan 6 22:09:09 plasken kernel: [ 53.313308] ata3.00: ATA-6: WDC WD3200SB-01KMA0, 08.05J08, max UDMA/100
Jan 6 22:09:09 plasken kernel: [ 53.313311] ata3.00: 625142448 sectors, multi 0: LBA48
Jan 6 22:09:09 plasken kernel: [ 53.313313] ata3.00: Drive reports diagnostics failure. This may indicate a drive
Jan 6 22:09:09 plasken kernel: [ 53.313315] ata3.00: fault or invalid emulation. Contact drive vendor for information.
Jan 6 22:09:09 plasken kernel: [ 53.313321] ata3.00: configured for DMA
Jan 6 22:09:09 plasken kernel: [ 53.393128] usbcore: registered new interface driver libusual
Jan 6 22:09:09 plasken kernel: [ 53.398668] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Jan 6 22:09:09 plasken kernel: [ 53.398672] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Jan 6 22:09:09 plasken kernel: [ 53.400192] Initializing USB Mass Storage driver...
Jan 6 22:09:09 plasken kernel: [ 53.632737] usb 2-2: new full speed USB device using uhci_hcd and address 2
Jan 6 22:09:09 plasken kernel: [ 53.917827] usb 2-2: configuration #1 chosen from 1 choice
Jan 6 22:09:09 plasken kernel: [ 53.921977] scsi4 : SCSI emulation for USB Mass Storage devices
Jan 6 22:09:09 plasken kernel: [ 53.922062] scsi5 : SCSI emulation for USB Mass Storage devices
Jan 6 22:09:09 plasken kernel: [ 54.184448] usb 6-2.4.1: new low speed USB device using ehci_hcd and address 6
Jan 6 22:09:09 plasken kernel: [ 54.281183] usb 6-2.4.1: configuration #1 chosen from 1 choice
Jan 6 22:09:09 plasken kernel: [ 54.282745] usbcore: registered new interface driver usb-storage
Jan 6 22:09:09 plasken kernel: [ 54.282749] USB Mass Storage support registered.
Jan 6 22:09:09 plasken kernel: [ 54.292322] usbcore: registered new interface driver hiddev
Jan 6 22:09:09 plasken kernel: [ 54.294793] input: NOVATEK USB Keyboard as /class/input/input2
Jan 6 22:09:09 plasken kernel: [ 54.294819] input: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:1a.7-2.4.1
Jan 6 22:09:09 plasken kernel: [ 54.299755] input: NOVATEK USB Keyboard as /class/input/input3
Jan 6 22:09:09 plasken kernel: [ 54.299814] input,hiddev96: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1a.7-2.4.1
Jan 6 22:09:09 plasken kernel: [ 54.299825] usbcore: registered new interface driver usbhid
Jan 6 22:09:09 plasken kernel: [ 54.299830] /build/buildd/linux-source-2.6.22-2.6.22/drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Jan 6 22:09:09 plasken kernel: [ 54.484081] ata4.00: ata_hpa_resize 1: hpa sectors (0) is smaller than sectors (625142448)
Jan 6 22:09:09 plasken kernel: [ 54.484084] ata4.00: ATA-6: WDC WD3200SB-01KMA0, 08.05J08, max UDMA/100
Jan 6 22:09:09 plasken kernel: [ 54.484087] ata4.00: 625142448 sectors, multi 0: LBA48
Jan 6 22:09:09 plasken kernel: [ 54.484089] ata4.00: Drive reports diagnostics failure. This may indicate a drive
Jan 6 22:09:09 plasken kernel: [ 54.484091] ata4.00: fault or invalid emulation. Contact drive vendor for information.
Jan 6 22:09:09 plasken kernel: [ 54.484097] ata4.00: configured for DMA

Revision history for this message
Anders (andersja+launchpad-net) wrote :
Revision history for this message
Anders (andersja+launchpad-net) wrote :
Revision history for this message
Anders (andersja+launchpad-net) wrote :

Please let me know any additional information / log files / etc you may require.

My motherboard is a Gigabyte GA-965P-DS3
The disks are both Wester Digital IDE drives "WDC WD3200SB-01KMA0"
The PCI card is of type IT8212 ( http://en.wikipedia.org/wiki/IT8212 )

Revision history for this message
Anders (andersja+launchpad-net) wrote :

Possibly related: Bug #106931 (see user reporting libata problems in hardy kernel here: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.24/+bug/106931/comments/23 )

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Per the kernel team's bug policy, can you please attach the following information. Please be sure to attach each file as a separate attachment.

* uname -a > uname-a.log
* cat /proc/version_signature > version.log
* dmesg > dmesg.log
* sudo lspci -vvnn > lspci-vvnn.log

For more information regarding the kernel team bug policy, please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks again and we appreciate your help and feedback.

Changed in linux:
status: New → Incomplete
Revision history for this message
Anders (andersja+launchpad-net) wrote :

Files attached as requested. I hope this helps.

Revision history for this message
Anders (andersja+launchpad-net) wrote :
Revision history for this message
Anders (andersja+launchpad-net) wrote :
Revision history for this message
Anders (andersja+launchpad-net) wrote :
Changed in linux:
status: Incomplete → Confirmed
Revision history for this message
Anders (andersja+launchpad-net) wrote :
Revision history for this message
Anders (andersja+launchpad-net) wrote :

I am very happy to help debug this issue. According to the above bugzilla posting ( http://bugzilla.kernel.org/show_bug.cgi?id=9587#c2 ) there appears to be some known issues around the correct detection og the it821x module?

Please advise any steps I can take to help the kernel team debug/test/fix this as it will certainly be an issue for other Hardy users as release date approaches? Thanks!

Revision history for this message
Anders (andersja+launchpad-net) wrote :

Apparently similar problems with pata_it821x for SUSE users:
http://forums.suselinuxsupport.de/index.php?showtopic=62035&mode=threaded&pid=252321

Some Ubuntuforum users with similar problems, hacks and workarounds:
http://ubuntuforums.org/showthread.php?t=431781&page=3

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Anders,

Another simpler task would be to continually test the newer kernel releases that come out. As of this post I see that the latest published ubuntu kernel is 2.6.24-5.9 (https://launchpad.net/ubuntu/+source/linux).

And if you're comfortable building your own kernels, it would be helpful to test the patch referenced in the upstream bugzilla report you referenced. Thanks.

Thanks!

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Anders (andersja+launchpad-net) wrote :

I can confirm that upgrading to 2.6.24-5.9 does not solve the problem. However, the workaround described by forum user pefdus in this ubuntuforum post works: http://ubuntuforums.org/showpost.php?p=4001806&postcount=23

add the following to /etc/modprobe.d/options

options pata_it821x noraid=1

Now, once you have that, recreate the initramfs so that the "setting" is available on the initial boot (before the drives are booted and mounted).

update-initramfs -k all -c -t -v

I assume this is not a fix for the underlying issue (problems with the handling of it8212 cards) but for users with individual disks, not RAIDs, it seems to work.

Revision history for this message
Ahmad Gharbeia أحمد غربية (gharbeia) wrote :

I'm confirming this bug report. It is not specific to RAID as bug #106931 may imply, nor it is specific to SATA as bug #219312 may imply.

My system (dual PIII/VIA) has two hard drives; on ide0 is WD800BB-00DKA0 (ata1.00), and HP CD-Writer Plus 9300 (ata1.01); and on ide1 is WD1600BB-00GUC0 (ata2).

Running kernel 2.6.24-16 (after having updated from Gutsy to Hardy), only the first hard drive is recognised; and even then as "sda", when in fact it is not SCSI nor SATA, and should be "hda".

Disabling the CD-Writer seems to have no effect.

Attached are the outputs of fdisk and lspci, and kernel messages for kernel 2.6.24-16, as well as fdisk output and kernel messages for kernel 2.6.22-14 (marked in the filenames) for comparison, where drives were recognised as expected in the older kernel.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.