LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-02-2021, 02:52 AM   #1
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Rep: Reputation: Disabled
Question Understanding dmesg output error: ata1.00: speed down requested but no transfer mode left


PC Details:
> Dell Precision 390n
> CentOS 4.6
> Kernel version: 2.6.9-67.ELhugemem
> WD Green SSD WDS120G2G0A

Background:
Original disk installed was a HDD. I upgraded to SSD last 2 months ago. Suddenly, the PC encountered weird issue.
I cannot open new shell terminal. So I decided to reboo. During bootup, after the message: Redhat nash version 4.2.1.13 starting..
I encountered these messages:

Code:
ata1.00: failed to set xfermode (err_mask=0x101)
ata1: port failed to respond (30 secs, Status 0x80)
Then those messages repeated, then encountered many errors:

Code:
*** An error occured during the file system check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance (or type Control-D to continue)
If I perform ctrl-D, it just reboots right away. If I input the root password, I go to a prompt: (Repair filesystem) 1#
I think this is equivalent to single user mode. I can browse my local files, but cannot modify/write.
Then the dmesg command output shows repeated messages like this:

Code:
ata1.00: speed down requested but no transfer mode left
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: (irq_stat 0x40000001)
ata1.00: cmd c5/00:08:d9:9b:a7/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 out
         res 51/04:08:d9:9b:a7/00:00:00:00:00/e0 Emask 0x1 (device error)
ata1.00: configured for PIO0
ata1: EH complete
SCSI device sda: drive cache: write back
ata1.00: speed down requested but no transfer mode left
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: (irq_stat 0x40000001)
ata1.00: cmd c5/00:08:d9:9b:a7/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 out
         res 51/04:08:d9:9b:a7/00:00:00:00:00/e0 Emask 0x1 (device error)
ata1.00: configured for PIO0
ata1: EH complete
...
...Then it just repeats the same block of messages
...
SCSI device sda: 234455040 512-byte hdwr sectors (120041 MB)
ata1.00: speed down requested but no transfer mode left
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: (irq_stat 0x40000001)
ata1.00: cmd c5/00:08:d9:9b:a7/00:00:00:00:00/e0 tag 0 cdb 0x0 data 4096 out
         res 51/04:08:d9:9b:a7/00:00:00:00:00/e0 Emask 0x1 (device error)
ata1.00: configured for PIO0
SCSI error : <0 0 0 0> return code = 0x8000002
Invalid sda: sense key No Sense
end_request: I/O error, dev sda, sector 10984409
ata1: EH complete
ata1.00: speed down requested but no transfer mode left
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata1.00: (irq_stat 0x40000001)
ata1.00: cmd c5/00:18:f1:9f:a7/00:00:00:00:00/e0 tag 0 cdb 0x0 data 12288 out
         res 51/04:18:f1:9f:a7/00:00:00:00:00/e0 Emask 0x1 (device error)
ata1.00: configured for PIO0
ata1: EH complete
...
...
...
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
inserting floppy driver for 2.6.9-67.ELhugemem
floppy0: no floppy controllers found
tg3.c:v3.77 (May 31, 2007)
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:05:00.0 to 64
divert: allocating divert_blk for eth0
...
...
...
I tried to go to BIOS, the link speed detected is 3.0Gbps. I enabled the SMART Reporting Logging,
When I try to bootup, I have these messages:

Code:
NOTICE – Drive 0: Serial ATA, SATA-0
Hard Drive SELF MONITORING SYSTEM has reported
That a parameter has exceeded its normal operating range.
Dell recommends that you back up your data regularly.
I'm not good at Linux, but my theory is that the system has requested the SSD to speed down, but somehow failed to do it. And because of this, the pc is not booting up normally. I cannot go the desktop GUI, X server cannot start. I can only brows via CLI environment.
I'd appreciate you guys if you help me understand what might happened and if you can share possible fix for this.. Thank you!

Last edited by L1P0; 08-03-2021 at 09:56 PM.
 
Old 08-02-2021, 07:20 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,515

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
You're dmesg outputs are very concise, which gives no context really for knowing what the box was thionking. I'd ask for a few more lines before and after (If relevant). Obviously if it's rabbiting on about the mouse or something, it's not relevant.

It would be good to know why X doesn't start. Xorg.0.log is the file to find, often in /var/log. It's always the error near the end, but give a little context.
 
Old 08-02-2021, 07:14 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Is / mounted RW? I have to guess not. X won't start if / isn't writable. I also have to guess there's some low level functionality in that WD SSD's firmware that isn't supported by your ancient kernel and SATA support system.
 
Old 08-03-2021, 10:01 PM   #4
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
You're dmesg outputs are very concise, which gives no context really for knowing what the box was thionking. I'd ask for a few more lines before and after (If relevant). Obviously if it's rabbiting on about the mouse or something, it's not relevant.

It would be good to know why X doesn't start. Xorg.0.log is the file to find, often in /var/log. It's always the error near the end, but give a little context.
I have edited my original post to add more lines for dmesg output. I tried to look at the Xorg logfile, but it seems no useful indicators are there and also the last write time of the logfile was weeks ago. (BTW this PC is used in our workplace, and it normally runs continuously. When HDD was still installed, I have not encountered this kind of problem during that time.)
 
Old 08-03-2021, 10:18 PM   #5
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Is / mounted RW? I have to guess not. X won't start if / isn't writable. I also have to guess there's some low level functionality in that WD SSD's firmware that isn't supported by your ancient kernel and SATA support system.
Here's some of the output of mount command after booting to single user mode:

Code:
/dev/sda3 on / type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
So the PC reports that / is mounted with read-write access. But when I try to create a file in my home directory or anywhere else locally (I am logged in as root here), the system returns an error:

Code:
touch: cannot touch 'foo' : Read-only file system
mkdir: cannot create directory 'foo' : Read-only file systemt
I cannot also modify existing files.


If there is a compatibility issue with WD SSD firmware, how come it ran normally for the last 2 months?
 
Old 08-03-2021, 11:55 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
If you don't find a current Xorg.0.log in /var/log/, look for it ~/.local/share/xorg/.
 
Old 08-04-2021, 12:01 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
When was your kernel last updated? Do you experience the same problems booting a previous kernel?
 
Old 08-04-2021, 12:19 AM   #8
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
If you don't find a current Xorg.0.log in /var/log/, look for it ~/.local/share/xorg/.
Such folder does not exist in this PC. I also used locate command to find Xorg.0.log, only under /var/log directory they reside.
 
Old 08-04-2021, 12:21 AM   #9
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
When was your kernel last updated? Do you experience the same problems booting a previous kernel?
It has never been updated. Everything that is running in the PC are defaults. This PC is never connected to internet.
 
Old 08-06-2021, 01:17 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
You may have an SSD gone bad. Try smartctl -x /dev/sda to check for errors. You may need to run smartctl -t long /dev/sda and wait the designated time first.

Given the age of your OS, I suspect you'll attract little to no attention from anyone knowledgeable of any specifics of your OS to provide any better help.
 
Old 08-06-2021, 08:56 AM   #11
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
I believe proper support for SSDs didn't exist before kernel 3.2. See:

https://wiki.debian.org/%20SSDOptimization%20

That old kernel of yours may not support trim operations which are essential for SSD maintenance. If you have the fstrim utility on your system, you can try running it and see if that helps:
Code:
# fstrim -a
 
2 members found this post helpful.
Old 08-09-2021, 08:59 PM   #12
L1P0
Member
 
Registered: Dec 2019
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kilgoretrout View Post
I believe proper support for SSDs didn't exist before kernel 3.2. See:

https://wiki.debian.org/%20SSDOptimization%20

That old kernel of yours may not support trim operations which are essential for SSD maintenance. If you have the fstrim utility on your system, you can try running it and see if that helps:
Code:
# fstrim -a
Unfortunately, there's no fstrim utility here. Thanks for that link. That was helpful.
 
Old 08-12-2021, 05:34 PM   #13
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Quote:
Unfortunately, there's no fstrim utility here. Thanks for that link. That was helpful.
You could try booting from a recent linux livecd like knoppix, mount all linux filesystems on the SSD and then run fstrim. Note, linux partitions on the SSD must be mounted for fstrim -a to work.
 
Old 08-12-2021, 06:43 PM   #14
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Quote:
Originally Posted by L1P0 View Post
I tried to go to BIOS, the link speed detected is 3.0Gbps. I enabled the SMART Reporting Logging,
When I try to bootup, I have these messages:

Code:
NOTICE – Drive 0: Serial ATA, SATA-0
Hard Drive SELF MONITORING SYSTEM has reported
That a parameter has exceeded its normal operating range.
Dell recommends that you back up your data regularly.
That's a message directly from the SMART monitoring code in the BIOS.

Without more detailed information on which SMART parameters the BIOS is referring to, it's impossible to say definitely what the problem is. But the BIOS wouldn't print a warning like that for something trivial, so it's fair to assume that your hard drive is about to die, or that it may actually be dead already.
Quote:
Originally Posted by L1P0 View Post
I'm not good at Linux, but my theory is that the system has requested the SSD to speed down, but somehow failed to do it.
No, that has nothing to do with it. The drive itself is reporting that it has issues.

But the cause of the problem could be somewhat related to Linux. As another poster pointed out, you may have been running a Linux distribution without "trim" support. That's a terrible idea if you're using an SSD, and is likely to significantly shorten the life of the drive. But running "fstrim" now is unfortunately not going to solve anything.

Boot from a live distribution, run smartctl -a /dev/sda, and post the results.
 
  


Reply

Tags
dmesg, errors, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer detecting right-click as left-click, left-click as left-click and middle with 2 fingers pressed as right-click Festerdam Linux - Newbie 5 06-19-2017 05:41 PM
HDD/BUS problem ata1.00: status: { DRDY } ata1.00: hard resetting link inachomsky Linux - Hardware 1 08-13-2014 08:20 AM
What does the "1" in "ata1" mean in dmesg log output? bgoodr Linux - Newbie 1 11-28-2010 04:11 PM
Understanding dmesg output, and udevinfo... nutnut Linux - Hardware 7 05-14-2007 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration