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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2023, 01:47 AM
|
#1
|
LQ Newbie
Registered: Apr 2023
Posts: 11
Rep:
|
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.
|
|
|
04-24-2023, 05:55 AM
|
#2
|
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,316
|
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
|
|
|
04-24-2023, 04:19 PM
|
#3
|
LQ Newbie
Registered: Apr 2023
Posts: 11
Original Poster
Rep:
|
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
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
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.
|
|
|
04-25-2023, 04:31 AM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,391
|
Log files of various types will be in the /var/log directory. Look at the most recent syslog and dmesg logs.
|
|
|
04-25-2023, 01:58 PM
|
#5
|
LQ Newbie
Registered: Apr 2023
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
04-26-2023, 05:03 PM
|
#6
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 312
Rep: 
|
Quote:
Originally Posted by NM64
While much of the logs are greek to me,
|
Learn to read this "greek".
Quote:
Originally Posted by NM64
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:
- Create an USB stick with a live Linux e.g. Knoppix or GRML.
- Open computer case and unplug all drives.
- Connect Crucial CT120M500SSD1 with first SATA port.
- Boot live Linux into console, no X & WM!
- smartctl -s on /dev/sda
- smartctl -a /dev/sda > file-smart.txt
- dmesg > file-dmesg.txt
- Save both files to an USB stick.
- Post contents of both files.
- 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.
|
|
|
04-26-2023, 05:24 PM
|
#7
|
LQ Newbie
Registered: Apr 2023
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
05-08-2023, 11:54 AM
|
#8
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,542
|
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.
|
|
|
05-08-2023, 08:17 PM
|
#9
|
LQ Newbie
Registered: Apr 2023
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
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.
|
|
|
05-09-2023, 04:10 AM
|
#10
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,542
|
Quote:
Originally Posted by NM64
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.
|
|
|
All times are GMT -5. The time now is 12:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|