I am having issues when trying to clone my current HDD to a new, larger one. My source hard drive is a 1.0TB hard drive, with an additional 24GB SSD storage that appears as a separate disk in CloneZilla. My target hard drive is a 2.0TB hard drive, with no additional SSD storage.
I am trying to clone /dev/sdb, the 1TB HDD portion of my current drive, to the new drive /dev/sdc. However, I always get this error:
I've also had an error saying that the expected size /dev/sdc3 was < 0, but I don't know what paramters I used. I've tried removing the r flag, or adding the -k2 flag, but nothing worked.
Not sure it if matters, but here are the partitions of /dev/sdb.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have also tried using device-image mode, but that also fails. The log basically says the same thing as last time, with the added warning that the Last LBA specified by script is out of range.
What's the problem here exactly? The original drive is a 1TB HDD, and I'm trying to copy to a 2 TB drive. Is the arithmetic in CloneZilla wrong somewhere?
Should I just create the partition table on my new drive manually and restore partition by partition?
(Sorry the lousy pictures, it's the best I can do with my current setup.)
Last edit: Joey Dumont 2017-06-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm still not sure what the problem was, but ddrescue was able to copy my data to the new drive without any issue. I wll now use gparted to resize the partitions so as to use the entire drive.
I imagine there was an issue with rescaling the GPT partitions, although I remember trying something that supposedly disabled parition resizing. Not sure now.
I'm still interested in knowing what went wrong here, if you have any information to give me.
Cheers,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, you mean I should try to image the drive and show you the sda-pt.sf and sda-pt.parted.compact files contained in the image directory? As of right now I don't have an image of the drive, I used ddescue to directly copy the data of my drive onto the new one.
Last edit: Joey Dumont 2017-07-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, you mentioned you also tried "device-image mode", that's why I asked you to provide that.
Or you can get those file with command:
sudo parted -s /dev/sdb unit compact print > sdb.parted.compact
sudo sfdisk -d /dev/sdb > sdb-pt.sf
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, so this only fails when you enable "-k1" option? If so, definitely the issue is on the program "ocs-expand-gpt-pt" which can not deal with the partition layout you have. You can see that your "sda6" is not in the order so that's why I believe. I suggest you can use the beginner mode to clone that, then use gparted live to tune the partition size in the destination disk.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, the device-device mode failed regardless of the parameters I set. I can try with beginner mode, but I wanted to enable the rescue mode, as there are some bad blocks on my old drive.
Will report back when I've tried beginner mode.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have successfully cloned the disk with beginner mode. I first used CloneZilla in beginner mode to copy the entire disk to the new done, then used expert mode (to toggle rescue mode) on the single partition that contained bad sectors. Everything booted up nicely, with nothing whatsoever to be done.
Cheers,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
CloneZilla version: 2.5.0-25-amd64
I am having issues when trying to clone my current HDD to a new, larger one. My source hard drive is a 1.0TB hard drive, with an additional 24GB SSD storage that appears as a separate disk in CloneZilla. My target hard drive is a 2.0TB hard drive, with no additional SSD storage.
I am trying to clone
/dev/sdb
, the 1TB HDD portion of my current drive, to the new drive/dev/sdc
. However, I always get this error:I've also had an error saying that the expected size
/dev/sdc3 was < 0
, but I don't know what paramters I used. I've tried removing ther
flag, or adding the-k2
flag, but nothing worked.Not sure it if matters, but here are the partitions of
/dev/sdb
.I have also tried using
device-image
mode, but that also fails. The log basically says the same thing as last time, with the added warning that theLast LBA specified by script is out of range
.What's the problem here exactly? The original drive is a 1TB HDD, and I'm trying to copy to a 2 TB drive. Is the arithmetic in CloneZilla wrong somewhere?
Should I just create the partition table on my new drive manually and restore partition by partition?
(Sorry the lousy pictures, it's the best I can do with my current setup.)
Last edit: Joey Dumont 2017-06-26
I'm still not sure what the problem was, but
ddrescue
was able to copy my data to the new drive without any issue. I wll now usegparted
to resize the partitions so as to use the entire drive.I imagine there was an issue with rescaling the GPT partitions, although I remember trying something that supposedly disabled parition resizing. Not sure now.
I'm still interested in knowing what went wrong here, if you have any information to give me.
Cheers,
Interesting...
Could you please show us the partition table file i n the image dir, like
sda-pt.sf
sda-pt.parted.compact
Steven
Hmm, you mean I should try to image the drive and show you the
sda-pt.sf
andsda-pt.parted.compact
files contained in the image directory? As of right now I don't have an image of the drive, I usedddescue
to directly copy the data of my drive onto the new one.Last edit: Joey Dumont 2017-07-05
Oh, you mentioned you also tried "device-image mode", that's why I asked you to provide that.
Or you can get those file with command:
sudo parted -s /dev/sdb unit compact print > sdb.parted.compact
sudo sfdisk -d /dev/sdb > sdb-pt.sf
Steven
I have taken those from my old hard drive (I didn't have time to figure out how to fix the bootloader and stuff on the new one).
Here's
sdb.parted.compact
:And
sdb-pt.sf
OK, so this only fails when you enable "-k1" option? If so, definitely the issue is on the program "ocs-expand-gpt-pt" which can not deal with the partition layout you have. You can see that your "sda6" is not in the order so that's why I believe. I suggest you can use the beginner mode to clone that, then use gparted live to tune the partition size in the destination disk.
Steven
No, the
device-device
mode failed regardless of the parameters I set. I can try with beginner mode, but I wanted to enable therescue
mode, as there are some bad blocks on my old drive.Will report back when I've tried beginner mode.
I have successfully cloned the disk with beginner mode. I first used CloneZilla in beginner mode to copy the entire disk to the new done, then used expert mode (to toggle
rescue
mode) on the single partition that contained bad sectors. Everything booted up nicely, with nothing whatsoever to be done.Cheers,
Great. Thanks for sharing that.
Steven