kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 3.0Gb/s Hard Drive (2nd generation)

Bug #257790 reported by kc77
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
linux (Ubuntu)
Fix Released
Medium
Manoj Iyer
Jaunty
Fix Released
Medium
Manoj Iyer

Bug Description

I have M2N-SLI deluxe motherboard. In the latest linux kernels the Western Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 2nd Generation Hard Drive is not recognized by the kernel. This hard drive works in Windows and works in older kernels (Gutsy) but in Hardy it does not. This most likely effects any of the latest kernels as it effects newer versions of Clonezilla, while older versions work fine.

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description doesn't yet have enough information.
Please include as attachments, from Gutsy or Hardy, the following additional information, if you have not already done so (please pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command 'uname -a' in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command 'dmesg > dmesg.log' and attach the resulting file 'dmesg.log' to this bug report.
3. Please run the command 'sudo lspci -vvnn > lspci-vvnn.log' and attach the resulting file 'lspci-vvnn.log' to this bug report.
For your reference, the full description of procedures for kernel-related bug reports is available at https://wiki.ubuntu.com/KernelTeamBugPolicies . Thanks in advance!

Revision history for this message
kc77 (kaicrrll) wrote :

 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux

Revision history for this message
kc77 (kaicrrll) wrote :

 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux

Revision history for this message
kc77 (kaicrrll) wrote :

There's should be a total of 5 drives but I'm only seeing 4.

Changed in linux:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
kc77 (kaicrrll) wrote :

Here's Gutsy..

Linux ubuntu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linu

Revision history for this message
kc77 (kaicrrll) wrote :

Gutsy lspci

Revision history for this message
jmtash (jmtash) wrote :

This may be related to BUG# 257790
Problem: [K|U]buntu (including Live disk) does not see new SATA drive. This is a new system. Windows caught it and initialized it. Kubuntu was successfully installed on the original SATA drive. The new, second SATA drive is accessible via an external harness through the USB port, but not through the internal SATA connection to the mobo port. Swapping the cables around did not help. AWARD BIOS version is current. Others have related similar problem in the past but their various corrections escapes me. QTparted doesn't see it either. Thanks for any suggestions.

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

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
carpediemtf (carpediem-tempusfugit) wrote :

Hi
Ubuntu Hardy Heron 8.04.1 (DESKTOP and ALTERNATE) doesn 't recognize hard drive, so I can't install it, when is loading appears something like this:
ata1 : link is slow to respond please be patient (0x80)
so when I make: sfdisk -l doesn 't appear anything, the graphic interface loads well, but my hard drive is not recognize, doesn'nt appear.
with alternate CD is the same, I can't make partitions because doesn't find any HD
But in 2 or 3 times, the graphic interface didn't load, instead of that appears something like this : errno = -16 with a black background...
Well,
I tried with Parted MagiccLive Cd (kernel 2..6.24) and voilá, I can make parttitions, but that wasn't too easy to do, in normal mode I got the same error so I had to slelect FAILSAFE MODE and i got the same error (ata1 : link is slow to respond please be patient ..) many times but the process was no left until finally my hard drive was recognized so I can make partitions ext2,ext3....
is strange, Ubuntu 7.04 even 7.1 recognized my HD without problems...
specification of my HD that I got with Parted Magic live cd :

<node id="disk" claimed="true" class="disk" handle="SCSI:00:00:00:00">
<description>ATA Disk</description>
<product>WDC WD400EB-00JE</product>
<vendor>Western Digital</vendor>
<physid>0.0.0</physid>
<businfo>scsi@0:0.0.0</businfo>
<logicalname>/dev/sda</logicalname>
<dev>8d:0d</dev>
<version>13.0</version>
<serial>WD-WCAJA1025662</serial>
<size units="bytes">40020664320</size>

 <configuration>
<setting id="ansiversion" value="5"/>
<setting id="signature" value="b0ce1fde"/>
</configuration>

 <capabilities>
<capability id="partitioned">Partitioned disk</capability>
<capability id="partitioned:dos">MS-DOS partition table</capability>
</capabilities>

I atach the full file, you can read with a text editor, is xml

I'm suffering by this bug....

PD: I don't know how to make a full bug report, what command to use in live cd, even when is already installed, sorry
..but i'd learn if someone recommend me a good tutorial, i 'll understand better if is in spanish...

Revision history for this message
jmtash (jmtash) wrote :

Tried Intrepid Alpha-5. It would seem that the unrecognized SATA drive problem still remains with Intrepid and Linux Kernel 2.6.27. I include the dmesg log in the Intrepid-test file attached. Let me know what else might be needed in pursuing this matter.

Revision history for this message
kc77 (kaicrrll) wrote :

Tried Alpha 5. Unfortunately it didn't work. Here's the logs

Revision history for this message
kc77 (kaicrrll) wrote :

and the dmesg

Revision history for this message
to be removed (liw) wrote :

I seem to have the same problem, with a WD Caviar SE WD2500AAJS drive. The gutsy kernel works (for the disk), everything from hardy to jaunty beta does not.

What can I do to help get this fixed?

Revision history for this message
to be removed (liw) wrote :

My best guess as to the reason for this bug is that the kernel identifies some disks as "SEMB devices", whatever those are. See drivers/ata/libata-core.c, function ata_dev_classify (line 1082 in 2.6.27):

        if ((tf->lbam == 0x3c) && (tf->lbah == 0xc3)) {
                printk(KERN_INFO "ata: SEMB device ignored (lbam=0x%lx lbah=0x%lx\n", (unsigned long) tf->lbam, (unsigned long) tf->lbah);
                return ATA_DEV_SEMB_UNSUP; /* not yet */
        }

I modified the printk to report the values (as shown above), and got the values lbam=0x3c and lbah=0xc3. I have no idea what those mean, but maybe they're helpful.

Revision history for this message
to be removed (liw) wrote :

I realize that printing out those values wasn't altogether useful, now that I look at the actual test code.

Revision history for this message
Manoj Iyer (manjo) wrote :

can you try ata_ignore_hpa=0
or
modprobe libata ignore_hpa=0

Revision history for this message
Manoj Iyer (manjo) wrote :

oops I meant to say kernel boot option ata_ignore_hpa=0

or

you could modprobe libata ignore_hpa=0

Revision history for this message
to be removed (liw) wrote :

Suggestion from IRC was to add "iommu=soft" to kernel command line. This resulted in grub or the kernel booting right back to BIOS again. No kernel messages were visible.

Same thing happens with ata_ignore_hpa=0.

(It's a normal 3.5 inch disk, not a laptop one, in case the hpa thing refers to the hidden partitions on windows laptops.)

Revision history for this message
to be removed (liw) wrote :

I made kernel modification that forces it to treat these "SEMB" devices the same as ATAPI ones. Now my hard disk works: it shows up as a device, and I can create and use filesystems on it.

        if ((tf->lbam == 0x3c) && (tf->lbah == 0xc3)) {
#if 0
                printk(KERN_INFO "ata: SEMB device ignored\n");
                return ATA_DEV_SEMB_UNSUP; /* not yet */
#else
                DPRINTK("Pretendending SEMB device is SATA device\n");
                return ATA_DEV_ATAPI;
#endif
        }

I have no idea what this might break, but at least it would seem that this is the crucial bit of code in the kernel that causes the problem and where things need to be fixed.

I'll try returning ATA_DEV_ATA next to see if that works, too.

Revision history for this message
to be removed (liw) wrote :

I tested with ATA_DEV_ATA and the disk works with that, too.

Revision history for this message
carpediemtf (carpediem-tempusfugit) wrote : Re: [Bug 257790] Re: kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 3.0Gb/s Hard Drive (2nd generation)

I don´t know how to program -yet- but I think the solve is around the Parted
Magic, this Live Cd recognize the HD Western Digital without problems and It
can manipulate it...
Also, I could install Ubuntu 8.10 in a W. D. Hard Disk, but I had to delete
:
ro quite splash...

2009/4/2 Lars Wirzenius <email address hidden>

> I tested with ATA_DEV_ATA and the disk works with that, too.
>
> --
> kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200
> RPM SATA 3.0Gb/s Hard Drive (2nd generation)
> https://bugs.launchpad.net/bugs/257790
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” source package in Ubuntu: Triaged
>
> Bug description:
> I have M2N-SLI deluxe motherboard. In the latest linux kernels the Western
> Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 2nd Generation Hard Drive
> is not recognized by the kernel. This hard drive works in Windows and works
> in older kernels (Gutsy) but in Hardy it does not. This most likely effects
> any of the latest kernels as it effects newer versions of Clonezilla, while
> older versions work fine.
>

Revision history for this message
to be removed (liw) wrote :

carpediemtf,

at least the problem I am seeing is not related to Parted Magic (whatever that is): my disks are brand new and completely empty. It is also not related to all WD disks, some of my WD disks do work.

Revision history for this message
to be removed (liw) wrote :

The patch in the upstream bug (http://bugzilla.kernel.org/show_bug.cgi?id=11579) fixes my problem. In order for me to use my disks, I'll need an installer that includes this fix, though.

Revision history for this message
to be removed (liw) wrote :

I've made a custom version of the jaunty alternate installer based on instructions at https://help.ubuntu.com/community/InstallCDCustomization so now I can truly confirm that everything works.

It is too late to include this in the jaunty release, but perhaps it can be included in a point release. At the latest, it should be included in the karmic release, of course.

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

Thanks Lars. I'm just pasting the upstream git commit id below for the kernel team to reference. Indeed as Lars mentioned, this will be included by default in Karmic. I'll approve the Jaunty nomination for a SRU - stable release update. This patch will also likely be available in the upstream 2.6.30-rc3 mainline kernel build once it is released so you may want to keep an eye out for that to test - https://wiki.ubuntu.com/KernelMainlineBuilds

ogasawara@yoji:~/linux-2.6$ git log 79b42babbac2a5a522b8e269fb2811b6e1063030
commit 79b42babbac2a5a522b8e269fb2811b6e1063030
Author: Tejun Heo <email address hidden>
Date: Wed Apr 15 06:21:10 2009 +0900

    libata: handle SEMB signature better

    WDC WD1600JS-62MHB5 successfully hits the window between ATA/ATAPI-7
    and Serial ATA II standards and reports 3c/c3 signature which now is
    assigned to SEMB. Make ata_dev_classify() report ATA_DEV_SEMB on the
    sig and let ata_dev_read_id() work around it by trying IDENTIFY once.

    This fixes bko#11579.

    Signed-off-by: Tejun Heo <email address hidden>
    Reported-by: David Haun <email address hidden>
    Reported-by: Lars Wirzenius <email address hidden>
    Reported-by: Juan Manuel <email address hidden>
    Signed-off-by: Jeff Garzik <email address hidden>

Changed in linux:
status: Unknown → Fix Released
Manoj Iyer (manjo)
Changed in linux (Ubuntu Jaunty):
assignee: nobody → manjo
Revision history for this message
Manoj Iyer (manjo) wrote :

lars, can you please verify that the kernel in http://people.ubuntu.com/~manjo/lp257790-jaunty/ works ? I will submit for janunty sru.

Thanks

Changed in linux (Ubuntu Jaunty):
status: Triaged → Incomplete
Revision history for this message
to be removed (liw) wrote :

Manoj, the linux-image-2.6.28-11-generic_2.6.28-11.43~lp257790manjo1_amd64.deb kernel works for me.

Revision history for this message
Manoj Iyer (manjo) wrote :

in jaunty sru submit queue.

Revision history for this message
dave.shar (dave-shar-gmail) wrote :

Hi Manoj:

Hope you are well. I would like to discuss open source development with you.
If you can could you please write back with your business email address in
order to initiate a dialogue.

Best,

David

On Fri, Apr 24, 2009 at 11:33 PM, Manoj Iyer <email address hidden>wrote:

> in jaunty sru submit queue.
>
> --
> kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200
> RPM SATA 3.0Gb/s Hard Drive (2nd generation)
> https://bugs.launchpad.net/bugs/257790
> You received this bug notification because you are subscribed to Ubuntu.
>

Revision history for this message
Manoj Iyer (manjo) wrote :

SRU JUSTIFICATION:

IMPACT: Western Digital Caviar SE SATA 2nd Generation Hard Drive is not
recognized by the kernel.

FIX: Make ata_dev_classify() report ATA_DEV_SEMB on the
     sig and let ata_dev_read_id() work around it by trying IDENTIFY once.

TEST: Originator of the bug has tested the kernel in
http://people.ubuntu.com/~manjo/lp257790-jaunty/ and reported it works.

Changed in linux (Ubuntu Jaunty):
status: Incomplete → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted linux into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Steve Beattie (sbeattie)
tags: added: hw-specific
Revision history for this message
to be removed (liw) wrote :

I'm not the originator, but I am the person Manoj refers to in comment #30. I've tested the kernel from -proposed (linux-image-2.6.28-12-generic version 2.6.28-12.43), and it works for me.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.28-13.44

---------------
linux (2.6.28-13.44) jaunty-proposed; urgency=low

  [ Stefan Bader ]

  * Revert "SAUCE: [jaunty] ALSA: Add retry for Intel8x0 clock measurement"
  * Revert "SAUCE: [jaunty] ALSA: Fix clock and buffer calculations for
    Intel8x0"
  * Revert "SAUCE: [jaunty] ALSA: Fix buffer positions and checks"

linux (2.6.28-12.43) jaunty-proposed; urgency=low

  [ Amit Kucheria ]

  * Enable SYN_COOKIES for iop32x and versatile flavours
    - LP: #361687
  * SAUCE: Quirk for BT USB device on MacbookPro to be reset before use
    - LP: #332443

  [ Brad Figg ]

  * [jaunty] Add missing mvsas (Marvel SAS 6440) module configuration.
    - LP: #352336

  [ Chuck Short ]

  * SAUCE: [USB] Unusual Device support for Gold MP3 Player Energy
    - LP: #125250

  [ Daniel T Chen ]

  * SAUCE: [jaunty] ALSA: Fix buffer positions and checks
    - LP: #345627
  * SAUCE: [jaunty] ALSA: Fix clock and buffer calculations for Intel8x0
    - LP: #345627
  * SAUCE: [jaunty] ALSA: Add retry for Intel8x0 clock measurement
    - LP: #345627

  [ Luke Yelavich ]

  * disable CONFIG_SND_HDA_INPUT_BEEP on amd64 and i386
    - LP: #331589

  [ Makito SHIOKAWA ]

  * [ARM] 5404/1: Fix condition in arm_elf_read_implies_exec() to set
    READ_IMPLIES_EXEC
    - LP: #364358

  [ Manoj Iyer ]

  * SAUCE: Added quirk to fix key release for Samsung NC20
    - LP: #360247

  [ Oleg Nesterov ]

  * posix timers: fix RLIMIT_CPU && fork()
    - LP: #361508

  [ Scott James Remnant ]

  * [Config] Disable libusual and the ub driver
    - LP: #364538

  [ Stefan Bader ]

  * Disable unwanted staging builds
    - LP: #366144
  * Remove prism2_usb driver from ubuntu and use the one from staging
    - LP: #325366
  * SAUCE: Make rtl8187se depend on WIRELESS_EXT
    - LP: #366144
  * Disable CONFIG_RTL8187SE for armel.versatile
    - LP: #366144

  [ Tejun Heo ]

  * libata: handle SEMB signature better
    - LP: #257790

  [ Tim Gardner ]

  * Set USB_SERIAL=m for i386/amd64
    - LP: #345002
  * SAUCE: Jaunty - aic79xx - set reset delay to 5 seconds, down from 15.
    - LP: #79542
  * SAUCE: (drop after 2.6.28) Wifi suspend/resume scan timeout fixes
    - LP: #336055
  * Sony laptop: Sony Vaio laptops do not enable wwan power by default.
    - LP: #364678

  [ Tyler Hicks ]

  * SAUCE: (drop after 2.6.28) eCryptfs: Larger buffer for encrypted
    symlink targets
    - LP: #357345

  [ Upstream Kernel Changes ]

  * V4L/DVB (9999): gspca - zc3xx: Webcam 046d:089d added.
    - LP: #326674
  * V4L/DVB (10044): gspca - pac7311: Webcam 093a:2620 added.
    - LP: #363195
  * hwmon: (it87) Add support for the ITE IT8720F
    - LP: #357766
  * vgacon: Return the upper half of 512 character fonts
    - LP: #355057
  * drm/i915: add support for G41 chipset
    - LP: #365958

 -- Stefan Bader <email address hidden> Mon, 25 May 2009 17:30:40 +0200

Changed in linux (Ubuntu Jaunty):
status: Fix Committed → Fix Released
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Marking this Fix Released for Karmic. Thanks.

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
jmtash (jmtash) wrote : Re: [Bug 257790] Re: kernel does not recognize Western Digital Caviar SE WD3200AAJS 320GB 7200 RPM SATA 3.0Gb/s Hard Drive (2nd generation)

Yes, acknowledged. Since the last Kernel update, the new drive is
recognized and fully functioning.
Thanks to all.

Leann Ogasawara wrote:
> Marking this Fix Released for Karmic. Thanks.
>
> ** Changed in: linux (Ubuntu)
> Status: Incomplete => Fix Released
>
>

--
~~~~~~~~~~~~~~~~~~~~~
John
Linux User #480050
http://counter.li.org

Changed in linux:
importance: Unknown → Medium
Revision history for this message
Josh Lee (yushalee10) wrote :

Question- Im trying to install ubuntu server 12 lts and Im using a wd3200aajs. The installation does not recognize the drive and I cannot go any further with the installation. Setup says that I need to load the cd or usb with the driver. Is the kernel that is posted here contain the driver I need?

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.