LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-23-2023, 01:47 AM   #1
NM64
LQ Newbie
 
Registered: Apr 2023
Posts: 11

Rep: Reputation: 0
long shot - unlock write access on read-only firmware Crucial M500 & M550 sata SSDs?


A few years back, I made the unfortunate discovery that, at least the M500 and M550 sata SSDs from Crucial, contain a "feature" that seems to permanently lock them into a read-only state if the disk ever detects an anomaly with the power delivery, including insufficient amperage (which was the issue in my case with the M550 specifically; the M500 is likely no salvageable due to actual electrical over-current damage during an earlier event).

At the time I wasn't really using Linux full-time like I am now, but I did notice that Linux was able to mount the disks as read-only and generally browse the contents without issue (I say "generally" because the seemingly-damaged M500 can be flaky and go offline when trying to read certain data on the disk).

I did humor myself and try a secure erase of the M550 since that's the disk that didn't seem to incur any damage, but the disk was still locked to read-only even after the secure erase.

A year or so ago I even tried contacting Crucial themselves but they basically told me that the read-only firmware lock is not something that can be unlocked by the end-user.

For context, a big reason why I think my M550 specifically is salvagable is because I also have some older M4 SSDs that lack this read-only firmware lock protection "feature" whereby the disk will instead tend to turn into a "temporary brick" when met with anomalous power delivery that can be salvaged by simply leaving the SSD disconnected for an hour, plugging in only power for an hour, unplugging it and then connecting it to power and sata and it'll be "magically" revived (assuming it simply suffered under-currant like my M550 and not over-currant like my M500).


So yeah, like I say in the title, this is a bit of a long shot, but it'd be nice if I could at the very least revive my 512GB M550 in some way rather than just let it turn into ewaste simply due to a locked-down firmware.
 
Old 04-24-2023, 05:55 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
What is in the system log? Linux puts drives RO when it detects an I/O error. Also, there are settings on the drive that can be undone with hdparm. Look through the man page https://linux.die.net/man/8/hdparm
 
Old 04-24-2023, 04:19 PM   #3
NM64
LQ Newbie
 
Registered: Apr 2023
Posts: 11

Original Poster
Rep: Reputation: 0
By the way, one thing I remember doing a while ago is that I humored myself with trying was to downgrade the M550's firmware and then subsequently re-upgrade the I think it let me do it successfully but it made no difference to my issue.


Quote:
Originally Posted by smallpond View Post
What is in the system log?
I have no idea! I don't even know what log file I should be looking at and/or where it's located. I mean, my choice of distro is the "baby's first" distro of Linux Mint, so a Linux guru I am not!

Quote:
Originally Posted by smallpond View Post
Linux puts drives RO when it detects an I/O error. Also, there are settings on the drive that can be undone with hdparm. Look through the man page https://linux.die.net/man/8/hdparm
Because the M550 was secure-erased, it doesn't have any partition table so I can't mount it at all even in read-only.

It may be worth noting that Gparted just constantly throws up an input/output error regarding the M550, implying to me that the read-only lock is something a bit lower-level than hdparm (but, again, I'm by far not a Linux guru so I really haven't any idea).

Last edited by NM64; 04-24-2023 at 04:22 PM.
 
Old 04-25-2023, 04:31 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,555

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Log files of various types will be in the /var/log directory. Look at the most recent syslog and dmesg logs.
 
Old 04-25-2023, 01:58 PM   #5
NM64
LQ Newbie
 
Registered: Apr 2023
Posts: 11

Original Poster
Rep: Reputation: 0
Alright, here they are; I uploaded them to 0x0.st since I know that's the preferred location to upload logs for the mpv devs so I figured it'd be a known quality, though it does strip out file names...

Note that the M550 was listed as sdb in gnome-disk-utility.

While much of the logs are greek to me, I can at least see a slew of what may be relevant errors on both sdb and "ata4" in syslog, so I'm guessing that they refer to the same disk? (or, rather, sdb refers to the actual physical disk while ata4 refers to the port on the motherboard that the disk is plugged into)


