Laptop freezes due to second hard drive

I recently added a new ssd to my laptop
the previous hdd went into the dvd caddy

The hdd works fine on boot but due to i/o freezes

output of:
$ dmesg | grep fail

   25.036368] iwlwifi 0000:02:00.0: pci_enable_msi failed - -22
   25.285396] thermal thermal_zone8: failed to read out thermal zone (-61)
   28.692052] ata2.00: failed command: READ FPDMA QUEUED
   46.908031] ata2.00: failed command: READ FPDMA QUEUED
   59.448098] ata2.00: failed command: READ FPDMA QUEUED

output of:

smartctl -a /dev/sdb

smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.15.6-1-default] (SUSE RPM)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org


=== START OF INFORMATION SECTION ===
Model Family:     Seagate Samsung SpinPoint M9T
Device Model:     ST2000LM003 HN-M201RAD
Serial Number:    S37PJ90H807475
LU WWN Device Id: 5 0004cf 2127078aa
Firmware Version: 2BE10001
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Mar  2 20:55:56 2018 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED


General SMART Values:
Offline data collection status:  (0x00)    Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         (21240) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      ( 354) minutes.
SCT capabilities:            (0x003f)    SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.


SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0026   055   055   000    Old_age   Always       -       19646
  3 Spin_Up_Time            0x0023   092   091   025    Pre-fail  Always       -       2445
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1821
  5 Reallocated_Sector_Ct   0x0033   252   252   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       2048
 10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1843
 13 Read_Soft_Error_Rate    0x003a   100   100   000    Old_age   Always       -       0
181 Program_Fail_Cnt_Total  0x0022   100   100   000    Old_age   Always       -       164480
191 G-Sense_Error_Rate      0x0022   252   252   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   096   096   000    Old_age   Always       -       43801
194 Temperature_Celsius     0x0002   064   053   000    Old_age   Always       -       33 (Min/Max 13/47)
195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   252   252   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   252   252   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0036   100   100   000    Old_age   Always       -       17
200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       66
240 Head_Flying_Hours       0x0032   100   100   000    Old_age   Always       -       1838
241 Total_LBAs_Written      0x0032   093   092   000    Old_age   Always       -       9692184
242 Total_LBAs_Read         0x0032   097   093   000    Old_age   Always       -       4334577
254 Free_Fall_Sensor        0x0032   252   252   000    Old_age   Always       -       0


SMART Error Log Version: 1
No Errors Logged


SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      2048         -
# 2  Short offline       Completed without error       00%      2048         -
# 3  Extended offline    Aborted by host               80%      1823         -
# 4  Extended offline    Completed without error       00%      1614         -
# 5  Extended offline    Aborted by host               90%      1314         -
# 6  Extended offline    Aborted by host               80%      1062         -
# 7  Short offline       Aborted by host               90%      1049         -
# 8  Short offline       Aborted by host               90%      1049         -
# 9  Short offline       Aborted by host               90%      1049         -
#10  Short offline       Completed without error       00%       863         -
#11  Short offline       Aborted by host               90%       863         -
#12  Short offline       Aborted by host               90%       776         -
#13  Short offline       Completed without error       00%       776         -
#14  Short offline       Aborted by host               90%       775         -
#15  Short offline       Aborted by host               90%       775         -
#16  Short offline       Aborted by host               90%       775         -
#17  Extended offline    Completed without error       00%       712         -
#18  Short offline       Completed without error       00%       387         -
#19  Short offline       Aborted by host               90%       387         -
#20  Short offline       Aborted by host               60%       387         -
#21  Short offline       Aborted by host               90%       387         -


SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Completed [00% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

I have tried re seating and reconnecting the drive.

On Fri 02 Mar 2018 06:06:01 PM CST, K380 wrote:

I recently added a new ssd to my laptop
the previous hdd went into the dvd caddy

The hdd works fine on boot but due to i/o freezes
<snip>

Hi
The port your connecting to may not be designed for the HDD power
requirements… the SSD will possibly work better in the caddy…


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.3|GNOME 3.20.2|4.4.114-42-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

I successfully swapped the drives.
The grub config broke and now boots to grub shell.
After manually booting, it ends in rescue shell from where I logged in as root and found the same errors in dmesg logs.

Hi
Not seeing the old error, or did it move to ata1?

output of:


linux-9tk6:~ # dmesg | grep fail
   20.642956] iwlwifi 0000:02:00.0: pci_enable_msi failed - -22
   20.971597] thermal thermal_zone8: failed to read out thermal zone (-61)
   50.856186] ata2.00: failed command: READ FPDMA QUEUED

Is it the caddy?

Hi
I would suspect it is, if you look at the output of hwinfo --disk to see what’s attached to what (SysFS Device Link).

So this new output is from the SSD?

I think yes…
output of:

hwinfo --disk

