1

Topic: Partition not copying

Hi all,

I'm trying to copy partitions from one drive to another but it's just not happening for me. GParted has failed to copy the second partition 3 times now. Each attempt takes approx 2.5 hours so it's pretty frustrating. Can anyone tell me why it isn't working?

GParted 0.24.0 --enable-online-resize

Libparted 3.2

Copy /dev/sda2 to /dev/sdc (start at 301.00 MiB)  02:29:24    ( ERROR )
       
calibrate /dev/sda2  00:00:01    ( SUCCESS )
       
path: /dev/sda2 (partition)
start: 616448
end: 810115071
size: 809498624 (386.00 GiB)
check file system on /dev/sda2 for errors and (if possible) fix them  00:00:05    ( SUCCESS )
       
ntfsresize -i -f -v /dev/sda2  00:00:05    ( SUCCESS )
       
ntfsresize v2015.3.14AR.1 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 414463291904 bytes (414464 MB)
Current device size: 414463295488 bytes (414464 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 234502 MB (56.6%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
Multi-Record : 310527 MB 216286
$MFTMirr : 1 MB 1
Compressed : 288013 MB 26525
Sparse : 278681 MB 33165
Ordinary : 310114 MB 576390
You might resize at 234501935104 bytes or 234502 MB (freeing 179962 MB).
Please make a test run using both the -n and -s options before real resizing!
create empty partition  00:00:01    ( SUCCESS )
       
path: /dev/sdc2 (partition)
start: 616448
end: 810115071
size: 809498624 (386.00 GiB)
set partition type on /dev/sdc2  00:00:01    ( SUCCESS )
       
new partition type: ntfs
copy file system of /dev/sda2 to /dev/sdc2  02:29:16    ( ERROR )
       
ntfsclone -f --overwrite /dev/sdc2 /dev/sda2  02:29:16    ( ERROR )
       
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 414463291392 bytes (414464 MB)
Current device size: 414463295488 bytes (414464 MB)
Scanning volume ...
100.00 percent completed
Accounting clusters ...
Space in use : 234502 MB (56.6%)
Cloning NTFS ...
100.00 percent completed
Syncing ...
ERROR(5): fsync: Input/output error
ntfsclone v2015.3.14AR.1 (libntfs-3g)
========================================

2

Re: Partition not copying

vinyljunkies wrote:

ERROR(5): fsync: Input/output error

Thanks for posting the gparted_details.htm log file.  Based on the above line from the log it appears that a hardware error was encountered when trying to copy/clone the partition.  The problem could be a simple as a loose cable or be more serious such as a failing hard drive.

To learn more about the error, you can enter the "dmesg" command into a terminal window after the error occurs.  The output should indicate more information about the error and the disk device that is exhibiting the error.

If the error is on the source disk, you might try manually running the clone command by adding the "--rescue" option.

For example:

ntfsclone -f --rescue --overwrite /dev/sdc2 /dev/sda2

3

Re: Partition not copying

Thanks gedakc,

I haven't had time but I'll hopefully be able to try copy it this week and will use dmesg to find out where the error is. I'll post the results

4

Re: Partition not copying

If the drive supports smart monitoring, you might also try gsmartcontrol to see if it reports any hardware issues with the drive.