For reference, all I did was boot the Linux Mint 21.1 Cinnamon live ISO, open gnome-disk-utility and look a the disk (specifically how I cannot interact with it at all in gnome-disk-utility), then open gparted, click "ignore" a bunch regarding the input/output error(s) it detected, select the M550 SSD, tell it to create a new msdos partition table, click "ignore" a bunch again regarding the input/output error(s), and that's it (note that gparted did not actually do anything and no partition table was created).

Last edited by NM64; 04-25-2023 at 02:08 PM.
 
Old 04-26-2023, 05:03 PM   #6
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 270

Rep: Reputation: 89
Quote:
Originally Posted by NM64 View Post
While much of the logs are greek to me,
Learn to read this "greek".

Quote:
Originally Posted by NM64 View Post
I can at least see a slew of what may be relevant errors on both sdb and "ata4" in syslog, so I'm guessing that they refer to the same disk?
Your syslog gives the answer:
Code:
Apr 25 18:33:45 mint kernel: [    4.149543] ata3.00: ATA-9: Crucial_CT120M500SSD1, MU05, max UDMA/133
Apr 25 18:33:45 mint kernel: [    4.149627] ata4.00: ATA-9: Crucial_CT512M550SSD1, MU02, max UDMA/133
Apr 25 18:33:45 mint kernel: [    4.150684] ata6.00: ATA-8: SAMSUNG SSD PM810 2.5" 7mm 256GB, AXM08D1Q, max UDMA/133
Apr 25 18:33:45 mint kernel: [    4.151607] ata5.00: ATAPI: ASUS    DRW-24B1ST   c, 1.05, max UDMA/100

Apr 25 18:33:45 mint kernel: [    4.216669] scsi 1:0:0:0: Direct-Access     ATA     Crucial_CT120M50 MU05 PQ: 0 ANSI: 5
Apr 25 18:33:45 mint kernel: [    4.216863] sd 1:0:0:0: Attached scsi generic sg0 type 0
Apr 25 18:33:45 mint kernel: [    4.216978] sd 1:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)

Apr 25 18:33:45 mint kernel: [    4.241047] scsi 2:0:0:0: Direct-Access     ATA      Crucial_CT512M55 MU02 PQ: 0 ANSI: 5
Apr 25 18:33:45 mint kernel: [    4.241226] sd 2:0:0:0: Attached scsi generic sg1 type 0
Apr 25 18:33:45 mint kernel: [    4.241388] sd 2:0:0:0: [sdb] 1000215216 512-byte logical blocks: (512 GB/477 GiB)

Apr 25 18:33:45 mint kernel: [    4.352373] scsi 5:0:0:0: Direct-Access     ATA      SAMSUNG SSD PM81 8D1Q PQ: 0 ANSI: 5
Apr 25 18:33:45 mint kernel: [    4.352565] sd 5:0:0:0: Attached scsi generic sg3 type 0
Apr 25 18:33:45 mint kernel: [    4.352628] sd 5:0:0:0: [sdc] 500118192 512-byte logical blocks: (256 GB/238 GiB)

Apr 25 18:33:45 mint kernel: [    4.244612] scsi 3:0:0:0: CD-ROM            ASUS     DRW-24B1ST   c   1.05 PQ: 0 ANSI: 5
Apr 25 18:33:45 mint kernel: [    4.321997] sr 3:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray 1.05, max UDMA/100
ata4.00 errors indicate a dying or dead component (SATA controller, cable, drive). Such a component can disturb the entire computer. Therefore do following:
  1. Create an USB stick with a live Linux e.g. Knoppix or GRML.
  2. Open computer case and unplug all drives.
  3. Connect Crucial CT120M500SSD1 with first SATA port.
  4. Boot live Linux into console, no X & WM!
  5. smartctl -s on /dev/sda
  6. smartctl -a /dev/sda > file-smart.txt
  7. dmesg > file-dmesg.txt
  8. Save both files to an USB stick.
  9. Post contents of both files.
  10. Repeat procedure described above with Crucial CT512M550SSD1.
Procedure described above preserves your data on SAMSUNG SSD PM810 2.5" 7mm 256GB and gives results for each single drive without any influences of the other drives.
 
Old 04-26-2023, 05:24 PM   #7
NM64
LQ Newbie
 
Registered: Apr 2023
Posts: 11

Original Poster
Rep: Reputation: 0
Oh, oops, I only just realized right now from your code block that the primary 120GB SSD in the PC is also an M500 model SSD (I thought it was something like an MX100 or MX200; it came from a friend with a laptop just around 9 months ago and lived in the laptop for 4 months and in that desktop for 5, so it never lived outside of a PC long enough for me to keep track of its exact model). The M500 I was previously talking about that is seemingly-damaged was a 480GB M500.

Therefore it's important we don't confuse the primary 120GB M500 with a different disk, whether with my 512GB M550 that I'm trying to "revive" (the one that has been secure erased) with with the aforementioned seemingly-damaged 480GB M500 (which was not connected to the PC at all).

So yeah, there's no data to preserve on the 512GB M550 because, as stated, it's been secure-erased.

And remember, I was already in a live ISO when I recorded those logs. In fact, I even made sure to not boot into the installed OS while the 512GB M550 was connected - I only tried working with it from a live ISO on that PC.


So in summary...
  • Primary disk: 120GB Crucial M500
  • Secondary disk: 256GB Samsung 810
  • secure-erased & read-only locked disk I'm trying to "revive": 512GB Crucial M550
  • troublesome seemingly-damaged disk I'm not concerned about: 480GB Crucial M500
And I do realize M500 and M550 look very similar in text, so I've double-checked to make sure that I've not made any typos in this post (no guarantees about previous posts in this thread).

Last edited by NM64; 04-26-2023 at 05:42 PM.
 
Old 05-08-2023, 11:54 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,422

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
If Crucial or their agents are nearby, it might be worth doing it their way. "Can not be unlocked by the end user" implies it can be unlocked. I bought or got under warranty a pcb for a Seagate HD back in the day by such a phone call. I put it on, and the thing came up. It's one option.
 
Old 05-08-2023, 08:17 PM   #9
NM64
LQ Newbie
 
Registered: Apr 2023
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
If Crucial or their agents are nearby, it might be worth doing it their way. "Can not be unlocked by the end user" implies it can be unlocked. I bought or got under warranty a pcb for a Seagate HD back in the day by such a phone call. I put it on, and the thing came up. It's one option.
The M550 is an SSD from like 2015, and had a 3-year warranty, so...

Also you can't do a PCB swap on an SSD in the same way you can on a mechanical hard drive because the SSD itself is the PCB, so swapping the PCB is the same as just swapping a different SSD into the casing.
 
Old 05-09-2023, 04:10 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,422

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
Quote:
Originally Posted by NM64 View Post
The M550 is an SSD from like 2015, and had a 3-year warranty, so...

Also you can't do a PCB swap on an SSD in the same way you can on a mechanical hard drive because the SSD itself is the PCB, so swapping the PCB is the same as just swapping a different SSD into the casing.
I wasn't under warranty either. But it could simply be turning it on with a jumper connected.They'll have some trick so they can do it, but you can't. Hence the phone cass suggestion.
 
  


Reply



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
LXer: Fwupd 1.7.7 Adds Support for Logitech M550, M650 and K650, More StarLite Laptops LXer Syndicated Linux News 0 04-05-2022 05:09 PM
[SOLVED] Do M.2 SSDs have have the writes issues like older sata SSDs? linux2021 Linux - Newbie 5 08-19-2020 03:35 PM
[SOLVED] SSDs: Crucial mx500 m.2 500 GB vs WD blue 3D m.2 500 GB Chripcikas Linux - Hardware 6 01-23-2019 07:17 AM
RAID 0 with four SATA 2 or two SATA 3 SSDs? Ulysses_ Linux - Hardware 32 02-09-2014 01:11 PM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM

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

All times are GMT -5. The time now is 11:51 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