Author Topic: Failing Win XP HDD  (Read 7320 times)

0 Members and 1 Guest are viewing this topic.

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #50 on: May 20, 2024, 08:15:10 am »
374 errors and errsize 20914 KB.
20914/374~56kB, assumed buffer 64kB and not been decreased. Program is dumb. Data is lost.

This is the cause I wrote my own program for cloning. I used source of "win32diskimager", anybody can try. It's easy.
« Last Edit: May 20, 2024, 08:32:36 am by Postal2 »
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 7192
  • Country: va
Re: Failing Win XP HDD
« Reply #51 on: May 20, 2024, 11:44:46 am »
PlainName: except that the “smart” cloning software mentioned in this thread so far is failing. Since nobody here knows, what exactly it does and if it’s even capable of working with damaged media, it’s impossible to debug the situation either.

I explained why doing it by partition would likely fail: the boot partition probably wasn't being set active. It's easy to stumble over that because a normal restore to the original disk works because the partition is already set correctly, but to a new disk - which is the case here - the restored partition isn't marked active or bootable so fails.

And, contrary to your assertion, we know exactly what the things do. There are two modes: intelligent (which you presumably refer to as 'magic') and dumb. In the latter case every sector is copied regardless, but that's a waste of space and normally only used if the partition is an unknown format. The 'magic' case just copies sectors that the filesystem is using and is perfectly fine - even if you copied all the unused sectors, the filesystem wouldn't use them anyway so there is no point in doing so.

The only thing we don't know is the compression scheme used to make the copy smaller than the original, for storage purposes.
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2434
  • Country: fi
Re: Failing Win XP HDD
« Reply #52 on: May 20, 2024, 12:21:59 pm »
It has now resumed normal speed so if it does not hit any more bad spots I am hoping  it will finish in the next 2 or 3 hours.

If minimum size is smaller than error size/error count, like is an assumption, it goes back to that area.
If and when that happens be brave and stop it.
Save the map file and be ready to go back when needed.

For sector by sector, block by block or something else.
This is rescue, not backup, so least stress for most reads, that can be many things.

For backups 3-2-1 is better if just 3-2, 3 copies and 2 physical locations.
More is also not worse here.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-OR-X-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: es
Re: Failing Win XP HDD
« Reply #53 on: May 20, 2024, 02:49:12 pm »
If minimum size is smaller than error size/error count, like is an assumption, it goes back to that area.
If and when that happens be brave and stop it.
Save the map file and be ready to go back when needed.

For sector by sector, block by block or something else.
This is rescue, not backup, so least stress for most reads, that can be many things.
I have no idea what any of this means.

At this point it's been going for 22 hours and it has slowed down again. It done 954 GB and, since the drive is 1000GB, it has about 4.5% to go. But it has slowed down again so it could go on for hours. I will wait and see.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #54 on: May 20, 2024, 02:58:02 pm »
If minimum size is smaller than error size/error count, ....
Error size is a chunk protected by ECC, it's easy to guess about it size by personal experience.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: es
Re: Failing Win XP HDD
« Reply #55 on: May 20, 2024, 06:11:12 pm »
It's been going for 25 hours now. I just finished Pass 1 (forward) and now it has started Pass 2 (backwards).

I have no idea how long this will take but as I see the count of "rescued" is increasing I will leave it and see how it goes.

I just hope it does not take another 25 hours.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: Failing Win XP HDD
« Reply #56 on: May 20, 2024, 06:26:09 pm »
374 errors and errsize 20914 KB.
20914/374~56kB, assumed buffer 64kB and not been decreased. Program is dumb. Data is lost.

Program hasn't finished, it has further passes to do which will reduce the loss to the sector level.

Don't run your mouth when you haven't done the work.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: es
Re: Failing Win XP HDD
« Reply #57 on: May 20, 2024, 07:06:22 pm »
OK, program has finished after 26 hours and apparently everything was saved and nothing was lost.

I have booted from the clone and it boots fine. I hope everything works well. The report:
Quote
# Rescue Logfile. Created by GNU ddrescue version 1.19
# Command line: ddrescue --force /dev/sda /dev/sdb /home/mint/Desktop/logfile
# Start time:   2024-05-19 16:47:34
# Current time: 2024-05-20 18:35:44
# Finished
# current_pos  current_status
0xDE267BFE00     +
#      pos        size  status
0x00000000  0xE8E0DB6000  +

= = = = = = = = = = = = = =

