How to discover # of R/Ws in SSD?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

How to discover # of R/Ws in SSD?

Post by wutsinterweb »

Before I make a claim on a 1/2 failed SSD of mine, was is the Command line in Term to check how many reads and writes have occurred on the drive?
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
RIH
Level 9
Level 9
Posts: 2910
Joined: Sat Aug 22, 2015 3:47 am

Re: How to discover # of R/Ws in SSD?

Post by RIH »

Don't know a terminal command, but, GSmartControl is in Software Manager..
smart.png
Image
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: How to discover # of R/Ws in SSD?

Post by wutsinterweb »

I found one:

Code: Select all

sudo smartctl -A /dev/sde
[sudo] password for cmstacker:                
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-91-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0032   100   100   050    Old_age   Always       -       0
  5 Reallocated_Sector_Ct   0x0032   100   100   050    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   050    Old_age   Always       -       10511
 12 Power_Cycle_Count       0x0032   100   100   050    Old_age   Always       -       882
160 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       0
161 Unknown_Attribute       0x0033   100   100   050    Pre-fail  Always       -       66
163 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       24
164 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       69199
165 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       452
166 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       2
167 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       49
168 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       5050
169 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       100
175 Program_Fail_Count_Chip 0x0032   100   100   050    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   050    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   050    Old_age   Always       -       0
178 Used_Rsvd_Blk_Cnt_Chip  0x0032   100   100   050    Old_age   Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   050    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   050    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   050    Old_age   Always       -       23
194 Temperature_Celsius     0x0022   100   100   050    Old_age   Always       -       31
195 Hardware_ECC_Recovered  0x0032   100   100   050    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   100   100   050    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   050    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0032   100   100   050    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   050    Old_age   Always       -       0
232 Available_Reservd_Space 0x0032   100   100   050    Old_age   Always       -       66
241 Total_LBAs_Written      0x0030   100   100   050    Old_age   Offline      -       278144
242 Total_LBAs_Read         0x0030   100   100   050    Old_age   Offline      -       47651
245 Unknown_Attribute       0x0032   100   100   050    Old_age   Always       -       364176
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: How to discover # of R/Ws in SSD?

Post by wutsinterweb »

I used both above methods, How do I interpret them to know if I wore out my drive?
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: How to discover # of R/Ws in SSD?

Post by wutsinterweb »

IS 270k of LBA writes excessive? Would my drive not qualify for replacement?
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
RIH
Level 9
Level 9
Posts: 2910
Joined: Sat Aug 22, 2015 3:47 am

Re: How to discover # of R/Ws in SSD?

Post by RIH »

270K looks a pittance to me.

Mine has done
Description Value
Logical Sectors Written 29,177,913,328
and it still says says
SSD Life Left 51,539,607,552
Image
ThaCrip
Level 5
Level 5
Posts: 988
Joined: Sat Dec 07, 2019 12:13 pm

Re: How to discover # of R/Ws in SSD?

Post by ThaCrip »

On my Samsung 850 EVO 250GB SSD SATA drive (which is in my primary PC which runs all of the time) once you know the location of your SSD (use 'lsblk' etc) you do...

Code: Select all

sudo smartctl -A /dev/sdx
and find "Total_LBAs_Written" which to convert it to TBW you do...

long number here * 512 / 1024^4 =

which on mine (my 'long number here' is 64,861,000,887) comes out to 30.203TBW. my drive is officially rated for 75TBW. I had my drive since May 2015, so this May it will be 9 years old. at my current rate it's going to last a long time ;)

p.s. even 'Power_On_Hours' shows 73720 which converts close to 8.5 years (8.42 to be a bit more precise). but like I mentioned above my primary computer runs pretty much 24/7. power cycle count is 444. OP's 'power on hours' shows about 1.2 years, or roughly 1 year and 2-3 months. but doing that conversion based on OP's written stuff seems abnormally low at 0.0001TBW, which my guess is probably not accurate on his drive or converts another way as that seems really low for something powered on roughly 1-1.5 years or so.
MainPC: i5-3550 (undervolted by -0.120v (CPU runs 12c cooler) /w stock i3-2120 hs/fan) | 1050 Ti 4GB | 16GB (2x 8GB) DDR3 1600Mhz RAM | Backups: AMD E-300 CPU (8GB RAM) / Athlon X2 3600+ CPU (@2.3GHz@1.35v) (4GB RAM) | All /w Mint 21.x-Xfce
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Re: How to discover # of R/Ws in SSD?

Post by wutsinterweb »

My usage was very light until a month before the drive croaked.

Now GParted won't go into/see the drive, it takes an hour trying to. That is after wiping the partitions and making new partitions and then trying to wipe them.

I'm hoping the drive is clean enough to send in for replacement...
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
Lady Fitzgerald
Level 15
Level 15
Posts: 5821
Joined: Tue Jan 07, 2020 3:12 pm
Location: AZ, SSA (Squabbling States of America)

Re: How to discover # of R/Ws in SSD?

Post by Lady Fitzgerald »

Don't let the number of TBWs (TeraByteWrites) fool you into complacency. Even SSDs with most of the their TBWs remaining can still fail for other reasons, often by the controller chip failing. Usually, when an SSD fails, it's permanent. Occasionally, data can be recovered from a failed SSD but that's rare and extremely costly, often getting into the thousands of dollars with no guarantee of success.

The only way to reasonably protect your data is for it to exist in three, separate places. For most people, this will be on a drive in the computer, on an onsite external backup drive that is kept powered down and disconnected from the computer at all times except while updating the backup, and on an offsite backup drive.

As long as your data is kept backed up, you don't need to worry about losing your data. Very few people will ever exhaust the TBWs of their SSDs (people who do enormous amounts of editing or rendering videos, or process enormous numbers of raw photos might be able to exhaust their TBWs but that probably would still take a few years).
Jeannie

To ensure the safety of your data, you have to be proactive, not reactive, so, back it up!
ThaCrip
Level 5
Level 5
Posts: 988
Joined: Sat Dec 07, 2019 12:13 pm

Re: How to discover # of R/Ws in SSD?

Post by ThaCrip »

Lady Fitzgerald wrote: Sat Feb 24, 2024 10:30 am Don't let the number of TBWs (TeraByteWrites) fool you into complacency. Even SSDs with most of the their TBWs remaining can still fail for other reasons, often by the controller chip failing. Usually, when an SSD fails, it's permanent. Occasionally, data can be recovered from a failed SSD but that's rare and extremely costly, often getting into the thousands of dollars with no guarantee of success.
Agreed. that's also why I generally don't trust using SSD's for storing anything important as while they are generally reliable, if they do start to die it can be sudden. with a HDD I suspect people will get more warning before failure and being it's on platters seems less likely to lose data out of no where vs memory chip.
Lady Fitzgerald wrote: Sat Feb 24, 2024 10:30 amThe only way to reasonably protect your data is for it to exist in three, separate places. For most people, this will be on a drive in the computer, on an onsite external backup drive that is kept powered down and disconnected from the computer at all times except while updating the backup, and on an offsite backup drive.
Yeah, as I figure even for the lazy types, if they even slightly care about their data, I figure at a bare minimum one wants at least two different copies, say on one hard drive and another as this gives a reasonable level of data protection for minimal effort. although it's best to have one external and only powered on occasionally to do a backup.

p.s. I still use DVD recordable media for a limited amount of higher importance data backup as I still consider it to be one of the most reliable non-HDD based ways to backup data as on quality media (Verbatim(the Mitsubishi Chemicals Corp ones)/Taiyo Yuden) those will likely last decades as I have discs I burned roughly 15-ish years ago (some even older and some a bit more recent) and still scan well today as I figure if there is no real degradation at this point I don't see why it won't last for the foreseeable future, probably decades. but I guess with optical media... even if we assume the media will last a long time, I figure it would be more likely a time will eventually come where finding drives to read the media will be harder to find, especially if the SATA port eventually starts to die off (because with a couple of burners I have they are IDE and using those, while I still can, is not as easy as it once was because they killed off the IDE port a rather long time ago now and SATA took it's place). but I figure as long as the SATA port remains on PC's for the foreseeable future I suspect, at a bare minimum, optical media will be safe for at least another 10-15 years in regards to still being easy enough access to drives that will read optical media and PC's that can still use them. so probably until at least 2035+ for a conservative figure and could easily be quite a bit beyond that if SATA remains standardized for the foreseeable future. but I get optical media is not nearly as convenient as HDD's (which is why for the vast majority of my data backup I use the two HDD method (with one copy external) and that's about it) but it's still solid/reliable for a more limited amount of data backup.
MainPC: i5-3550 (undervolted by -0.120v (CPU runs 12c cooler) /w stock i3-2120 hs/fan) | 1050 Ti 4GB | 16GB (2x 8GB) DDR3 1600Mhz RAM | Backups: AMD E-300 CPU (8GB RAM) / Athlon X2 3600+ CPU (@2.3GHz@1.35v) (4GB RAM) | All /w Mint 21.x-Xfce
Post Reply

Return to “Storage”