I have a failing hard drive and after first using Testdisk which was going on very slow, I am using ddrescue to copy the disk. The original disk is a 2TB drive and had 4 NTFS partitions (which I had mistakenly formatted with ext4 on live ubuntu system).
Now, I used ddrescue on live ubuntu with sudo ddrescue -d -f -r3 /dev/sdb /dev/sdc sdc.log
I used a new 4TB hard drive for copying, now I want to make a second copy. And for the second copy, I have another new 4TB drive which is different from the first copy drive. I read that the target drive must be same size or at least bigger. Now my intermediate drive is bigger than the first failing drive (2TB). What if my second target drive is few MBs smaller than the intermediate drive? Will ddrescue fail to write the data on the second drive? Or will it stop writing after the original 2TB data ends on the first copy drive?
What shall I do in either case?
Thanks in advance.
UPDATE 21Feb2023: Below is the log file text (I copied the sdc.log file on a usb and opened it separately):
# Mapfile. Created by GNU ddrescue version 1.26
# Command line: ddrescue -d -f -r3 /dev/sdb /dev/sdc sdc.log
# Start time: 2023-02-18 05:03:10
# Current time: 2023-02-21 10:47:14
# Copying non-tried blocks... Pass 1 (forwards)
# current_pos current_status current_pass
0x610FA80000 ? 1
# pos size status
0x00000000 0x47AC630000 +
0x47AC630000 0x00010000 *
0x47AC640000 0x01320000 ?
0x47AD960000 0x479140000 +
0x4C26AA0000 0x00010000 *
0x4C26AB0000 0x01320000 ?
0x4C27DD0000 0x2FA860000 +
0x4F22630000 0x00010000 *
0x4F22640000 0x01320000 ?
0x4F23960000 0x1F7230000 +
0x511AB90000 0x00010000 *
0x511ABA0000 0x01320000 ?
0x511BEC0000 0x32780000 +
0x514E640000 0x00010000 *
0x514E650000 0x01320000 ?
0x514F970000 0xC5D00000 +
0x5215670000 0x00010000 *
----------------------------------------------------
Here is the display in enter image description herethe terminal:
Secondly, when I tried to run smarttools with smartctl -a /dev/sdb >myreport"
Here is the report from SMART tools: (ran with "sudo smartctl -a /dev/sdb >myreport")
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.19.0-21-generic] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST2000DM001-1ER164
Serial Number: W4Z3P9PN
LU WWN Device Id: 5 000c50 09b8366dd
Firmware Version: CC26
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database 7.3/5319
ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue Feb 21 11:10:57 2023 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
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: ( 80) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
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: ( 209) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1085) SCT Status supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 110 080 006 Pre-fail Always - 215372854
3 Spin_Up_Time 0x0003 096 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 096 096 020 Old_age Always - 4686
5 Reallocated_Sector_Ct 0x0033 079 079 010 Pre-fail Always - 26840
7 Seek_Error_Rate 0x000f 082 060 030 Pre-fail Always - 168010836
9 Power_On_Hours 0x0032 064 064 000 Old_age Always - 32234
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 096 096 020 Old_age Always - 4690
183 Runtime_Bad_Block 0x0032 091 091 000 Old_age Always - 9
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 3934
188 Command_Timeout 0x0032 100 052 000 Old_age Always - 112 301 483
189 High_Fly_Writes 0x003a 098 098 000 Old_age Always - 2
190 Airflow_Temperature_Cel 0x0022 062 034 045 Old_age Always In_the_past 38 (Min/Max 26/41 #1798)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 191
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 224369
194 Temperature_Celsius 0x0022 038 066 000 Old_age Always - 38 (0 8 0 0 0)
197 Current_Pending_Sector 0x0012 001 001 000 Old_age Always - 37904
198 Offline_Uncorrectable 0x0010 001 001 000 Old_age Offline - 37904
199 UDMA_CRC_Error_Count 0x003e 200 199 000 Old_age Always - 68
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 19597h+41m+10.668s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 57999941039
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1327164476473
SMART Error Log Version: 1
ATA Error Count: 3937 (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 3937 occurred at disk power-on lifetime: 32223 hours (1342 days + 15 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
-- -- -- -- -- -- --
40 53 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 80 ff ff ff 4f 00 2d+19:53:57.102 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+19:53:57.101 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+19:53:57.101 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+19:53:57.101 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+19:53:57.100 READ FPDMA QUEUED
Error 3936 occurred at disk power-on lifetime: 32222 hours (1342 days + 14 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
-- -- -- -- -- -- --
40 53 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 80 ff ff ff 4f 00 2d+18:50:34.589 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:50:34.588 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:50:34.588 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:50:34.587 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:50:34.587 READ FPDMA QUEUED
Error 3935 occurred at disk power-on lifetime: 32221 hours (1342 days + 13 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
-- -- -- -- -- -- --
40 53 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 80 ff ff ff 4f 00 2d+18:04:18.861 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:04:18.861 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:04:18.861 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:04:18.860 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+18:04:18.860 READ FPDMA QUEUED
Error 3934 occurred at disk power-on lifetime: 32221 hours (1342 days + 13 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
-- -- -- -- -- -- --
40 53 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 80 ff ff ff 4f 00 2d+17:50:52.906 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+17:50:52.906 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+17:50:52.905 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+17:50:52.905 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+17:50:52.905 READ FPDMA QUEUED
Error 3933 occurred at disk power-on lifetime: 32219 hours (1342 days + 11 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
-- -- -- -- -- -- --
40 53 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 00 80 ff ff ff 4f 00 2d+15:56:40.578 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+15:56:40.016 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+15:56:39.728 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+15:56:36.988 READ FPDMA QUEUED
60 00 80 ff ff ff 4f 00 2d+15:56:36.988 READ FPDMA QUEUED
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
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.
-----------------------------------------------