LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-18-2023, 10:42 AM   #1
SaltyTech
LQ Newbie
 
Registered: Apr 2023
Distribution: Devuan 4 Chimaera x64
Posts: 6

Rep: Reputation: 2
Angry NVME SSD stops working on suspend (pm-suspend)


Hello,

On my ThinkPad X270, every time I suspend it (using pm-suspend), the SSD stops working and a bunch of "Input/Output" errors come when I read an uncached file.

This started to happen recently.

This also seems to happen on OpenBSD and Windows (On Windows, it straight up BSODs.)

Not using sleep/suspend is not an option because I have to bring this laptop to multiple locations.

smartctl says SSD is fine (passed).

SSD is a SAMSUNG MZVLW256HEHP-000L7.

Thank you for helping me.
 
Old 11-18-2023, 11:44 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Well it's clearly a hardware issue since you have similar problems on three different OSes. I assume you are suspending to ram and not hibernating to disk. A few things you can check:

1. Check your ram with memtest. Let it run overnight and see if any errors are reported;
2. Check with Samsung/Lenovo and see if there is any firmware update for that particular drive. See, for example:
https://support.lenovo.com/us/en/dow...4-bit-thinkpad
3. Check and see if there is any bios update for your motherboard that may address this issue.

You say this recently started happening indicating the drive was waking up normally for some time. It may just be the drive itself is defective or malfunctioning in a way that's not detected by smartctl, i.e. the drive is not properly handling a wake-up signal after suspending for some reason.
 
Old 11-19-2023, 01:29 PM   #3
SaltyTech
LQ Newbie
 
Registered: Apr 2023
Distribution: Devuan 4 Chimaera x64
Posts: 6

Original Poster
Rep: Reputation: 2
I found a workaround. If I remove the HDD password, no I/O errors appear. I think the issue is that the ThinkPad forgets the HDD password when it sleeps, so when you power it on again it can't access the SSD and it gets confused.

I would like to somehow fix this as soon as possible (so I could still use an HDD password). What makes me confused is how the HDD password used to work just fine. I won't mark the thread as solved till I get my HDD passwords working again.

Last edited by SaltyTech; 11-19-2023 at 01:39 PM.
 
Old 11-20-2023, 02:35 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
I assume you're talking about a hard drive password set in Lenovo's bios security section. As I understand it, that password key is stored on the disk; if you remove the disk, you still need that password to access the disk even if it is attached to a different box. You get the same problem whether you're running linux, windows or OpenBSD, i.e this is not a linux problem per se.

Given the above, I would conclude you have an issue involving the Lenovo bios properly communicating with the Samsung SSD's firmware. The bios must be able to detect and read the key on the Samsung SSD. Since everything worked before, the question necessarily arises as to what has changed, eg bios updates or changes, Samsung SSD firmware updates.
 
  


Reply

Tags
i/o error, ssd, suspend


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
[SOLVED] Slackware 15 - NVME clone to external NVME - Boot problem from external NVME Klaus150 Slackware 35 10-16-2022 04:29 PM
LXer: Data in a Flash, Part II: Using NVMe Drives and Creating an NVMe over Fabrics Network LXer Syndicated Linux News 0 05-20-2019 11:41 PM
Migrate Linux/win10 dual boot from MBR nvme drive to a new GPT nvme drive bluemoo Linux - Software 7 09-25-2018 06:42 PM
PCIe SSD uses AHCI or NVMe or both? ravish165 Linux - Hardware 5 04-23-2015 04:53 AM

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

All times are GMT -5. The time now is 03:25 PM.

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