21: IDE 100.0: 10600 Disk                                                                                                                                                                                                                                                          
  [Created at block.245]                                                                                                                                                                                                                                                          
  Unique ID: WZeP.b60ouTmxJwE                                                                                                                                                                                                                                                     
  Parent ID: abAj.vLABPIFBzh8                                                                                                                                                                                                                                                     
  SysFS ID: /class/block/sdb                                                                                                                                                                                                                                                      
  SysFS BusID: 1:0:0:0                                                                                                                                                                                                                                                            
  SysFS Device Link:  /devices/pci0000:00/0000:00:17.0/ata2/host1/target1:0:0/1:0:0:0                                                                                                                                                                                              
  Hardware Class: disk                                                                                                                                                                                                                                                            
  Model: "WDC WDS240G2G0A-"                                                                                                                                                                                                                                                       
  Vendor: "WDC"                                                                                                                                                                                                                                                                   
  Device: "WDS240G2G0A-"                                                                                                                                                                                                                                                          
  Revision: "0000"                                                                                                                                                                                                                                                                
  Serial ID: "174427801462"                                                                                                                                                                                                                                                       
  Driver: "ahci", "sd"                                                                                                                                                                                                                                                            
  Driver Modules: "ahci"                                                                                                                                                                                                                                                          
  Device File: /dev/sdb                                                                                                                                                                                                                                                           
  Device Files: /dev/sdb,  /dev/disk/by-id/ata-WDC_WDS240G2G0A-00JH30_174427801462,  /dev/disk/by-id/scsi-0ATA_WDC_WDS240G2G0A-_174427801462,  /dev/disk/by-id/scsi-1ATA_WDC_WDS240G2G0A-00JH30_174427801462,  /dev/disk/by-id/scsi-35001b448b668d519,  /dev/disk/by-id/scsi-SATA_WDC_WDS240G2G0A-_174427801462,  /dev/disk/by-id/wwn-0x5001b448b668d519,  /dev/disk/by-path/pci-0000:00:17.0-ata-2                                                                                                                                                                    
  Device Number: block 8:16-8:31                                                                                                                                                                                                                                                  
  BIOS id: 0x80                                                                                                                                                                                                                                                                   
  Geometry (Logical): CHS 29186/255/63                                                                                                                                                                                                                                            
  Size: 468877312 sectors a 512 bytes                                                                                                                                                                                                                                             
  Capacity: 223 GB (240065183744 bytes)                                                                                                                                                                                                                                           
  Config Status: cfg=new, avail=yes, need=no, active=unknown                                                                                                                                                                                                                      
  Attached to: #10 (SATA controller)                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                  
22: IDE 00.0: 10600 Disk                                                                                                                                                                                                                                                          
  [Created at block.245]                                                                                                                                                                                                                                                          
  Unique ID: 3OOL.ZoE9_umyrt3                                                                                                                                                                                                                                                     
  Parent ID: abAj.vLABPIFBzh8                                                                                                                                                                                                                                                     
  SysFS ID: /class/block/sda                                                                                                                                                                                                                                                      
  SysFS BusID: 0:0:0:0                                                                                                                                                                                                                                                            
  SysFS Device Link:  /devices/pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0                                                                                                                                                                                              
  Hardware Class: disk                                                                                                                                                                                                                                                            
  Model: "ST2000LM003 HN-M"                                                                                                                                                                                                                                                       
  Vendor: "ST2000LM003"                                                                                                                                                                                                                                                           
  Device: "HN-M"                                                                                                                                                                                                                                                                  
  Revision: "0001"                                                                                                                                                                                                                                                                
  Serial ID: "S37PJ90H807475"
  Driver: "ahci", "sd"
  Driver Modules: "ahci"
  Device File: /dev/sda
  Device Files: /dev/sda,  /dev/disk/by-id/ata-ST2000LM003_HN-M201RAD_S37PJ90H807475,  /dev/disk/by-id/scsi-0ATA_ST2000LM003_HN-M_S37PJ90H807475,  /dev/disk/by-id/scsi-1ATA_ST2000LM003_HN-M201RAD_S37PJ90H807475,  /dev/disk/by-id/scsi-350004cf2127078aa,  /dev/disk/by-id/scsi-SATA_ST2000LM003_HN-M_S37PJ90H807475,  /dev/disk/by-id/wwn-0x50004cf2127078aa,  /dev/disk/by-path/pci-0000:00:17.0-ata-1
  Device Number: block 8:0-8:15
  BIOS id: 0x81
  Geometry (Logical): CHS 243201/255/63
  Size: 3907029168 sectors a 512 bytes
  Capacity: 1863 GB (2000398934016 bytes)
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #10 (SATA controller)


Hi
Is ncq enable in the BIOS… sounds like disabling that may resolve the issue;
Ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/550559

I did not find the option to disable ncq in bios but to disable
ncq I added “libata.force=2:noncq” to kernel options.
(acc. to Comment #126 : Bug #550559 : Bugs : linux package : Ubuntu)

Now the errors seem to have gone.
Thanks for the assistance.