#StackBounty: #boot #hard-drive #sata Slow Ubuntu Boot [ata2: SRST failed (errno=-16)] and [ata2: reset failed, giving up]

Bounty: 100

This Motherboard with a triple boot setup, booting in AHCI mode

Here is the relevant message (pulled from dmesg), note the long delay in timestamp between them:

[    6.528119] ata2: link is slow to respond, please be patient (ready=-19)
[   11.028120] ata2: SRST failed (errno=-16)
[   16.540117] ata2: link is slow to respond, please be patient (ready=-19)
[   21.040117] ata2: SRST failed (errno=-16)
[   26.552117] ata2: link is slow to respond, please be patient (ready=-19)
[   56.072118] ata2: SRST failed (errno=-16)
[   56.072125] ata2: limiting SATA link speed to 1.5 Gbps
[   61.104117] ata2: SRST failed (errno=-16)
[   61.104142] ata2: reset failed, giving up

Seems to work fine on Windows. It’s just an Ubuntu issue.

All my drives seem firmly connected, with no jumpers, most are SSD but some are IDE. I have like 6 drives. One is a Hackintosh (Mac GPT drive) and another is Windows. One SSD is connected via eSATA

I don’t know if ata2 is the same as /dev/sdb but if it is, this may be interesting:

$ sudo fsck /dev/sdb                                                                                         
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a gpt partition table in /dev/sdb

A commentary on the cause: https://www.redhat.com/archives/rhl-list/2006-October/msg03892.html

Because it’s a GPT hackintosh drive:

$ sudo gdisk /dev/sdb -l
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Model: ST31000524AS    
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 384E6D96-A1EE-4D32-8FE5-14B63E4BF049
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 8-sector boundaries
Total free space is 262157 sectors (128.0 MiB)

Verify disk passes:

$ sudo gdisk /dev/sdb
$ v
No problems found. 262157 free sectors (128.0 MiB) available in 2
segments, the largest of which is 262151 (128.0 MiB) in size.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.