Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Is my hard drive now un-usable?

Message
Author
br1anstorm
Forum Novice
Forum  Novice
Posts: 62
Joined: Sun Nov 05, 2017 2:25 pm

Is my hard drive now un-usable?

#1 Post by br1anstorm » Sun Dec 31, 2017 3:28 pm

I posted a query in this forum earlier - see viewtopic.php?f=107&t=43433 - about the misbehaviour of the 80GB HDD in an old(er) computer I have. The WinXP installed on it was behaving erratically (not booting, hanging) and GSmart Control indicated that there were some bad blocks.

With the help of forum members I made some attempts to check, clean and revive the disk. But as I did not need WinXP, and had no other important data on the drive, I thought that in the end it would be better to wipe the drive completely and do a clean install of Linux.

So I first tried to reformat the disk (msdos, overwrite, no partitioning) using the Disk Manager utility. It seemed to complete....

But then when I tried to use Gparted in a Live session to create a new partition table prior to Linux install, GParted seemed to have trouble scanning the drive (which showed as /dev/sda). I got a Libparted Warning

Code: Select all

 Error fsyncing/closing /dev/sda:Input/output error
Of the Retry/Ignore options I chose Ignore - and then got a Libparted Error message

Code: Select all

Input/Output error during read on /dev/sda
Hitting Ignore again resulted in a whole further sequence of about a dozen of the same pair of messages. Eventually the main Gparted screen showed the usual graphic, with the drive 'unallocated' and a warning flag (!) which revealed an information panel which again listed the same - complete - sequence of error messages.

Figuring I had nothing to lose, I thought I would make a further attempt to wipe the hard disk. This time I used DBAN from the Hirens Boot CD. It ran (for about an hour) and ended with a report saying it had finished but with "non-fatal errors".

In a new MX-16 Live session, I have now had another look. The Disk Manager doesn't see the HDD at all. GParted initially seemed to "see" the HDD as /dev/sda, so I tried to create a new partition table. It seemed to work. I got as far as creating one new 30GB ext4 primary partition. But then GParted showed an error message, and it seems that the partition was created but not formatted. And when I closed and rebooted, the whole disk again showed in GParted as 'unallocated'.

I have since run GSmart Control again. That says the disk passes initial tests. But a short re-test produced this error log (Apologies for long text quote - and NB the Live session clearly had the wrong date/time setting)

Code: Select all

smartctl 6.4 2014-10-07 r4002 [i686-linux-3.16.0-4-686-pae] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ExcelStor Technology J880
Serial Number:    PFD210K2C85U2B
LU WWN Device Id: 0 000000 000000000
Firmware Version: PF2OA21B
User Capacity:    82,348,277,760 bytes [82.3 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 T13/1532D revision 1
Local Time is:    Sun Dec 24 02:55:09 2017 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error badly formed scsi parameters
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		( 1828) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 (  31) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   110   110   024    Pre-fail  Always       -       180 (Average 181)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       1200
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       154
  7 Seek_Error_Rate         0x000b   097   097   067    Pre-fail  Always       -       3
  8 Seek_Time_Performance   0x0005   100   100   020    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       5890
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1196
192 Power-Off_Retract_Count 0x0032   099   099   050    Old_age   Always       -       1215
193 Load_Cycle_Count        0x0012   099   099   050    Old_age   Always       -       1215
194 Temperature_Celsius     0x0002   152   152   000    Old_age   Always       -       36 (Min/Max 6/61)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       149
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 347 (device log contains only the most recent five errors)
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 347 occurred at disk power-on lifetime: 5889 hours (245 days + 9 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  10 51 01 00 4f c2 a0  Error: IDNF

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  b0 d1 01 00 4f c2 a0 00      00:03:44.100  SMART READ ATTRIBUTE THRESHOLDS [OBS-4]
  ec 00 01 00 00 00 a0 00      00:03:44.100  IDENTIFY DEVICE
  e5 00 00 00 00 00 a0 00      00:03:44.100  CHECK POWER MODE
  ec 00 01 00 00 00 a0 00      00:03:44.100  IDENTIFY DEVICE
  ec 00 01 00 00 00 e0 00      00:02:01.800  IDENTIFY DEVICE

Error 346 occurred at disk power-on lifetime: 5887 hours (245 days + 7 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  10 51 00 00 4f c2 a0  Error: 

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  b0 da 00 00 4f c2 a0 00      01:04:44.100  SMART RETURN STATUS
  c8 00 80 62 1e 4f e1 00      01:04:44.100  READ DMA
  b0 d0 01 00 4f c2 a0 00      01:04:42.600  SMART READ DATA
  c8 00 20 42 1e 4f e1 00      01:04:42.600  READ DMA
  b0 d1 01 00 4f c2 a0 00      01:04:41.500  SMART READ ATTRIBUTE THRESHOLDS [OBS-4]

Error 345 occurred at disk power-on lifetime: 5887 hours (245 days + 7 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  10 51 07 0b 7a ea e0  Error: IDNF at LBA = 0x00ea7a0b = 15366667

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 08 0a 7a ea e0 00      01:03:35.200  WRITE DMA
  ca 00 08 2a 6b ea e0 00      01:03:32.900  WRITE DMA
  27 00 00 00 00 00 e0 00      01:03:32.900  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 02      01:03:32.800  IDENTIFY DEVICE
  ef 07 00 00 00 00 a0 00      01:03:32.800  SET FEATURES [Set device spin-up]

Error 344 occurred at disk power-on lifetime: 5887 hours (245 days + 7 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  10 51 06 2c 6b ea e0  Error: IDNF at LBA = 0x00ea6b2c = 15362860

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 08 2a 6b ea e0 00      01:03:27.900  WRITE DMA
  ca 00 08 3a 0b ea e0 00      01:03:23.700  WRITE DMA
  ca 00 08 42 02 ea e0 00      01:03:20.100  WRITE DMA
  ca 00 08 fa ed e9 e0 00      01:03:20.100  WRITE DMA
  ca 00 08 aa ed e9 e0 00      01:03:19.100  WRITE DMA

Error 343 occurred at disk power-on lifetime: 5887 hours (245 days + 7 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  10 51 10 1a c5 8b e0  Error: IDNF at LBA = 0x008bc51a = 9159962

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 10 1a c5 8b e0 00      01:02:15.700  WRITE DMA
  c8 00 08 5a fc d4 e0 00      01:02:15.700  READ DMA
  ca 00 c8 4a c4 8b e0 00      01:01:49.700  WRITE DMA
  c8 00 08 1a 95 aa e2 00      01:01:49.700  READ DMA
  ca 00 08 8a c6 8b e0 00      01:01:48.600  WRITE DMA

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      5890         -
# 2  Short offline       Completed without error       00%      5887         -
# 3  Extended offline    Completed: read failure       10%      5867         101489767

Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
I'm stuck. If the drive can't be seen or partitioned, then I can't install Linux on to it. What if anything can be done? I could try to extract and copy up more details of the GParted error messages if that offers further clues. Or is the HDD now completely borked?

User avatar
entropyfoe
Forum Regular
Forum Regular
Posts: 778
Joined: Thu Apr 19, 2007 11:42 am

Re: Is my hard drive now un-usable?

#2 Post by entropyfoe » Sun Dec 31, 2017 4:59 pm

This part seems like it could be normal gparted behavior...
GParted initially seemed to "see" the HDD as /dev/sda, so I tried to create a new partition table. It seemed to work. I got as far as creating one new 30GB ext4 primary partition. But then GParted showed an error message, and it seems that the partition was created but not formatted. And when I closed and rebooted, the whole disk again showed in GParted as 'unallocated'.
Formatting is a separate operation than creating the partitions, so if you didn't do that, then it makes sense that it was not formatted to a file system.
When making changes in gparted, you have to do all the pending operations, including creating all the partitions,an formatting them, as well as assigning one of them as boot. (set a boot flag).

I usually partition into 4, sda1 for /, sda2 for swap, sda3 for /home, and sda4 for a separate experimental partition for other distros or betas, you could use if for data as well. Maybe 15G, 2G, 25G, and balance to sda4.

Give it a try, and make sure all the gparted operation run. What to lose at this point?
Asus Prime 370X-Pro
AMD Ryzen 1600X (6 cores @ 3.6 GHz)
16 Gig DDR4 3200 (G Skill)
Nvidia -MSI GeForce GT 710 fanless
Samsung 960 NVMe SSD nvme0n1 P1,P2, and P3=MX-17, P4=antiX-17
1TB SSD sda1= Data, 2TB WD =backups
on-board ethernet & sound

User avatar
uncle mark
Forum Veteran
Forum Veteran
Posts: 4954
Joined: Sat Nov 11, 2006 10:42 pm

Re: Is my hard drive now un-usable?

#3 Post by uncle mark » Sun Dec 31, 2017 9:08 pm

I'm stuck. If the drive can't be seen or partitioned, then I can't install Linux on to it. What if anything can be done? I could try to extract and copy up more details of the GParted error messages if that offers further clues. Or is the HDD now completely borked?
I'd say it's toast, but if you want to take one more stab at it I'd zero it out with dd from the live disk:

sudo dd if=/dev/zero of=/dev/sda conv=notrunc

That will take a while.

Then have at it with gparted.
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Laptop: Acer Aspire 5250 -- MX-15
Assorted junk: assorted Linuxes

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 334
Joined: Sun Aug 20, 2017 10:11 am

Re: Is my hard drive now un-usable?

#4 Post by stsoh » Mon Jan 01, 2018 5:09 am

HAPPY NEW YEAR 2018 EVERYONE!!!!! :party2:
hd life is limited 3~5 yrs, if u r lucky last more the 5 yrs.
i replaced 3 motherboards and many harddisks over the yrs.
it's not surprising hd failed, harddisk price has drop over the yrs.
just use usb-live-onstick. HNY 2018.
:party5:
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
Gaer Boy
Forum Guide
Forum Guide
Posts: 2109
Joined: Sat Jun 06, 2009 6:06 am

Re: Is my hard drive now un-usable?

#5 Post by Gaer Boy » Mon Jan 01, 2018 7:00 am

Happy New Year. all. I may have been lucky with harddisks, but I've only had 3 outright failures over 20 years - one of them last week! My Seagate 1TB backup disk failed after 8.5 years - no response at all. GParted doesn't see it and I can't mount it. Oddly, the only other instant total failure was also a Seagate - a 50GB system disk, and that one after 13 months!

The third one was one of a pair - Samsung 250GB used for data, which got more and more erratic so I retired it. It's twin is still giving good service in my old machine after 9 years, now with my son and running Win10.

My current Samsung 1TB data disc is fine after 5.5 years and my 2 SSDs are also going strong as system disks after 5.5 & 3.5 years (in different machines).

I've just bought a couple of Toshiba 1TB disks to try - total £86.

Phil

AsRock FM2A88X-ITX+, A8-6500, 8GB, 120GB Samsung SSD (GPT), 1TB HDD (MBR), MX-16
Lenovo Thinkpad X220, dual-core i5, 3MB, 320GB Hitachi HDD, Win7, MX-16.1

br1anstorm
Forum Novice
Forum  Novice
Posts: 62
Joined: Sun Nov 05, 2017 2:25 pm

Re: Is my hard drive now un-usable?

#6 Post by br1anstorm » Tue Jan 02, 2018 2:40 pm

uncle mark wrote:
I'd say it's toast, but if you want to take one more stab at it I'd zero it out with dd from the live disk:

sudo dd if=/dev/zero of=/dev/sda conv=notrunc

That will take a while.

Then have at it with gparted.
Uncle Mark and others were, I fear, quite right. That hard drive is definitely deceased. I re-zeroed it, and tried to recreate a partition table with Gparted. I got as far as creating a couple of partitions; but then they wouldn't format properly and Gparted couldn't re-scan the drive. I even tried various of the repair and recovery tools on the Hirens Boot CD just for curiosity's sake. Some suggested the drive was still OK. But the SMART tests threw up errors, and it became obvious that the drive was beyond redemption.

It's an old machine, and the HDD is the older type that uses IDE PATA ribbon cable connectors. I think I might just try to find a similar replacement drive (new or more likely refurbished) to put in, just so that I have this system to experiment on...

Thanks to all who offered advice - and happy 2018 to all!

User avatar
entropyfoe
Forum Regular
Forum Regular
Posts: 778
Joined: Thu Apr 19, 2007 11:42 am

Re: Is my hard drive now un-usable?

#7 Post by entropyfoe » Tue Jan 02, 2018 3:06 pm

On PC parts picker
https://pcpartpicker.com/products/inte ... age=1&qq=1

There are 250 GB drives for 22$, and 1TB for less than 50$ !

So, something should fit your experimental budget.
Asus Prime 370X-Pro
AMD Ryzen 1600X (6 cores @ 3.6 GHz)
16 Gig DDR4 3200 (G Skill)
Nvidia -MSI GeForce GT 710 fanless
Samsung 960 NVMe SSD nvme0n1 P1,P2, and P3=MX-17, P4=antiX-17
1TB SSD sda1= Data, 2TB WD =backups
on-board ethernet & sound

User avatar
uncle mark
Forum Veteran
Forum Veteran
Posts: 4954
Joined: Sat Nov 11, 2006 10:42 pm

Re: Is my hard drive now un-usable?

#8 Post by uncle mark » Tue Jan 02, 2018 7:07 pm

entropyfoe wrote:On PC parts picker
https://pcpartpicker.com/products/inte ... age=1&qq=1

There are 250 GB drives for 22$, and 1TB for less than 50$ !

So, something should fit your experimental budget.
Nope. Those are SATA. By his description he needs PATA.
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Laptop: Acer Aspire 5250 -- MX-15
Assorted junk: assorted Linuxes

User avatar
entropyfoe
Forum Regular
Forum Regular
Posts: 778
Joined: Thu Apr 19, 2007 11:42 am

Re: Is my hard drive now un-usable?

#9 Post by entropyfoe » Tue Jan 02, 2018 10:11 pm

Ouch...didn't see the PATA.

But in luck,

https://pcpartpicker.com/products/inter ... e/#i=28,29

There are some, including one on Amazon, that shows stock, an IDE 250G for 36$.
Asus Prime 370X-Pro
AMD Ryzen 1600X (6 cores @ 3.6 GHz)
16 Gig DDR4 3200 (G Skill)
Nvidia -MSI GeForce GT 710 fanless
Samsung 960 NVMe SSD nvme0n1 P1,P2, and P3=MX-17, P4=antiX-17
1TB SSD sda1= Data, 2TB WD =backups
on-board ethernet & sound

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4207
Joined: Wed Jul 12, 2006 4:05 pm

Re: Is my hard drive now un-usable?

#10 Post by timkb4cq » Tue Jan 02, 2018 10:15 pm

MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

Post Reply

Return to “Hardware /Configuration”