mint@mint ~ $ sudo ddrescue --force /dev/sda /dev/sdb /home/mint/Desktop/logfile
GNU ddrescue 1.19
Press Ctrl-C to interrupt
rescued:     1000 GB,  errsize:       0 B,  current rate:    1031 kB/s
   ipos:   954128 MB,   errors:       0,    average rate:   10767 kB/s
   opos:   954128 MB, run time:    1.07 d,  successful read:       0 s ago
Finished                                     
Thanks to all for your help and encouragement.  If any further problem comes up with this I will post.

I now have a 3TB HDD with on 336 GB OS partition, a 663 storage partition and 2 TB free.

My next project will probably be to move the OS partition to a 500GB SSD, move the storage data to a separate HDD and free this 3TB HDD. But I will do that in the future, when I have recovered from this ordeal.
« Last Edit: May 20, 2024, 07:16:33 pm by soldar »
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 
The following users thanked this post: Whales

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #58 on: May 20, 2024, 08:02:16 pm »
it has further passes to do which will reduce the loss to the sector level.
I can do that work with modified win32diskimager in 4 hour or less for 1 TB.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 7192
  • Country: va
Re: Failing Win XP HDD
« Reply #59 on: May 20, 2024, 08:04:34 pm »
Quote
I have booted from the clone and it boots fine.

Well done. I bet that's a relief :)

Quote
My next project will probably be to move the OS partition to a 500GB SSD

You would probably benefit by using that opportunity to test your backup regime. Usually, putting disaster recovery through its paces isn't too practical, but with a new drive you can do it as many times as it takes to succeed without breaking anything more than temporarily.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: Failing Win XP HDD
« Reply #60 on: May 20, 2024, 08:06:32 pm »
it has further passes to do which will reduce the loss to the sector level.
I can do that work with modified win32diskimager in 4 hour or less for 1 TB.

Not when the drive is holding you up, you can't. This is clearly an extremely distressed device.

And as you clearly missed it: The 'work' is informing yourself, rather than making guesses as to the function of a program which exists to perform this recovery task, and has done so for nearly 20 years.
 

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #61 on: May 20, 2024, 08:19:07 pm »
Not when the drive is holding you up, you can't.
I have experience with Samsung HD250HJ in one hour. Fully equal work.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: Failing Win XP HDD
« Reply #62 on: May 20, 2024, 08:23:51 pm »
Not when the drive is holding you up, you can't.
I have experience with Samsung HD250HJ in one hour. Fully equal work.

And did that drive have as severe a set of surface defects causing it to retry reads for long periods of time? Is it running firmware with identical behaviour?

Your modified tool is surely very nice and capable of bypassing fundamental drive behaviours, but I'll stick with a proven one you apparently couldn't find.
 

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #63 on: May 20, 2024, 08:34:51 pm »
And did that drive have as severe a set of surface defects causing it to retry reads for long periods of time?
No, disk did not retry because program is not so dumb to send such command. Disk retries himself when lose track, but errors was in data, discovered by ECC.
 

Offline Whales

  • Super Contributor
  • ***
  • Posts: 2030
  • Country: au
    • Halestrom
Re: Failing Win XP HDD
« Reply #64 on: May 21, 2024, 12:21:12 am »
Congrats soldar :)  Glad you got a working clone.
 
The following users thanked this post: soldar

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 8050
  • Country: gb
Re: Failing Win XP HDD
« Reply #65 on: May 21, 2024, 12:59:56 am »
And did that drive have as severe a set of surface defects causing it to retry reads for long periods of time?
No, disk did not retry because program is not so dumb to send such command. Disk retries himself when lose track, but errors was in data, discovered by ECC.

And how certain are you that the drive in this case actually supports any read without retry command and that they actually behave in the expected manner? They've all been obsolete since the year 2000.

Did you really go to the effort of hacking direct ATA access into a tool to do that?
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: es
Re: Failing Win XP HDD
« Reply #66 on: May 21, 2024, 07:06:22 am »
Congrats soldar :)  Glad you got a working clone.

It took many tries and a lot of time but I am glad I persevered.

Thanks for your help.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2434
  • Country: fi
Re: Failing Win XP HDD
« Reply #67 on: May 21, 2024, 07:38:54 am »
Being stubborn is sometimes a virtue.

For the side track,
smartctl scterc
WD TLER
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-OR-X-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 
The following users thanked this post: soldar

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #68 on: May 21, 2024, 09:32:32 am »
And how certain are you that the drive in this case actually supports any read without retry command and that they actually behave in the expected manner? They've all been obsolete since the year 2000.
Did you really go to the effort of hacking direct ATA access into a tool to do that?
Of course, I did have a debug session with program and several disks. Disks slows down due intensive ECC calculation, but no sound of mechanical retry. And yes, I tried with shoked disks from notebooks who did retry, but no data has been retrieved from it (from regions with mechanical sound).
I see soldar succeded, I assume first variant with retry by dumb command.
About ATA-commands - I did modify win32diskimager, nothing added, works good. See source.
 

Offline golden_labels

  • Super Contributor
  • ***
  • Posts: 1335
  • Country: pl
Re: Failing Win XP HDD
« Reply #69 on: May 21, 2024, 05:41:27 pm »
It took many tries and a lot of time but I am glad I persevered.
Congrats!

I’m also glad we persevered in insisting on you using ddrescue. ;)
People imagine AI as T1000. What we got so far is glorified T9.
 

Offline nigelwright7557

  • Frequent Contributor
  • **
  • Posts: 701
  • Country: gb
    • Electronic controls
Re: Failing Win XP HDD
« Reply #70 on: May 21, 2024, 08:27:18 pm »
I would definitely go for an SSD.
It made a huge difference in speed to my laptop.

 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: es
Re: Failing Win XP HDD
« Reply #71 on: May 21, 2024, 09:44:58 pm »
I would definitely go for an SSD.
It made a huge difference in speed to my laptop.

Well, that is what i was trying to do initially but it did not work. Finally I managed to clone the entire 1TB HDD to a 3 TB HDD.

Now the problem of sector errors is solved but I still want to do what I was trying to do in the beginning:

I have a 336GB bootable partition with the OS and a 663 GB partition for storage (plus, now, 2 TB free).

I have available a brand new Crucial BX500 480GB SSB. What I would like to do is clone the OS partition to that SSD but it has to be bootable and this is the rub, this is what I could not achieve. It seems for the drive to be bootable I have to clone the entire drive which is precisely what I do not want to do.  I want to have on the SSD only the OS partition. I have managed to copy the partition but then it will not boot.

Now that I have cloned the entire HDD the urgency is gone and I need a rest after this ordeal. I might open a new thread with this issue. Someone mentioned GParted. Maybe I'll have a look at that.

In summary, I want to clone the OS partition from the HDD to the SSD but also the MBR so it will boot.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 7192
  • Country: va
Re: Failing Win XP HDD
« Reply #72 on: May 21, 2024, 10:01:13 pm »
Quote
What I would like to do is clone the OS partition to that SSD but it has to be bootable and this is the rub, this is what I could not achieve. It seems for the drive to be bootable I have to clone the entire drive which is precisely what I do not want to do.  I want to have on the SSD only the OS partition. I have managed to copy the partition but then it will not boot.

I've spelled out a couple of times how to fix that, and it's expected. There's a simple DOS command which will fix it after copying the partition.

Also as I noted a short while ago, now you have a working system and will soon have a spare disk, why not use that to practice this stuff? You'll learn something useful and it won't break anything.
 

Offline Postal2

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ru
Re: Failing Win XP HDD
« Reply #73 on: May 22, 2024, 07:41:31 am »
.....I have a 336GB bootable partition with the OS and a 663 GB partition for storage (plus, now, 2 TB free).

I have available a brand new Crucial BX500 480GB SSB. What I would like to do is clone the OS partition to that SSD but it has to be bootable and this is the rub, this is what I could not achieve. ........

In summary, I want to clone the OS partition from the HDD to the SSD but also the MBR so it will boot.
No problem, simply start cloning to smaller disk and do to the end of his size. Clone will boot. I do that regularly.

It's taking about 30 min (480GB direct cloning).
« Last Edit: May 22, 2024, 08:00:00 am by Postal2 »
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2434
  • Country: fi
Re: Failing Win XP HDD
« Reply #74 on: May 22, 2024, 08:14:37 am »
In summary, I want to clone the OS partition from the HDD to the SSD but also the MBR so it will boot.

If boot partition is from the beginning of the disk you have two possibilities.
One is to clone from the beginning so much that the whole partition is cloned and then clean the rest away.
Other is to first create an empty bootable partition and then clone its content.

ddrescue can do both, cloning from the beginning is probably the easier way.
--size is a self explaining option.

Linux limitations of mangling NTFS partition should be history, but maybe not.
Windows is also picky, but should start its fixes automatically.

Seems that I can't actually remember how XP drops to console mode.
That's possibly needed, being the last resort.

Doing ddrescue with partitions is also very simple, just add those numbers after device names.
Target partition can be bigger, LBA access mode is dynamic, absolute location of blocks is not relevant.
I guess all Linux desktops have some sort of a graphical device manager/viewer with a simple drive list.
You can also create that empty partition using Windows and then change the operating system for cloning.

lshw -class disk -short
lsblk -t
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-OR-X-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf