Hello
- I am trying to clone my Ubuntu drive for backup reasons
Clonezilla (versions 3.1.3.16-amd64 and 20240630-nobel-amd64) abort with the following information
" the hidden space between MBR and 1st partition is -1 sectors
which is smaller than the hidden data size 2047 sectors
unable to find target partition sdc1"
sdc is my original hard disk
- i tried to copy sector by sector - by activating q1 option only - but this also failed with above failure
- GParted does not show any failure on this hdd - I was not trying to move/resize anything as its my original hdd
Can you help ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please boot Clonezilla live 3.1.3-16-amd64, and enter command line prompt, then run:
1. sudo -i
2. parted -s /dev/sdx unit s print
(Replace sdx with your source disk)
Please post the results of (2). Thanks.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Steven
Many Thanks for your response
Here is the result of the command as you asked for
Model ATA ST2000LM015-2E81 (scsi)
Disk /dev/sda: 3907029168s
Sector size (logical/physical) : 512B/4096B
Partition Table: msdos
Disk Flags:
Hello Steven - many thanks for your hint - and sorry that the "formating" of the table was gone after I pressed the send button.
I already tried expert mode - with only q1 option selected. but the check was done anyway (kind of strange when sector copy was selectet) and the program aborted as described
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hy Steven agin many thanks for your support
I tried again - I upload some pictures of the various screens
I selected "q1" Option only,
I skipped the test of the datasystem of the original Disk
- even though q1 was selected,
1. I selected "q1" Option only,
2. I skipped the test of the datasystem of the original Disk
3. - even though q1 was selected, I was asked to if the partition table of the original disk should be used - so I used option "-k"
4. you can see the selected "option" in one of pictures
5. Failure unchanged - no copy of the disk possible
Regards Alfred
Hello Steven
I tried Clonezilla live >= 3.1.3-22 moments ago
first I just deselected -j2 Option
so it starts with -g auto -e2 -r -sfsck -k0 -p poweroff -f sda -d sdb
!!!!!! Failure is the same
next I tried with only option q1 selected and all others deselected
so its - -q1 -sfsck -k -p choose -f sda -d sdb
!!!!!! Failure is the same
so the version is not a solution for my problem
Can I provide any more information to solve the problem?
Again many thanks for your continued support
Kind regards
Alfred
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mm... very strange. If "-j2" is not selected, the action to restore date between MBR and 1st partition should be skipped. In that case, is your /tmp/d2d-pseudo-tmp-cnvted still kept? If so, could you please share that?
Thanks.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Steven - the e-mails to you with the clonzilla.tar file are blocked as its content is viewed as security risk. Any idea how I can share the file with you?
Regards Alfred
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have sent permission request to access that file the other days, and I am still waiting for you to approve that.
Just sent another request a few minutes ago.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
should be done - sorry for the late permission
Alfred
Am 13.09.2024 um 11:51 schrieb Steven Shiau:
I have sent permission request to access that file the other days, and
I am still waiting for you to approve that.
Just sent another request a few minutes ago.
The issue you have is the source disk has some strange partitions layout:
label: dos
label-id: 0x938dce16
device: /dev/sda
unit: sectors
sector-size: 512
As you can see, sda6 starts at 1052672 with size 3897827328, so it ends at 3898880000, i.e.,
1052672+3897827328=3898880000
Then your sda5 should starts at >= 3898880000, say 3898880001.
I suggest maybe you can try to use GParted (https://gpated.org) to tune the partitions layout of your source disk so that Clonezilla (actually sfdisk) can clone the partition table for you.
Otherwise sfdisk does not accept the partitions layout and Clonezilla has no way to create the partition table 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:
Many thanks for your continued support Steven
I hesitate very much to mess around with partition tables on my only
working copy of my system
My idea was to clone the disk - sector by sector - don't mess with
partition tables - just clone a drive regardless of any partitions
If that succeeds - and having a working clone - only than I would try to
tune the partitions on one drive
If this is finally working I would clone the drive with good partitions
again and the "normal" way with clonezilla to finally get 2 working
drives with clean partitions.
So you tell me that the option "sector by sector" cloning does not work
with bad partition tables?
thats too bad
Regards Alfred
Am 15.09.2024 um 06:10 schrieb Steven Shiau:
The issue you have is the source disk has some strange partitions layout:
label: dos
label-id: 0x938dce16
device: /dev/sda
unit: sectors
sector-size: 512
As you can see, sda6 starts at 1052672 with size 3897827328, so it
ends at 3898880000, i.e.,
1052672+3897827328=3898880000
Then your sda5 should starts at >= 3898880000, say 3898880001.
I suggest maybe you can try to use GParted (https://gpated.org) to
tune the partitions layout of your source disk so that Clonezilla
(actually sfdisk) can clone the partition table for you.
Otherwise sfdisk does not accept the partitions layout and Clonezilla
has no way to create the partition table in the destination disk.
Hello
- I am trying to clone my Ubuntu drive for backup reasons
Clonezilla (versions 3.1.3.16-amd64 and 20240630-nobel-amd64) abort with the following information
" the hidden space between MBR and 1st partition is -1 sectors
which is smaller than the hidden data size 2047 sectors
unable to find target partition sdc1"
sdc is my original hard disk
- i tried to copy sector by sector - by activating q1 option only - but this also failed with above failure
- GParted does not show any failure on this hdd - I was not trying to move/resize anything as its my original hdd
Can you help ?
Please boot Clonezilla live 3.1.3-16-amd64, and enter command line prompt, then run:
1. sudo -i
2. parted -s /dev/sdx unit s print
(Replace sdx with your source disk)
Please post the results of (2). Thanks.
Steven
Hello Steven
Many Thanks for your response
Here is the result of the command as you asked for
Model ATA ST2000LM015-2E81 (scsi)
Disk /dev/sda: 3907029168s
Sector size (logical/physical) : 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type Filesystem Flags
1 2048s 1050623s 1048576s primary fat32 boot, esp
2 1052670s 3907028991s 3905976322s extended
6 1052672s 3898879999s 3897827328s logical ext4
5 3898880000s 3907028991s 8148992s logical linux-swap(v1) swap
Many thanks for your help
Regards Alfred
Maybe you can try to enter expert mode, and deselect the option "-j2":
https://clonezilla.org//clonezilla-live/doc/03_Disk_to_disk_clone/images/ocs-05-b-2-expert-param-extra.png
Steven
Hello Steven - many thanks for your hint - and sorry that the "formating" of the table was gone after I pressed the send button.
I already tried expert mode - with only q1 option selected. but the check was done anyway (kind of strange when sector copy was selectet) and the program aborted as described
Here is a foto of the error message
Are you sure you have "deselect the option "-j2"? Not check it?
The photo showed you here is "check it", not "deselect":
https://clonezilla.org//clonezilla-live/doc/03_Disk_to_disk_clone/images/ocs-05-b-2-expert-param-extra.png
Steven
Hy Steven agin many thanks for your support
I tried again - I upload some pictures of the various screens
I selected "q1" Option only,
I skipped the test of the datasystem of the original Disk
- even though q1 was selected,
1. I selected "q1" Option only,
2. I skipped the test of the datasystem of the original Disk
3. - even though q1 was selected, I was asked to if the partition table of the original disk should be used - so I used option "-k"
4. you can see the selected "option" in one of pictures
5. Failure unchanged - no copy of the disk possible
Regards Alfred
Please give testing Clonezilla live >= 3.1.3-22 a try. This issue should have been fixed.
Enter expert mode, and deselect "-j2" option.
Steven
Hello Steven
I tried Clonezilla live >= 3.1.3-22 moments ago
first I just deselected -j2 Option
so it starts with -g auto -e2 -r -sfsck -k0 -p poweroff -f sda -d sdb
!!!!!! Failure is the same
next I tried with only option q1 selected and all others deselected
so its - -q1 -sfsck -k -p choose -f sda -d sdb
!!!!!! Failure is the same
so the version is not a solution for my problem
Can I provide any more information to solve the problem?
Again many thanks for your continued support
Kind regards
Alfred
Mm... very strange. If "-j2" is not selected, the action to restore date between MBR and 1st partition should be skipped. In that case, is your /tmp/d2d-pseudo-tmp-cnvted still kept? If so, could you please share that?
Thanks.
Steven
Hello Steven
Here is the content of the directory you asked for and the options used (I added the rescue option)
Regards Alfred
OK, got it.
Could you please create a tarball of the /tmp/d2d-* and email me at steven@stevenshiau.org?
Steven
Hello Steven - the e-mails to you with the clonzilla.tar file are blocked as its content is viewed as security risk. Any idea how I can share the file with you?
Regards Alfred
Or you can put the file in google drive and email the URL.
In addition to the above email add, you can email me at sourceforge one.
Steven
Hello Steven
Here are the links to the files
Hope it works
https://drive.google.com/file/d/1mh5pcK4fxJvbxAqxRgDtjTTYxoBiEPvr/view?usp=sharing
https://drive.google.com/file/d/1ujzRoOxiAYxbEbU3BAq5SjZC2get2nno/view?usp=sharing
Am 08.09.2024 um 02:51 schrieb Steven Shiau:
Here comes the tar file
https://drive.google.com/file/d/1Cj5cYQeaFkcbdM2xmWtCA29yrAHvoYRg/view?usp=sharing
Last edit: Steven Shiau 4 days ago
I have sent permission request to access that file the other days, and I am still waiting for you to approve that.
Just sent another request a few minutes ago.
Steven
should be done - sorry for the late permission
Alfred
Am 13.09.2024 um 11:51 schrieb Steven Shiau:
The issue you have is the source disk has some strange partitions layout:
label: dos
label-id: 0x938dce16
device: /dev/sda
unit: sectors
sector-size: 512
/dev/sda1 : start= 2048, size= 1048576, type=ef, bootable
/dev/sda2 : start= 1052670, size= 3905976322, type=5
/dev/sda5 : start= 3898880000, size= 8148992, type=82
/dev/sda6 : start= 1052672, size= 3897827328, type=83
As you can see, sda6 starts at 1052672 with size 3897827328, so it ends at 3898880000, i.e.,
1052672+3897827328=3898880000
Then your sda5 should starts at >= 3898880000, say 3898880001.
I suggest maybe you can try to use GParted (https://gpated.org) to tune the partitions layout of your source disk so that Clonezilla (actually sfdisk) can clone the partition table for you.
Otherwise sfdisk does not accept the partitions layout and Clonezilla has no way to create the partition table in the destination disk.
Steven
Many thanks for your continued support Steven
I hesitate very much to mess around with partition tables on my only
working copy of my system
My idea was to clone the disk - sector by sector - don't mess with
partition tables - just clone a drive regardless of any partitions
If that succeeds - and having a working clone - only than I would try to
tune the partitions on one drive
If this is finally working I would clone the drive with good partitions
again and the "normal" way with clonezilla to finally get 2 working
drives with clean partitions.
So you tell me that the option "sector by sector" cloning does not work
with bad partition tables?
thats too bad
Regards Alfred
Am 15.09.2024 um 06:10 schrieb Steven Shiau:
Sure, in that case you can use dd command, like
dd if=/dev/YOUR_SRC_DISK of=/dev/YOUR_DEST_DISK
It's recommended after cloning, you use GParted to tune the cloned one disk. Otherwise the issue remains in the future.
Steven