Bug 8935
Summary: | Kernel incorrectly chooses external drive as /dev/sda on approx. 70% of boots | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Tristan Schmelcher (tristan_schmelcher) |
Component: | Serial ATA | Assignee: | Tejun Heo (htejun) |
Status: | REJECTED INVALID | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.22 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
This is the output of "dmesg" from one of the boots when it made the wrong choice for /dev/sda.
Output of "dmesg" after a boot with the correct /dev/sda choice This is the output of "dmesg" from one of the boots when it made the wrong choice for /dev/sda. |
Description
Tristan Schmelcher
2007-08-24 16:11:20 UTC
Created attachment 12522 [details]
This is the output of "dmesg" from one of the boots when it made the wrong choice for /dev/sda.
Btw, the "70%" comes from 10 test boots that I did, 7 of which produced the bug. Please post dmesg from a successful boot. Created attachment 12554 [details]
Output of "dmesg" after a boot with the correct /dev/sda choice
Created attachment 12555 [details]
This is the output of "dmesg" from one of the boots when it made the wrong choice for /dev/sda.
I noticed that my original dmesg post had the beginning cut off. That seems to be a limitation of the dmesg binary found in the initrd. I did it again and this time used the dmesg binary from within my real /dev/sda, which got the whole thing. This is it.
(Getting the new attachments took 6 boots, 1 of which worked, so the new percentage is 12/16 = 75%.) Your problem is caused by indeterminate module loading order. Sometimes ata_piix is loaded before ahci while at other times ahci is loaded first. This of course results in different detection order and device name assignment. * Please file a bug against your distro. Kernel and drivers aren't the problem here. Your distro's module loader (probably in initrd) is screwing things up. * Use mount-by-label or UUID. Thank you, I will communicate that to my distro. Sorry for the noise. |