Kernel 2.6.15-7-686 won't boot with root on SATA disk

Bug #26940 reported by Ondřej Surý
6
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Won't Fix
Medium
Ben Collins
linux-source-2.6.17 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

With following hardware:
0000:00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6
Family) IDE Controller (rev 03)
0000:00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller
(rev 03)
kernel won't boot, but instead fall to shell after several minutes with message
that it cannot find root. After some time and trying to 'modprobe libata' SATA
controller is detected and after quiting shell kernel is loaded.

My root is /dev/sda1 and thus detected as SCSI according to /scripts/init-premount/

Revision history for this message
Ondřej Surý (ondrej) wrote :

Oh, and I forget to specify kernel version, it's 2.6.15-7.9.

Revision history for this message
Chuck Short (zulcss) wrote :

Please try the newer version in dapper.

Thanks
chuck

Revision history for this message
Chuck Short (zulcss) wrote :

No response, closing.

Revision history for this message
Ondřej Surý (ondrej) wrote :

With 2.6.15-25-686 it takes incredibly long time in "Waiting for root filesystem".
I am trying to find a way ho

Revision history for this message
Ondřej Surý (ondrej) wrote :

With 2.6.15-25-686 it takes incredibly long time in "Waiting for root filesystem".
I am trying to find a way how to attach bootchart picture here.... ok, it's at http://www.rfc1925.org/dapper-20060624-1.png.bz2

Changed in linux-meta:
status: Needs Info → Unconfirmed
Revision history for this message
Ondřej Surý (ondrej) wrote :

Uncompressed picture can be found at http://www.rfc1925.org/dapper-20060624-1.png (size difference is neglible on normal internet connection).

Revision history for this message
Ben Collins (ben-collins) wrote :

Can you provide /etc/fstab, and /proc/mounts?

I suspect you are just having a problem with sda vs. hda.

Revision history for this message
Ondřej Surý (ondrej) wrote :

root@ookami:~# cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw 0 0
none /proc proc rw,nodiratime 0 0
udev /dev tmpfs rw 0 0
/dev/sda1 / ext3 rw,noatime,data=ordered 0 0
/dev/sda1 /dev/.static/dev ext3 rw,noatime,data=ordered 0 0
tmpfs /var/run tmpfs rw 0 0
tmpfs /var/lock tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
tmpfs /lib/modules/2.6.15-25-686/volatile tmpfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /var/run tmpfs rw 0 0
tmpfs /var/lock tmpfs rw 0 0
/dev/sda5 /home xfs rw,noatime,nosuid,nodev 0 0
/dev/sda2 /windows ntfs ro,noatime,nodiratime,uid=1000,gid=1000,fmask=0333,dmask=0222,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
root@ookami:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 noatime,errors=remount-ro 0 1
/dev/sda5 /home xfs noatime,nodev,nosuid 0 2
/dev/sda2 /windows ntfs defaults,ro,nls=utf8,uid=1000,gid=1000,dmask=0222,fmask=0333 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
//pagan/downloads /mnt/downloads smbfs noauto,username=ondrej,password=Iemo2Uwi,workgroup=RFC1925,uid=1000,gid=1000,iocharset=utf-8,ro,ip=87.236.198.133,port=10445 0 0

Revision history for this message
Ondřej Surý (ondrej) wrote :

BTW adding ahci to /etc/mkinitramfs/modules and regenerating /boot/initrd-whatever-kernel-version-is does help. See any of:
<<EOF xargs -i wget www.rfc1925.org/{}
dapper-20060625-1.png
dapper-20060626-1.png
dapper-20060627-1.png
dapper-20060627-2.png
EOF

Revision history for this message
Ben Collins (ben-collins) wrote :

Likely fixed in edgy, please test.

Revision history for this message
Ondřej Surý (ondrej) wrote :

Nope, it's not. See the very long delay between 4th and 5th line:

[17179579.088000] SCSI subsystem initialized
[17179579.088000] libata version 1.20 loaded.
[17179579.088000] ahci 0000:00:1f.2: version 1.2
[17179579.088000] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 18 (level, low) -> IRQ 201
[17179652.820000] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[17179652.820000] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0x5 impl IDE mode
[17179652.820000] ahci 0000:00:1f.2: flags: 64bit ncq pm led pmp slum part

Changed in linux-source-2.6.15:
status: Unconfirmed → Confirmed
Changed in linux-source-2.6.17:
importance: Untriaged → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Ondřej Surý (ondrej) wrote :

Fixed in 2.6.17-6.18, there is still very short delay, but I guess it's normal.

Changed in linux-source-2.6.17:
status: Confirmed → Fix Released
Revision history for this message
Ondřej Surý (ondrej) wrote :

Now it behaves just strange on lastest edgy kernel, sometimes it does boot fast, but more often there is long delay before SATA disks are brought up, see todays boot dmesg snippet:

[17179572.852000] SCSI subsystem initialized
[17179572.852000] libata version 1.20 loaded.
[17179572.852000] ahci 0000:00:1f.2: version 1.2
[17179572.852000] ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 18 (level, low) -> IRQ 201
[17179654.724000] PCI: Setting latency timer of device 0000:00:1f.2 to 64
[17179654.724000] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0x5 impl IDE mode
[17179654.724000] ahci 0000:00:1f.2: flags: 64bit ncq pm led pmp slum part
[17179654.724000] ata1: SATA max UDMA/133 cmd 0xF8864500 ctl 0x0 bmdma 0x0 irq 201
[17179654.724000] ata2: SATA max UDMA/133 cmd 0xF8864580 ctl 0x0 bmdma 0x0 irq 201
[17179654.724000] ata3: SATA max UDMA/133 cmd 0xF8864600 ctl 0x0 bmdma 0x0 irq 201
[17179654.724000] ata4: SATA max UDMA/133 cmd 0xF8864680 ctl 0x0 bmdma 0x0 irq 201
[17179655.980000] ata1: SATA link up 1.5 Gbps (SStatus 113)

Changed in linux-source-2.6.17:
status: Fix Released → Confirmed
Revision history for this message
Ben Collins (ben-collins) wrote :

But it does boot on edgy, correct? I believe the latest changes I put in edgy (today, upload later) will fix the delay.

Changed in linux-source-2.6.17:
status: Confirmed → Fix Released
Revision history for this message
Ondřej Surý (ondrej) wrote :

Yes, it's fixed in edgy. Thanks

Revision history for this message
Martin Pitt (pitti) wrote :

Ben, are the changes in comment 14 sufficient for solving this? Are they appropriate for an SRU? What is the diff?

Changed in linux-source-2.6.15:
assignee: nobody → ben-collins
status: Confirmed → Incomplete
Revision history for this message
Martin Pitt (pitti) wrote :

We will not fix this in dapper. Fixing this properly is too intrusive for a stable release according to Ben Collins, and there are no duplicates or other subscribers.

Changed in linux-source-2.6.15:
status: Incomplete → Won't Fix
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.